Reading + AI

Latent Lattice Language Models

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

arXiv:2611.21608v1 · This workspace stays on this version. Check arXiv for newer versions

Affiliations and author notes
  • MIT CSAIL
  • Adobe
  • Work done during summer internship at Adobe.
Some source details need review 1 to check

Original formulas, table values and figures are preserved. Comparison can miss differences; use the original PDF to check details.

Reading view checked: 1042 math expressions, 0 rendering failures; 21 of 21 images available.

Compared 132 of 141 source passages against 26 of 26 PDF pages.

  • This long paper was only partially compared; the original sources remain available.

21 of 21 figure, table and graphic images captured. Open original PDF

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.4115.41 to 14.4014.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.4115.41 (base Transformer) and 14.2214.22 (Transformer with the same enhancements) to 13.6113.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 4×4\times larger native states. These results identify persistent per-layer state as a complementary axis for scaling language-model computation. Project Page: https://shivamduggal4.github.io/latent-lattice-language-models/

Language models accept raw text as input, transform it through internal representations, and predict subsequent text. Like most learned systems, this process relies on some form of latent computation. But what, precisely, is the latent computation in a large language model?

In a standard autoregressive LLM, each token is processed by a stack of layers along a single residual stream, and this one latent does several jobs at once. At every layer, it reads from memory through attention queries, writes to memory through keys and values, updates itself through the MLP, and, at the top, is decoded into the next token. The memory it writes to, the KV cache, is an append-only record that stays fixed once written; the residual stream carries all of the active computation. Recent work increases the computation performed on this stream: deeper or looped layers apply more updates per token Dehghani et al. (2019); Geiping et al. (2025); Zhu et al. (2026), continuous latent reasoning continues latent processing between tokens Hao et al. (2024); Wu et al. (2026); Zeng et al. (2026); Shen et al. (2025), and richer residual connections, such as hyper-connections, mHC, and attention or value residuals, improve how the stream carries information across depth Zhu et al. (2025); Xie et al. (2026); Team et al. (2026); Zhou et al. (2025).

These approaches give the residual stream more to compute. We focus instead on increasing computational capacity: the number of active computational states a model maintains. We propose a lattice of computational latents: alongside the vertical latent htℓh_{t}^{\ell} that flows through depth (blue arrows in Fig. 1), each Lattice layer maintains its own horizontal latent rtℓr_{t}^{\ell} (orange arrows), updated recurrently across timesteps. We call this architecture the Lattice of Latents, and a language model built on it the Latent Lattice Language Model (LLLM). Like residual-stream enhancements (Zhu et al., 2025; Xie et al., 2026; Team et al., 2026), the Lattice augments the vertical stream, but rather than widening or rerouting it through depth, it adds companion computational states that persist across tokens. The horizontal latents add fixed-size recurrent state without additional token positions or KV-cache entries. So, how does this horizontal flow of information support the vertical latent?

Figure 1
Figure 1: Latent Lattice Language Model. Blue arrows denote the vertical latent htℓh_{t}^{\ell} flowing through depth; orange arrows denote the horizontal latents rtℓr_{t}^{\ell}, one per Lattice layer, flowing through time. The arrow from the top Lattice layer to the bottom layer of the next timestep illustrates the optional top-to-bottom feedback; the other two enhancements (input injection and the depth-wise readout stream) are omitted for clarity. See the project webpage for animations and a comparison with the base Transformer.

At each step of computation – layer ℓ\ell, timestep tt – two streams of active information are available: the vertical latent htℓ−1h_{t}^{\ell-1} from the layer below, and the horizontal latent rtℓr_{t}^{\ell}, formed by updating the same layer’s previous state rt−1ℓr_{t-1}^{\ell}. In our Transformer instantiation, both latents jointly drive the layer’s attention and MLP computations. The horizontal latent conditions attention queries and KV-cache writes, modulates the MLP, and, at the topmost Lattice layer, also contributes to output decoding alongside the final vertical latent. We design the horizontal update to be (a) expressive enough to serve as a useful companion to the residual stream, and (b) compatible with token-parallel, teacher-forced training.

Towards these goals, we start with an affine Mamba-style (Gu and Dao, 2024) update in which rtℓr_{t}^{\ell} is updated from rt−1ℓr_{t-1}^{\ell} using the incoming vertical latent htℓ−1h_{t}^{\ell-1}. Conditional on the layer-input sequence, this affine recurrence admits an exact associative scan across token positions. Although the update resembles those in Mamba and hybrid Transformer–SSM models, its role differs. There, the recurrent state acts as a sequence mixer: an internal memory that replaces attention or operates alongside it. Here, attention (or the backbone’s native memory) remains the sequence mixer, and the horizontal latent acts as a companion to the residual stream, conditioning how the vertical stream reads and writes that memory and how its MLP processes it.

In this base update, rt−1ℓ→rtℓr_{t-1}^{\ell}\to r_{t}^{\ell}, the horizontal latent receives new information only through the incoming vertical latent (the residual stream) htℓ−1h_{t}^{\ell-1}. We therefore add three enhancements that enrich the horizontal pathway: input injection feeds the token embedding directly into every layer’s update, so each horizontal latent sees the current token without relying on the vertical stream to preserve it; a nonlinear depth-wise readout stream lets each layer’s readout of its horizontal latent depend on those of the layers below, adding nonlinear cross-layer computation on top of the per-layer affine recurrences; and top-to-bottom feedback feeds the top layer’s horizontal latent into the bottom layer’s update at the next timestep, so the most processed state of the previous token informs the earliest computation on the current one. The first two preserve the parallel scan, keeping our main models single-pass at approximately matched compute. The top-to-bottom feedback does not preserve token parallelism, so we approximate it with a few token-parallel Jacobi passes (Wu et al., 2026; Zeng et al., 2026), at about 2.6×2.6\times the FLOPs for three passes during training; at inference, the same model can instead be rolled out sequentially at the base FLOPs.

Across pretraining budgets from 10B to 30B FineWeb-Edu tokens, the Lattice of Latents improves language-modeling quality at approximately matched parameters and compute (Tab. 1, Tab. 3, Fig. 7). At 20B tokens, a 406M-parameter LLLM with input injection and the depth-wise readout stream lowers FineWeb-Edu perplexity from 15.4115.41 to 14.4014.40, matching a 1.5×1.5\times larger, 40-layer Transformer. A separately trained LLLM with the nonlinear top-to-bottom refiner, run with three Jacobi sweeps (at higher FLOPs), lowers perplexity further to 14.0314.03 (Tab. 1). These gains extend to out-of-distribution perplexity, downstream tasks, and finetuned mathematical reasoning (GSM8K). As a memory-conditioning residual-stream enhancement, the Lattice alone lowers perplexity more than hyper-connections, mHC, or value residuals, and it composes with them (Sec. 4.2): combined with hyper-connections and input residuals, it reaches 13.6113.61, versus 14.2214.22 without the Lattice (Fig. 3).

Table 1
ApproachParams [-0.2ex] (M)GFLOP/tokenFineWeb EduPileLAMBADANemo CC
TrainInferOAIStand.
400M-parameter models
Base-24L (width dmodeld_{\text{model}} =1024=1024)406.7406.70.710.710.710.7115.41015.41026.27626.27641.17241.17273.64873.64814.76814.768
LLLM (945,256)(945,256)406.5406.50.720.720.720.7214.54514.54525.03125.03138.83538.83565.78065.78014.27814.278
LLLM (908,256)(908,256) inj+vs405.6405.60.720.720.720.7214.40014.40024.10038.51338.51363.25963.25914.11614.116
LLLM-410 J3 (945,256)(945,256)406.9406.91.851.851.851.8514.02624.10724.10737.53162.92313.694
↪\hookrightarrow sequential rollout at inference [-0.25ex]   (no Jacobi sweeps)406.91.850.720.7214.73314.73325.46125.46138.73738.73768.39868.398—
500M-parameter models
LLLM (512,512)(512,512), 40L495.2495.20.940.940.940.9414.36814.36824.97224.97238.11938.11964.64964.64914.12714.127
600M-parameter models
Base-24L (width dmodeld_{\text{model}} =1620=1620)603.3603.31.041.041.041.0414.69014.69024.44324.44338.66638.66668.93968.93914.01814.018
Base-24L (width dmodeld_{\text{model}} =1472=1472)606.2606.21.061.061.061.0614.64914.64924.61024.61039.27239.27267.62467.62414.22114.221
Base-40L (width dmodeld_{\text{model}} =1024=1024)609.1609.11.111.111.111.1114.40014.40024.23424.23438.62438.62467.50867.50813.88313.883
LLLM (1024,1024)(1024,1024)603.0603.01.101.101.101.1013.70424.20037.01260.13213.443
Table 1: Language-modeling Perplexity (↓\downarrow) after 20B-token pretraining. LLLM (dmodel,dr)(d_{\text{model}},d_{r}) denotes a vertical (residual-stream) width dmodeld_{\text{model}} and horizontal-latent width drd_{r}; all models are 24 layers unless noted and use a 2048-token context. FineWeb-Edu is in-distribution; the other sets are out-of-distribution. The 400M LLLM (908,256)(908,256) inj+vs (input injection + depth-wise readout stream) matches or outperforms the 600M Transformers. Results at 30B tokens are in Tab. 3.
View original tableOriginal Table 1

The Lattice is not specific to softmax attention. We also instantiate it on Gated DeltaNet, Mamba-2, Triadic GDN, and GDN–Mamba-2 hybrids, where the horizontal latents condition the backbones’ native memory-read, write, and update operations. After 10B-token pretraining, at approximately matched parameter counts, the Lattice improves perplexity at every native state size we test; Lattice GDN and Lattice Triadic GDN each outperform pure baselines holding 4×4\times as many native-state entries. Downstream gains also hold across GDN, Mamba-2, and GDN–Mamba-2 hybrids: adding the Lattice improves the nine-task average in nearly every comparison, spanning five native-state budgets and both zero- and five-shot settings. Probing GDN’s recurrent memory reveals a structural correlate of these gains: at matched native-state sizes, Lattice models exhibit more concentrated state spectra and greater query alignment with the leading memory direction. These observations are consistent with more effective use of native memory.

Overall, comparisons at similar parameter and compute budgets show that allocating capacity to both vertical and horizontal latents outperforms spending it on residual-stream width or network depth alone in the tested configurations. Together, these results identify persistent per-layer state as a complementary axis for scaling language-model computation.

Recent work increases how much computation a language model applies to each token. Along depth, models add layers or repeatedly apply a shared stack (Dehghani et al., 2019; Geiping et al., 2025; Zhu et al., 2026); along time, continuous latent reasoning feeds the final hidden state back as the next input, running additional latent steps before emitting a token (Hao et al., 2024; Shen et al., 2025; Zeng et al., 2026), with Jacobi-style refinement recovering token-parallel training (Zeng et al., 2026; Wu et al., 2026). Both directions apply more updates to one active stream, and often grow persistent memory with it: extra layers and loop-specific caches, or latent thoughts held as extra positions, add KV-cache entries. The Lattice instead increases computational capacity by maintaining one active latent per Lattice layer that persists across tokens, without adding per-token KV-cache entries.

A complementary line of work changes how the residual stream carries information through depth. Hyper-connections expand it into parallel streams with learned mixing (Zhu et al., 2025), which mHC constrains to be doubly stochastic (Xie et al., 2026); attention residuals replace the fixed residual sum with attention over earlier layers’ outputs (Team et al., 2026); value residuals reuse first-layer values in later layers (Zhou et al., 2025); and input residuals re-inject the token embedding before every layer. These methods widen or reroute per-token computation through depth, but none gives a layer its own state that persists from one token to the next. The Lattice adds such states and composes with these enhancements: in our experiments, adding it lowers perplexity on top of standard, input-residual, and hyper-connected residual streams (Sec. 3.3).

Our affine horizontal update shares the scan-parallel form of linear recurrent models such as Mamba (Gu and Dao, 2024; Dao and Gu, 2024), Gated DeltaNet (Yang et al., 2025), and DeltaProduct (Siems et al., 2025), whose transitions remain linear or affine in the previous state. In these models, and in hybrids that replace attention with SSM layers at selected depths (Lieber et al., 2024) or run them alongside attention heads (Dong et al., 2024), the recurrent state is a sequence mixer: it substitutes for or supplements attention as the means of reading the past. In the Lattice, the horizontal latent is instead a companion to the residual stream: in Transformers, softmax attention is retained, and the latent conditions attention, its KV-cache writes, and the MLP. Because this role is distinct from sequence mixing, the Lattice also complements recurrent backbones: on GDN, Mamba-2, Triadic GDN, and GDN–Mamba-2 hybrids, it lowers perplexity at approximately matched parameter counts (Sec. 3.4).

Other work brings recurrence into Transformers without replacing attention. Mozer et al. (2026a) argue that feedforward Transformers push evolving state into ever-deeper layers, exhausting depth, and call for recurrence. NextLat (Teoh et al., 2025) keeps the architecture unchanged and adds an auxiliary objective that trains a latent dynamics model to predict the next hidden state, encouraging recurrent-like belief states; the Lattice instead adds explicit recurrent states to the architecture. Several concurrent works add recurrent or multi-stream pathways, typically feeding a deeper representation from the previous token back into the current token’s computation (Wang et al., 2026; Huang et al., 2026; Cai et al., 2026; Mozer et al., 2026b), or separating state preparation from next-token prediction into distinct streams (Monea et al., 2026). Among these, T2^{2}MLR (Cai et al., 2026) is closest to our Jacobi refiner, though its recurrent object is a cached vertical representation rather than a lattice of layer-wise horizontal states. These works largely add a single feedback pathway or separate two roles, whereas the Lattice maintains a persistent latent at every Lattice layer; Appendix A.1 gives detailed description of concurrent works.

