TL;DR
Latent Lattice Language Models (LLLMs) introduce a "Lattice of Latents"—a grid of per-layer horizontal recurrent streams that run alongside the standard vertical residual stream. By maintaining persistent computational states across tokens at every layer, LLLMs significantly increase a model's "computational capacity," outperforming parameter-matched Transformers and recurrent backbones like Mamba-2 on both perplexity and downstream tasks.
What Problem Does This Paper Address?
In a standard Transformer, a single "vertical" residual stream carries all the active computation for a token as it moves through the layers. While we can scale these models by making them deeper (more layers) or wider (larger hidden dimensions), the "memory" of past tokens is largely relegated to a passive KV cache.
Recent efforts to improve reasoning have focused on adding more computation to this single stream (e.g., looped layers or "thought" tokens). The authors of this paper argue for a different axis of scaling: computational capacity. They want to increase the number of active computational states a model maintains. Instead of just one latent vector per token, why not have a persistent latent state at every layer that evolves over time?
Methods
The core innovation is the Lattice of Latents. While the standard residual stream flows vertically through depth, the Lattice adds horizontal streams ($r^\ell_t$) that flow recurrently through time at each layer $\ell$.
Key Technical Components:
- Conditioning via FiLM: These horizontal latents don't just sit there; they directly steer the vertical stream. Using Feature-wise Linear Modulation (FiLM), they modulate attention queries, keys, values, and MLP gates.
- Affine Horizontal Updates: To keep training efficient and parallelizable (via associative scans), the horizontal state updates use a Mamba-style gated affine recurrence.
- Enhancements for Expressivity:
- Input Injection: Token embeddings are fed directly into every layer's horizontal update, ensuring raw identity isn't lost in deep layers.
- Depth-wise Readout (vstream): A nonlinear path that allows horizontal latents to communicate upwards within a single timestep.
- Jacobi Refiner: An optional top-to-bottom feedback loop where the top layer's state at time $t-1$ informs the bottom layer at time $t$. This is trained using parallel Jacobi sweeps to maintain token parallelism.
Datasets
The models were pretrained on FineWeb-Edu (subsets of 10B, 20B, and 30B tokens). Evaluation spanned several domains:
- In-distribution: FineWeb-Edu validation set.
- Out-of-distribution: The Pile, LAMBADA (OpenAI and Standard), and Nemotron-CC.
- Downstream Tasks: 9 tasks from the
lm-evaluation-harness(e.g., WinoGrande, HellaSwag, ARC). - Math Reasoning: GSM8K (with finetuning), GSM-Hard, MultiArith, ASDiv, and SVAMP.
Key Insights and Ideas
- Capacity > Depth/Width: The most striking finding is that allocating parameters to horizontal latents is more efficient than simply adding more layers or making the residual stream wider. A 406M Lattice model matched the performance of a 600M (1.5x larger) 40-layer Transformer.
- Orthogonal Scaling: The Lattice is not a replacement for existing "vertical" tricks like hyper-connections or input residuals. It is a complementary axis. When combined with these enhancements, the gains compound.
- Steering, Not Mixing: Unlike hybrid Transformer-SSM models where the recurrent state acts as a sequence mixer (replacing attention), the Lattice latents act as companions. They steer how the vertical stream uses its own memory (like the KV cache).
- History is Essential: The authors tested "stateless" versions of their modulation (conditioning only on the current token/layer input). These performed significantly worse, proving that the recurrent history stored in the lattice is what drives the performance gains.
Key Results
- Perplexity Gains: On 20B tokens, a 406M LLLM achieved a validation perplexity of 14.40, compared to 15.41 for a parameter-matched base Transformer.
- Best-in-Class Composition: Combining the Lattice with hyper-connections and input residuals pushed perplexity down to 13.61.
- Recurrent Backbones: The Lattice also improves non-Transformer models. For Gated DeltaNet (GDN), a Lattice-enhanced version outperformed pure baselines that had 4x larger native state sizes.
- Downstream & Math: LLLMs showed consistent improvements in zero-shot and five-shot accuracy. Most notably, after finetuning on GSM8K, LLLMs outperformed Transformers by over 10 percentage points across multiple math benchmarks.
Limitations and Future Work
- Training Cost of Feedback: The "Jacobi refiner" (top-to-bottom feedback) requires multiple forward passes during training (approx. 2.6x FLOPs for 3 sweeps), though the authors note that randomized iteration counts might mitigate this.
- Scale: The study focuses on the 400M to 600M parameter range. While the trends are promising, verifying these gains at the multi-billion parameter scale remains for future work.
- Update Complexity: The horizontal update is currently restricted to be affine for training efficiency. Exploring more complex, non-linear recurrent updates that still allow for fast training is a potential research direction.
Summary updated