Latent Lattice Language Models

Shivam Duggal, Zongze Wu, William T. Freeman, Antonio Torralba, Richard Zhang, Eli ShechtmanarXiv 2026

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$.

The Lattice architecture: Blue arrows show the vertical flow through depth, while orange arrows show the horizontal recurrent flow through time at each layer.

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.
Figure 5: Horizontal latent update. On top of the Mamba-style affine update, we fur- ther introduce input injection, vstream (not shown) and an optional cross-timestep non- linear flow. See webpage for animations.

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.
Figure 3: Lattice of Latents vs. prior residual-stream enhancements. On its own, the Lattice lowers the base Transformer’s perplexity more than HC, mHC, or value residuals, and its gains com- pound with theirs: Lattice + HC + x0 reaches 13.76, the best overall. 400M models, 20B FineWeb- Edu tokens. See Sec. 4.2 and Appendix Sec. A.3.3.
  • 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

Abstract

Language models typically increase per-token computation through deeper or looped layers and latent reasoning steps, while richer residual connections improve information flow across layers. We instead increase computational capacity: the number of active computational states a model maintains. We introduce the Lattice of Latents, a set of per-layer horizontal latent streams that run recurrently along time, alongside the vertical residual stream that flows through depth. Like hyper-connections, mHC, and attention or value residuals, the Lattice enhances the residual stream, but rather than adding or rerouting residual pathways through depth, it provides companion computational states that persist across tokens. Unlike hybrid Transformer-SSM architectures, whose recurrent states primarily serve as internal memory for sequence mixing, these latents directly condition the vertical stream's attention, KV-cache writes, MLP computation, and decoding. On Transformers trained on 20B FineWeb-Edu tokens, a 406M-parameter Lattice model lowers validation perplexity from 15.41 to 14.40 over a parameter-matched Transformer. These gains extend across architectural variants. The Lattice composes with prior residual-stream enhancements: with hyper-connections and input residuals, it lowers validation perplexity from 15.41 (base Transformer) and 14.22 (Transformer with the same enhancements) to 13.61. On Gated DeltaNet, Mamba-2, Triadic GDN, and GDN-Mamba-2 hybrids, it improves perplexity at every tested native state size, with Lattice-GDN and Lattice-Triadic-GDN variants outperforming pure baselines with 4x larger native states. These results identify persistent per-layer state as a complementary axis for scaling language-model computation.
BibTeX
@misc{duggal2026latent,
  author = {Shivam Duggal and Zongze Wu and William T. Freeman and Antonio Torralba and Richard Zhang and Eli Shechtman},
  title = {{Latent Lattice Language Models}},
  year = {2026},
  eprint = {2611.21608},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.21608},
}
Figure