SyncAI.news, a Varaisys broadcasting
Search-Based Context Engineering for AI Agents: Optimizing Token Usage and Task Performance
AG

Alina Geiger, Lukas Twist, Giusy Annunziata, Ruizhen Gu, Franz Rothlauf, Dominik Sobania

· 1 min read

ResearcharXiv cs.AI

Search-Based Context Engineering for AI Agents: Optimizing Token Usage and Task Performance

arXiv:2612.02484v1 Announce Type: cross Abstract: LLM-based agents rely on tools to retrieve the information needed to solve complex tasks. However, every retrieved token enlarges the context, increasing cost and energy consumption. Context engineering addresses this trade-off, yet its design space is too large to explore manually, and existing search-based approaches optimize only isolated aspects of an agent rather than its entire context. To fill this gap, we approach context engineering as a multi-objective search problem and use NSGA-II with accuracy and token usage as objectives to simultaneously optimize an agent's system prompt, its tool-call budget, and the parameters controlling how much content its tools return. We evaluate our approach with two open-weight LLMs on fact verification and question-answering benchmarks against the baseline configuration. On fact verification, NSGA-II finds configurations that reduce token usage by 8%-27% without any significant loss in accuracy. On question answering, token usage is reduced by up to 23%, and in most cases NSGA-II again finds configurations that reduce token usage without sacrificing accuracy. These results show that search-based optimization is an effective approach to design agents that are both accurate and efficient.

Original source

This story was published by arXiv cs.AI and written by Alina Geiger, Lukas Twist, Giusy Annunziata, Ruizhen Gu, Franz Rothlauf, Dominik Sobania. SyncAI.news shows a preview; the complete article is on the publisher's site.

Read the full story on arxiv.org

Similar News