Figure 2
Figure 2: Recurrent backbones: FineWeb-Edu perplexity. Pure and Lattice GDN, Mamba2, Triadic GDN, and GDN–Mamba2 hybrid models (∼\sim405M parameters, 10B FineWeb-Edu tokens) across multiple native-state sizes per mixer. Each Lattice model is iso-parameter with its pure counterpart and lowers perplexity at every state size. See Sec. 4.3.

We propose the Lattice of Latents, an augmentation that distributes computation across a lattice of latents rather than relying only on the usual single residual-stream latent per token. The latent computation spans two axes. Along the vertical axis (network depth), the per-token latent is initialized from the current token embedding and flows bottom-to-top through the backbone’s layers, where it is updated by attention or recurrent state computations followed by a position-wise MLP, before being decoded into the next-token distribution. Along the horizontal axis (time), the Lattice of Latents adds one persistent latent vector at each layer of an intermediate Lattice block, evolving across timesteps rather than through depth. Each horizontal latent remains at its own layer and abstraction level, assisting the vertical stream by conditioning that layer’s memory reads and updates. In our Transformer instantiation, we additionally study MLP modulation. The Lattice thereby increases computational capacity –– the number of active computational states a model maintains by adding companion states to the residual stream, which condition the computation of the residual stream, rather than simply widening the residual stream or adding residual pathways through depth.

We integrate the Lattice of Latents into standard Transformers, Transformers with residual-stream enhancements (hyper-connections, mHC, value residuals, and input residuals), and recurrent backbones: Gated DeltaNet (GDN), Mamba-2, Triadic GDN, and GDN–Mamba-2 hybrids. We begin with background on the per-token computational graph of the vertical latent (Sec. 3.1), then formulate the Lattice of Latents (Sec. 3.2), its composition with residual-stream enhancements (Sec. 3.3), and its extension to recurrent backbones (Sec. 3.4).

Figure 3
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 compound with theirs: Lattice + HC + x0 reaches 13.7613.76, the best overall. 400M models, 20B FineWeb-Edu tokens. See Sec. 4.2 and Appendix Sec. A.3.3.

Consider an autoregressive Transformer of depth NN and width dmodeld_{\mathrm{model}}, processing a token stream x1,x2,…x_{1},x_{2},\dots. At timestep tt, the model maps the input token xtx_{t} to a distribution over the next token xt+1x_{t+1} through a single residual-stream latent htℓ∈Rdmodelh_{t}^{\ell}\in\mathbb{R}^{d_{\mathrm{model}}}, initialized from the token embedding ht0h_{t}^{0} and refined across the NN layers. Layer ℓ∈{1,…,N}\ell\in\{1,\dots,N\} updates this latent with a pre-norm attention block followed by an MLP block:

qtℓ, ktℓ, vtℓ=Wqℓh^,  Wkℓh^,  Wvℓh^\begin{aligned}\displaystyle q_{t}^{\ell},\,k_{t}^{\ell},\,v_{t}^{\ell} & \displaystyle=W_{q}^{\ell}\hat{h},\;W_{k}^{\ell}\hat{h},\;W_{v}^{\ell}\hat{h}\end{aligned}
hˉtℓ=htℓ−1+Woℓ Attn ⁣(qtℓ,Mtℓ)\begin{aligned}\displaystyle\bar{h}_{t}^{\ell} & \displaystyle=h_{t}^{\ell-1}+W_{o}^{\ell}\,\mathrm{Attn}\!\big(q_{t}^{\ell},\mathcal{M}_{t}^{\ell}\big)\end{aligned}
htℓ=hˉtℓ+MLPℓ ⁣(Norm(hˉtℓ)),\begin{aligned}\displaystyle h_{t}^{\ell} & \displaystyle=\bar{h}_{t}^{\ell}+\mathrm{MLP}^{\ell}\!\big(\mathrm{Norm}(\bar{h}_{t}^{\ell})\big),\end{aligned}

where h^=Norm(htℓ−1)\hat{h}=\mathrm{Norm}(h_{t}^{\ell-1}), Norm\mathrm{Norm} is RMSNorm and Mtℓ={(ksℓ,vsℓ)}s≤t\mathcal{M}_{t}^{\ell}=\{(k_{s}^{\ell},v_{s}^{\ell})\}_{s\leq t} is the layer-ℓ\ell KV cache to which each token appends its keys and values. The final latent is decoded as p(xt+1∣x≤t)=softmax(WU Norm(htN))p(x_{t+1}\mid x_{\leq t})=\mathrm{softmax}\big(W_{U}\,\mathrm{Norm}(h_{t}^{N})\big). Thus one latent per token does all the active computation (reading memory, writing to it, and producing the output), while the KV cache passively stores its past projections.

Continuous latent reasoning (Hao et al., 2024; Shen et al., 2025; Zeng et al., 2026) extends this pathway across timesteps by feeding the previous step’s final-layer latent back as the next input, ht0=ht−1Nh_{t}^{0}=h_{t-1}^{N}, bypassing decoding and re-embedding. The feedback can thus carry more than the log⁡2V\log_{2}V bits of a discrete token, and the vertical latent becomes a running state across time. A standard Transformer instead re-initializes its vertical latent from the token embedding at every timestep.

How can we increase the computational capacity of this single active latent? One could widen it (larger dmodeld_{\mathrm{model}}), replicate it into parallel depth-wise streams as in hyper-connections, or add latents along a different axis. We take the third route: each Lattice layer ℓ\ell maintains its own horizontal latent rtℓr_{t}^{\ell} that runs across timesteps, initialized from a learned state and updated from its previous value rt−1ℓr_{t-1}^{\ell} and the incoming vertical latent htℓ−1h_{t}^{\ell-1}. The vertical latent advances through depth at each timestep and the horizontal latents advance through time at each layer; together they form a lattice. We compare this against widening and show that it composes with residual-stream enhancements. Below we describe how the horizontal latents act (Sec. 3.2.1) and how they are updated (Sec. 3.2.2).

Let rtℓ∈Rdrr_{t}^{\ell}\in\mathbb{R}^{d_{r}} be the horizontal latent at layer ℓ\ell and timestep tt, with width drd_{r} chosen independently of dmodeld_{\mathrm{model}}. A standard Transformer layer computes from the vertical latent htℓ−1h_{t}^{\ell-1} and its KV cache. In the Lattice, layer ℓ\ell has two latent inputs: the vertical latent htℓ−1h_{t}^{\ell-1} from the layer below, and the horizontal latent rtℓr_{t}^{\ell}, updated from the same layer’s previous state rt−1ℓr_{t-1}^{\ell}. Together they condition the layer’s attention and MLP, and thus both the residual update that produces htℓh_{t}^{\ell} and the keys and values written to memory. Optionally, the topmost Lattice layer’s horizontal latent also contributes to decoding. We detail each contribution below (Fig. 4); all our Lattice Transformers modulate both attention and the MLP. All contributions read the normalized latent r^tℓ=Norm(rtℓ)\hat{r}_{t}^{\ell}=\mathrm{Norm}(r_{t}^{\ell}).

Conditioning Attention via FiLM. The horizontal latent r^tℓ\hat{r}_{t}^{\ell} modulates the query, key, and value projections of h^=Norm(htℓ−1)\hat{h}=\mathrm{Norm}(h_{t}^{\ell-1}) via Feature-wise Linear Modulation (FiLM) (Perez et al., 2017):

qtℓ=(Wqℓh^)⊙(1+γq(r^tℓ))+βq(r^tℓ)\begin{aligned}\displaystyle q_{t}^{\ell} & \displaystyle=\big(W_{q}^{\ell}\hat{h}\big)\odot\big(1+\gamma_{q}(\hat{r}_{t}^{\ell})\big)+\beta_{q}(\hat{r}_{t}^{\ell})\end{aligned}
γ(⋅)(r^tℓ)=tanh⁡(W(⋅)γr^tℓ)β(⋅)(r^tℓ)=W(⋅)βr^tℓ\begin{aligned}\displaystyle\gamma_{(\cdot)}(\hat{r}_{t}^{\ell}) & \displaystyle=\tanh\big(W^{\gamma}_{(\cdot)}\hat{r}_{t}^{\ell}\big)\qquad\beta_{(\cdot)}(\hat{r}_{t}^{\ell})=W^{\beta}_{(\cdot)}\hat{r}_{t}^{\ell}\end{aligned}
Figure 4
Figure 4: How the horizontal latent acts. Transformer instantiation: the recurrent lattice latent r^tℓ\hat{r}_{t}^{\ell} conditions the layer’s QKV and MLP computations; when the optional horizontal decoding head is enabled, the topmost horizontal latent also contributes to output decoding (not shown).

and likewise for ktℓk_{t}^{\ell} and vtℓv_{t}^{\ell}. The multiplicative gain 1+γ∈(0,2)1+\gamma\in(0,2) is bounded, while β\beta is an additive shift; each of q,k,vq,k,v has its own layer-specific, zero-initialized WγW^{\gamma} and WβW^{\beta}, so the modulation starts as the identity. The gain γ\gamma may be shared across channel groups within each head, while β\beta is always per-channel. Because the modulated ktℓ,vtℓk_{t}^{\ell},v_{t}^{\ell} are written to Mℓ\mathcal{M}^{\ell}, the horizontal latent shapes both the memory read and the memory write. The attention output, projected by WoℓW_{o}^{\ell}, is added to the vertical latent as before, giving the MLP input hˉtℓ\bar{h}_{t}^{\ell}.

Modulating MLP. The horizontal latent also shifts the gate and up pre-activations of the layer’s SwiGLU MLP, each through its own zero-initialized map:

m=Norm(hˉtℓ)gate=Wgateℓm+βgate(r^tℓ)\begin{aligned}\displaystyle m & \displaystyle=\mathrm{Norm}(\bar{h}_{t}^{\ell})\qquad\mathrm{gate}=W_{\mathrm{gate}}^{\ell}m+\beta_{\mathrm{gate}}(\hat{r}_{t}^{\ell})\end{aligned}
up=Wupℓm+βup(r^tℓ).\begin{aligned}\displaystyle\mathrm{up} & \displaystyle=W_{\mathrm{up}}^{\ell}m+\beta_{\mathrm{up}}(\hat{r}_{t}^{\ell}).\end{aligned}

MLP output Wdownℓ(SiLU(gate)⊙up)W_{\mathrm{down}}^{\ell}\big(\mathrm{SiLU}(\mathrm{gate})\odot\mathrm{up}\big) is added to hˉtℓ\bar{h}_{t}^{\ell}, giving htℓh_{t}^{\ell}.

Modulating Decoding. Optionally, the topmost Lattice layer’s normalized horizontal latent and the final vertical latent are projected into a shared readout space, and the next token is decoded from their sum (details in Appendix A.2.1). We use this head only with a highly compressed vertical latent (dmodel=256d_{\mathrm{model}}{=}256) (in Fig. 6), where the standard decoder would otherwise read the output distribution from a 256-dimensional latent alone.

We divide the backbone’s layers into an early block (E), an intermediate Lattice block (L), and a late block (D); horizontal latents exist only in L. For ℓ∈L\ell\in L, the update takes the form:

rtℓ=U(rt−1ℓ;  htℓ−1,  ht0,  rt−1top)r_{t}^{\ell}=U\big(r_{t-1}^{\ell};\;h_{t}^{\ell-1},\;h_{t}^{0},\;r_{t-1}^{\mathrm{top}}\big)

The base update uses the layer’s own history rt−1ℓr_{t-1}^{\ell} and the incoming vertical latent htℓ−1h_{t}^{\ell-1}. Input injection adds the token embedding ht0h_{t}^{0}, and the optional Jacobi refiner adds feedback rt−1topr_{t-1}^{\mathrm{top}} from the top Lattice layer one timestep back, injected only at the bottom Lattice layer and taken from the previous sweep. The depth-wise readout stream (vstream or vs in model labels), which passes information upward from lower horizontal latents within a timestep, enriches each layer’s readout rather than entering UU. We describe each mechanism below (Fig. 5).

Figure 5
Figure 5: Horizontal latent update. On top of the Mamba-style affine update, we further introduce input injection, vstream (not shown) and an optional cross-timestep nonlinear flow. See webpage for animations.

Affine update from rt−1ℓr_{t-1}^{\ell} to rtℓr_{t}^{\ell}. To keep training token-parallel and teacher-forced, we need a recurrence that admits an exact associative scan across timesteps rather than a token-by-token loop. An affine transition with input-dependent coefficients has this property. Following linear attention and Mamba-style state-space models, we use one whose coefficients depend only on the current layer input, never directly on the previous horizontal state. The affine update reads a normalized copy of the vertical latent ntℓ=Normin(htℓ−1)n_{t}^{\ell}=\mathrm{Norm}_{\mathrm{in}}(h_{t}^{\ell-1}), and is defined as:

Δtℓ=softplus(WΔℓntℓ+bΔℓ)\begin{aligned}\displaystyle\Delta_{t}^{\ell} & \displaystyle=\mathrm{softplus}\big(W_{\Delta}^{\ell}n_{t}^{\ell}+b_{\Delta}^{\ell}\big)\end{aligned}
gtℓ=exp⁡(−exp⁡(aℓ)⊙Δtℓ)\begin{aligned}\displaystyle g_{t}^{\ell} & \displaystyle=\exp\big(-\exp(a^{\ell})\odot\Delta_{t}^{\ell}\big)\end{aligned}
ctℓ=SiLU(Wrℓntℓ+brℓ)\begin{aligned}\displaystyle c_{t}^{\ell} & \displaystyle=\mathrm{SiLU}\big(W_{r}^{\ell}n_{t}^{\ell}+b_{r}^{\ell}\big)\end{aligned}
btℓ=(1−gtℓ)⊙ctℓ\begin{aligned}\displaystyle b_{t}^{\ell} & \displaystyle=(1-g_{t}^{\ell})\odot c_{t}^{\ell}\end{aligned}
rtℓ=gtℓ⊙rt−1ℓ+btℓ.\begin{aligned}\displaystyle r_{t}^{\ell} & \displaystyle=g_{t}^{\ell}\odot r_{t-1}^{\ell}+b_{t}^{\ell}.\end{aligned}

