cs.LGSep 12, 2026

LIMBO: Lifelong Inference-Time Memory and Budget Optimization for LLM Agents

Authors: Siddharth Sharma, Nilesh Prasad Pandey, Onat Gungor, Tajana Rosing

Organizations: University of California, San Diego, CA, USA · West Virginia University, Morgantown, WV, USA

Abstract

As LLM agents become integrated into increasingly complex workflows, they must continually acquire new capabilities while retaining competence on previously learned tasks. Lifelong agents address this through experience replay, injecting past interactions into the prompt to leverage prior experience during inference. However, replay is not free: every replayed trajectory competes with retrieval, reasoning, tool use, and verification for the same limited prompt and compute budget, making effective resource allocation essential. Existing approaches allocate these resources using fixed replay policies, regardless of whether replay is beneficial for the current task. We identify this as inference-time memory allocation, a distinct problem class for lifelong agents, and introduce LIMBO: the first online framework to our knowledge that treats memory as a controllable inference-time resource and jointly optimizes memory strategy and inference budget for each incoming task. Unlike prior approaches that fix the replay policy or require model weights, teacher supervision, or offline retraining, LIMBO learns this allocation online in a single pass, explicitly balancing task performance and inference cost without modifying the underlying agent. Across three LLM backbones on LifelongAgentBench, LIMBO achieves better cost-accuracy tradeoffs than state-of-the-art memory-augmented baselines and nearly matches all strongest such baselines at up to ~83% lower inference cost (~53% on average). LIMBO adapts its policy across models and environments without retraining, demonstrating that effective allocation can be learned online rather than manually specified.

Figures & tables

Explore similar work

CardsList
  1. Remembering Has a Price: Learning Memory Worth under Resource Constraints

    Oct 19, 2026Guannan Lai, Zi-Yang Bai, Jun-Peng Jiang +1Memory Management for LLM AgentsLifelong Learning Agents

  2. MemPilot: Orchestrating On-Demand Multimodal Memory Curation for LLM Agents

    Oct 5, 2026Haozhen Zhang, Haodong Yue, Quanyu Long +6LLM Agent MemoryLLM Memory

  3. Memory as a Controlled Process: Learned Adaptive Memory Management for LLM Agents

    Jul 15, 2026Eric Hanchen Jiang, Zhi Zhang, Yuchen Wu +11Persistent Memory for Language ModelsMemory Management for LLM Agents