TL;DR
Training a bigger AI model usually means throwing your old one in the trash and starting over from scratch. This paper introduces QuatTucker-ZigZagGPT, a reimagined Transformer architecture that cuts non-embedding ("backbone") parameters in half using 4D hypercomplex math and clever non-sequential layer routing. Best of all, it lets you seamlessly grow a live, trained model in both width and depth with zero sudden spikes in loss—allowing you to scale a model organically like a living tree rather than rebuilding a skyscraper from rubble.
What Problem Does This Paper Address?
Standard Large Language Models (LLMs) suffer from two stubborn inefficiencies. First, roughly two-thirds of their backbone parameters are locked up in Feed-Forward Networks (FFNs), where every new layer adds another massive, independent 2D weight matrix. Second, pretraining is an all-or-nothing gamble: if your model hits a capacity ceiling, scaling up typically requires discarding thousands of GPU hours and initializing a larger network from scratch.
Researchers have tried solving parameter bloat with "Looped Transformers," which run the exact same layer over and over. While that saves memory, forcing every step to use identical weights prevents different depths from specializing in different tasks. Meanwhile, mathematical compression tricks like tensor decompositions rarely play nice with modern GPU Tensor Cores. Can we get the memory savings of weight-sharing, keep layer-by-layer specialization, run fast on modern GPUs, and grow the model mid-training without breaking it?
Methods
Instead of viewing a stack of FFNs as separate 2D matrices, the author treats every 4-layer chunk ("diamond") as a unified 3D Tensor Cuboid and combines four mechanisms (while keeping standard, dense FlashAttention per layer):
- 4D Quaternion Hamilton GEMMs: Shared FFN weights are parameterized using Quaternions (a 4D extension of complex numbers), achieving a $4\times$ compression ratio. Instead of slow custom kernels, the 4 matrices are assembled once per forward pass into a single block matrix that runs natively on fast
bfloat16Tensor Cores. - Block-Diagonal Tucker Cores: To prevent shared weights from acting identically at every depth, each layer gets its own lightweight $64 \times 64$ real-valued matrix ("Tucker core"). Think of the shared Quaternion basis as a common vocabulary, and each layer's Tucker core as a specialized lens that rotates features specifically for that depth.
- Braided ZigZag Diamond Routing: Rather than running layers strictly in order ($0 \to 1 \to 2 \to 3$), execution jumps ahead and loops back: $0 \to 2 \to 1 \to 3$, blending intermediate states along the way. This creates three concurrent gradient pathways and top-down refinement at zero extra FLOPs.
- Exact 2D Zero-Loss Continual Scaling: Because of the modular algebraic structure, a live checkpoint can expand in width (by adding zero-initialized Quaternion rank slices) at $10.8\times$ lower parameter cost than dense expansion, and in depth (by appending zero-initialized 4-layer diamonds) with bit-exact preservation of the model's outputs at step zero.
- Annealed Gated Bounce-Back (
GatedBounce): Tested on algorithmic tasks, this is a temporary feedback loop taxed for sparsity during training. It acts like training wheels—guiding early learning before self-distilling to a $0.0\%$ bounce rate (zero overhead) at inference.
Datasets
No new datasets were created, though the author tests a 3D Cuboid 4-Corner Parity task alongside standard algorithmic benchmarks (6/8-bit Parity, Mod-53 Addition Grokking, $8\times8$ Handwritten Digits, 3-Turn Double Spirals). Language modeling scales up from TinyStories to FineWeb-Edu, blended during mid-training with Cosmopedia-v2, OpenWebMath, and Python-Edu. Post-training uses Alpaca, SmolTalk, and synthetic completions from Qwen3.5-0.8B. Zero-shot evaluation spans 20,465 questions across ARC-Easy, ARC-Challenge, HellaSwag, WinoGrande, BoolQ, PIQA, and OpenBookQA.
Key Insights and Ideas
- Attention resists sharing; FFNs thrive on it: Rigorous negative experiments proved a sharp architectural boundary. Compressing attention across layers badly degraded validation loss ($6.83$ vs. $6.25$), whereas FFNs compressed via Quaternion-Tucker sharing actually beat dense baselines. Attention needs per-layer independence; FFNs do not.
- Self-deleting training wheels: With
GatedBounce, penalizing a network for using a feedback loop doesn't hurt accuracy—it triggers a phase transition where the network learns to internalize the computation, climbing from $62.2\%$ to $90.9\%$ parity accuracy while retiring the loop completely ($0\%$ inference use). - Compression cures "slingshot" instability: On Mod-53 grokking, a standard 8-layer ResNet peaked and then suffered a late collapse ($88.2\%$), whereas a $7.6\times$ smaller compressed cuboid model converged smoothly to $100.0\%$.
Key Results
- Beating Dense Baselines at Half the Size: At GPT-2 scale on an A100 GPU,
QuatTucker-ZigZagGPT-12(39.0M backbone) beatStandardGPT-12(85.0M backbone) at 5 out of 5 controlled checkpoints (215.0 vs. 230.7 perplexity), trading a $1.53\times$ wall-clock slowdown due to wider internal rank. - Seamless 6-Billion-Token Continual Growth: A single checkpoint was grown continuously from 12 layers (39.0M backbone) $\to$ wider rank (42.5M) $\to$ 16 layers (56.7M) $\to$ 20 layers (70.9M), with bit-exact ($\max |\Delta| = 0.000000$) depth transitions. It reached 28.74 perplexity on FineWeb-Edu—within 0.41 PPL of OpenAI's
gpt2despite a $16.6\%$ smaller backbone.
- 50x Token Efficiency on Downstream Tasks: Across 16,955 zero-shot questions on 4 core benchmarks, the 6.00B-token grown model hit 44.75% average accuracy, matching published GPT-3 Small (125M params trained on 300B tokens) using $50\times$ fewer tokens.
Limitations and Future Work
While FFN rank (width) and layer count (depth) can grow seamlessly, the main residual stream dimension ($d_{\text{model}} = 768$) remains fixed; extending zero-loss operators to widen $d_{\text{model}}$ is needed for true 3D unbounded growth. Additionally, training was limited to 6.00B tokens and a short 512-token context window, leaving pure factual recall slightly behind massive-token models. Future work aims to extend context length to 2048+, push past 10B tokens, and activate the recurrent ZigZag feedback loop ($L_3 \to L_1$) at test time for latent reasoning.
Summary updated