AgentBetta: Verification-Driven Adaptive Configuration of an AI Nano-Agent through Selective Expansion and Verified Contraction
Organizations: Department of Physical Sciences · Explainable Artificial Intelligence and Optimization Research (XAiOR)
Abstract
Large language model agents are typically deployed with predefined configurations, although the required model capability, context, tools, permissions, memory, and computational resources can vary substantially across tasks. This study develops and evaluates AgentBetta, an adaptive AI Nano-Agent framework that represents these factors as an executable configuration and updates them through verification-driven diagnosis, selective expansion, and verification-based counterfactual contraction. The evaluation distinguishes controlled mechanism validation from external agent comparisons. On the AB-ConfigBench benchmark, AgentBetta achieved 91.38% verified success while reducing median context allocation from 64,000 to 8,000 context characters and median tool exposure from five tools to zero compared with the fully provisioned configuration. The configuration-deficiency diagnosis achieved a macro-F1 score of 0.819 with precision of 1.000 across the evaluated dimensions, and selective expansion avoided unnecessary changes to unrelated configuration dimensions. Post-success contraction preserved verification outcomes in 56.41% of evaluated one-dimension contraction probes, indicating that some successful configurations contained removable capability under the tested conditions. External evaluations indicate that adaptive configuration can improve the balance between verified task completion and capability exposure; however, the results vary across benchmarks and agent families. In particular, the cross-family replication did not reproduce the primary-backbone accuracy ordering, and specialized systems remained advantageous for certain task domains. These results support interpreting AgentBetta as a configuration-adaptation mechanism that regulates capability allocation and inference expenditure rather than as a universal replacement for specialized agent architectures.
Figures & tables
| Method | Primary adaptive object | Runtime feedback or adaptation | Principal distinction from the present study |
|---|---|---|---|
| ARC [ 8 ] | Workflow, tools, budget, prompts | Learns query-wise configurations from correctness and cost | Does not make post-failure configuration-dimension diagnosis and verified post-success contraction the central runtime loop. |
| E3 [ 13 ] | Execution scope | Verification failure triggers progressive scope expansion | Establishes lean execution and recovery, but primarily varies execution footprint rather than a general heterogeneous configuration. |
| AOrchestra [ 9 ] | Instruction, context, tools, model | Creates specialized sub-agents during execution and learns orchestration from trajectories | Establishes runtime model/context/tool specialization; permissions, resource bounds, and configuration contraction are outside its principal abstraction. |
| AgentFlow [ 11 ] | Planning and tool-use policy | Verifier signals and final outcomes support in-flow policy learning | Verification-driven learning is central, whereas the full executable configuration is not the primary optimization variable. |
| CHILL-Harness [ 19 ] | Harness workflow interventions | Counterfactual effect estimates authorize advantageous workflow changes | Establishes counterfactual harness control rather than explicit necessity testing over model, context, tools, permissions, memory, and resources. |
| AgentSlimming [ 7 ] | Multi-agent workflow nodes and node models | Candidate pruning/replacement is re-evaluated against an acceptance threshold | Establishes validated structural contraction, mainly at workflow/task level rather than as per-instance bidirectional configuration adaptation. |
| Symbol | Dimension | Operational interpretation |
|---|---|---|
| Model capability | Provider/model identity, capability tier, reasoning or modality support, and inference parameters that are under policy control. | |
| Context | Model-visible task information, retrieved evidence, history, and admissible context budget. | |
| Tools | Explicit set of callable tools or functions exposed to the agent for the current task. | |
| Permissions | Authorized operations and resource scopes; permission expansion can request additional authority but cannot grant it autonomously. | |
| Memory | Working or persistent memory available to the task, together with retention and retrieval policy. | |
| Resources | Token, compute, monetary, or other quantitative resource budgets not represented elsewhere. |
| Method | Verified success (%) | Median context | Median tools | Median adaptations |
|---|---|---|---|---|
| AgentBetta Full | 91.38 | 8,000 | 0 | 1.0 |
| Fixed Full | 93.10 | 64,000 | 5 | 0.0 |
| Wholesale Escalation | 93.10 | 64,000 | 5 | 1.0 |
| Fixed Lean | 6.90 | 8,000 | 0 | 0.0 |
| AgentBetta Diagnosis | 15.52 | 8,000 | 0 | 0.0 |
| AgentBetta Contraction | 91.38 | 8,000 | 0 | 1.0 |
| Dimension | Support | Precision | Recall | F1 |
|---|---|---|---|---|
| Model | 218 | 1.000 | 0.716 | 0.834 |
| Context | 161 | 1.000 | 0.752 | 0.858 |
| Tools | 322 | 1.000 | 0.354 | 0.523 |
| Permissions | 187 | 1.000 | 0.610 | 0.758 |
| Memory | 142 | 1.000 | 0.739 | 0.850 |
| Resources | 154 | 1.000 | 0.818 | 0.900 |
| Method | Initially failed | Recovery (%) | Mean adaptations per initially failed task | Median dimensions changed | Unrelated-change rate | Added context |
|---|---|---|---|---|---|---|
| AgentBetta Full | 482 | 89.00 | 0.814 | 1 | 0.000 | 0 |
| Scope-only Expansion | 192 | 89.06 | 0.947 | 1 | 0.000 | 0 |
| Wholesale Escalation | 192 | 91.67 | 0.909 | 8 | 0.733 | 56,000 |
| Dimension | Probes attempted | Probes passed | Acceptance (%) |
| Model | 1,566 | 1,389 | 88.70 |
| Context | 357 | 234 | 65.55 |
| Tools | 156 | 78 | 50.00 |
| Memory | 15 | 0 | 0.00 |
| Resources | 103 | 0 | 0.00 |
| Execution limits | 103 | 0 | 0.00 |
| Comparator | Benchmark | AgentBetta (%) | Comparator (%) | Difference (pp) | 95% CI (pp) | Adj. | Principal resource effect |
|---|---|---|---|---|---|---|---|
| ReAct | BFCL | 87.35 | 83.94 | +3.40 | 0.0103 | tokens +16.9%; calls +20.2%; cost +18.1% | |
| Reflexion | GAIA | 27.19 | 31.58 | 0.4531 | tokens %; calls %; cost % | ||
| AutoGen | BFCL subset | 88.02 | 31.77 | +56.25 | tokens %; calls %; cost % | ||
| CrewAI | BFCL subset | 88.02 | 13.54 | +74.48 | tokens %; calls %; cost % | ||
| SWE-agent | SWE-bench pilot | 6.25 | 75.00 | 0.0625 | tokens %; calls %; cost % | ||
| Fixed Full | Cross-family BFCL | 31.25 | 31.25 | 0.00 | – | context %; tokens +134.9% |
| Method | Scoreable runs | Excluded runs | Tasks complete 3/3 | Task-level success (%) | Pooled success (%) | Mean tokens/task | Mean calls/task | Mean cost/task (USD) |
|---|---|---|---|---|---|---|---|---|
| AgentBetta | 550 | 23 | 178/191 | 87.35 | 88.00 | 1,075 | 1.20 | 0.000262 |
| ReAct Matched | 573 | 0 | 191/191 | 83.94 | 83.94 | 920 | 1.00 | 0.000222 |
| Method | Scoreable runs | Excluded runs | Tasks complete 3/3 | Task-level success (%) | Pooled success (%) | Mean tokens/task | Mean calls/task | Mean cost/task (USD) |
|---|---|---|---|---|---|---|---|---|
| AgentBetta | 115 | 5 | 37/40 | 27.19 | 26.96 | 9,364 | 4.47 | 0.003189 |
| Reflexion | 65 | 55 | 11/40 | 31.58 | 38.46 | 15,874 | 6.48 | 0.006243 |
LLM Agents
Large language model agents use language models to plan, use tools, and act across multi-step tasks and environments.
See all 661 papers