跳到正文
arXiv cs.AI· Alina Geiger, Lukas Twist, Giusy Annunziata, Ruizhen Gu, Franz Rothlauf, Dominik Sobania·· 3 天前AI 评分38

基于 NSGA-II 搜索的 AI 智能体上下文工程:优化 token 用量与任务表现

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

AI 导读

该 arXiv 论文将 LLM 智能体的上下文工程建模为多目标搜索问题,用 NSGA-II 同时优化系统提示词、工具调用预算和工具返回内容量。在事实核查与问答基准上,用两个开源权重 LLM 评测,事实核查任务 token 用量降低 8%-27% 且准确率无明显损失,问答任务 token 用量最多降低 23%。

正文 · 原文

View PDF HTML (experimental)

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.
Subjects: Neural and Evolutionary Computing (cs.NE); Artificial Intelligence (cs.AI)
Cite as: arXiv:2612.02484 [cs.NE]
  (or arXiv:2612.02484v1 [cs.NE] for this version)
  https://doi.org/10.48550/arXiv.2612.02484

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Alina Geiger [view email]
[v1] Wed, 25 Nov 2026 10:54:46 UTC (606 KB)

来源:arXiv cs.AI · arxiv.org