MemPrice: Online Memory Allocation via Adaptive Pricing for Long-Horizon Agents
Yiming Zong, Shiyuan Piao, Jiashuo Jiang, Fugee Tsung
Key points
From the paper's conclusion- We show that irreversible compression can force linear worst-case regret against hindsight following its own memory trajectory, and introduce a same-state benchmark to evaluate allocation on MemPrice's realized memory states.
Abstract
Long-horizon LLM agents face a fundamental allocation problem as interaction histories grow: which information to retain, how much context to devote to it, and at what granularity. Existing memory mechanisms largely focus on relevance, retrieval, or compression, leaving this allocation trade-off implicit. We introduce MemPrice, which treats active context as a shared resource and dynamically allocates it across memories and representation levels. MemPrice turns accumulated memory pressure into an adaptive price on context, encouraging detail only when its estimated retention value justifies the additional footprint. This pressure persists across memory refreshes, allowing the contents of memory to evolve while preserving long-run control over context usage. We show that irreversible compression can force linear worst-case regret against hindsight following its own memory trajectory, and introduce a same-state benchmark to evaluate allocation on MemPrice's realized memory states. MemPrice enforces the hard context budget at every round and regulates long-run occupancy through adaptive pricing, without prior knowledge of the interaction horizon. Under priced-frontier regularity, its average allocation-regret bound against this benchmark vanishes when accumulated estimation error is sublinear. We evaluate the framework under matched memory budgets on LongMemEval, LoCoMo, AppWorld, and WebShop across three foundation models, spanning both query-blind memory construction and goal-directed agent context management.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- MemCredit: From Relevance to Utility for Decision-Time Memory in Long-Horizon Web AgentsarXiv · 2026
- FlexA-Mem: Budget-Adaptive Agentic Memory for LLM AgentsarXiv · 2026
- ContextPilot: Teaching Agents for Proactive Context Management via Fine-grained RLarXiv · 2026
- Forget Freely, Grep Later: Lossless, Index-Free Memory for Long-Horizon LLM AgentsarXiv · 2026
- Agent Memory as Recommendation: Recommender-System Design for Long-Term Memory of LLM AgentsarXiv · 2026
- LIMBO: Lifelong Inference-Time Memory and Budget Optimization for LLM AgentsarXiv · 2026