FlexA-Mem: Budget-Adaptive Agentic Memory for LLM Agents
Wujiang Xu, Jiaojiao Han, Xi Zhu, Qizheng Zhang, Kaiqu Liang, Yutong Yin, Kai Mei, Dimitris N. Metaxas
Key points
From the paper's conclusion- We propose FlexA-Mem, a general memory that writes each unit of history once into an immutable store and renders a fresh memory for every call.
Abstract
Large language model (LLM) agents work in scenarios with very different memory needs. A question about past conversations needs the exact facts it names, while a multi-step task needs a trace of the steps already taken together with details that the next step cannot name. Existing memories are each designed and tested for one kind of scenario. Retrieval memories such as A-Mem miss steps that the current query does not express, summaries drop exact strings, and pairing the two fixes the split of the budget in advance. We propose FlexA-Mem, a general memory that writes each unit of history once into an immutable store and renders a fresh memory for every call. The rendered memory is a compact timeline of records plus detail that a fixed rule fits into the remaining room without an LLM call. The detail is either relevant units as raw text or excerpts or the verbatim pieces that best match the query. With one store, FlexA-Mem serves both kinds of scenario. On AppWorld challenge tasks at 4k, it outperforms the second-best method by 11.5%, and on 147 unused tasks with predictions fixed in advance it outperforms A-Mem with a summary by 12.2%. On LongMemEval and LoCoMo, it matches a dedicated keyword retriever that writes no memory, while memories built on text written by an LLM fall far behind at tight budgets. Ablations show that the timeline carries AppWorld completion, whereas recovery mainly saves steps there and decides accuracy on exact facts. Code is available at https://github.com/WujiangXu/Flex-Amem
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Leto: Utility-Centric Agent MemoryarXiv · 2026
- How Much Should an Agent Remember? Deployment Lessons from Self-Distilled Memory for LLM AgentsarXiv · 2026
- APDMem: Agent-Controlled Progressive Disclosure for Query-Adaptive Long-Term MemoryarXiv · 2026
- Agent Memory as Recommendation: Recommender-System Design for Long-Term Memory of LLM AgentsarXiv · 2026
- MemComposer: Learning to Assemble Memories for LLM Agents via Reinforcement LearningarXiv · 2026
- MemAgent: Learning to Manage Heterogeneous Memory Providers for LLM AgentsarXiv · 2026