Here r0ℓr_{0}^{\ell} is a learned initial state before the first token x1x_{1}, and aℓa^{\ell} and bΔℓb_{\Delta}^{\ell} are learned per-channel log-decay rates and time-step biases. Because gtℓg_{t}^{\ell} and btℓb_{t}^{\ell} depend on ntℓn_{t}^{\ell} alone, the transition is exactly affine given the layer-input sequence, so the horizontal states at all token positions are computed with a parallel scan during training. Layers are still evaluated in depth order, each scanning the vertical inputs produced by the layer below. The readout used downstream is r^tℓ=Norm(rtℓ)\hat{r}_{t}^{\ell}=\mathrm{Norm}(r_{t}^{\ell}). Although the update follows a Mamba-style gated affine recurrence, the horizontal latent plays a different role, a companion to the residual stream rather than a sequence mixer, which we revisit for backbones that already maintain recurrent memory (Sec. 3.4).

We call this configuration the base update and label the corresponding models LLLM(dmodel,dr)\mathbf{LLLM}(d_{\mathrm{model}},d_{r}), with vertical width dmodeld_{\mathrm{model}} and horizontal width drd_{r}; additional mechanisms are marked separately in model labels. The base update can integrate history across time, but on its own it applies no learned nonlinear transformation to its previous state. We therefore study three complementary mechanisms: input injection (inj) and the depth-wise readout stream (vs) add expressivity within a timestep while preserving the parallel scan, whereas the Jacobi refiner adds a nonlinear top-to-bottom feedback pathway across timesteps at the cost of the single-pass guarantee.

Adding the input embedding to the horizontal latent. The base update sees the current input only through htℓ−1h_{t}^{\ell-1}, which by layer ℓ\ell may have discarded information about the raw token identity (see the narrow-vertical-latent ablation, Fig. 6). Input injection (inj) also feeds the normalized token embedding ht0h_{t}^{0} into Δtℓ\Delta_{t}^{\ell} and ctℓc_{t}^{\ell} through zero-initialized projections. These coefficients still depend only on current-timestep inputs, so the transition remains exactly affine and the same parallel scan applies (more details in Appendix A.2.2).

Enhancing layer-wise nonlinearity of the horizontal latent. At layer ℓ\ell, the readout r^tℓ\hat{r}_{t}^{\ell} from the base update and input injection receives information from lower Lattice layers’ horizontal latents only indirectly, through whatever survives in the vertical latent. The depth-wise readout stream (vstream or vs) adds a direct path: a purely depth-wise state stℓ∈Rdrs_{t}^{\ell}\in\mathbb{R}^{d_{r}} that runs bottom to top across the Lattice, seeded with stℓ0−1:=0s_{t}^{\ell_{0}-1}:=0 at the first Lattice layer ℓ0\ell_{0}:

stℓ=stℓ−1+Ws↑ℓSiLU(Ws↓ℓ[Norm(r^tℓ), Norm(stℓ−1)]),\begin{aligned}\displaystyle s_{t}^{\ell} & \displaystyle=s_{t}^{\ell-1}+W_{s\uparrow}^{\ell}\mathrm{SiLU}\Big(W_{s\downarrow}^{\ell}\big[\mathrm{Norm}(\hat{r}_{t}^{\ell}),\,\mathrm{Norm}(s_{t}^{\ell-1})\big]\Big),\end{aligned}

where [⋅,⋅][\cdot,\cdot] denotes concatenation. Since Ws↑ℓW_{s\uparrow}^{\ell} is zero-initialized, stℓ≡stℓ−1s_{t}^{\ell}\equiv s_{t}^{\ell-1} at initialization, so with the zero seed the stream is zero throughout the Lattice. The stream carries same-timestep communication across depth, separately from the recurrent update UU, which acts across time. Because stℓs_{t}^{\ell} depends only on same-timestep quantities, it adds a nonlinear dependency across depth but none across time, leaving the base recurrence and its parallel scan untouched. With vs enabled, the enriched readout

r~tℓ:=r^tℓ+Norm(stℓ)\displaystyle\tilde{r}_{t}^{\ell}:=\hat{r}_{t}^{\ell}+\mathrm{Norm}(s_{t}^{\ell})

replaces r^tℓ\hat{r}_{t}^{\ell} wherever it conditions attention or the MLP (Sec. 3.2.1). The state carried across timesteps remains the raw rtℓr_{t}^{\ell}, not r~tℓ\tilde{r}_{t}^{\ell}; the enriched readout influences higher layers’ updates only indirectly, through the vertical stream.

Cross-timestep nonlinear update. Input injection and the depth-wise readout stream use only current-timestep information, so neither feeds a higher layer’s more deeply processed latent back to a lower layer at the next timestep. In the Transformer instantiation, we add this top-to-bottom feedback: the top Lattice layer’s latent at t−1t-1, passed through a zero-initialized SwiGLU, is added to the bottom Lattice layer’s update at tt, making the recurrence nonlinear across timesteps. This feedback is straightforward in a token-by-token rollout but breaks single-pass teacher-forced training, so we approximate it with a Jacobi refiner (Zeng et al., 2026; Wu et al., 2026): after an initial pass over the Lattice block, each refinement sweep reruns all Lattice layers in parallel across tokens, taking the feedback from the previous sweep. Unlike Zeng et al. (2026); Wu et al. (2026), which apply Jacobi iteration to the vertical latent (ht0=ht−1Nh_{t}^{0}=h_{t-1}^{N}), we apply it to the horizontal latents. J0 denotes the single-pass model without this cross-timestep feedback and J3 the initial pass followed by two refinement sweeps (≈2.6×\approx 2.6\times the FLOPs). At inference, the feedback can instead be computed exactly by sequential rollout; we evaluate both (details in Appendix A.2.3).

Because the Lattice conditions each block’s computation rather than the residual pathway itself, it combines with residual-stream enhancements without changing the horizontal update. An input residual re-injects the normalized token embedding before every layer, htℓ−1←λrℓhtℓ−1+λ0ℓ Norm(ht0)h_{t}^{\ell-1}\leftarrow\lambda_{r}^{\ell}h_{t}^{\ell-1}+\lambda_{0}^{\ell}\,\mathrm{Norm}(h_{t}^{0}), with learned per-layer scalars; the horizontal update then reads this re-injected layer input as htℓ−1h_{t}^{\ell-1}. This differs from input injection (inj), which feeds the embedding into the horizontal update rather than into the residual stream. Hyper-connections (Zhu et al., 2025) expand the residual stream into nn parallel streams that a learned router mixes into each block’s input and remixes after its output (mHC (Xie et al., 2026) constrains this mixing to be doubly stochastic). With hyper-connections, each Lattice layer’s horizontal update reads the mixed block input in place of htℓ−1h_{t}^{\ell-1}, FiLM conditions that block’s QKV and MLP computations as in Sec. 3.2.1, and the router writes the block outputs back to the streams. A single horizontal latent per Lattice layer is shared across the nn streams. A value residual (Zhou et al., 2025) mixes each layer’s attention values with those of the first layer; in Lattice layers, the mix is applied after FiLM conditioning and before attention. In our experiments, we compare the Lattice against these residual-stream enhancements and evaluate their combinations.

Although the horizontal update uses a Mamba-style recurrence, the Lattice also complements backbones that already maintain recurrent memory. We instantiate it on GDN, Mamba-2, Triadic GDN, and GDN--Mamba-2 hybrids. Unlike a Transformer’s growing KV cache, these backbones keep native memories of fixed size: matrix-valued states per head in GDN and Mamba-2, and a three-dimensional state per head in Triadic GDN, which adds a routing axis. The Lattice leaves these memories intact and adds a separate horizontal latent that conditions how they are used.1^{1}

We keep the base update, with input injection and the depth-wise readout stream as options, and apply FiLM to each backbone’s memory read, write, and update quantities: in GDN, Q, K, V, the retention (α\alpha) and update-strength (β\beta) pre-activations, and the output gate; in Mamba-2, the read (C) and write (B) projections, the input stream, the time-step pre-activation, and the output gate. Triadic GDN additionally conditions its routing factors, and GDN–Mamba-2 hybrids follow the settings of each layer’s backbone. All modulation weights are zero-initialized, and modulation is applied before each quantity’s constraining transformation. These comparisons use unmodulated MLPs, the ordinary decoding head, and no Jacobi refiner; further details are in the Appendix.

To separate this from simply enlarging native memory, we compare models with and without the Lattice across native-state budgets at approximately matched parameters. In GDN, for example, a 256-dimensional horizontal latent combined with 65,536 native state entries per layer achieves lower perplexity than a pure GDN with 262,144 entries. We also analyze GDN’s state geometry (spectra, effective and stable rank, and query alignment with the leading memory direction) with and without the Lattice. The distinction is functional: the horizontal latent is itself persistent state, but rather than expanding the backbone’s associative memory, it provides a learned, history-dependent pathway that conditions the vertical stream’s computation. We hypothesize that this added computational capacity helps the model use its native memory more effectively, complementing rather than replicating increases in memory capacity; our experiments are consistent with this hypothesis.

Figure 6
Figure 6: Deconstructing the Lattice. Here we study a challenging regime where the vertical residual stream width is significantly reduced to 256-dim. LLLM ablations show how the proposed horizontal update enhancements (Sec. 3.2.1 and Sec. 3.2.2) recover most of the lost performance; trace the red bars from left to right. Eval post 10B-token pretraining. Note: 406M Lattice model beats transformer (with perplexity = 15.63, see Fig. 7). See Sec. 4.4 for more details.

We evaluate the Lattice of Latents on language modeling and zero- and five-shot downstream tasks for both Transformer and recurrent backbones, and combine it with residual-stream enhancements. We then deconstruct the Lattice into its components and study its effect on GDN’s native memory. Further experiments on – jacobi refiner, comparison with short conv, stateless modulation, downstream evaluations, GSM8K finetuning, and other details are in Appendix Sec. A.3.

We pretrain 400M–600M-parameter LLLMs and Transformer baselines on FineWeb-Edu for 10B, 20B, or 30B tokens; the larger budgets exceed Chinchilla-style compute-optimal budgets at these sizes. We report held-out perplexity on FineWeb-Edu (in-domain) and on Pile, LAMBADA (OpenAI and Standard), and Nemotron-CC (out-of-domain), and zero- and five-shot accuracy on nine lm-evaluation-harness tasks; evaluation and compute-accounting details are in Appendix Sec. A.3.

Table 1 compares 400M–600M models pretrained on 20B FineWeb-Edu tokens. At 400M, LLLM(945,256)(945,256) matches Base-24L in parameters and forward compute (406.5 M / 0.72 vs. 406.7 M / 0.71 GFLOP/token), yet lowers FineWeb-Edu perplexity from 15.4115.41 to 14.5414.54 (−5.6%-5.6\%) and out-of-domain perplexity by 33–11%11\% on every set. Adding input-injection + vstream, with the vertical width reduced from 945945 to 908908 to hold parameters and FLOPs approximately fixed, improves further, most on out-of-domain data (the best Pile perplexity in the table, 24.1024.10). Jacobi refinement gives the strongest 400M results: LLLM-410 J3 attains the best FineWeb-Edu (14.0314.03), LAMBADA, and Nemotron-CC perplexities in the 400M block, but its three sweeps raise estimated forward compute to 1.851.85 GFLOP/token. Exact sequential rollout of the same checkpoint needs only 0.720.72 GFLOP/token but raises FineWeb-Edu perplexity to 14.7314.73. Training with a randomized number of Jacobi iterations, as in PonderLM-2 (Zeng et al., 2026), can remove this gap (Sec. 4.4); we train with three fixed sweeps.

At 600M, LLLM(1024,1024)(1024,1024) achieves the best perplexity on every dataset in its block (FineWeb-Edu 13.7013.70), outperforming both width-scaled Transformers and the depth-scaled Base-40L, which has nearly identical forward compute (1.101.10 GFLOP/token). Thus, at comparable parameters and compute, splitting capacity between vertical and horizontal latents outperforms spending it on residual-stream width or depth alone. The advantage also holds across scales: the 405.6 M input-injection + vstream model matches the 609M Base-40L on FineWeb-Edu (14.4014.40) and beats it on Pile and both LAMBADA variants, trailing only on Nemotron-CC, with 33%33\% fewer parameters and 35%35\% less estimated forward compute. Under three-sweep evaluation, the 407M J3 model surpasses Base-40L on all five datasets, though at higher inference compute. Results at 30B tokens are in Appendix Tab. 3.

Figure 7
Figure 7: LLLM vs. larger-depth and larger-width Transformers. Acting as a companion to the residual stream, the Lattice enables better performance than a deeper Transformer or naively increasing the residual-stream width; even 406 M LLLM(945,256)(945,256) outperforms both ∼\sim600 M alternatives on 10B-token pretraining. See Sec. 4.4.

Table 4 reports the nine-task average accuracy (Task Avg.) of the same 20B-token models. At matched 400M scale, LLLM(945,256)(945,256) improves on Base-24L from 45.4645.46 to 47.6747.67 zero-shot (+2.21+2.21 points) and from 46.1946.19 to 47.7947.79 five-shot (+1.60+1.60). Adding input-injection + vstream raises five-shot accuracy further to 48.1648.16, and Jacobi refinement gives the strongest 400M averages, 48.6948.69 zero-shot and 49.3849.38 five-shot (+3.23+3.23 and +3.19+3.19 over Base-24L). At 600M, LLLM(1024,1024)(1024,1024) outperforms Base-40L by 1.171.17 points zero-shot and 2.002.00 five-shot. The 407M J3 model also exceeds Base-40L, by 1.331.33 and 2.012.01 points, with roughly one-third fewer parameters, though its three sweeps require more inference compute. Thus, the perplexity gains carry over to downstream accuracy.

