ContextBudget: Budget-Aware Context Management for Long-Horizon Search Agents

Yong Wu, YanZhao Zheng, TianZe Xu, ZhenTao Zhang, YuanQiang Yu +7 more
4/2/2026
cs.AI

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

LLM-based agents show strong potential for long-horizon reasoning, yet their context size is limited by deployment factors (e.g., memory, latency, and cost), yielding a constrained context budget. As interaction histories grow, this induces a trade-off between retaining past information and staying within the context limit. To address this challenge, we propose Budget-Aware Context Management (BACM), which formulates context management as a sequential decision problem with a context budget constraint. It enables agents to assess the available budget before incorporating new observations and decide when and how much of the interaction history to compress. We further develop BACM-RL, an end-to-end curriculum-based reinforcement learning approach that learns compression strategies under varying context budgets. Experiments on compositional multi-objective QA and long-horizon web browsing benchmarks show that BACM-RL consistently outperforms prior methods across model scales and task complexities, achieving over $1.6\times$ gains over strong baselines in high-complexity settings, while maintaining strong advantages as budgets shrink, where most methods exhibit a downward performance trend.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wu2026contextbudget,
  title  = {ContextBudget: Budget-Aware Context Management for Long-Horizon Search Agents},
  author = {Yong Wu and YanZhao Zheng and TianZe Xu and ZhenTao Zhang and YuanQiang Yu and JiHuai Zhu and Chao Ma and BinBin Lin and BaoHua Dong and HangCheng Zhu and RuoHui Huang and Gang Yu},
  year   = {2026},
  eprint = {2604.01664},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.01664v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.01664.svg)](https://codeofpaper.com/paper/2604.01664)

Discussion