Lattice: Learning to Efficiently Compress the Memory
Not on the map. Why?
Abstract (arXiv)
Attention mechanisms have revolutionized sequence learning but suffer from quadratic computational complexity. This paper introduces model, a novel recurrent neural network (RNN) mechanism that leverages the inherent low-rank structure of K-V matrices to efficiently compress the cache into a fixed number of memory slots, achieving sub-quadratic complexity. We formulate this compression as an online optimization problem and derive a dynamic memory update rule based on a single gradient descent step. The resulting recurrence features a state- and input-dependent gating mechanism, offering an interpretable memory update process. The core innovation is the orthogonal update: each memory slot is updated exclusively with information orthogonal to its current state, hence incorporating only novel, non-redundant data to minimize interference with previously stored information. We derive an efficient computation for this orthogonal update rule and further approximate it with chunk-wise parallelization to ensure training scalability. Empirically, Lattice outperforms strong baselines on language modeling and associative recall tasks across diverse context lengths and model sizes, achieving superior memory efficiency with significantly reduced memory sizes.
Key facts. Cited by 19 papers in the map (data through 14 Oct 2026). Builds on 70 of its 108 references that are in the map. First posted on arXiv 8 Apr 2025.
Builds on
70 of 108 references.
References · 70
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2016Layer Normalizationcited by 5,669
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
38 more
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
- 2021ViViT: A Video Vision Transformercited by 1,620
- 2020Rethinking Attention with Performerscited by 1,601
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
- 2022In-context Learning and Induction Headscited by 964
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
- 2020Efficient Transformers: A Surveycited by 790
- 2022Simplified State Space Layers for Sequence Modelingcited by 788
- 2020A Generalization of Transformer Networks to Graphscited by 661
- 2016Learning to learn by gradient descent by gradient descentcited by 620
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 605
- 2016Weight Normalization: A Simple Reparameterization to Accelerate Training of Deep Neural Networkscited by 543
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
- 2019Graph Transformer Networkscited by 523
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2022On the Parameterization and Initialization of Diagonal State Space Modelscited by 424
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 408
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 355
- 2024Titans: Learning to Memorize at Test Timecited by 328
- 2024xLSTM: Extended Long Short-Term Memorycited by 327
- 2022Long Range Language Modeling via Gated State Spacescited by 265
- 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 242
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 208
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
- 2022Transformer Quality in Linear Timecited by 191
- 2024The Illusion of State in State-Space Modelscited by 187
- 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 159
- 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 141
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 130
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 127
50 most cited of 70 All 70 (JSON)
Built on by
Citing papers per year: 2025: 11; 2026: 8.
19 papers.
Sort:
By area:
- 2025Test-Time Training Done Rightcited by 130
- 2025A Survey on Latent Reasoningcited by 81
- 2025ATLAS: Learning to Optimally Memorize the Context at Test Timecited by 66
- 2025It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimizationcited by 64
- 2026Scal3R: Scalable Test-Time Training for Large-Scale 3D Reconstructioncited by 31
- 2026In-Place Test-Time Trainingcited by 20
- 2025Cache What Lasts: Token Retention for Memory-Bounded KV Cache in LLMscited by 19
- 2026RoboTTT: Context Scaling for Robot Policiescited by 19
- 2025Comba: Improving Bilinear RNNs with Closed-loop Controlcited by 15
- 2026Test-Time Training with KV Binding Is Secretly Linear Attentioncited by 13
- 2025LoLA: Low-Rank Linear Attention With Sparse Cachingcited by 12
- 2026Spatial-TTT: Streaming Visual-based Spatial Intelligence with Test-Time Trainingcited by 11
7 more
- 2025TNT: Improving Chunkwise Training for Test-Time Memorizationcited by 8
- 2025SplatPainter: Interactive Authoring of 3D Gaussians from 2D Edits via Test-Time Trainingcited by 7
- 2025Trellis: Learning to Compress Key-Value Memory in Attention Modelscited by 5
- 2026Fast Spatial Memory with Elastic Test-Time Trainingcited by 3
- 2025MS-SSM: A Multi-Scale State Space Model for Efficient Sequence Modelingcited by 2
- 2026Rethinking Expressivity and Efficiency in Test-Time Trainingcited by 1
- 2026ADPTNet: Adaptive with Prescriptive Timescales Non-Linear SSM for Sequence Modellingcited by 0
- 2026ADPTNet: Adaptive with Prescriptive Timescales Non-Linear SSM for Sequence Modelling27 Sep 2026
- 2026Rethinking Expressivity and Efficiency in Test-Time Training21 Aug 2026
- 2026RoboTTT: Context Scaling for Robot Policies16 Jul 2026
- 2026Scal3R: Scalable Test-Time Training for Large-Scale 3D Reconstruction9 Apr 2026
- 2026Fast Spatial Memory with Elastic Test-Time Training8 Apr 2026
- 2026In-Place Test-Time Training7 Apr 2026
- 2026Spatial-TTT: Streaming Visual-based Spatial Intelligence with Test-Time Training12 Mar 2026
- 2026Test-Time Training with KV Binding Is Secretly Linear Attention24 Feb 2026
- 2025Trellis: Learning to Compress Key-Value Memory in Attention Models29 Dec 2025
- 2025MS-SSM: A Multi-Scale State Space Model for Efficient Sequence Modeling29 Dec 2025
- 2025SplatPainter: Interactive Authoring of 3D Gaussians from 2D Edits via Test-Time Training5 Dec 2025
- 2025Cache What Lasts: Token Retention for Memory-Bounded KV Cache in LLMs3 Dec 2025
7 more
- 2025TNT: Improving Chunkwise Training for Test-Time Memorization10 Nov 2025
- 2025A Survey on Latent Reasoning8 Jul 2025
- 2025Comba: Improving Bilinear RNNs with Closed-loop Control3 Jun 2025
- 2025Test-Time Training Done Right29 May 2025
- 2025ATLAS: Learning to Optimally Memorize the Context at Test Time29 May 2025
- 2025LoLA: Low-Rank Linear Attention With Sparse Caching29 May 2025
- 2025It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimization17 Apr 2025
- 2025A Survey on Latent Reasoningcited by 81
- 2026Rethinking Expressivity and Efficiency in Test-Time Trainingcited by 1
- 2026Rethinking Expressivity and Efficiency in Test-Time Training21 Aug 2026
- 2025A Survey on Latent Reasoning8 Jul 2025
- 2025Test-Time Training Done Rightcited by 130
- 2025Test-Time Training Done Right29 May 2025
- 2025ATLAS: Learning to Optimally Memorize the Context at Test Timecited by 66
- 2025It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimizationcited by 64
- 2026Scal3R: Scalable Test-Time Training for Large-Scale 3D Reconstructioncited by 31
- 2026In-Place Test-Time Trainingcited by 20
- 2026RoboTTT: Context Scaling for Robot Policiescited by 19
- 2025Comba: Improving Bilinear RNNs with Closed-loop Controlcited by 15
- 2026Test-Time Training with KV Binding Is Secretly Linear Attentioncited by 13
- 2025LoLA: Low-Rank Linear Attention With Sparse Cachingcited by 12
- 2026Spatial-TTT: Streaming Visual-based Spatial Intelligence with Test-Time Trainingcited by 11
- 2025TNT: Improving Chunkwise Training for Test-Time Memorizationcited by 8
- 2025SplatPainter: Interactive Authoring of 3D Gaussians from 2D Edits via Test-Time Trainingcited by 7
- 2025Trellis: Learning to Compress Key-Value Memory in Attention Modelscited by 5
12 most cited of 15 All 15 (JSON)
- 2026ADPTNet: Adaptive with Prescriptive Timescales Non-Linear SSM for Sequence Modelling27 Sep 2026
- 2026RoboTTT: Context Scaling for Robot Policies16 Jul 2026
- 2026Scal3R: Scalable Test-Time Training for Large-Scale 3D Reconstruction9 Apr 2026
- 2026Fast Spatial Memory with Elastic Test-Time Training8 Apr 2026
- 2026In-Place Test-Time Training7 Apr 2026
- 2026Spatial-TTT: Streaming Visual-based Spatial Intelligence with Test-Time Training12 Mar 2026
- 2026Test-Time Training with KV Binding Is Secretly Linear Attention24 Feb 2026
- 2025Trellis: Learning to Compress Key-Value Memory in Attention Models29 Dec 2025
- 2025MS-SSM: A Multi-Scale State Space Model for Efficient Sequence Modeling29 Dec 2025
- 2025SplatPainter: Interactive Authoring of 3D Gaussians from 2D Edits via Test-Time Training5 Dec 2025
- 2025TNT: Improving Chunkwise Training for Test-Time Memorization10 Nov 2025
- 2025Comba: Improving Bilinear RNNs with Closed-loop Control3 Jun 2025
12 newest of 15 All 15 (JSON)