TL;DR
The Sparse Growing Transformer (SGT) introduces a training-time sparse depth allocation framework that dynamically grows network depth where and when it is needed most. By progressively looping only high-entropy attention heads along a deep-to-shallow maturation schedule, SGT slashes the computational overhead of recursive Transformers from 16–20% down to just 1–3% while delivering superior reasoning performance and faster convergence.
What Problem Does This Paper Address?
To give large language models (LLMs) strong reasoning capabilities, researchers typically scale up network depth. However, stacking more layers heavily inflates parameter counts, memory footprints, and deployment latency.
To decouple model depth from parameter scale, recent works have turned to recurrence—reusing existing layer parameters across multiple sequential computation steps. Unfortunately, existing recursive architectures are rigid: they apply block-level reuse uniformly across all parameters and maintain a static topology throughout the entire training duration. This uniform approach introduces massive computational redundancy during training because not all parameters or layers contribute equally to learning at every stage.
Methods
SGT introduces the paradigm of Training-Time Structural Sparsity by selectively allocating additional computation to fine-grained subsets of parameters as training evolves. The architecture relies on two core mechanisms:
- Entropy-Guided Attention Looping: Rather than looping an entire Transformer block, SGT targets specific high-entropy attention heads, which the authors identify as critical hubs for global semantic integration. During a forward pass, the model recursively routes hidden states exclusively through the top-$h$ highest-entropy heads within active layers.
- Progressive Growth Training: Aligned with the model's natural learning trajectory, SGT uses a Deep-to-Shallow (D2S) growth schedule. Training begins with a standard Warm-up Phase to let attention patterns stabilize. During the Growing Phase, the model periodically evaluates layer-wise entropy and activates recursive loops in the deeper, earlier-maturing layers first, before gradually extending recurrence to shallower layers. Finally, a Fixed Phase freezes the topology to allow full parameter convergence.
Datasets
The authors pretrained models from scratch on a 20B-token subset of the C4 dataset.
To evaluate reasoning and knowledge capabilities, they tested the models across 11 diverse benchmarks, including:
- Mathematical Reasoning: AIME, MATH-500, GSM8K
- General Knowledge & Code: MMLU, HumanEval
- Long-Context QA & Retrieval (from HELMET): WinoGrande, ARC-Easy, SocialIQA, HellaSwag, OpenBookQA, CommonsenseQA, NarrativeQA, InfBenchQA, TriviaQA, and HotpotQA.
Key Insights and Ideas
- High-Entropy Heads are Hubs, Not Noise: In attention mechanisms, high entropy means attention weights are widely distributed rather than sharply focused on a few local tokens. While one might intuitively assume high entropy represents noise, head-masking experiments revealed that these heads act as crucial information-dense hubs for global reasoning. Looping them allows the model to iteratively filter out syntactic fluff and anchor its focus on task-critical tokens.
- Deep-to-Shallow Maturation: By tracking intra-layer variance during training, the authors discovered that deeper layers differentiate functionally much earlier in the training timeline, while shallower layers evolve more gradually. Growing the network's recursive depth from deep-to-shallow aligns with this intrinsic trajectory, ensuring training stability. Conversely, trying to grow the network from shallow-to-deep (S2D) causes severe training instability and volatile entropy spikes.
Key Results
- Drastic FLOP Reductions: At the 573M parameter scale, SGT ($K_{max}=3$) outperformed the standard block-looping baseline by 0.59 points on average. Crucially, SGT achieved this while incurring a mere 1.77% FLOP overhead, compared to the heavy 16.42% overhead required by block looping.
- Accelerated Convergence: When evaluated against equivalent training compute budgets, SGT consistently maintained a lower training perplexity than both vanilla Transformers and block-recurrent baselines, achieving a 0.48 point perplexity reduction over the vanilla model at $65 \times 10^{18}$ FLOPs.
- Superior Long-Context Extrapolation: SGT demonstrated robust length generalization. When trained on a 1024 context length and evaluated on up to 4096 tokens without any positional embedding tweaks, SGT significantly reduced perplexity compared to the vanilla baseline, whereas indiscriminate block looping actually degraded performance at moderate extrapolation scales.
Limitations and Future Work
The primary limitation acknowledged by the authors is compute scale. Due to resource constraints, SGT was only validated on models up to 1.2B parameters. Confirming the scalability of this framework on massive foundation models remains an open avenue for future research. Additionally, the authors noted that they did not perform an exhaustive hyperparameter sweep for the optimal number of active heads ($h$), active layers ($L$), or maximum loop steps ($K_{max}$), leaving room for further efficiency tuning.
Summary updated