Metraipolis › archive › dc_091315ee3b3e
Lngram v2: Latent N-Gram Memory with Interpretable Discrete Representations — arXiv:2609.03426
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.03426
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-17T01:40:27.420Z
- SHA-256 of the archived text
9ac5aa03dd869f77d981d555e8edd6315db72796e1de2f6ff0921b0761f17684- Stable URL of this page
https://metraipolis.com/documento/dc_091315ee3b3e
How to cite
Lngram v2: Latent N-Gram Memory with Interpretable Discrete Representations — arXiv:2609.03426 — arXiv (en), https://arxiv.org/abs/2609.03426 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_091315ee3b3e (Metraipolis archive dc_091315ee3b3e, sha256 9ac5aa03dd869f77d981d555e8edd6315db72796e1de2f6ff0921b0761f17684)
BibTeX
@misc{dc091315ee3b3e,
title = {Lngram v2: Latent N-Gram Memory with Interpretable Discrete Representations — arXiv:2609.03426},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.03426},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_091315ee3b3e; sha256 9ac5aa03dd869f77d981d555e8edd6315db72796e1de2f6ff0921b0761f17684},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.03426. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Transformers lack a native lookup mechanism, requiring repeated dense computation to recognize and reuse local static patterns. Lngram v1 introduces tokenizer-independent conditional memory through discrete latent n-gram addressing, but its memory capacity is coupled with the backbone width, limiting scalability due to high parameter and activation costs. We propose Lngram v2, which decouples the number of routes, memory dimension, and backbone width, and introduces a context-aware grouped-query attention readout to scale memory capacity independently. A zero-value Sink and counterfactual surrogate gradients further improve readout selectivity and routing trainability while preserving hard discrete addressing. Experiments across vision--language models (VLMs) of different scales show consistent improvements, including successful scaling to a 30B-parameter model. Compared with Lngram v1, Lngram v2 substantially reduces both total and activated memory parameters while maintaining or improving language modeling performance. Further analysis shows that its discrete IDs preserve substantial semantic structure of continuous hidden states, enabling semantic recovery from IDs alone and stable ID--semantic associations across datasets. These results establish Lngram v2 as an efficient and scalable latent conditional memory mechanism whose discrete addresses also provide a structured interface for analyzing internal model representations. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-04 in cs.CL). Categorie arXiv: Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2609.03426 — 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-17T01:11:43.530Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-09-04?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).