arXiv Computation and Language By Aoting Zeng, Yuxin Du, Jianwei Wang, Yizhang He, Shan Jiang, Xuemin Lin, Kai Wang

Memory as Code: Declarative Retrieval over Codified Long-Term Memory

Read the original on arXiv Computation and Language →

Memory as Code (MaC) introduces a unified memory framework that integrates memory construction and retrieval via a shared code abstraction. It builds a three‑layer executable memory structure—atomic functions, relational links, and modular compositions—and uses declarative retrieval to translate queries into structured programs. Experiments on LoCoMo and LongMemEval demonstrate up to 15.91% higher LLM‑judge accuracy and reduced token usage compared to leading baselines.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv Computation and Language.

arXiv Computation and Language
Oct 12

Test-Time Memory Construction

The paper introduces T$^2$Mem, a Test-Time Memory construction framework that defers memory building to inference, allowing large language models to adaptively retrieve and organize episode-level metadata and raw interactions during reasoning. By extracting lightweight metadata offline and progressively constructing query-specific memory at test time, T$^2$Mem reduces overhead and improves performance on long-horizon tasks. Experiments on LoCoMo and LongMemEval demonstrate consistent gains over strong baselines across various backbone LLMs.

By Zijun Wang, Yifan Ji, Haidong Xin, Zhenghao Liu, Yukun Yan, Zulong Chen, Yu Gu, Ge Yu, Maosong Sun
arXiv Computation and Language
Oct 28

TrawMem: Reframing Agent Memory as Task-Oriented Role-Adaptive Workspaces

TrawMem redefines agent memory systems as Task‑Oriented Role‑Adaptive Workspaces, selecting and organizing memories by their roles in task solving rather than mere relevance. It structures interaction histories into local threads and jointly selects complementary memories to build task‑specific workspaces. Experiments on LoCoMo and MemGallery show consistent macro‑F1 gains of 2.23–3.14 points and improved LLM‑Judge scores with fewer context tokens.

By Mingyu Zhang, Zixu Li, Zhiheng Fu, Zhiwei Chen, Jinhe Bi, Yupeng Hu
arXiv Computation and Language
3d ago

AtomMem: Building Simple and Effective Memory System for LLM Agents via Atomic Facts

AtomMem is a long‑term memory system for large language models that stores high‑value atomic facts extracted from long‑form interactions. It organizes these facts into hierarchical event structures and temporal profiles, enabling coherent episodic context and dynamic tracking of user attributes. During retrieval, an associative memory graph connects fragmented memories, and experiments on the LoCoMo benchmark show state‑of‑the‑art performance across reasoning tasks.

By Yanyu Yao, Shangze Li, Zhi Zheng, Hui Zheng, Qi Liu, Tong Xu, Enhong Chen
arXiv AI
Oct 9

Memory Type Varies: Empowering LLM Agents for Long-Term Memory with Diverse Strategies

The paper introduces TriMEM, a multi‑class memory dataset that annotates memory types across varied scenarios, and MemoType, a framework that uses a learned router to adaptively match memories and queries to appropriate retrieval strategies. MemoType’s tailored approach improves retrieval precision, and the authors theoretically show that a single strategy has a fundamental upper bound on expected precision in multi‑class corpora. Experiments on three datasets demonstrate MemoType consistently outperforms existing methods, achieving up to a 16.18% improvement in Recall@1.

By Yi Wen, Derong Xu, Pengyue Jia, Yichao Wang, Yingyi Zhang, Maolin Wang, Junyi Li, Wenlin Zhang, Xiaopeng Li, Yong Liu, Xiangyu Zhao