The Lattice adds a horizontal pathway that carries latents across time, whereas recent residual-stream enhancements reshape how information flows vertically, across depth. We test whether the two are complementary by pretraining 400M models on 20B FineWeb-Edu tokens with hyper-connections (HC) (Zhu et al., 2025), manifold-constrained hyper-connections (mHC) (Xie et al., 2026), value residuals (Zhou et al., 2025), and nanochat-style input residuals (x0) (Karpathy, 2025), alone and in combination, with and without the Lattice (Fig. 3); the Lattice models narrow the vertical width from 10241024 to 932932 to remain iso-parameter (details in Appendix Sec. A.4.2). On its own, the Lattice lowers FineWeb-Edu perplexity from 15.4115.41 to 14.4714.47, more than HC (15.2815.28), mHC (14.9314.93), or value residuals (14.6914.69), and is second only to x0 (14.3414.34). More importantly, its gains add to theirs: the Lattice lowers HC from 15.2815.28 to 14.2114.21 (−7.0%-7.0\%) and HC + x0 from 14.2214.22 to 13.6113.61 (−4.3%-4.3\%). Lattice + HC + x0 is the best model overall, 11.7%11.7\% below the plain Transformer and 3.9%3.9\% below the strongest Transformer composition (x0 + value, 14.1614.16). Thus, horizontal latents are not a substitute for a better residual stream; they are an orthogonal axis that compounds with it.

We pretrain GDN, Mamba2, Triadic GDN, and GDN–Mamba2 hybrids without sliding-window attention (no-SWA) on 10B FineWeb-Edu tokens, pairing each pure backbone with a Lattice counterpart of the same native-state geometry and approximately matched parameter count (∼\sim405M). We sweep 16K, 32K, 64K, 128K, and 256K native-state entries per mixer (1K =1024=1024 scalar entries), excluding the added horizontal latents and auxiliary convolution states. For GDN, the state size is HdkdvHd_{k}d_{v} for HH heads with per-head key and value dimensions dk,dvd_{k},d_{v}; we use (H,dk,dv)=(16,16,64)(H,d_{k},d_{v})=(16,16,64), (16,32,64)(16,32,64), (16,64,64)(16,64,64), (8,128,128)(8,128,128), and (4,256,256)(4,256,256), and vary the other backbones similarly (Appendix). The horizontal latent modulates only the mixer’s memory read, write, and update quantities, not the MLP or decoding. Perplexity results use input-injection + vstream, with the Lattice model’s vertical residual stream (dmodeld_{\mathrm{model}}) narrowed to offset the added parameters, keeping every comparison iso-parameter. For downstream results, at each state budget and shot setting we select, by nine-task average, the best of three couplings—input-injection + vstream and two vstream-only variants that restore the parameter budget by reducing either dmodeld_{\mathrm{model}} or the FFN width (more details in Appendix Sec. A.3).

On FineWeb-Edu (Fig. 2), the Lattice lowers perplexity at every native-state size: by 1.21.2–2.6%2.6\% for GDN, 0.60.6–2.2%2.2\% for Mamba2, 1.11.1–2.1%2.1\% for Triadic GDN, and 0.30.3–1.0%1.0\% for the GDN–Mamba2 hybrid (15.8515.85 vs. 15.9215.92 at 256K). Lattice models can also outperform pure models with four times as many native-state entries per mixer: 64K Lattice GDN beats 256K pure GDN (16.0516.05 vs. 16.1116.11), and 64K Lattice Triadic GDN beats 256K pure Triadic GDN (15.9815.98 vs. 16.0916.09). These results are consistent with the hypothesis that horizontal latent helps vertical residual stream control memory writes and reads, enabling more effective use of native memory (Sec. 4.4).

On the same nine-task average (Figs. 12 and 13), the selected Lattice model outperforms its pure counterpart in almost all paired comparisons, spanning three backbones (GDN, Mamba2, and the no-SWA hybrid), five state budgets, and two shot settings. Averaged over state budgets, the gains range from +0.53+0.53 to +0.67+0.67 points zero-shot and +0.76+0.76 to +0.95+0.95 points five-shot across backbones, peaking at +1.50+1.50 (Mamba2, 16K, five-shot), and they persist at the largest budget: at 256K, the Lattice adds +0.86+0.86 and +1.06+1.06 points to GDN. Lattice models can again outperform pure models with larger native states. With 8×8\times fewer native entries per mixer, 32K Lattice GDN surpasses 256K pure GDN in both settings (44.8844.88 vs. 44.4544.45 zero-shot), as does the 32K hybrid over the 256K hybrid, and 16K Lattice Mamba2 over 128K pure Mamba2; with 16×16\times fewer, 16K Lattice GDN still exceeds 256K pure GDN zero-shot (44.5744.57 vs. 44.4544.45).

Figure 8
Figure 8: Allocating vertical and horizontal latents. Comparing Transformers with LLLMs at different allocations of vertical and horizontal latent widths (dmodel,dr)(d_{\mathrm{model}},d_{r}) after 10B-token pretraining. See Sec. 4.4.

In this section, we ask where the gains come from, training all models on 10B FineWeb-Edu tokens & reporting validation perplexity. Narrowing the vertical latent alone is costly: Transformer(512,0)(512,0) reaches 18.8718.87, versus 16.9416.94 for the 406 M, 1024-wide Transformer (Fig. 8). Reinvesting that capacity horizontally more than recovers the loss: LLLM(512,512)(512,512) matches the 406 M Transformer with only 291 M parameters (16.9616.96), and at a matched 406 M, LLLM(945,256)(945,256) reaches 15.6315.63 (−7.7%-7.7\%), or 15.4915.49 (−8.5%-8.5\%) with input-injection + vstream. As shown in Fig. 6, spending 200 M more parameters on Transformer width (15.9815.98) or depth (15.8215.82) still trails this 406 M Lattice model. Fig. 6 also isolates the top-to-bottom Jacobi refiner, which feeds the top Lattice layer’s horizontal latent to the bottom layer at the next token: each J3 model (trained with three sweeps) improves on its base-update counterpart, e.g., from 14.8314.83–14.8914.89 to 14.2914.29–14.4014.40 at ∼\sim600 M, at additional inference compute. Prior work (Zeng et al., 2026) has shown that training with a randomized number of Jacobi iterations removes this additional inference cost, matching the performance of sequential rollout.

Figure 7 examines the mechanisms in the hardest regime, a highly compressed 256-dimensional vertical latent (dmodel=256d_{\mathrm{model}}=256). Here, adding horizontal capacity with the base update alone is not enough: LLLM(256,768)(256,768) reaches 19.5819.58, worse than the 512-wide Transformer (18.8718.87). Jacobi refinement alone reduces this to 18.9518.95. Separately, cumulatively adding input injection (18.5518.55), vstream (17.9617.96), the horizontal decoding head with ds=512d_{s}=512 (17.6217.62), a larger Lattice block (E4/L16/D4 to E1/L20/D1; 17.4217.42), and ds=1024d_{s}=1024 (17.1817.18) closes most of the 2.642.64-perplexity gap, leaving the model 0.240.24 behind the 406.7 M Transformer with 21%21\% fewer parameters. These additions also grow the model from 215.8 M to 320.9 M parameters, so they measure combined gains rather than effects at fixed capacity. LLLM(512,512)(512,512) still does better (16.9616.96 with 291 M parameters): these pathways mitigate but do not remove the cost of an extremely narrow vertical latent, so the split between vertical and horizontal capacity matters; most of our main models keep a wide vertical latent with a smaller horizontal one (dr=256d_{r}=256).

Table 2
Native state sizeEntropy effective rank rentr_{\mathrm{ent}} (↓\downarrow)Stable rank rstabler_{\mathrm{stable}} (↓\downarrow)Query alignment gain G1G_{1} (↑\uparrow)
16K6.250 ⁣→ ⁣5.6496.250\!\rightarrow\!5.6491.518 ⁣→ ⁣1.3531.518\!\rightarrow\!1.3533.693 ⁣→ ⁣5.5793.693\!\rightarrow\!5.579
32K10.077 ⁣→ ⁣8.40310.077\!\rightarrow\!8.4031.629 ⁣→ ⁣1.4401.629\!\rightarrow\!1.4405.613 ⁣→ ⁣7.4935.613\!\rightarrow\!7.493
64K14.498 ⁣→ ⁣11.84214.498\!\rightarrow\!11.8421.798 ⁣→ ⁣1.5551.798\!\rightarrow\!1.5556.269 ⁣→ ⁣8.9256.269\!\rightarrow\!8.925
128K22.965 ⁣→ ⁣19.44422.965\!\rightarrow\!19.4442.055 ⁣→ ⁣1.7662.055\!\rightarrow\!1.7667.637 ⁣→ ⁣10.7147.637\!\rightarrow\!10.714
256K37.915 ⁣→ ⁣33.41837.915\!\rightarrow\!33.4182.504 ⁣→ ⁣2.1282.504\!\rightarrow\!2.1287.957 ⁣→ ⁣13.3217.957\!\rightarrow\!13.321
Table 2: Native-memory geometry and query alignment in GDN. Each cell reports pure →\rightarrow Lattice, at matched native-state size and approximately matched parameters. Lower ranks mean the memory is concentrated in fewer directions; higher G1G_{1} means queries align more with the leading memory direction. The Lattice improves all three metrics at every state size. Values are averaged over all 2222 layers and all heads, 10241024 FineWeb-Edu sequences of 20482048 tokens, and 1515 positions per sequence just after a state update. See Sec. 4.4.
View original tableOriginal Table 2

Finally, we ask how the Lattice changes the way GDN uses its native memory. Each GDN head maintains a memory matrix S∈Rdk×dvS\in\mathbb{R}^{d_{k}\times d_{v}}, written with keys and read with queries, where dkd_{k} and dvd_{v} are the per-head key and value dimensions. Writing S=UΣV⊤S=U\Sigma V^{\top} with singular values σ1≥σ2≥⋯\sigma_{1}\geq\sigma_{2}\geq\cdots and leading left singular vector u1∈Rdku_{1}\in\mathbb{R}^{d_{k}}, we measure how concentrated the memory is, using effective and stable ranks. The entropy effective rank rent=exp⁡ ⁣(−∑ipilog⁡pi)r_{\mathrm{ent}}=\exp\!\big(-\sum_{i}p_{i}\log p_{i}\big), with pi=σi/∑jσjp_{i}=\sigma_{i}/\sum_{j}\sigma_{j}, is the effective number of directions the spectrum spreads over; the stable rank rstable=∥S∥F2/σ12=∑iσi2/σ12r_{\mathrm{stable}}=\|S\|_{F}^{2}/\sigma_{1}^{2}=\sum_{i}\sigma_{i}^{2}/\sigma_{1}^{2} measures how strongly the leading direction dominates. Both lie in [1,min⁡(dk,dv)][1,\min(d_{k},d_{v})]; lower values mean a more concentrated spectrum, but do not by themselves imply less stored information. We also measure the query alignment gain G1=dk (u1⊤q)2/∥q∥22G_{1}=d_{k}\,(u_{1}^{\top}q)^{2}/\|q\|_{2}^{2}: the squared cosine between the normalized query q∈Rdkq\in\mathbb{R}^{d_{k}} used for reading and u1u_{1}, scaled by dkd_{k} so that an isotropic random query gives E[G1]=1\mathbb{E}[G_{1}]=1.

Table 2 shows a consistent pattern at every state budget: the Lattice lowers rentr_{\mathrm{ent}} by 9.69.6–18.3%18.3\% and rstabler_{\mathrm{stable}} by 10.910.9–15.0%15.0\%, while raising G1G_{1} by 33.533.5–67.4%67.4\%. The alignment gap widens with state size, from +1.89+1.89 at 16K to +5.36+5.36 at 256K, where Lattice queries align with the leading memory direction 13.3×13.3\times more than chance, versus 8.0×8.0\times for the pure model. Thus, with Lattice, GDN writes a more concentrated memory and reads more strongly along its dominant direction, consistent with the hypothesis that the horizontal latent helps the vertical stream control memory writes and reads.

We introduced the Lattice of Latents, which distributes computational capacity across the vertical residual stream and persistent, layer-wise horizontal latents. Rather than replacing sequence memory, these latents act as companion computational states that steer the backbone’s computation. We use an affine horizontal update and introduce enhancements that increase latent expressivity while preserving token-parallel teacher-forced computation within each pass. LLLMs improve language modeling and downstream task averages across Transformer and recurrent backbones. The Lattice also composes with residual-stream enhancements: combined with hyper-connections and input residuals, it outperforms every Transformer variant we test. On recurrent backbones, gains arise at matched native-state sizes and approximately matched parameter counts, with Lattice GDN and Lattice Triadic GDN outperforming pure baselines that use 4×4\times as many native-state entries. Overall, our results suggest that distributing active computational capacity across interacting latents is a promising complement to scaling width, depth, memory, or the residual stream alone.

We thank Aman Dudeja, David Jin, Jyo Pari, Han Guo, Jayden Teoh, Oliver Sieberling, Rachit Saxena, Seungwook Han, Shamit Lal, and Xingjian Bai for insightful discussions and constructive feedback. Shivam Duggal is particularly grateful to Prof. Phillip Isola for feedback on the manuscript and valuable guidance over years that helped inspire ideas in this work. Antonio Torralba acknowledges support from ONR MURI grant #037564-00001. Shivam Duggal additionally acknowledges support from the Amazon AI Research Innovation Fellowship.

