EnSIMem: Entity-Structured Indexing for Long-Term Agent Memory

Xuanyu Meng, Xing Fan, Xinyi Fan, Chenlei Guo, Yixuan Xie +1 more
9/23/2026
1 citation
cs.AIcs.CL

Official code: RamonMeng/EnSIMem (0 stars, Python, last commit 2026-10-11).

Abstract

An agent that interacts with users over long periods must recall facts, preferences, events, and changes from a continuously growing interaction history. Existing memory systems often compress interactions into generic summaries or retrieve anonymous text chunks, making it difficult for an agent to identify the correct entity, property, and supporting evidence.

Show full abstract

We present EnSIMem, an entity-structured long-term memory architecture for an agent. During offline construction, the system organizes interactions into theme-coherent episodes and builds dialogue-grounded index entries of the form [entity][entity_type][property: value]. Each entry preserves its source turns, temporal information, and available multimodal fields. During online interaction, the agent's request is decomposed into evidence requirements whose properties are aligned with the memory index. Entity-property lookup and adaptive retrieval then collect the evidence needed for point, temporal, compositional, and aggregation reasoning. The agent generates its response from the preserved source evidence rather than from lossy memory summaries. On long-term agent-memory benchmarks, EnSIMem achieves high answer accuracy while maintaining compact, evidence-focused contexts. These results show that entity-structured indexing and episode-level provenance provide a reliable foundation for long-term memory in agents. The code of our model is available at https://github.com/RamonMeng/EnSIMem.

View on arXivView PDF

Code Implementations(1)

RamonMeng/EnSIMemOfficial100%
00PythonSep 18, 20261 months ago

Similar Papers

Cite this paper

@article{meng2026ensimem,
  title  = {EnSIMem: Entity-Structured Indexing for Long-Term Agent Memory},
  author = {Xuanyu Meng and Xing Fan and Xinyi Fan and Chenlei Guo and Yixuan Xie and Jiawei Han},
  year   = {2026},
  eprint = {2609.27279},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.27279v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.27279.svg)](https://codeofpaper.com/paper/2609.27279)

Discussion