RACE: Rule-evolving Agentic Context Engineering
Abstract
Large language model agents can solve increasingly complex tool-using tasks, yet adapting them to specialized domains remains difficult when model weights are fixed and task-specific supervision is limited. Recent context optimization methods improve agents by updating external prompts or playbooks based on past executions. However, existing methods often either rewrite monolithic playbooks, which risks eroding domain knowledge, or accumulate new guidance in an append-only manner, which inflates context length and dilutes relevant guidance. We introduce RACE (Rule-evolving Agentic Context Engineering), a framework that reconceptualizes playbook maintenance as rule-level evolutionary optimization: each rule is treated as an individual with empirically estimated utility, and the playbook evolves through principled variation, evaluation, and selection. Concretely, tree-structured rollouts expose contrastive behavioral evidence across execution branches for extracting reusable rule-level insights, an Upper Confidence Bound (UCB)-guided leave-out valuation estimates each rule's empirical utility, and a gated protocol ensures that only beneficial edits survive. We evaluate RACE on three specialized tasks: our newly introduced GDVBench, a benchmark grounded in Gene-Disease Validity curation that requires agents to extract experimental evidence from scientific papers following expert-defined criteria; biomedical search-based question answering, where agents retrieve evidence from biomedical sources to answer domain-specific questions; and retrosynthesis planning, where agents use an available product library and a single-step retrosynthesis model to construct feasible synthesis routes. Across these tasks, RACE improves task performance while maintaining compact guidance, yielding a favorable trade-off between performance and context length.
Create a lesson
Related papers
PandaProbe: Agents That Learn from Mistakes by Revising Their Own Rules
Shared title terminologycs.AISina Tayebati
SHARK: A Sequential Head for Agentic Roadmaps over Evolving ToolKits
Shared title terminologycs.AIShuquan Man, Huiping Zhuang
Agentic Aerospace Engineering Design Case Study Using GenAI Workbench
Shared title terminologycs.AIH. Sinan Bank, Daniel R. Herber
SKILLTIDE: Managing the Tencent Machine Learning Platform Agent with Evolving Skills
Shared title terminologycs.AIXiaokai Zhou, Qihang He, Keyao Ding et al.
AscendInfraBench: Benchmarking Coding Agents for Full-Lifecycle LLM Infrastructure Engineering on Ascend NPUs
Shared title terminologycs.AIZechao Chen, Sijie Wang, Zheng Bian et al.
Guardrailing in Context: How Agentic Behavior with Policy Design Protects Users in Context
Shared title terminologycs.AIRoya Pakzad, Daniel Nissani, Lauren Mushro et al.