[Paper Review] Learning to Configure Agentic AI Systems
ARC learns a lightweight hierarchical RL policy to adapt per-query workflows, tools, budgets, and prompts for LLM-based agents, outperforming static designs and other baselines while reducing compute.
Configuring LLM-based agent systems involves choosing workflows, tools, token budgets, and prompts from a large combinatorial design space, and is typically handled today by fixed large templates or hand-tuned heuristics. This leads to brittle behavior and unnecessary compute, since the same cumbersome configuration is often applied to both easy and hard input queries. We formulate agent configuration as a query-wise decision problem and introduce ARC (Agentic Resource & Configuration learner), which learns a light-weight hierarchical policy using reinforcement learning to dynamically tailor these configurations. Across multiple benchmarks spanning reasoning and tool-augmented question answering, the learned policy consistently outperforms strong hand-designed and other baselines, achieving up to 25% higher task accuracy while also reducing token and runtime costs. These results demonstrate that learning per-query agent configurations is a powerful alternative to "one size fits all" designs.
Motivation & Objective
- Motivate the need for query-adaptive agent configurations to avoid brittle, one-size-fits-all setups.
- Formulate agent configuration as a query-wise decision problem amenable to reinforcement learning.
- Develop ARC, a hierarchical RL framework with a structure policy and a prompt policy to optimize workflows, tools, budgets, and prompts without retraining the backbone model.
- Provide a hybrid training pipeline combining masked RL and supervised fine-tuning to stabilize learning with sparse rewards.
- Empirically validate ARC across reasoning and tool-use benchmarks, showing improved accuracy and efficiency over baselines.
Proposed method
- Represent configuration as a two-level policy: a high-level structure policy selects workflows, tools, and budgets, and a low-level prompt policy composes instructions.
- Use a short episodic MDP where each episode configures and runs the agent system for a single query, with state derived from a fixed semantic-query embedding and simple query features.
- Train with PPO using a shaped reward that balances correctness and efficiency, including a tool-shaping term to align tool allocation with actual usage.
- Apply action masking to prune invalid configurations and reduce the effective action space.
- Perform post-training supervised fine-tuning (SFT) on elite trajectories to distill high-quality configurations, with theoretical guarantees on policy concentration.
- Provide a theoretical justification showing that SFT concentrates the policy on elite configurations and maintains a reward floor.

Experimental results
Research questions
- RQ1Can a learned query-adaptive configuration outperform fixed architectures and heuristic optimization baselines across reasoning and tool-use tasks?
- RQ2Does adaptive resource allocation reduce token usage and runtime while preserving or improving accuracy?
- RQ3How well do learned configurations transfer across tasks and model capacities, and what factors influence transfer?
- RQ4Does the combination of hierarchical RL with SFT provide stability and performance gains over non-hierarchical or single-objective methods?
Key findings
- ARC achieves up to 25% higher task accuracy and reduced token/runtime costs on multiple benchmarks compared to strong baselines.
- A two-level policy (structure and prompt) improves sample efficiency and search complexity over flat policies.
- Masked action masking reduces invalid configurations, enabling more efficient exploration.
- SFT refinement improves average reward by 5–35% across datasets and models, and provides theoretical guarantees on concentrating on elite configurations.
- ARC demonstrates Pareto-optimal accuracy-cost trade-offs on GSM8k, DROP, HotPotQA, and GAIA benchmarks, outperforming base models and other optimizers.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.