Latent Lattice Language Models shivamduggal4.github.io · 15 points · 3 comments ...
HN Best 200 @best
Latent Lattice Language Models shivamduggal4.github.io · 15 points · 3 comments · HN thread
TL;DR The page presents Lattice of Latents, a method that adds per-layer horizontal latent streams running recurrently across tokens alongside the usual vertical residual stream through depth. On 400M-parameter Transformers trained on 20B FineWeb-Edu tokens, a Lattice model lowers validation perplexity from 15.41 to 14.40 versus a parameter-matched Transformer, and gains are reported across Gated DeltaNet, Mamba-2 and hybrid variants.
- Adds per-layer horizontal latent streams that persist across tokens, distinct from the vertical residual stream that flows through depth.
- The latents directly condition attention, KV-cache writes, MLP computation and decoding, unlike hybrid SSM states that serve mainly as sequence-mixing memory.
- On a 406M Transformer trained on 20B FineWeb-Edu tokens, validation perplexity drops from 15.41 to 14.40 at matched parameter count.
- Combined with hyper-connections and input residuals, perplexity falls from 14.22 to 13.61 (15.41 for the base Transformer).
- Lattice models use 22 layers versus 40 for the Transformer, giving a 45% smaller KV cache at the same attention width.
- On recurrent backbones, Lattice-GDN and Lattice-Triadic-GDN beat pure baselines with 4x larger native states.
Discussion The thread is short, with three comments. One commenter places the idea as an extension of short convolutions in linear-attention models, carrying an exponential moving average over the whole sequence instead of the last four tokens, and argues the evaluation is too narrow: it stops at a 2k context and skips needle-in-haystack retrieval, where they expect an EMA to fail. Another asks a researcher-style question about whether a 0.98 perplexity drop is meaningful, and a third simply finds per-layer state as a scaling axis interesting. The mood is cautiously curious, with one skeptical technical objection.
- Evaluation too narrow; retrieval and long context untested (some): The commenter says the architecture should be tested on needle-in-haystack and beyond 2k context, since short-conv components exist to support exact retrieval. They predict failure on that task because an EMA cannot carry fine-grained information.
- Idea is essentially a short-conv variant with EMA (some): One commenter frames the Lattice as an extension of short-convolution state in linear attention, replacing a four-token window with a sequence-wide exponential moving average.
- Interesting new axis for scaling compute (a few): A commenter finds per-layer persistent state a novel way to scale computation, without elaborating on results or limitations.
- Unclear whether the perplexity gain is significant (a few): A self-identified researcher asks how meaningful a drop of about 1 perplexity point is, indicating the headline numbers need context.
#languageModels #architecture #recurrentState #perplexity #linearAttention