FlexA-Mem: Budget-Adaptive Agentic Memory for LLM Agents
On the map: LLM agents and tool use → Agent memory systems
Abstract (arXiv)
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
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 45 of its 63 references that are in the map. Submitted 23 Oct 2026.
Builds on
45 of 63 references.
Closest ancestors · 20
Same direction, newest first
- 2026The Compaction Cliff in Long-Running AI Agent Memory24 Aug
- 2026What Does Context Compression Cost an Agent? Interaction Costs Unrevealed by Task-Completion Metrics17 Aug
- 2026Retain or Consolidate? Budget-Dependent Operator Selection for Language Agent Memory20 Jul
- 2026Token Reduction Is Not Cost Reduction13 Jul
- 2026ACE: Pluggable Adaptive Context Elasticizer across Agents30 Jun
- 2026MemGym: a Long-Horizon Memory Environment for LLM Agents20 May
- 2026Useful Memories Become Faulty When Continuously Updated by LLMs13 May
- 2026Memex(RL): Scaling Long-Horizon LLM Agents via Indexed Experience Memory4 Mar
- 2025General Agentic Memory Via Deep Research23 Nov
- 2025AgentFold: Long-Horizon Web Agents with Proactive Context Management28 Oct
- 2025Memory as Action: Autonomous Context Curation for Long-Horizon Agentic Tasks14 Oct
- 2025Scaling Long-Horizon LLM Agent via Context-Folding13 Oct
8 more
- 2025ACON: Optimizing Context Compression for Long-horizon LLM Agents1 Oct
- 2025What Deserves Memory: Adaptive Memory Distillation for LLM Agents5 Aug
- 2025Git Context Controller: Manage the Context of LLM-based Agents like Git30 Jul
- 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents18 Jun
- 2025From Single to Multi-Granularity: Toward Long-Term Memory Association and Selection of Conversational Agents26 May
- 2025A-MEM: Agentic Memory for LLM Agents17 Feb
- 2025Zep: A Temporal Knowledge Graph Architecture for Agent Memory20 Jan
- 2024A Human-Inspired Reading Agent with Gist Memory of Very Long Contexts15 Feb
Other references · 25
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,841
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 876
- 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 589
- 2024AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agentscited by 510
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 500
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 397
- 2025LightMem: Lightweight and Efficient Memory-Augmented Generationcited by 222
- 2023Chain-of-Note: Enhancing Robustness in Retrieval-Augmented Language Modelscited by 191
- 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agentscited by 183
13 more
- 2025On Memory Construction and Retrieval for Personalized Conversational Agentscited by 118
- 2023SCM: Enhancing Large Language Model with Self-Controlled Memory Frameworkcited by 103
- 2024From Isolated Conversations to Hierarchical Schemas: Dynamic Tree Memory Representation for LLMscited by 87
- 2025The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Managementcited by 73
- 2025Reducing Cost of LLM Agents with Trajectory Reductioncited by 66
- 2025Context as a Tool: Context Management for Long-Horizon SWE-Agentscited by 56
- 2025The OpenHands Software Agent SDK: A Composable and Extensible Foundation for Production Agentscited by 55
- 2026Learning Personalized Agents from Human Feedbackcited by 28
- 2025Sculptor: Empowering LLMs with Cognitive Agency via Active Context Managementcited by 23
- 2026The Missing Memory Hierarchy: Demand Paging for LLM Context Windowscited by 12
- 2026An Empirical Study of Harness Design for Coding Agentscited by 12
- 2025Adaptive Focus Memory for Language Modelscited by 7
- 2026AttnCompress: Dynamic Attention-Guided Trajectory Compression for Software Engineering Agentscited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026MemFit: Efficient Long-Term Agentic Memory
- 2026MemRefine: LLM-Guided Compression for Long-Term Agent Memory
- 2024On the Structural Memory of LLM Agents
- 2026Lightweight LLM Agent Memory with Small Language Models
- 2025Rethinking Memory in LLM based Agents: Representations, Operations, and Emerging Topics
- 2026DimMem: Dimensional Structuring for Efficient Long-Term Agent Memory
- 2025MemR3: Memory Retrieval via Reflective Reasoning for LLM Agents
- 2026Zero-Mem: Zero-Token Memory Operations for LLM Agents