References

  1. Allen-Zhu (2026) Z. Allen-Zhu Physics of language models: part 4.1, architecture design and the magic of canon layers. External Links: 2512.17351, Link Cited by: §A.3.1.Source
  2. Cai et al. (2026) Z. Cai, X. Zhu, Y. Dong, Y. He, and S. Arora T2MLR: transformer with temporal middle-layer recurrence. In Workshop on Latent & Implicit Thinking – Going Beyond CoT Reasoning, External Links: Link Cited by: §A.1, §2.Source
  3. Danieli et al. (2025) F. Danieli, P. Rodriguez, M. Sarabia, X. Suau, and L. Zappella ParaRNN: unlocking parallel training of nonlinear rnns for large language models. External Links: 2510.21450, Link Cited by: §A.1.Source
  4. Dao and Gu (2024) T. Dao and A. Gu Transformers are ssms: generalized models and efficient algorithms through structured state space duality. External Links: 2405.21060, Link Cited by: §A.4.3, §2.Source
  5. Dehghani et al. (2019) M. Dehghani, S. Gouws, O. Vinyals, J. Uszkoreit, and Ł. Kaiser Universal transformers. External Links: 1807.03819, Link Cited by: §1, §2.Source
  6. Dong et al. (2024) X. Dong, Y. Fu, S. Diao, W. Byeon, Z. Chen, A. S. Mahabaleshwarkar, S. Liu, M. V. Keirsbilck, M. Chen, Y. Suhara, Y. Lin, J. Kautz, and P. Molchanov Hymba: a hybrid-head architecture for small language models. External Links: 2411.13676, Link Cited by: §2.Source
  7. Geiping et al. (2025) J. Geiping, S. McLeish, N. Jain, J. Kirchenbauer, S. Singh, B. R. Bartoldson, B. Kailkhura, A. Bhatele, and T. Goldstein Scaling up test-time compute with latent reasoning: a recurrent depth approach. External Links: 2502.05171, Link Cited by: §1, §2.Source
  8. Gu and Dao (2024) A. Gu and T. Dao Mamba: linear-time sequence modeling with selective state spaces. External Links: 2312.00752, Link Cited by: §1, §2.Source
  9. Hao et al. (2024) S. Hao, S. Sukhbaatar, D. Su, X. Li, Z. Hu, J. Weston, and Y. Tian Training large language models to reason in a continuous latent space. arXiv preprint arXiv:2412.06769. Cited by: §A.1, §A.3.1, §1, §2, §3.1.
  10. Huang et al. (2026) Z. Huang, X. He, L. Ren, Y. Wang, B. Peng, H. Cheng, S. Wang, P. He, J. Gao, Y. J. Lee, and Y. Shen Latent recurrent transformer: architecture exploration, training strategies, and scaling behavior. External Links: 2605.26797, Link Cited by: §A.1, §2.Source
  11. Karpathy (2025) A. Karpathy Nanochat: the best chatgpt that \$100 can buy. GitHub. External Links: Link Cited by: §A.4.2, §4.2.Source
  12. Lieber et al. (2024) O. Lieber, B. Lenz, H. Bata, G. Cohen, J. Osin, I. Dalmedigos, E. Safahi, S. Meirom, Y. Belinkov, S. Shalev-Shwartz, O. Abend, R. Alon, T. Asida, A. Bergman, R. Glozman, M. Gokhman, A. Manevich, N. Ratner, N. Rozen, E. Shwartz, M. Zusman, and Y. Shoham Jamba: a hybrid transformer-mamba language model. External Links: 2403.19887, Link Cited by: §2.Source
  13. Mishra et al. (2026) M. Mishra, S. Tan, I. Stoica, J. Gonzalez, and T. Dao M${}^{2}$rnn: non-linear rnns with matrix-valued states for scalable language modeling. External Links: 2603.14360, Link Cited by: §A.1.Source
  14. Monea et al. (2026) G. Monea, N. Godey, K. Brantley, and Y. Artzi The state-prediction separation hypothesis. External Links: 2607.01218, Link Cited by: §A.1, §2.Source
  15. Mozer et al. (2026a) M. C. Mozer, S. A. Siddiqui, and R. Liu The topological trouble with transformers. External Links: 2604.17121, Link Cited by: §2.Source
  16. Mozer et al. (2026b) M. C. Mozer, S. A. Siddiqui, D. Sawyer, S. Sanyal, and R. Liu Recirculation. External Links: 2608.17981, Link Cited by: §A.1, §2.Source
  17. Neill and Reid (2026) J. O. Neill and F. Reid Looped latent attention: cross-loop kv compression for looped transformers. External Links: 2607.15456, Link Cited by: §A.1.Source
  18. Perez et al. (2017) E. Perez, F. Strub, H. de Vries, V. Dumoulin, and A. Courville FiLM: visual reasoning with a general conditioning layer. External Links: 1709.07871, Link Cited by: §3.2.1.Source
  19. Shen et al. (2025) Z. Shen, H. Yan, L. Zhang, Z. Hu, Y. Du, and Y. He CODI: compressing chain-of-thought into continuous space via self-distillation. External Links: 2502.21074, Link Cited by: §A.1, §1, §2, §3.1.Source
  20. Sieberling et al. (2026) O. Sieberling, B. Runwal, R. Panda, and Y. Kim Dynamic short convolutions improve transformers. External Links: 2606.03825, Link Cited by: §A.3.1.Source
  21. Siems et al. (2025) J. Siems, T. Carstensen, A. Zela, F. Hutter, M. Pontil, and R. Grazzi DeltaProduct: improving state-tracking in linear rnns via householder products. External Links: 2502.10297, Link Cited by: §A.1, §2.Source
  22. Team et al. (2026) K. Team, G. Chen, Y. Zhang, J. Su, W. Xu, S. Pan, Y. Wang, Y. Wang, G. Chen, B. Yin, Y. Chen, J. Yan, M. Wei, Y. Zhang, F. Meng, C. Hong, X. Xie, S. Liu, E. Lu, Y. Tai, Y. Chen, X. Men, H. Guo, Y. Charles, H. Lu, L. Sui, J. Zhu, Z. Zhou, W. He, W. Huang, X. Xu, Y. Wang, G. Lai, Y. Du, Y. Wu, Z. Yang, and X. Zhou Attention residuals. External Links: 2603.15031, Link Cited by: §1, §1, §2.Source
  23. Teoh et al. (2025) J. Teoh, M. Tomar, K. Ahn, E. S. Hu, T. Pearce, P. Sharma, A. Krishnamurthy, R. Islam, A. Lamb, and J. Langford Next-latent prediction transformers learn compact world models. arXiv preprint arXiv:2511.05963. Cited by: §2.
  24. Vendrell et al. (2026) V. C. Vendrell, A. P. Masdemont, N. Grillo, J. Ros-Giralt, A. Behboodi, and F. V. Massoli Memory-efficient looped transformer: decoupling compute from memory in looped language models. External Links: 2605.07721, Link Cited by: §A.1.Source
  25. Wang et al. (2026) X. Wang, Z. Cai, Z. Zhan, H. Dong, Y. Fan, G. de Rosa, T. Pearce, and J. Langford Full-bandwidth transformer. External Links: 2608.08888, Link Cited by: Figure 9, §A.1, §A.3.1, §2.Source
  26. Wu et al. (2026) H. Wu, Z. Teng, and K. Tu Parallel continuous chain-of-thought with jacobi iteration. External Links: 2506.18582, Link Cited by: §A.1, §A.2.3, §1, §1, §2, §3.2.2.Source
  27. Xie et al. (2026) Z. Xie, Y. Wei, H. Cao, C. Zhao, C. Deng, J. Li, D. Dai, H. Gao, J. Chang, K. Yu, L. Zhao, S. Zhou, Z. Xu, Z. Zhang, W. Zeng, S. Hu, Y. Wang, J. Yuan, L. Wang, and W. Liang MHC: manifold-constrained hyper-connections. External Links: 2512.24880, Link Cited by: §A.1, §A.4.2, §1, §1, §2, §3.3, §4.2.Source
  28. Yang et al. (2025) S. Yang, J. Kautz, and A. Hatamizadeh Gated delta networks: improving mamba2 with delta rule. External Links: 2412.06464, Link Cited by: §A.1, §A.4.3, §A.4.3, §2.Source
  29. Zeng et al. (2026) B. Zeng, H. Li, S. Song, Y. Wang, Z. Wang, Z. He, X. Wang, and Z. Lin PonderLM-2: pretraining llm with latent thoughts in continuous space. External Links: 2509.23184, Link Cited by: §A.1, §A.2.3, §1, §1, §2, §3.1, §3.2.2, §4.1, §4.4.Source
  30. Zhou et al. (2025) Z. Zhou, T. Wu, Z. Jiang, F. Obeid, and Z. Lan Value residual learning. External Links: 2410.17897, Link Cited by: §A.1, §A.4.2, §1, §2, §3.3, §4.2.Source
  31. Zhu et al. (2025) D. Zhu, H. Huang, Z. Huang, Y. Zeng, Y. Mao, B. Wu, Q. Min, and X. Zhou Hyper-connections. External Links: 2409.19606, Link Cited by: §A.1, §A.4.2, §1, §1, §2, §3.3, §4.2.Source
  32. Zhu et al. (2026) R. Zhu, Z. Wang, K. Hua, T. Zhang, Z. Li, H. Que, B. Wei, Z. Wen, F. Yin, H. Xing, L. Li, J. Shi, K. Ma, S. Li, T. Kergan, A. Smith, X. Qu, M. Hui, B. Wu, Q. Min, H. Huang, X. Zhou, W. Ye, J. Liu, J. Yang, Y. Shi, C. Lin, E. Zhao, T. Cai, G. Zhang, W. Huang, Y. Bengio, and J. Eshraghian Scaling latent reasoning via looped language models. External Links: 2510.25741, Link Cited by: §1, §2.Source

Extra computation along depth or time often comes with extra persistent memory. In depth-based methods, each added layer brings its own KV cache, and looped models may keep iteration-specific caches, although recent work shares or compresses state across loops (Vendrell et al., 2026; Neill and Reid, 2026). Among continuous latent reasoning methods, Coconut feeds the final hidden state back as the next input, CODI distills such reasoning from an explicit chain-of-thought teacher, and PonderLM-2 brings it into pretraining (Hao et al., 2024; Shen et al., 2025; Zeng et al., 2026); when latent thoughts are held as extra positions, they also add KV-cache entries. Because consecutive thoughts depend on each other, single-pass teacher forcing no longer applies; PonderLM-2 and PCCoT recover token parallelism with Jacobi-style refinement (Zeng et al., 2026; Wu et al., 2026), which inspires our optional Jacobi refiner (App. A.2.3).

We detail three residual-stream enhancements: input residuals, value residuals, and hyper-connections. An input residual re-injects the normalized token embedding before every layer, htℓ−1←λrℓhtℓ−1+λ0ℓ Norm(ht0)h_{t}^{\ell-1}\leftarrow\lambda_{r}^{\ell}h_{t}^{\ell-1}+\lambda_{0}^{\ell}\,\mathrm{Norm}(h_{t}^{0}), with learned per-layer scalars λrℓ,λ0ℓ\lambda_{r}^{\ell},\lambda_{0}^{\ell}. Value residual learning (Zhou et al., 2025) adds a similar shortcut inside attention: each layer mixes its attention values with those of the first layer, vtℓ←λ1ℓvt1+λ2ℓvtℓv_{t}^{\ell}\leftarrow\lambda_{1}^{\ell}v_{t}^{1}+\lambda_{2}^{\ell}v_{t}^{\ell}, with learned per-layer scalars, so later layers retain direct access to early token information. Hyper-connections (Zhu et al., 2025) expand the residual stream into nn parallel streams: each block reads a learned, input-dependent mixture of the streams, and its output is written back as the streams are remixed; mHC (Xie et al., 2026) constrains this mixing to be doubly stochastic. All three act within a timestep, so they compose directly with the Lattice (Sec. 3.3); the horizontal update reads whatever input the residual design produces. With hyper-connections one horizontal latent per layer is shared across the nn streams.

Beyond Mamba-2’s gated recurrence, Gated DeltaNet adds delta-rule state updates, and DeltaProduct composes several Householder-style corrections into a more expressive but still linear transition (Yang et al., 2025; Siems et al., 2025). Work on nonlinear recurrences is complementary: ParaRNN parallelizes general nonlinear recurrences with Newton iterations, and M2^{2}RNNs combine nonlinear updates with matrix-valued states (Danieli et al., 2025; Mishra et al., 2026). We keep the temporal update affine, add expressivity through its inputs and readouts, and obtain nonlinear feedback across time only through optional Jacobi refinement. Advances in parallelizable nonlinear recurrences could further strengthen the horizontal latent as a temporal companion to the residual stream.

Full-Bandwidth Transformer (Wang et al., 2026) feeds the previous token’s top-layer state back alongside the next embedding; Latent Recurrent Transformer (Huang et al., 2026) reuses a selected high-level representation as recurrent memory; and T2^{2}MLR (Cai et al., 2026) routes a deeper representation from the previous token into an earlier layer through a gated pathway. T2^{2}MLR is the closest to our Jacobi refiner, but its recurrent object is a cached vertical representation, whereas our Jacobi refiner links the top and bottom of a lattice of horizontal states that each follow their own temporal recurrence. Recirculation (Mozer et al., 2026b) also sends deep activations to shallower layers across steps, but is a training-free, inference-time intervention with sequential prefill, whereas the Lattice is trained end to end in a token-parallel fashion. The State-Prediction Separation Transformer (Monea et al., 2026) shares our view that a single representation can be burdened by multiple roles, but separates them within each token’s computation rather than keeping a persistent latent at each layer.

Table 3
ApproachParams [-0.2ex] (M)FineWeb-Edu [-0.2ex] PPL ↓\downarrowPile [-0.2ex] PPL ↓\downarrowLAMBADA OpenAILAMBADA Standard
PPL ↓\downarrowAcc. ↑\uparrowPPL ↓\downarrowAcc. ↑\uparrow
400M-parameter models
Base-24L (width dv=1024d_{v}=1024)40740714.71914.71926.51826.51840.75940.75934.8334.8369.34669.34626.4926.49
LLLM (945,256)(945,256)40740714.05014.05025.08125.08137.60537.60537.3637.3664.31464.31428.8028.80
LLLM (908,256)(908,256) re+vs40640613.92124.14837.45137.7361.59829.89
500M-parameter models
LLLM (512,512)(512,512), 40L49549513.83113.83124.20324.20337.52537.52539.3839.3863.72163.72130.8430.84
600M-parameter models
Base-24L (width dv=1620d_{v}=1620)60360313.94413.94426.79326.79337.40437.40437.5337.5362.15862.15828.3128.31
Base-24L (width dv=1472d_{v}=1472)60660614.03314.03325.01625.01638.50138.50136.7936.7964.49064.49029.9429.94
Base-40L (width dv=1024d_{v}=1024)60960913.80213.80223.47838.12338.12338.5438.5463.14663.14630.1630.16
LLLM (1024,1024)(1024,1024)60360313.18923.81823.81836.36540.3358.51630.91
Table 3: Language-modeling quality after 30B-token FineWeb-Edu pretraining. We report perplexity (↓\downarrow) on FineWeb-Edu, Pile, and the OpenAI and Standard LAMBADA variants, together with LAMBADA last-word accuracy (↑\uparrow). Models are grouped by parameter scale. The performance trends are similar to the 20b token results in Tab. 1.
View original tableOriginal Table 3

