Latent Lattice Language Models
Shivam Duggal, Zongze Wu, William T. Freeman, Antonio Torralba, Richard Zhang, Eli Shechtman
arXiv:2611.21608v1Language models are usually thought of as getting stronger by making one stream of computation do more work. You can deepen the network, repeat layers, run extra latent reasoning steps, or add richer residual connections so information flows better through depth. This paper asks a different question: instead of asking a single latent stream to do more, what if the model simply maintained more active latent states at once? That is the core idea behind the Lattice of Latents. In a standard autoregressive Transformer, each token is processed by one main residual stream as it moves through the layers. That stream reads from memory with attention, writes to memory through keys and values, gets transformed by the MLP, and is finally decoded into the next-token prediction. So one latent representation is doing several jobs at once. The authors argue that this is a bottleneck: the model has a lot of computation, but only one active state per token. Their proposal is to add a second kind of state. Alongside the usual vertical latent that moves through depth for the current token, each layer keeps its own horizontal latent that persists across time. In other words, every layer gets a recurrent companion state that survives from token to token. That horizontal state is not a replacement for attention or for the backbone’s native sequence-mixing mechanism. Instead, it conditions that mechanism. In the Transformer version, the horizontal latent helps determine attention queries, KV-cache writes, and MLP computation, and at the top layer it also contributes to decoding. So the model is no longer relying on just one active latent stream; it has a lattice of states arranged across depth and time. This matters because it changes what kind of capacity the model scales. Many recent approaches increase the amount of computation on the residual stream itself. Some add layers, some loop over the same layers, some use continuous latent reasoning between tokens, and some improve the residual pathway with things like hyper-connections, mHC, attention residuals, value residuals, or input residuals. Those methods all make the residual stream more powerful. The Lattice instead increases the number of persistent computational states. That is a different axis of scaling. A useful way to understand the distinction is to compare it with recurrent sequence models and hybrid Transformer-SSM systems. In models like Mamba or Gated DeltaNet, the recurrent state is mainly the thing that mixes sequence information over time; it is the memory mechanism. In the Lattice, the recurrent state is not replacing attention or acting as the main sequence mixer. Attention stays in place in the Transformer setting. The horizontal latent is more like a companion state that helps the residual stream read and write memory more effectively. The authors build the horizontal update so it can be trained efficiently with token-parallel teacher forcing. They start with an affine, Mamba-style recurrence: each layer’s horizontal state is updated from its previous state using the incoming vertical latent. Because the update is affine, it supports an exact associative scan over token positions, which is important for parallel training. That means the model can still be trained in a single pass rather than requiring fully sequential processing. They then add three enhancements to make the horizontal pathway more expressive. First, input injection feeds the token embedding directly into every layer’s horizontal update, so the horizontal state does not have to rely only on the vertical stream to preserve token information. Second, a nonlinear depth-wise readout lets each layer’s readout depend on the layers below it, adding extra cross-layer computation. Third, top-to-bottom feedback sends the top layer’s horizontal state back to the bottom layer on the next timestep, so the most processed state from the previous token can influence the earliest computation on the current token. The first two preserve parallel training. The feedback version does not, so they approximate it with a few Jacobi refinement passes during training, while noting that at inference the model can be rolled out sequentially. The experiments are fairly broad. On Transformers trained on FineWeb-Edu, with pretraining budgets from 10B to 30B tokens, the Lattice improves language modeling quality at roughly matched parameter count and compute. The headline result is at 20B tokens: a 406M-parameter Lattice model with input injection and the depth-wise readout stream reduces validation perplexity from 15.41 to 14.40 compared with a parameter-matched Transformer. That is a meaningful gain, and the authors note that it matches the perplexity of a 1.5-times larger 40-layer Transformer. A separately trained version with the nonlinear top-to-bottom refiner, run with three Jacobi sweeps, goes further and reaches 14.03, though that comes at higher training FLOPs. The gains are not limited to the in-distribution validation metric. They also extend to out-of-distribution perplexity, downstream tasks, and finetuned mathematical reasoning on GSM8K. The paper emphasizes that the Lattice is complementary to other residual-stream improvements. On its own, it lowers perplexity more than hyper-connections, mHC, or value residuals in the tested setting. And when combined with hyper-connections and input residuals, it improves further, reaching 13.61 versus 14.22 without the Lattice. So the benefits are not simply replacing one trick with another; they stack. The authors also test whether the idea is specific to Transformers. It is not. They instantiate the Lattice on Gated DeltaNet, Mamba-2, Triadic GDN, and GDN-Mamba-2 hybrids. In these models, the horizontal latents condition the backbone’s native memory read, write, and update operations. After 10B-token pretraining, the Lattice improves perplexity at every native state size they test. In fact, Lattice-GDN and Lattice-Triadic-GDN each outperform pure baselines that have four times as many native-state entries. That is one of the strongest claims in the paper: persistent per-layer state can be a more effective use of capacity than just making the recurrent state bigger. The downstream results on these recurrent backbones are also broadly positive. Across GDN, Mamba-2, and GDN-Mamba-2 hybrids, adding the Lattice improves the average over nine tasks in nearly every comparison, across five native-state budgets and in both zero-shot and five-shot settings. They also probe GDN’s recurrent memory and find a structural correlate: at matched native-state sizes, Lattice models show more concentrated state spectra and stronger query alignment with the leading memory direction. The paper interprets this as evidence that the native memory is being used more effectively. What should we take away from all this? The main point is not that the Lattice replaces depth, attention, or recurrence. It is that persistent per-layer state is a complementary resource. Instead of spending all of a model’s capacity on a single residual stream, or on bigger depth, the Lattice allocates computation to both the usual vertical stream and a set of horizontal states that persist across tokens. In the tested configurations, that allocation improves perplexity and downstream performance at similar parameter and compute budgets. There are also a few important caveats. First, the strongest Transformer results depend on specific design choices such as input injection and the depth-wise readout stream, and the feedback variant requires approximate Jacobi sweeps during training. So the best-performing versions are not the simplest ones. Second, while the paper reports consistent gains across several architectures and tasks, the evidence is still limited to the tested model families and training regimes. We do not yet know how far this idea scales in much larger models, or how it interacts with every possible backbone design. Third, because the horizontal states are persistent, they introduce another kind of memory and another set of implementation choices, so the practical tradeoff between training simplicity, inference cost, and performance will matter. Even with those caveats, the paper makes a clear and interesting case: language models may benefit not just from more layers or better residual wiring, but from maintaining more active latent states in parallel across time. That is the central contribution of the Latent Lattice Language Model, and it suggests a new axis for scaling model computation.
Also spotted that day
Previous daily papers