Metraipolis › archive › dc_acde91831fa5
Latest Exact Match Attention — arXiv:2609.25802
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.25802
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-08T14:36:57.868Z
- SHA-256 of the archived text
f7776d89c20069b7454aeeaf7c9f1cadf4c1c021157412d2007d4e4582c43398- Stable URL of this page
https://metraipolis.com/documento/dc_acde91831fa5
How to cite
Latest Exact Match Attention — arXiv:2609.25802 — arXiv (en), https://arxiv.org/abs/2609.25802 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_acde91831fa5 (Metraipolis archive dc_acde91831fa5, sha256 f7776d89c20069b7454aeeaf7c9f1cadf4c1c021157412d2007d4e4582c43398)
BibTeX
@misc{dcacde91831fa5,
title = {Latest Exact Match Attention — arXiv:2609.25802},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.25802},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_acde91831fa5; sha256 f7776d89c20069b7454aeeaf7c9f1cadf4c1c021157412d2007d4e4582c43398},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.25802. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
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 this https URL . Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-23 in cs.CL). Categorie arXiv: Machine Learning (cs.LG) ; Computational Complexity (cs.CC); Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2609.25802 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-08T13:46:15.793Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-09-23?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).