When this optional head is enabled, the topmost Lattice layer’s horizontal latent, with its own normalization, joins the final vertical latent in a shared readout space of dimension dsd_{s}, and the next token is decoded from their sum:

p(xt+1∣x≤t)=softmax(WU(PvNorm(htN)+PrNormhead(rttop))),p(x_{t+1}\mid x_{\leq t})=\mathrm{softmax}\Big(W_{U}\big(P_{v}\mathrm{Norm}(h_{t}^{N})+P_{r}\mathrm{Norm}_{\mathrm{head}}(r_{t}^{\mathrm{top}})\big)\Big),

where Pv∈Rds×dmodelP_{v}\in\mathbb{R}^{d_{s}\times d_{\mathrm{model}}} and Pr∈Rds×drP_{r}\in\mathbb{R}^{d_{s}\times d_{r}} are learned projections and WU∈RV×dsW_{U}\in\mathbb{R}^{V\times d_{s}} maps to vocabulary logits. Like every other injection in Sec. 3.2.1, PrP_{r} is zero-initialized. Hence at initialization the horizontal latent contributes nothing: attention and the MLP reduce to the standard Transformer layer, and the output is decoded from the vertical latent alone. The horizontal latent gains influence only through training. We use decoding modulation only in experiments with a highly compressed vertical latent (dmodel=256d_{\mathrm{model}}{=}256). When enabled, the horizontal decoding head reads the separately normalized raw top-layer state rttopr_{t}^{\mathrm{top}}, not the vstream-enriched readout.

The base update receives new information only through htℓ−1h_{t}^{\ell-1}, so its access to the current input is limited by what the vertical latent preserves, which we probe by ablating a narrower vertical latent (Fig. 6). By layer ℓ\ell, the vertical latent may also have discarded information about the raw token identity. Input injection (inj) therefore feeds the token embedding, with its own normalized read h^t0=Norme(ht0)\hat{h}_{t}^{0}=\mathrm{Norm}_{e}(h_{t}^{0}), directly into both pre-activations of the update:

Δtℓ=softplus(WΔℓntℓ+We,Δℓh^t0+bΔℓ)\begin{aligned}\displaystyle\Delta_{t}^{\ell} & \displaystyle=\mathrm{softplus}\big(W_{\Delta}^{\ell}n_{t}^{\ell}+W_{e,\Delta}^{\ell}\hat{h}_{t}^{0}+b_{\Delta}^{\ell}\big)\end{aligned}
ctℓ=SiLU(Wrℓntℓ+We,cℓh^t0+brℓ)\begin{aligned}\displaystyle c_{t}^{\ell} & \displaystyle=\mathrm{SiLU}\big(W_{r}^{\ell}n_{t}^{\ell}+W_{e,c}^{\ell}\hat{h}_{t}^{0}+b_{r}^{\ell}\big)\end{aligned}

with We,ΔℓW_{e,\Delta}^{\ell} and We,cℓW_{e,c}^{\ell} zero-initialized. The recurrence rtℓ=gtℓ⊙rt−1ℓ+btℓr_{t}^{\ell}=g_{t}^{\ell}\odot r_{t-1}^{\ell}+b_{t}^{\ell} is otherwise unchanged: Δtℓ\Delta_{t}^{\ell} and ctℓc_{t}^{\ell} still depend only on current-timestep inputs (ntℓn_{t}^{\ell} and h^t0\hat{h}_{t}^{0}), never on rt−1ℓr_{t-1}^{\ell}, so the transition remains exactly affine and the same parallel scan applies.

Figure 9
Figure 9: Ablating top-to-bottom residual-stream flow. Feeding each token’s top-layer state back into the bottom of the network at the next token adds a nonlinear path through the residual stream. Jacobi on vertical applies this feedback to the vertical residual stream, analogous to the concurrent Full-Bandwidth Transformer (Wang et al., 2026); Jacobi on Lattice applies it to the horizontal latents; the last bar applies both. We call it “Jacobi” because the feedback is trained and evaluated with three parallel, teacher-forced Jacobi sweeps (J3; App. A.2.3), at the cost of extra forward passes. Both forms of feedback help, and they compound: 16.9416.94 (Transformer) and 15.5215.52 (single-pass Lattice) fall to 14.9214.92 with feedback on both. FineWeb-Edu val perplexity, trained on 10B tokens.

The input-injection and vstream pathways use only information available at the current timestep, so the base update keeps an exact parallel scan across time. Neither feeds a higher layer’s horizontal latent back to a lower layer at the next timestep. Such top-to-bottom feedback is straightforward in a token-by-token rollout, but breaks the single bottom-to-top sweep of teacher-forced training, because the top layer’s latent is not yet available when the bottom layer updates. Following Zeng et al. (2026); Wu et al. (2026), we approximate it during training with Jacobi iteration. Unlike these works, which iterate over a recurrence that feeds the final vertical latent back as the next input, we apply it to the horizontal latents.

Let J≥1J\geq 1 be the total number of sweeps: J0 denotes the base single pass and J3 a base pass followed by two refinement sweeps. Sweep j=0j=0 runs the Lattice block bottom to top exactly as in the base update, producing rtℓ,(0)r_{t}^{\ell,(0)} for every layer and timestep. Each subsequent sweep j=1,…,J−1j=1,\dots,J-1 takes the top Lattice layer’s latent from the previous sweep, shifted one timestep back, and maps it through a SwiGLU:

Nt(j)=WJ,down(SiLU(WJ,gatez^t(j−1))⊙(WJ,upz^t(j−1))),z^t(j−1)=RMSNorm(rt−1top,(j−1)),\begin{aligned}\displaystyle N_{t}^{(j)} & \displaystyle=W_{J,\mathrm{down}}\big(\mathrm{SiLU}(W_{J,\mathrm{gate}}\hat{z}_{t}^{(j-1)})\odot(W_{J,\mathrm{up}}\hat{z}_{t}^{(j-1)})\big),\qquad\hat{z}_{t}^{(j-1)}=\mathrm{RMSNorm}\big(r_{t-1}^{\mathrm{top},(j-1)}\big),\end{aligned}

with hidden width 2dr2d_{r}, z^\hat{z} set to zero at the first timestep, and Nt(0)=0N_{t}^{(0)}=0. Only the bottom Lattice layer ℓ0\ell_{0} receives the correction, which is added to its candidate content ctℓ0,(j)=SiLU(Wrℓ0ntℓ0,(j)+brℓ0)c_{t}^{\ell_{0},(j)}=\mathrm{SiLU}(W_{r}^{\ell_{0}}n_{t}^{\ell_{0},(j)}+b_{r}^{\ell_{0}}), computed from the normalized vertical input ntℓ0,(j)n_{t}^{\ell_{0},(j)} (plus the input-injection term when used; full update in Sec. 3.2.2):

btℓ0,(j)=(1−gtℓ0,(j))⊙(ctℓ0,(j)+Nt(j)),\displaystyle b_{t}^{\ell_{0},(j)}=(1-g_{t}^{\ell_{0},(j)})\odot\big(c_{t}^{\ell_{0},(j)}+N_{t}^{(j)}\big),

which enters the same affine recurrence rtℓ=gtℓ⊙rt−1ℓ+btℓr_{t}^{\ell}=g_{t}^{\ell}\odot r_{t-1}^{\ell}+b_{t}^{\ell}. Every sweep reruns the whole Lattice block from the same early-block outputs and the same learned initial states, with parameters shared across sweeps and all layer inputs and coefficients recomputed; the final sweep supplies the block output. Because Nt(j)N_{t}^{(j)} depends only on the fully resolved previous sweep, each sweep’s scan remains exactly affine and token-parallel; the cost is JJ serial sweeps instead of one.

WJ,gateW_{J,\mathrm{gate}} and WJ,upW_{J,\mathrm{up}} are initialized from N(0,0.022)\mathcal{N}(0,0.02^{2}) and WJ,downW_{J,\mathrm{down}} is zero-initialized, so a J3 model equals its J0 counterpart at initialization. We train with a fixed number of sweeps (J=3J=3) and backpropagate through all of them. At inference, the top-layer latent of the preceding token is already available, so exact recurrence (Nt=F(rt−1top)N_{t}=F(r_{t-1}^{\mathrm{top}})) can be evaluated in a single token-by-token pass without refinement sweeps (“sequential rollout”); finite number of sweeps need not reproduce this rollout. We report both three-sweep & sequential-rollout eval (Sec. 4.1).

Table 4
ApproachParams (M)LAMBADAARCWGPIQAHSSciQRACEAvg. ↑\uparrow
OpenAIStandardEasyChallenge
0-shot accuracy
400M-parameter models
Base-24L (width dv=1024d_{v}=1024)40740733.033.024.924.953.753.727.827.850.650.666.866.840.240.281.481.430.730.745.4645.46
LLLM (945,256)(945,256)40740735.926.926.956.429.029.054.268.442.442.484.431.331.347.67
LLLM (908,256)(908,256) re+vs40640635.135.128.256.056.029.651.651.668.068.043.682.682.631.747.3847.38
LLLM (945,256)(945,256) J340740738.229.655.630.155.069.044.983.732.248.69
500M-parameter models
LLLM (512,512)(512,512), 40L49549535.935.928.928.956.656.627.827.854.554.568.968.944.244.283.483.432.732.748.1048.10
600M-parameter models
Base-24L (width dv=1620d_{v}=1620)60360333.133.125.525.554.954.928.828.850.950.966.766.741.541.582.982.930.930.946.1446.14
Base-24L (width dv=1472d_{v}=1472)60660635.135.127.127.155.655.628.828.852.152.168.068.042.142.184.384.333.033.047.3647.36
Base-40L (width dv=1024d_{v}=1024)60960935.235.227.427.456.156.129.129.153.367.867.842.642.684.184.130.530.547.3647.36
LLLM (1024,1024)(1024,1024)60360336.028.657.629.552.452.469.145.784.533.348.53
5-shot accuracy
400M-parameter models
Base-24L (width dv=1024d_{v}=1024)40740725.525.524.124.159.359.330.951.551.566.866.839.939.986.586.531.431.446.1946.19
LLLM (945,256)(945,256)40740727.327.324.424.463.663.630.630.652.267.742.642.688.433.347.7947.79
LLLM (908,256)(908,256) re+vs40640629.826.965.030.830.851.251.267.567.543.187.787.731.431.448.16
LLLM (945,256)(945,256) J340740729.226.365.233.554.368.945.390.231.549.38
500M-parameter models
LLLM (512,512)(512,512), 40L49549529.129.126.826.864.164.131.631.652.352.367.967.943.843.889.289.231.731.748.5048.50
600M-parameter models
Base-24L (width dv=1620d_{v}=1620)60360324.424.423.423.462.062.032.432.451.351.367.267.241.641.687.387.330.030.046.6346.63
Base-24L (width dv=1472d_{v}=1472)60660626.426.423.223.262.862.831.731.752.052.068.342.242.289.289.230.430.447.3447.34
Base-40L (width dv=1024d_{v}=1024)60960926.326.324.124.163.263.231.631.651.151.167.467.443.243.288.688.630.930.947.3747.37
LLLM (1024,1024)(1024,1024)60360329.328.265.632.952.868.068.045.389.432.749.37
Table 4: Zero- and five-shot downstream task accuracy at the 20B-token FineWeb-Edu pretraining scale. Models are grouped by parameter scale and shown in the same order under both evaluation settings. All task values are accuracies (%\%; ↑\uparrow). LAMBADA results are reported on the OpenAI and Standard variants, while ARC results are reported on ARC-Easy and ARC-Challenge. WG / HS denote WinoGrande / HellaSwag, respectively. Avg. is reported average across 9 tasks.
View original tableOriginal Table 4

Building on the 20B-token results in Table 1, Table 3 shows that the benefits of the Lattice persist under substantially longer, post-Chinchilla pretraining on 30B tokens. At the matched 400M scale, LLLM(908,256)(908,256) with input-injection + vstream outperforms Base-24L on every reported metric, reducing FineWeb-Edu, Pile, LAMBADA-OpenAI, and LAMBADA-Standard perplexity by 5.4%5.4\%, 8.9%8.9\%, 8.1%8.1\%, and 11.2%11.2\%, respectively, while improving the two LAMBADA accuracies by 2.902.90 and 3.403.40 points. The gains also hold at 600M parameters: LLLM(1024,1024)(1024,1024) improves over the similarly sized Base-40L by 4.4%4.4\% on FineWeb-Edu, 4.6%4.6\% on LAMBADA-OpenAI, and 7.3%7.3\% on LAMBADA-Standard, while increasing their accuracies by 1.791.79 and 0.750.75 points; Base-40L remains modestly better on Pile. Thus, the advantages observed at 20B tokens do not disappear with extended pretraining. Moreover, the strong results obtained with different vertical–horizontal allocations suggest that this capacity split is an important tuning axis, and that a more systematic search may yield further improvements.

