TinyCeNN-LM: Quality-Gated Conversion of Pretrained Attention with CeNN-Inspired Cellular-Recurrent Layers
Authors: Kabeh Mohsenzadegan, Vahid Tavakkoli, Kyandoghere Kyamakya
Organizations: Institute for Smart System Technologies University of Klagenfurt Klagenfurt, Austria · University of Klagenfurt / Inst. f. Smart Systems Technologies, Austria & Faculte Polytechnique Universite de Kinshasa, DR-Congo
Replacing attention in a pretrained language model is a compatibility problem: a plausible substitute may alter representations expected by later layers. TinyCeNN-LM introduces a quality-gated post-training conversion framework using CeNN-inspired cellular-recurrent layers with bounded local processing, compact recurrent memory, routing, fusion, and accept-or-rollback validation. Three implementations are studied: Integrated Memory, MemoryFusion, and PDelta3-GDN2-CLVR+Local32. Strict PDelta3 conversion accepts a layer only when representation and NLL criteria pass fixed thresholds. On SmolLM2-135M, layers 0-2 are accepted with cumulative ΔNLL=+0.01209, while layer 3 is rejected despite acceptable NLL because representation fidelity fails. On Qwen3.5-0.8B, full-attention layers 3, 7, and 11 are accepted with final ΔNLL=+0.02073. Integrated Memory keeps perplexity within −0.07% to +0.93% while reducing total cache by up to 6.01%. A sampled 200-item downstream sanity check gives 28.5%--32.0% overall accuracy for converted Qwen releases. The results support conservative, quality-gated structural conversion rather than universal attention replacement or speedup.
Figures & tables
Fig. 1: CeNN-inspired conversion layer used throughout TinyCeNN-LM. The local operator Φℓ captures bounded neighborhood evidence, the recurrent operator Ψℓ transports compact long-range state, Rℓ optionally injects cross-layer context, Gℓ fuses the paths, and Qℓ validates the proposed structural change. The dashed feedback path represents rollback: a candidate that violates the declared quality contract is not committed.
Fig. 2: Three concrete CeNN-inspired layer instantiations under the abstraction in Fig. 1 . Integrated Memory is the conservative quality/cache design; MemoryFusion is an exploratory local/global fusion design; PDelta3-GDN2-CLVR+Local32 is the strongest strict replacement track in the present experiments.
Model
Extra params
CeNN state
Native KV@256
Native KV@2048
SmolLM2
0.153M
65.6 KiB
192 KiB
1.50 MiB
Qwen3.5
0.753M
178 KiB
512 KiB
4.00 MiB
TABLE I: Per-Layer Analytical State for PDelta3+Local32 (FP16, Batch 1)
Model
Layer
NMSE ↓
Cosine ↑
Δ NLL inc
Δ NLL cum
Local gate
Decision
SmolLM2-135M
0
0.0069
0.9974
+0.00239
+0.00239
0.749
Accept
1
0.0108
0.9960
+0.00972
+0.01211
0.766
Accept
2
0.0856
0.9587
-0.00002
+0.01209
0.766
Accept
3
0.2265
0.8949
+0.00278
+0.01487
0.441
Reject
Qwen3.5-0.8B
3
0.0621
0.9745
-0.00325
-0.00325
0.721
Accept
7
0.0389
0.9705
+0.01327
+0.01003
0.721
Accept
TABLE II: Strict PDelta3-GDN2-CLVR+Local32 Acceptance Across Two Pretrained Models
Fig. 3: Observed quality-gated conversion frontiers. The SmolLM2 experiment exposes a representation-fidelity boundary at layer 3. The Qwen experiment validates the targeted prefix of three full-attention anchors; later anchors are not claimed as converted in this result.
Model / release
Custom
MMLU
PIQA
MMMLU
GPQA-D
Overall
layers
Pro
DE
Qwen3.5-0.8B (native)
–
12.0
48.0
34.0
26.0
30.0
PDelta3-CLVR+Local32
3,7,11
14.0
48.0
30.0
22.0
28.5
MemoryFusion
3,7
10.0
54.0
28.0
30.0
30.5
Integrated Memory
3,23
12.0
42.0
44.0
30.0
32.0
TABLE III: Sampled Qwen3.5-0.8B FastEval Sanity Check (50 Items per Benchmark; 200 Total). These Are Not Official Full-Benchmark Scores.