Metraipolis › archive › dc_2968fc74c7a5
LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Models — arXiv:2609.33268
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.33268
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T20:56:33.727Z
- SHA-256 of the archived text
b95c188e13becca637f319bf5505162f0e3ebd8fb3a1c99d6fd988297cd906a1- Stable URL of this page
https://metraipolis.com/documento/dc_2968fc74c7a5
How to cite
LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Models — arXiv:2609.33268 — arXiv (en), https://arxiv.org/abs/2609.33268 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_2968fc74c7a5 (Metraipolis archive dc_2968fc74c7a5, sha256 b95c188e13becca637f319bf5505162f0e3ebd8fb3a1c99d6fd988297cd906a1)
BibTeX
@misc{dc2968fc74c7a5,
title = {LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Models — arXiv:2609.33268},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.33268},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_2968fc74c7a5; sha256 b95c188e13becca637f319bf5505162f0e3ebd8fb3a1c99d6fd988297cd906a1},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.33268. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Large language models increasingly serve as long-horizon assistants and agents, where they must both accumulate information across interactions and make the relevant parts available when later requests depend on them. Existing compact online memories typically use a single persistent state both to accumulate history and to serve readout, so what the memory stores cannot be controlled separately from what it exposes to the current computation. We propose LSTMem, an LSTM-inspired online memory that instead equips each layer of a frozen LLM with two matrix-valued states: a cell state that accumulates history and a hidden state whose readouts correct the backbone's attention. Input and forget gates control what the cell stores, while an output gate separately controls what the cell exposes through the hidden state. LSTMem further connects memory across depth through forward hidden-state propagation and block-end feedback, and uses higher-layer reconstruction gradients to refine lower-layer cell states before rebuilding hidden states from shallow to deep layers. Across memory benchmarks on Qwen3-4B-Instruct, LSTMem consistently improves MemoryAgentBench, LoCoMo, and HotpotQA over the plain backbone. Comparisons further show that the LSTM-based memory formulation outperforms an associative-memory counterpart, while removing cross-layer hidden-memory propagation degrades performance. These results demonstrate the benefits of separating memory accumulation from memory expression and organizing memory hierarchically across model depth. The code is available at this https URL . Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-29 in cs.AI). Categorie arXiv: Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2609.33268 — 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-07T20:29:01.186Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-29?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).