Table 4 breaks down the nine-task averages of Sec. 4.1 by task after 20B-token pretraining. At the matched 400M scale, LLLM(945,256)(945,256) J3 improves on Base-24L on all nine tasks in both the zero- and five-shot settings. At 600M, LLLM(1024,1024)(1024,1024) improves on Base-40L on all nine tasks five-shot and on eight of nine zero-shot, trailing only on WinoGrande (52.452.4 vs. 53.353.3). LLLM(512,512)(512,512) with 40 layers also exceeds the 609M Base-40L in both settings (48.1048.10 vs. 47.3647.36 zero-shot; 48.5048.50 vs. 47.3747.37 five-shot) with 495M parameters.

Fig. 9 tests whether top-to-bottom feedback across timesteps helps the vertical residual stream, the horizontal latents, or both. All models are trained on 10B FineWeb-Edu tokens with the Transformer recipe (App. A.4.1); Lattice models use the vstream-only configuration (dmodel=932d_{\mathrm{model}}{=}932, dr=256d_{r}{=}256). Jacobi on vertical passes the previous token’s final-layer state through a small MLP and adds it to the next token’s embedding, similar to the Full-Bandwidth Transformer (Wang et al., 2026). Jacobi on Lattice applies the Jacobi refiner (App. A.2.3) to the horizontal latents, and the last variant applies both. All three are trained and evaluated with three parallel, teacher-forced sweeps (J3). Vertical feedback lowers the Transformer’s perplexity from 16.9416.94 to 15.3615.36 (−9.3%-9.3\%), slightly below the single-pass Lattice (15.5215.52), but it reruns the full network three times and adds 6.36.3 M parameters. Feedback on horizontal latents lowers the Lattice from 15.5215.52 to 15.0915.09 (−2.8%-2.8\%). Combining both works the best, 14.9214.92 (−3.9%-3.9\% relative to single-pass Lattice), so two forms of feedback are complementary.

Figure 10
Figure 10: Stateless vs. Lattice modulation: is recurrent history needed? We replace the horizontal latent in FiLM modulation with a stateless signal computed from either the token embedding (input-conditioned) or the incoming residual stream (residual-stream-conditioned), at matched ∼\sim406M parameters. Lattice-conditioned modulation, which carries history across timesteps, clearly outperforms both stateless variants. FineWeb-Edu val perplexity, trained on 10B tokens.

Is the gain of the Lattice due to its recurrent history, or would any extra input-dependent FiLM conditioning suffice? Fig. 10 replaces the horizontal latent r^tℓ\hat{r}_{t}^{\ell} with a stateless signal ztℓ=Norm(Pℓ Norm(ut))∈R256z_{t}^{\ell}=\mathrm{Norm}\big(P^{\ell}\,\mathrm{Norm}(u_{t})\big)\in\mathbb{R}^{256}, where PℓP^{\ell} is a learned per-layer projection and utu_{t} is either the layer’s incoming residual stream htℓ−1h_{t}^{\ell-1} (residual-stream-conditioned) or the token embedding ht0h_{t}^{0} (input-conditioned). We then perform FiLM based QKV and/or MLP modulation with this signal. Everything else matches the Lattice: the same E1/L20/D1 split, the same zero-initialized FiLM heads on QKV (and optionally the MLP), and widths adjusted so that all models have ∼\sim406 M parameters; only the recurrence across timesteps is removed. All models are trained on 10B FineWeb-Edu tokens with the Transformer recipe (App. A.4.1). Stateless modulation helps: input-conditioned QKV modulation lowers the Transformer’s perplexity from 16.9416.94 to 16.2916.29 (−3.8%-3.8\%), and conditioning on the raw embedding beats conditioning on the residual stream (16.6216.62), consistent with input injection helping the horizontal update. Recurrent conditioning helps more at matched parameters: with QKV modulation alone the Lattice reaches 15.9915.99 (−1.9%-1.9\% vs. the best stateless variant), and with QKV+MLP modulation 15.6315.63 (−4.2%-4.2\% vs. 16.3216.32), improving to 15.4915.49 with inj+vs. MLP modulation also helps only when the conditioning carries history: it slightly hurts both stateless variants but improves the Lattice from 15.9915.99 to 15.6315.63. These results are consistent with the hypothesis that the history accumulated in the horizontal latents, rather than extra conditioning capacity alone, drives most of the Lattice’s gain.

Short causal convolutions on the attention inputs let local context shape q,k,vq,k,v, similar in spirit to how the Lattice conditions attention on history. Static short convolutions, such as Canon layers (Allen-Zhu, 2026), mix each token’s representation with those of its few preceding tokens using learned, input-independent filters; dynamic short convolutions (Sieberling et al., 2026) instead generate the filter weights from the input. Fig. 11 compares them after 10B-token pretraining. A width-4 static depthwise convolution on q,k,vq,k,v adds only 0.280.28 M parameters to the Transformer and lowers perplexity from 16.9416.94 to 15.8715.87 (−6.3%-6.3\%); a width-4 dynamic convolution reaches 15.5215.52 with 5.85.8 M extra parameters. The Lattice matches dynamic convolution (15.4915.49) with 6.86.8 M fewer parameters, and the two are complementary: adding dynamic convolution to the Lattice lowers perplexity to 14.9914.99 (−3.4%-3.4\% vs. dynamic convolution alone). A convolution, static or dynamic, aggregates only a fixed window of recent tokens, whereas the horizontal latents carry history across the whole sequence through their recurrence, thus advances in parallelizable nonlinear updates could strengthen the Lattice further.

We finetune each 20B-token checkpoint on GSM8K-Aug (385,620385{,}620 problems), following the chain-of-thought (CoT) stage of Coconut (Hao et al., 2024): conditioned on the question, the model is trained with the next-token loss on the intermediate equation steps and the final answer, with question tokens masked from the loss. We sweep the learning rate separately for each model over {10−4,4×10−4,8×10−4}\{10^{-4},4\times 10^{-4},8\times 10^{-4}\}; 8×10−48\times 10^{-4} performs best for every model. All other settings are shared: AdamW with a learning rate that is constant after a linear warmup over the first 3%3\% of steps, wd 0.010.01, gradient clipping at 1.01.0, batch size 128128, bf16, and 44 epochs (1212K steps), with one run (seed 00) per model. J3 models use 3 Jacobi sweeps in both finetuning & decoding.

Table 5
ApproachGSM [-0.2ex]8KSVAMP [-0.2ex]1KMulti [-0.2ex]ArithASDivGSM [-0.2ex]Hard
400M-parameter models
Base-24L (dv=1024d_{v}=1024)29.728.474.041.66.4
LLLM (945,256)(945,256)44.542.090.851.410.8
LLLM (908,256)(908,256) re+vs43.642.687.752.010.0
LLLM J3 (945,256)(945,256)44.945.289.251.59.7
600M-parameter models
Base-24L (dv=1620d_{v}=1620)30.031.779.742.96.9
Base-40L (dv=1024d_{v}=1024)33.532.783.344.77.0
LLLM (1024,1024)(1024,1024)45.742.689.051.010.4
Table 5: Finetuned mathematical-reasoning Acc.
View original tableOriginal Table 5

We report accuracy on the GSM8K test set (1,3191{,}319 problems) and, without further training, on GSM-Hard (1,3191{,}319), MultiArith (600600), ASDiv (2,3052{,}305), and a 1,0001{,}000-problem SVAMP subset (SVAMP-1K). Table 5 evaluates how well the 20B-token-pretrained models transfer after finetuning on GSM8K-Aug. At the 400M scale, every LLLM variant outperforms the matched Base-24L Transformer across all five reasoning benchmarks.

LLLM(945,256)(945,256) J3 achieves the highest mean accuracy, improving from 36.0236.02 to 48.1048.10 (+12.08+12.08 points), and obtains the strongest GSM8K and SVAMP-1K results. The base-update model performs best on MultiArith and GSM-Hard, while input injection and vstream produce the best ASDiv accuracy; these differences among Lattice variants are small (at most 3.23.2 points). The trend persists at the 600M scale: LLLM(1024,1024)(1024,1024) outperforms the 609M Base-40L Transformer on every task and raises mean accuracy from 40.2440.24 to 47.7447.74 (+7.50+7.50 points), despite using slightly fewer parameters. These results show that gains from horizontal latent capacity transfer beyond pretraining perplexity to math reasoning. Finetuned accuracy is not determined by pretraining quality alone: Base-40L and LLLM(908,256)(908,256) with input-injection + vstream have the same FineWeb-Edu perplexity (14.4014.40) and nearly the same zero-shot average (47.3647.36 vs. 47.3847.38), yet differ by 10.110.1 points on GSM8K (33.533.5 vs. 43.643.6). Since each model is finetuned once, we do not interpret the small differences among Lattice variants; the gap to the Transformers is larger and consistent, with every Lattice model ahead of every Transformer baseline by at least 10.110.1 GSM8K points at both scales.

Figure 11
Figure 11: Short-Conv vs. Lattice Static and dynamic width-4 short convolutions on q,k,vq,k,v improve the Transformer; the Lattice matches dynamic convolution with fewer parameters, and the two compose: Lattice + dynamic convolution reaches 14.9914.99. Parameter counts are shown below the bars. FineWeb-Edu val perplexity, trained on 10B tokens. See App. A.3.1.

Figs. 12 and 13 show the per-state-budget nine-task averages summarized in Sec. 4.3. At each state budget and shot setting, the Lattice point is the best of input-injection + vstream and two vstream-only variants that reduce either dmodeld_{\mathrm{model}} or the FFN width; all variants are within 0.1%0.1\% of the pure model’s parameter count. Because this selection is post hoc, the gains should be read as those of the best coupling rather than of a single preselected one. The Lattice model is ahead in 29 of 30 pairs; the only regression is the hybrid at 128K in the five-shot setting (45.02→44.8045.02\rightarrow 44.80).

Figure 12
Figure 12: Zero-shot downstream accuracy of recurrent backbones. Nine-task average accuracy (%) of pure and Lattice Mamba2, GDN, and no-SWA GDN–Mamba2 hybrid models (∼\sim405M parameters, 10B FineWeb-Edu tokens) across native-state sizes. Lattice boosts pure backbone performance on the nine-task average results. See Sec. 4.3.
Figure 13
Figure 13: Five-shot downstream accuracy of recurrent backbones. Nine-task average accuracy (%) of pure and Lattice Mamba2, GDN, and no-SWA GDN–Mamba2 hybrid models (∼\sim405M parameters, 10B FineWeb-Edu tokens) across native-state sizes. Lattice boosts pure backbone performance on the nine-task average results. See Sec. 4.3.

The fixed value residual of Fig. 3 mixes the first-layer and current values with constant weights of 0.50.5; here we learn these weights (App. A.4.2). Fig. 14 reports validation FineWeb-Edu perplexity after 20B tokens. Learning the weights improves on the fixed mix, e.g., Transformer + value 14.69→14.5814.69\to 14.58, Lattice + value 14.26→14.1314.26\to 14.13. Across all four configurations of Fig. 14, the Lattice lowers perplexity by 3.03.0–7.0%7.0\%. On top of HC + x0, however, learned value residuals add little: −0.3%-0.3\% for the Transformer (14.22→14.1814.22\to 14.18) and none for the Lattice (13.61→13.6213.61\to 13.62). Lattice + HC + x0 therefore remains the best model overall.

Unless otherwise noted, all models use the same training recipe; only model width and depth, token budget, and Lattice-specific settings vary across runs.

We build on a LLaMA-style decoder with the GPT-NeoX tokenizer (vocabulary size V=50,304V=50{,}304). Layers use pre-RMSNorm (ϵ=10−5\epsilon=10^{-5}), rotary position embeddings (RoPE) with a context length of 20482048, SwiGLU MLPs with intermediate size 27522752, and an untied output head. Attention uses 1616 query heads and 1616 key/value heads, each of dimension 6464, so the attention width (16×64=102416\times 64=1024) is fixed and decoupled from the residual-stream (vertical-latent) width dmodeld_{\mathrm{model}}. We vary dmodeld_{\mathrm{model}} ∈{256,512,908,932,945,1024,… }\in\{256,512,908,932,945,1024,\dots\} and the depth N∈{22,24,40}N\in\{22,24,40\} to sweep model size. Input embeddings are scaled by dmodel\sqrt{d_{\mathrm{model}}}. Backbone attention and MLP projections have no biases, and all weights not listed below use the standard N(0,0.022)\mathcal{N}(0,0.02^{2}) initialization.

We use AdamW with β1=0.9\beta_{1}{=}0.9, β2=0.95\beta_{2}{=}0.95, weight decay 0.10.1, and gradient-norm clipping at 1.01.0. Weight decay is not applied to biases, to the gains of the backbone RMSNorm layers, or, following Mamba-2 practice, to the horizontal-latent decay parameters A_log\mathrm{A\_log} and dt_bias\mathrm{dt\_bias}; all other parameters, including the learned initial state r0r_{0} and the normalization gains inside the Lattice update, are decayed. All Lattice injection maps—the FiLM γ/β\gamma/\beta projections, input-injection and vstream maps, Jacobi refiner’s output projection, and output-head carry projection—are zero-initialized. Consequently, the Lattice model is functionally identical to a plain Transformer of the same width and depth at initialization, and the horizontal latent acquires influence only through training.

The peak learning rate is 1×10−31\times 10^{-3} and is decayed with a cosine schedule to a floor of 10%10\% of the peak (cosine_with_min_lr, min_lr_rate=0.1\texttt{min\_lr\_rate}{=}0.1), following a linear warmup over the first 2%2\% of training steps. We tuned the peak learning rate by grid search for both the Transformer and Lattice backbones.

We use a global batch size of 512512 sequences of length 20482048 (≈1.05\approx 1.05M tokens per step), realized with a per-device batch size of 88 and gradient accumulation of 88 across 88 GPUs. Token budgets correspond to 9,5379{,}537 steps for 10B tokens, 19,07419{,}074 for 20B, and 28,61128{,}611 for 30B.

Training uses bfloat16 mixed precision, FlashAttention-2, and gradient checkpointing; attention inside Lattice layers uses PyTorch’s fused scaled-dot-product attention. For numerical stability, the diagonal gated-linear carry scan and its FiLM application are computed in fp32.

