TL;DR
Teaching AI to use tools (like Python or web search) usually forces an awkward trade-off: either use one giant model that blurs big-picture strategy with low-level syntax, or split the job across multiple agents that end up talking past each other. HATR solves this by keeping a "Planner" and an "Executor" separate when solving problems, while training them together in an alternating loop so they actually learn how to collaborate. The result? Small 4B-parameter models punching well above their weight class on tough math and multi-hop reasoning tasks.
What Problem Does This Paper Address?
Large Language Models (LLMs) are great thinkers, bad calculators, and terrible time-travelers (they don't know today's news). Tool-Integrated Reasoning (TIR) fixes this by letting models pause their thinking to run code or search the web.
Currently, we build TIR systems in one of two ways:
- Single-agent RL: One model does everything. It’s easy to train end-to-end, but high-level strategy ("I should verify this prime number") gets hopelessly tangled up with low-level execution ("
import math..."), hurting interpretability and long-term control. - Multi-agent systems: You split roles into a Planner and an Executor. While much cleaner at test time, these agents are usually frozen or trained in isolation.
The authors identify a critical flaw in this second camp: role mismatch. Imagine an architect designing a blueprint assuming the builder has a crane, while the builder only owns a shovel. Over a multi-step reasoning chain, misaligned expectations between independently trained planners and executors compound into total failure. We need clean separation when acting, but unified coordination when learning.
Methods
The authors introduce HATR (Hierarchically Aligned framework for Tool Reasoning), built on the principle of decoupled inference with hierarchical alignment.
Here is what happens under the hood:
- Tree-Structured Inference (New Structure): Instead of a free-form chat, every turn follows a strict decision tree. First, the Planner (
DECIDE) sets a subgoal and picks a branch: either use a tool (SELECT—choosing Python, Bing Search, or WebSearch) or think internally (PLAN). Next, the Executor takes over to write the actual tool arguments (EXECUTE), carry out the reasoning step (INFER), or output the finalANSWER. - Online Trajectory-Selective Optimization (Adapted RL): To train the system, HATR generates multiple solution rollouts per question and scores them using a composite reward (combining answer correctness with penalties for length, repetition, and sloppy tool calls). It pairs the best and worst rollouts—filtering out noisy, low-margin pairs—and updates the model using standard Direct Preference Optimization (DPO) anchored by Supervised Fine-Tuning (SFT) on the winning path.
- Alternating Cross-Level Alignment (The Secret Sauce): Rather than training both agents at once (which destabilizes everything), HATR freezes the Planner while updating the Executor, then freezes the Executor while updating the Planner. Each agent progressively adapts to its partner's evolving quirks without collapsing into a single muddled policy.
Datasets
No new benchmarks were created, but the authors curated a targeted 3,000-example training set (2:1 math-to-QA ratio) from NuminaMath-TIR, HotpotQA, 2WikiMultiHopQA, SimpleDeepSearch, and WebWalker. Crucially, they filtered out "too easy" problems (solvable in one shot by Qwen2.5-7B) and "impossible" ones (unsolvable in five turns by DeepSeek-V3).
Evaluation spanned 12 math benchmarks (AIME24/25, MATH500, GSM8K, AMC23, OlympiadBench, and six Gaokao variants) and 5 multi-hop QA datasets (WebWalker, HotpotQA, 2WikiMultiHopQA, MuSiQ, Bamboogle).
Key Insights and Ideas
- Smarter tool use doesn't mean more tool use: You might expect a tool-trained AI to spam Python scripts constantly. Instead, HATR often improved accuracy while decreasing average tool calls—proving the gains come from better coordination about when a tool is actually needed.
- Improving one agent can temporarily break the team: During stage-wise ablations, optimizing just one role occasionally caused a dip or non-monotonic wobble in performance because its behavior shifted away from what its partner expected—direct empirical proof of "role mismatch" in action.
- High-level control is harder to stabilize: During alternating training, the Executor's reward curve flattens out and stabilizes quickly, whereas the Planner learns slowly with higher variance, reflecting how tricky it is to steer strategy while your executor's habits are actively shifting.
Key Results
Pairing a Qwen3-4B Planner with three different Executor backbones (Qwen3-4B, DeepSeek-R1-Distill-Qwen-1.5B, and Phi-4-mini), HATR consistently beat prompting baselines, ReAct-DPO, single-agent DPO, and unaligned multi-agent setups (HATR w/o RL).
- Punching above its weight in Math: With
Qwen3-4B, HATR hit 78.88% average math accuracy—beating a single-agent DPO baseline (72.50%), unalignedHATR w/o RL(75.35%), and even standaloneQwen3-32B(67.44%). On the brutal AIME24 competition math test, HATR jumped to 60.00% (up from 43.33% without RL). - Rescuing smaller models: Adding HATR boosted
Phi-4-mini's average math score from 28.19% (standard prompting) and 50.46% (unaligned roles) up to 58.47%. - Multi-hop QA: HATR topped all model categories, pushing
Qwen3-4Bto 31.36% average accuracy (vs. 24.64% for ReAct-DPO) and liftingPhi-4-minifrom 9.50% to 28.58%.
Limitations and Future Work
Not discussed in the paper. (Note: The provided text concludes after Section 6 and References without a dedicated Limitations or Future Work section, though the authors note in their setup that they restricted experiments to a minimal two-role planner–executor hierarchy and DPO-style optimization rather than PPO/GRPO to keep variables controlled.)
Summary updated