TL;DR
InfuseLoop introduces a cross-trajectory latent injection mechanism for Parallel Looped Transformers (PLTs), enabling stable and effective depth scaling up to eight loops. By aggregating causally available hidden states from overlapping prediction trajectories through lightweight attention, it significantly improves model quality with negligible inference overhead.
What Problem Does This Paper Address?
Standard Transformers face a trade-off: adding layers improves quality but increases parameter count, memory usage, and deployment costs. Looped Transformers (LTs) attempt to solve this by repeatedly applying the same shared Transformer blocks, increasing "effective depth" without adding parameters. However, executing these loops sequentially makes inference painfully slow.
Parallel Looped Transformers (PLTs) were designed to fix the speed issue by overlapping the execution of different loops across different token positions. While fast, vanilla PLTs scale poorly; they suffer from training-loss spikes and diminishing returns as more loops are added. The authors identified a "computational gap": vanilla PLTs only pass information within a single prediction trajectory, ignoring other hidden states that have already been computed and are causally available.
Methods
The core innovation is InfuseLoop, a mechanism that injects hidden states from shallower loops of later prediction trajectories into deeper loops of earlier trajectories.
Key technical components include:
- Cross-Trajectory Aggregation: It uses lightweight attention residuals to combine the current state with "Post States" (states from later trajectories that are already computed in the parallel schedule).
- Causal Integrity: The authors prove that these "future" states only depend on tokens already seen by the model, meaning they don't violate autoregressive constraints.
- Efficient Storage: The system requires only $O(Rd)$ additional storage (where $R$ is the number of loops and $d$ is the hidden dimension) using a rolling buffer, keeping the memory footprint minimal.
- Stabilizing Normalization: To prevent the training spikes common in recurrent models, InfuseLoop employs loop-aware residual scaling and RMSNorm on FFN outputs.
Datasets
- Training: The models (0.6B parameters) were trained on FineWeb-Edu using 6 billion tokens for main results and 1 billion for ablation studies.
- Evaluation:
- Language Modeling: WikiText-2 and LAMBADA (perplexity).
- Downstream Tasks: A suite of seven benchmarks including MMLU (5-shot), HellaSwag, ARC-Easy, ARC-Challenge, PIQA, WinoGrande, and OpenBookQA (all zero-shot).
Key Insights and Ideas
- Hidden Riches in the Schedule: In a parallel execution schedule, when the model is working on loop 4 for token $t$, it has already finished loop 1 for token $t+3$. InfuseLoop realizes these "future" trajectory states are valuable contextual representations that vanilla models simply throw away.
- Stabilizing Recurrence: Cross-trajectory injection acts as a stabilizer. By providing more paths for information to flow, it eliminates the massive training loss spikes that plague vanilla PLTs as they scale to 4 or 8 loops.
- Exploiting Memory-Bound Decoding: Since LLM decoding is often limited by memory bandwidth (waiting for weights to load), there is "idle" compute time available. InfuseLoop uses this idle time to perform extra recurrent loops, improving quality with almost zero impact on latency.
Key Results
- Training Stability: InfuseLoop successfully eliminated the training-loss spikes observed in vanilla PLTs, allowing for smooth convergence even at 8 loops.
- Quality Gains: At 8 loops, InfuseLoop reduced perplexity by 3.4–17.1% compared to vanilla PLTs and 10.5–37.3% compared to a non-looped baseline.
- Downstream Accuracy: It improved average downstream accuracy by 0.84 and 1.99 percentage points over vanilla PLTs and non-looped baselines, respectively.
- Efficiency: The decoding overhead is remarkably low—only 0.3% slower than vanilla PLTs.
- Pareto Dominance: InfuseLoop-4 was found to dominate PLT-8, providing better validation loss and higher accuracy at a significantly lower decoding latency.
Limitations and Future Work
- Model Scale: The study was limited to 0.6B parameter models due to compute budgets. Whether these benefits hold for 7B+ or Mixture-of-Experts (MoE) models remains to be seen.
- The "Sequential Gap": While InfuseLoop is much better than vanilla PLTs, it still doesn't quite reach the predictive quality of purely sequential Looped Transformers (which are much slower). The authors suggest further architectural research is needed to close this final gap.
- Speculative Decoding: The authors note that InfuseLoop is potentially complementary to speculative decoding, but they leave the integration and evaluation of these two techniques for future work.
Summary updated