Figure 14
Figure 14: Lattice of Latents vs. prior residual-stream enhancements: learned value residuals. Complementing Fig. 3, we add learned value residuals (“value”), alone and on top of HC + x0, for Transformers (gray) and LLLMs (red). The Lattice lowers perplexity in every configuration (3.03.0–7.0%7.0\%). FineWeb-Edu validation perplexity, ∼\sim400M models, trained on 20B tokens. See Appendix Sec. A.4.2 for details on the learned value residual.

We pretrain on FineWeb-Edu, pre-tokenized with the NeoX tokenizer and packed into contiguous 20482048-token sequences (10B-, 20B-, and 30B-token subsets). Perplexity is reported on a deduplicated, contamination-checked, held-out FineWeb-Edu split, and out-of-domain perplexity on Pile, LAMBADA, and Nemotron-CC (Sec. 4.1).

An LLLM is specified by its early/Lattice/late split E/L/DE/L/D (e.g., E1/L20/D1E1/L20/D1 or E4/L16/D4E4/L16/D4, with horizontal latents only in the LL block), the horizontal-latent width drd_{r} (256256 for the 400M models; dr=dmodeld_{r}{=}d_{\mathrm{model}} for LLLM(512,512)(512,512) and LLLM(1024,1024)(1024,1024)), groupwise FiLM in which each attention head shares its multiplicative gain (γ\gamma) across 44 channel groups, and the number of Jacobi sweeps J∈{0,3}J\in\{0,3\}.

Table 6
HyperparameterValue
OptimizerAdamW (β1=0.9, β2=0.95\beta_{1}{=}0.9,\ \beta_{2}{=}0.95)
Weight decay0.10.1 (none on biases/backbone norms/A_log\mathrm{A\_log}/dt_bias\mathrm{dt\_bias})
Peak LR / floor1×10−31\times 10^{-3} / 10%10\% of peak
LR schedulecosine-with-min-lr, 2%2\% linear warmup
Grad clip1.01.0
Global batch / seq. length512512 / 20482048 (≈1.05\approx 1.05M tokens/step)
Per-device batch ×\times grad-accum.8×88\times 8 on 88 GPUs
Steps (10B/20B/30B tokens)9,5379{,}537 / 19,07419{,}074 / 28,61128{,}611
Precisionbf16 (carry scan/FiLM in fp32), FlashAttention-2/SDPA
Vocab. / context50,30450{,}304 / 20482048
Heads (QQ/KVKV) ×\times head dim.16/16×6416/16\times 64 (attention width 10241024)
MLP intermediate27522752 (SwiGLU)
Embedding scaledmodel\sqrt{d_{\mathrm{model}}}
Table 6: Training hyperparameters shared across all runs unless otherwise noted.
View original tableOriginal Table 6

Fig. 3 (Sec. 4.2) compares ten 400M models trained on 20B FineWeb-Edu tokens (19,07419{,}074 steps) with the Transformer recipe above, changing only the residual stream. The seven Transformer variants (plain, +HC, +mHC, +value, +x0, +HC + x0, +x0 + value) use the 24-layer, dmodel=1024d_{\mathrm{model}}{=}1024 model. The three Lattice variants (+Lattice, +Lattice + HC, +Lattice + HC + x0) use the vstream-only configuration (E1/L20/D1, dmodel=932d_{\mathrm{model}}{=}932, dr=256d_{r}{=}256, no input injection), narrowed to stay iso-parameter with the Transformer. Fig. 14 (App. A.3.3) adds four runs with learned value residuals, two Transformers and their Lattice counterparts.

Following nanochat (Karpathy, 2025), we compute h0=RMSNorm(scaled token embedding)h^{0}=\mathrm{RMSNorm}(\text{scaled token embedding}) once, without a learned gain, and before every layer ℓ\ell (early, Lattice, and late) set h←λrℓh+λ0ℓh0h\leftarrow\lambda_{r}^{\ell}h+\lambda_{0}^{\ell}h^{0}. The 2N2N scalars are initialized linearly in depth, λ0ℓ=0.20−0.15 ℓ/(N−1)\lambda_{0}^{\ell}=0.20-0.15\,\ell/(N{-}1) and λrℓ=1.15−0.10 ℓ/(N−1)\lambda_{r}^{\ell}=1.15-0.10\,\ell/(N{-}1), and trained in separate AdamW groups: λ0\lambda_{0} at 25×25\times the base learning rate (2.5×10−22.5\times 10^{-2}) without weight decay, and λr\lambda_{r} at 0.25×0.25\times (2.5×10−42.5\times 10^{-4}) with weight decay 0.050.05; both follow the same warmup and cosine schedule.

In Fig. 3, we use the fixed (constant) ResFormer variant (Zhou et al., 2025): every layer after the first replaces its values with 12v1+12vℓ\tfrac{1}{2}v^{1}+\tfrac{1}{2}v^{\ell}, with no added parameters. The learned variant (all results in Fig. 14) instead uses αℓv1+βℓvℓ\alpha^{\ell}v^{1}+\beta^{\ell}v^{\ell}, with two unconstrained scalars per layer initialized to 0.50.5, adding 2(N−1)2(N{-}1) parameters (4646 for the Transformer, 4242 for the Lattice). Like the x0 scalars, αℓ\alpha^{\ell} is trained at 25×25\times the base learning rate without weight decay, and βℓ\beta^{\ell} at 0.25×0.25\times with decay 0.050.05.

HC (Zhu et al., 2025) and mHC (Xie et al., 2026) use n=4n{=}4 residual streams, each initialized with a copy of the token embedding and summed before the final RMSNorm. Each attention and MLP sub-layer has its own router with three sets of weights: read weights that mix the nn streams into the sub-layer input, write weights that distribute the sub-layer output back to the streams, and an n×nn\times n mixing matrix that recombines the streams. In HC, following the dynamic formulation of Zhu et al. (2025) (App. J), each weight is a static term plus a token-dependent term computed from the LayerNorm-normalized streams. The static terms are initialized so that each sub-layer reads from one stream and the mixing matrix is the identity; the token-dependent terms are zero-initialized and scaled by learnable gates initialized to 0.010.01. The attention and MLP output projections are scaled by 1/n=0.51/\sqrt{n}=0.5 at initialization. In mHC, following Xie et al. (2026) (Eqs. 7–9), a single linear map of the RMS-normalized, flattened streams produces all three: read weights σ(⋅)\sigma(\cdot), write weights 2σ(⋅)2\sigma(\cdot), and mixing logits, which 2020 Sinkhorn–Knopp iterations project toward a doubly stochastic matrix. The static biases are zero for the read and write weights and the identity for the mixing logits. In both, the static router weights are excluded from weight decay.

We combine the Lattice with HC: each Lattice layer keeps a single horizontal latent, shared by all four streams, which reads the attention router’s mixed input and steers the attention and MLP exactly as in the single-stream model. The horizontal latent does not modulate the HC read, write, or mixing weights; we leave this to future work. Parameter counts are 406.65406.65 M (Transformer), 407.03407.03 M (HC), 411.36411.36 M (mHC), 405.52405.52 M (Lattice), and 405.85405.85 M (Lattice + HC); x0 adds only 2N2N scalars, the fixed value residual none, and the learned value residual 2(N−1)2(N{-}1).

Table 7
Native state16K32K64K128K256K
GDN (H,dk,dv)(H,d_{k},d_{v})16,16,6416,16,6416,32,6416,32,6416,64,6416,64,648,128,1288,128,1284,256,2564,256,256
dmodeld_{\mathrm{model}} pure / Lattice1120/9981120/9981086/9631086/9631024/8981024/8981024/8991024/8991024/9001024/900
Mamba2 (H,dstate,dhead)(H,d_{\mathrm{state}},d_{\mathrm{head}})16,16,6416,16,6416,32,6416,32,6416,64,6416,64,6416,128,6416,128,644,256,2564,256,256
dmodeld_{\mathrm{model}} pure / Lattice1155/10361155/10361153/10341153/10341148/10291148/10291139/10191139/10191122/10031122/1003
Hybrid dmodeld_{\mathrm{model}} pure / Lattice1137/10281137/10281118/10081118/10081082/9711082/9711079/9691079/9691071/9611071/961
Table 7: Recurrent-backbone geometries and widths. Native state per mixer and residual width of the pure and input-injection + vstream Lattice models (all ∼\sim405M parameters). Hybrid GDN and Mamba2 mixers use the GDN and Mamba2 geometries of the same column. Triadic GDN pairs use joint geometries (H,Edk,dv)=(16,16,64)(H,Ed_{k},d_{v})=(16,16,64), (16,32,64)(16,32,64), (16,64,64)(16,64,64), (32,64,32)(32,64,32), (16,128,64)(16,128,64), and (8,256,128)(8,256,128).
View original tableOriginal Table 7

All recurrent models (Sec. 4.3) are attention-free stacks of 2222 pre-RMSNorm layers, each a token mixer followed by a SwiGLU MLP (intermediate size 27522752), with the GPT-NeoX vocabulary (V=50,304V=50{,}304), untied embeddings, and no positional encoding. All mixers run on the Triton kernels of the flash-linear-attention library (fla, v0.4.1)2^{2}. Baseline and Lattice models share the same mixer code; the Lattice versions only add the steering described below. Native-state geometries and widths are listed in Tab. 7.

We use fla’s GatedDeltaNet layer (Yang et al., 2025) unchanged: short causal convolutions on q,k,vq,k,v, in-kernel L2L_{2} normalization of qq and kk, per-head decay α\alpha and write strength β\beta, a gated output RMSNorm, and the chunked training kernel. The state per head is dk×dvd_{k}\times d_{v}, varied through the number of heads HH and the per-head key and value dimensions.

We implement the Mamba-2 SSD layer (Dao and Gu, 2024) on fla’s chunk_simple_gla kernel rather than the mamba_ssm package: a joint input projection to [z, xBC, Δ][z,\,xBC,\,\Delta], a size-4 depthwise causal convolution with SiLU on xBCxBC, a scalar per-head decay ΔA\Delta A with A=−exp⁡(Alog⁡)A=-\exp(A_{\log}) and Alog⁡A_{\log} initialized to log⁡(1,…,H)\log(1,\dots,H), values xΔx\Delta, a DD skip connection, a zz-gated RMSNorm, and the standard log-uniform Δ\Delta-bias initialization on [10−3,10−1][10^{-3},10^{-1}]. The inner width is H⋅dhead=1024H\cdot d_{\mathrm{head}}=1024 with one B/CB/C group, and the state per head is dstate×dheadd_{\mathrm{state}}\times d_{\mathrm{head}}.

The official triadic linear attention kernels support only a per-head key dimension of 128128 on Hopper/Blackwell GPUs and provide no fallback, so we reimplement the layer inside our GDN stack. Each head writes with the joint key κ=k2⊗k\kappa=k_{2}\otimes k and reads with the joint query π=q2⊗q\pi=q_{2}\otimes q, where k,q∈Rdkk,q\in\mathbb{R}^{d_{k}} are L2L_{2}-normalized GDN-style factors and k2,q2∈REk_{2},q_{2}\in\mathbb{R}^{E} (E=2E{=}2 slices) are L2L_{2}-normalized softplus projections of the input. The recurrence is the standard gated delta rule on the joint key dimension EdkEd_{k}, computed with fla’s chunk_gated_delta_rule. Our one simplification relative to the original is a scalar per-head decay shared across slices.

We follow the Gated DeltaNet-H2 layout (Yang et al., 2025) with only GDN and Mamba layers: 1111 blocks of [Mamba2, MLP, GDN, MLP], i.e., 2222 mixers. Its Mamba2 and GDN layers are the same as in the pure backbones above.

Each Lattice layer adds the same horizontal-latent update as in the Transformer, with dr=256d_{r}=256, input injection, and vstream. The pure GDN, Mamba2, and Triadic GDN backbones use E1/L20/D1, so 2020 of the 2222 mixer layers carry a latent. The hybrid applies the same split at the level of its 1111 blocks (E1/L9/D1): each of the 99 Lattice blocks gives its Mamba2 mixer and its GDN mixer their own latent, for 1818 latents in total. Instead of attention, the latent steers the mixer by FiLM, x←x⊙(1+tanh⁡γ)+βx\leftarrow x\odot(1+\tanh\gamma)+\beta, applied to every quantity that controls native-memory writes and reads: for GDN, q,k,vq,k,v (after the short convolution and before L2L_{2} normalization), the decay and write-strength logits (before softplus and sigmoid), and the output-gate input; for Mamba2, CC, BB, xx (the analogues of q,k,vq,k,v), the per-head Δ\Delta logit (before softplus), and zz; for Triadic GDN, additionally the k2,q2k_{2},q_{2} logits before softplus. The MLPs, the output head, and the native-state geometry are unchanged, and all FiLM maps are zero-initialized, so each Lattice model equals its pure counterpart of the same width at initialization. To keep each pair iso-parameter, we reduce dmodeld_{\mathrm{model}} of the Lattice model (Tab. 7). The two vstream-only variants used for downstream selection have no input injection and instead either reduce dmodeld_{\mathrm{model}} at FFN width 27522752 or keep dmodel=1024d_{\mathrm{model}}{=}1024 and reduce the FFN width.

All recurrent runs use a standalone PyTorch DDP trainer on 88 GPUs with the Transformer recipe above (AdamW, peak learning rate 10−310^{-3}, cosine decay to 10%10\%, weight decay 0.10.1, clipping 1.01.0, global batch 512×2048512\times 2048, 9,5379{,}537 steps ≈\approx 10B FineWeb-Edu tokens, bfloat16, gradient checkpointing, seed 4242), with two differences: linear warmup over the first 10%10\% of steps, and weight decay applied only to matrices other than the token embedding (no decay on embeddings, normalization gains, biases, r0r_{0}, Alog⁡A_{\log}, Δ\Delta/dt biases, or DD). Pure and Lattice models within each pair share this recipe exactly.