mlsanityData to 14 Oct 2026

Lattice: Learning to Efficiently Compress the Memory

arXiv 2504.05646 ↗First posted 8 Apr 2025cs.LG cs.AIcited by 19

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2016Layer Normalizationcited by 5,669
  6. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  7. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  8. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  9. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  10. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  11. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
  12. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
38 more
  1. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  2. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
  3. 2021ViViT: A Video Vision Transformercited by 1,620
  4. 2020Rethinking Attention with Performerscited by 1,601
  5. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  6. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  7. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
  8. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
  9. 2022In-context Learning and Induction Headscited by 964
  10. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
  11. 2020Efficient Transformers: A Surveycited by 790
  12. 2022Simplified State Space Layers for Sequence Modelingcited by 788
  13. 2020A Generalization of Transformer Networks to Graphscited by 661
  14. 2016Learning to learn by gradient descent by gradient descentcited by 620
  15. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
  16. 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 605
  17. 2016Weight Normalization: A Simple Reparameterization to Accelerate Training of Deep Neural Networkscited by 543
  18. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
  19. 2019Graph Transformer Networkscited by 523
  20. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
  21. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
  22. 2022On the Parameterization and Initialization of Diagonal State Space Modelscited by 424
  23. 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 408
  24. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
  25. 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
  26. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 355
  27. 2024Titans: Learning to Memorize at Test Timecited by 328
  28. 2024xLSTM: Extended Long Short-Term Memorycited by 327
  29. 2022Long Range Language Modeling via Gated State Spacescited by 265
  30. 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 242
  31. 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 208
  32. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
  33. 2022Transformer Quality in Linear Timecited by 191
  34. 2024The Illusion of State in State-Space Modelscited by 187
  35. 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 159
  36. 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 141
  37. 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 130
  38. 2024HGRN2: Gated Linear RNNs with State Expansioncited by 127

50 most cited of 70 All 70 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 11; 2026: 8.

19 papers.

Sort:

By area: