Rethinking How to Remember: Beyond Atomic Facts in Lifelong LLM Agent Memory
Abstract
TriMem enables reliable long-term interaction for LLM agents by maintaining multiple memory representation granularities and using TextGrad-based prompt optimization for continuous improvement.
To enable reliable long-term interaction, LLM agents require a memory system that can faithfully store, efficiently retrieve, and deeply reason over accumulated dialogue history. Most existing methods adopt an extracted fact based paradigm: handcrafted static prompts compress raw dialogues into atomic facts, which are then stored, matched, and injected into downstream reasoning. Nevertheless, such fact-centric designs inevitably discard fine-grained details in original dialogues and fail to support deep reasoning over scattered isolated facts. Moreover, static prompts cannot maintain consistent extraction granularity across diverse dialogue styles. To address these limitations, we propose TriMem, which maintains three coexisting representation granularities, including raw dialogue segments anchored by source identifiers for storage fidelity, extracted atomic facts for efficient memory retrieval, synthesized profiles that aggregate dispersed facts into holistic semantic understanding for deep reasoning. We further adopt TextGrad-based prompt optimization, which iteratively refines extraction and profiling prompts via response quality feedback, achieving lifelong evolution without any parameter updating. Extensive experiments on LoCoMo and PerLTQA across multiple LLM backbones demonstrate that TriMem consistently outperforms strong memory baselines. The code is available at https://TMLR-TriMem.github.io .
Community
A three-granularity memory architecture · verbatim dialogue + atomic facts + synthesized profiles
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- MemORAI: Memory Organization and Retrieval via Adaptive Graph Intelligence for LLM Conversational Agents (2026)
- AnchorMem: Anchored Facts with Associative Contexts for Building Memory in Large Language Models (2026)
- RecMem: Recurrence-based Memory Consolidation for Efficient and Effective Long-Running LLM Agents (2026)
- HiGMem: A Hierarchical and LLM-Guided Memory System for Long-Term Conversational Agents (2026)
- Mitigating Provenance-Role Collapse in Long-Term Agents via Typed Memory Representation (2026)
- R^2-Mem: Reflective Experience for Memory Search (2026)
- MemMachine: A Ground-Truth-Preserving Memory System for Personalized AI Agents (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper