mlsanityData to 14 Oct 2026

Latest Exact Match Attention

arXiv 2609.25802 ↗First posted 22 Sep 2026cs.LG cs.CC cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

We introduce latest exact match attention (LEMA), an attention variant for transformers where queries and keys are binarized and each query attends only to the latest exactly matching key. We prove that LEMA transformers with chain of thought can simulate word-RAMs, as was recently shown for the less restrictive rightmost hard attention. In contrast to prior hard attention variants, the restriction to exact matches enables an efficient converse direction: word-RAMs can simulate LEMA transformers at a cost per token independent of the context length. Together, these results yield a close correspondence between the two computational models in terms of both compute and memory. Beyond the theory, we propose a training method for LEMA transformers that handles their non-differentiable operations with a straight-through estimator for the binarization and a soft attention surrogate annealed towards LEMA. On a synthetic associative recall task, LEMA models trained this way use their growing state to store and recall a large number of associations, outperforming gated DeltaNet (GDN) with its fixed state size. As a first scaling test, we train LEMA language models with up to 834 million parameters. They match softmax transformers of around half their size in loss and, on repeated rare phrases and a needle-retrieval task, remain behind softmax transformers but recall across longer distances than GDN models of comparable size. Finally, we implement dictionary-based inference for LEMA transformers and show constant generation speed comparable to GDN despite their growing state, with the dictionaries residing in main memory rather than VRAM. Code is available at https://github.com/moritzbroe/latest_exact_match_attention.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 41 of its 101 references that are in the map. First posted on arXiv 22 Sep 2026.

Builds on

41 of 101 references.

References · 41

  1. 2022Training Compute-Optimal Large Language Modelscited by 3,019
  2. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  3. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,079
  4. 2020GLU Variants Improve Transformercited by 1,804
  5. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  6. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
  7. 2022In-context Learning and Induction Headscited by 964
  8. 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 815
  9. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
  10. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
  11. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
  12. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 355
29 more
  1. 2024Titans: Learning to Memorize at Test Timecited by 328
  2. 2023Effective Long-Context Scaling of Foundation Modelscited by 303
  3. 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 232
  4. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
  5. 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 198
  6. 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
  7. 2024An Empirical Study of Mamba-based Language Modelscited by 186
  8. 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 166
  9. 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 116
  10. 2016Binarized Neural Networks: Training Deep Neural Networks with Weights and Activations Constrained to +1 or -1cited by 105
  11. 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 86
  12. 2025InftyThink: Breaking the Length Limits of Long-Context Reasoning in Large Language Modelscited by 54
  13. 2023Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languagescited by 49
  14. 2024Memory Layers at Scalecited by 48
  15. 2023Learning Transformer Programscited by 41
  16. 2025Log-Linear Attentioncited by 40
  17. 2015Neural Random-Access Machinescited by 34
  18. 2025PENCIL: Long Thoughts with Short Memorycited by 33
  19. 2025The Markovian Thinker: Architecture-Agnostic Linear Scaling of Reasoningcited by 13
  20. 2026Fast-weight Product Key Memorycited by 13
  21. 2026Sparse Delta Memory: Scaling the State of Linear RNNs through Sparsitycited by 9
  22. 2025Revisiting associative recall in modern recurrent modelscited by 8
  23. 2026A Hippocampus for Linear Attention: An Exact Memory for What the Recurrent State Forgetscited by 6
  24. 2025Fast attention mechanisms: a tale of parallelismcited by 3
  25. 2026The Expressive Power of Low Precision Softmax Transformers with (Summarized) Chain-of-Thoughtcited by 3
  26. 2025Hamming Attention Distillation: Binarizing Keys and Queries for Efficient Long-Context Transformerscited by 2
  27. 2026Remembering Distinct Items, Not Tokens: A Learnable Dirichlet-Process Cache Between State-Space Models and Attentioncited by 2
  28. 2026BinaryAttention: One-Bit QK-Attention for Vision and Diffusion Transformerscited by 1
  29. 2026Efficiently Representing Algorithms With Chain-of-Thought Transformerscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026MAC-Attention: a Match-Amend-Complete Scheme for Fast and Accurate Attention Computation
  2. 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer
  3. 2023SEA: Sparse Linear Attention with Estimated Attention Mask
  4. 2026Interdomain Attention: Beyond Token-Level Key-Value Memory
  5. 2026SpotAttention: Plug-In Block-Sparse Routing for Pretrained Long-Context Transformers
  6. 2026Forget Attention: Importance-Aware Attention Is All You Need
  7. 2024Star Attention: Efficient LLM Inference over Long Sequences
  8. 2025AQUA: Attention via QUery mAgnitudes for Memory and Compute Efficient Inference in LLMs