A$^2$FM: An Adaptive Agent Foundation Model for Tool-Aware Hybrid Reasoning

Qianben Chen, Jingyi Cao, Jiayu Zhang, Tianrui Qin, LiXiaowan, King Zhu, Dingfeng Shi, He Zhu, Minghao Liu, Xiaobo Liang, Ge Zhang, Jian Yang, Yuchen Eleanor Jiang, Wangchunshu Zhou

TL;DR

A²FM (Adaptive Agent Foundation Model) is a unified 32B model that intelligently navigates the trade-off between deep reasoning and external tool use. By integrating a novel "instant" mode for simple queries and a cost-aware reinforcement learning framework, it achieves state-of-the-art performance across agentic and reasoning benchmarks while slashing inference costs by up to 45%.

The Divide in Modern LLMs

The current Large Language Model (LLM) landscape is fractured into two specialized families:

  • Reasoning-centric models (like OpenAI’s o-series or DeepSeek-R1) excel at complex internal logic and math but are "blind" to the outside world.
  • Agentic models are great at using search engines and code interpreters but often lack the "brainpower" for deep, multi-step logical derivation.

This divide creates a massive efficiency gap. If you ask a reasoning model "What is 2+2?", it might spend thousands of tokens "thinking" about the nature of arithmetic. Conversely, if you ask an agentic model a complex logic puzzle, it might waste money calling a search engine for an answer it should have reasoned out internally. A²FM aims to bridge this gap by creating a single model that chooses the most efficient "mode" of execution for every unique query.

Methods: Route-Then-Align

The authors propose a route-then-align principle implemented in two stages to dynamically handle queries:

  1. Supervised Fine-Tuning (SFT): The model is trained to first output a <classification> tag to select one of three modes:
  2. Instant Mode: Direct, concise answers for simple facts.
  3. Reasoning Mode: Long-form internal Chain-of-Thought (CoT) for math and logic.
  4. Agentic Mode: A parallel architecture that plans, executes multiple tool calls (Search, Crawl, Code) simultaneously, and summarizes findings.
Distribution of execution modes across various benchmarks.
  1. Adaptive Policy Optimization (APO): This is the framework's "secret sauce." Building on Group Relative Policy Optimization (GRPO), APO uses reinforcement learning to refine the model's routing. Crucially, it introduces a cost-regularized reward. If the model solves a problem correctly using the expensive "Reasoning" mode, but could have solved it using the cheap "Instant" mode, it receives a penalty. This forces the model to be as frugal as possible without sacrificing accuracy.

Key Insights

  • The "Instant" Mode is Essential: Most hybrid models only toggle between "think" and "act." By adding a third "just answer" mode, A²FM avoids the "overthinking tax" that plagues reasoning models on easy questions.
  • Parallel Agency: Traditional agents use a sequential "ReAct" loop (Think → Act → Observe → Repeat). A²FM’s agentic mode uses a parallel architecture, allowing it to dispatch multiple search queries or web crawls simultaneously. This is faster and provides a broader evidence base for complex research.
  • RL for Efficiency: Most RL for LLMs focuses purely on getting the right answer. APO proves that you can bake "frugality" into the reward function, teaching the model to respect the user's compute budget.

Key Results

At the 32B parameter scale, A²FM sets new records across multiple domains, performing competitively with frontier LLMs.

A²FM performance across Agentic, Reasoning, and General benchmarks compared to other models.
  • Reasoning: Achieved 70.4% on AIME25, outperforming many much larger models and nearly matching OpenAI's o1-preview.
  • Agentic: Reached 13.4% on BrowseComp, setting a new SOTA for its size class.
  • General: Scored 16.7% on HLE, significantly leading comparable 32B models.
  • Efficiency: The "Adaptive" execution (letting the model choose the mode) resulted in a cost-per-correct-answer of $0.00487. This is 45.2% cheaper than forcing the model into reasoning mode and 33.5% cheaper than forcing it into agentic mode.

Limitations and Future Work

  • Routing Noise: The model still occasionally misclassifies queries. For example, it might choose "Instant" mode for a question that actually requires a tool call because it is "overconfident" in its internal knowledge.
  • Teacher Bias: Because the model is distilled from DeepSeek teachers, it may inherit specific biases or formatting quirks from those models.
  • Safety in Agency: Giving a model autonomous tool-use capabilities requires robust sandboxing and safety guardrails, which remain a primary concern for real-world deployment.
  • Future Directions: The team suggests exploring even more granular modes (e.g., different levels of reasoning depth) and scaling the framework to larger backbones.

Summary updated

BibTeX
@inproceedings{chen2026fm,
  author = {Qianben Chen and Jingyi Cao and Jiayu Zhang and Tianrui Qin and LiXiaowan and King Zhu and Dingfeng Shi and He Zhu and Minghao Liu and Xiaobo Liang and Ge Zhang and Jian Yang and Yuchen Eleanor Jiang and Wangchunshu Zhou},
  title = {{A$^2$FM: An Adaptive Agent Foundation Model for Tool-Aware Hybrid Reasoning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=3kvV1nfWVq},
}
Figure