ToolOrchestra

A small model can be the manager instead of the worker. Orchestrator-8B is trained with reinforcement learning to send each step of a hard task to the right helper: search, code, a small model or GPT-5. On Humanity's Last Exam it scores 37.1% at 9.2 cents a task. GPT-5 with search and code scores 35.1% at 30.2 cents.

Set the reward: how much you care about a right answer, about cost, and about keeping the work on your own machines. A tiny router retrains on the spot and shows the route it learned. Then compare it with what the paper measured. After that we build the real thing piece by piece: the loop, tools as data, the reward, GRPO, the synthetic worlds and the results.

You need what a tool call is (a model asks a program for help) and what a reward does in reinforcement learning. We build the rest from zero, including GRPO.

Set the reward, see the route

Ready
1.00
0.30
0.00
Paper:

The router learns a route for a three-step question. Move a weight and it retrains.

Route and middle plot: a toy. Three steps, eight helpers, success rates and prices that we chose; the prices keep the paper's order (GPT-5 is the dearest). The toy router is trained live with the paper's reward (Eq. 2: min-max normalization over the group, zero for a wrong answer) and GRPO advantages (Eq. 3), 16 tasks × 8 rollouts per update. Right plot: the paper's Table 1 accuracy, with cost in cents from Table 1 (the average of HLE and FRAMES) or Table 16 (τ²-Bench). Toy units and paper units are not comparable.

Chapter 0

One big model for every step

See what a hard question costs when one model does all the work, and why handing it more helpers does not fix it

Here is a question from a hard test: what is the Alon-Tarsi number of the complete bipartite graph K1000,1000? To answer it, you must look up a definition, reason about graphs, maybe check a small case with code, and then commit.

The usual way to build an agent is to pick the strongest model you can afford. It thinks through every step itself. It calls a search engine or a code interpreter when it needs a fact or a number. Every token of that thinking is billed at the strong model's price.

That is like asking a senior professor to look up a definition, type a script and check the arithmetic. The professor can do all of it. But a librarian, a calculator and a graduate student could do most of it for less, and sometimes better.

The benchmark here is Humanity's Last Exam (HLE): expert-level questions across many fields. The paper uses its text-only subset (Appendix B). Two more benchmarks join it: FRAMES, 824 questions that each need facts from 2 to 15 Wikipedia articles, and τ²-Bench, customer-service conversations in telecom, retail and airline domains where the agent must call functions correctly.

Try the obvious fixes first. Give a model no tools, then basic tools (search and code), then the full kit: basic tools plus other models it can call. The numbers below are the paper's own.

Equip a model three ways

Pick a model and a benchmark. Each bar is one way to equip it. The teal line is Orchestrator-8B on the same benchmark.

Paper, Table 1 (accuracy, %) and Table 1 cost in US cents averaged over HLE and FRAMES; τ²-Bench cost from Table 16. τ²-Bench cannot be solved without tools, so it has no first bar. "Tools + models" is the paper's full evaluation kit (Sec. 4.1): basic tools, specialist models and generalist models.

Two things jump out. First, basic tools help a strong model a lot: GPT-5 goes from 23.4% to 35.1% on HLE. Second, the full kit is a lottery. Qwen3-8B jumps from 4.7% to 30.6% on HLE, because it can now hand the hard parts to GPT-5. But GPT-5 itself drops from 35.1% to 21.2% when it can call other models.

Why would more helpers make the strongest model worse? Because choosing helpers is a skill. GPT-5, asked to manage, sends most of the work to its small sibling GPT-5-mini (Chapter 1). Nobody trained it to manage.

So the paper asks a sharper question. What if we keep the full kit, and train a small model whose only job is to choose who does each step? The model is Orchestrator-8B, built from Qwen3-8B. The training method is ToolOrchestra: reinforcement learning with rewards for a right answer, for low cost and latency, and for following the user's tool preferences.

The idea in one line: train the manager, rent the experts. A small model that has learned when to call search, code, a specialist or a frontier model can beat the frontier model working alone, at about a third of its cost.

The cleanest comparison in the paper sits in the same table. Qwen3-8B with the full kit, only prompted, scores 30.6% on HLE at 27.6 cents. The same Qwen3-8B after ToolOrchestra training scores 37.1% at 9.2 cents. Same base model, same tools. Only the training differs. Here is the road.

  1. Prompted managers are biased: what GPT-5 and Qwen3-8B do when asked to route.
  2. The loop: reason, call, observe, up to 50 turns, and what the model sees.
  3. Tools as data: one JSON interface, model descriptions, random kits and prices.
  4. The reward: outcome, cost, latency and preferences, normalized over a group.
  5. GRPO training: advantages, filters, and the run's sizes; train a router yourself.
  6. ToolScale: synthetic worlds with databases, tools and checkable tasks.
  7. Results: Table 1, and the one comparison made at equal cost.
  8. New tools, new prices, preferences: how far the policy carries.
  9. Fine print: what holds, what needs a caveat, what was not tested.
  10. Connections: the cheat sheet, the code, and where this sits.
In Table 1, which comparison isolates the effect of ToolOrchestra training most cleanly?

Chapter 1

Prompted managers are biased

Watch what happens when you ask a model to route work by instruction alone

The cheapest way to build a manager is to write a prompt. List the helpers, say "get the best result at the lowest cost", and let a model choose. The paper tried exactly that in a pilot study (Appendix A).

It gave two managers the same four helpers: GPT-5, GPT-5-mini, Qwen3-32B and Qwen2.5-Coder-32B. It ran each on 300 HLE problems, at temperature 0, and counted which helper each manager called.

Count who gets the work

In the pilot view, pick a manager and read where its calls go. Switch to the full kit to see all seven managers from the main experiment, with every tool.

Pilot: Figure 3 (share of model calls on 300 HLE problems; bars may not add to exactly 100 because of rounding). Full kit: Table 15, the average number of calls per task to each tool, averaged over HLE, FRAMES and τ²-Bench.

The prompted managers lean hard. GPT-5 sends 66% of its calls to GPT-5-mini and 32% to GPT-5: 98% to its own family. Qwen3-8B sends 73% to GPT-5, the strongest helper on the list, whatever the cost.

The paper names two biases. Self-enhancement bias: a manager favours models from its own family. Other-enhancement bias: a manager defers to the strongest model even when told to watch the cost. (Appendix A attaches the first label to Qwen3-8B and the second to GPT-5, the reverse of the introduction; the behaviour is the same either way.)

Now look at the full kit. Orchestrator-8B makes about 8.2 calls per task, spread out: local search 1.8, GPT-5-mini 1.7, GPT-5 1.6, Qwen3-32B 1.3, code 0.8, web search 0.7. Claude Opus 4.1 as manager calls GPT-5 6.2 times per task. Qwen3-235B also calls GPT-5 6.2 times.

Calls to GPT-5 are the expensive ones. That single row of Table 15 explains much of the cost gap in Table 1. It also hints that a balanced mix can be more accurate, not only cheaper. We will test that hint with a toy in Chapter 5.

Why train instead of prompt? A manager that can call models stronger and weaker than itself is an odd setup, not one that pretraining or chat tuning prepares a model for. The paper's conclusion from the pilot: this needs its own training (Sec. 1).
In the pilot, GPT-5 as manager sent 98% of its calls to GPT-5 or GPT-5-mini. What does that show?

Chapter 2

The loop: reason, call, observe

Step through one rollout and see exactly what the orchestrator reads and writes at each turn

Before we can train a manager, we need to say what it does, turn by turn. The paper uses a standard agent loop. Each turn has three parts (Sec. 2.2):

  1. Reasoning. The orchestrator thinks in text about the state of the task and plans the next action.
  2. Tool call. It writes one call: which tool, with which arguments, in a fixed format.
  3. Observation. The environment runs the call. The result is appended to the context as a user message.

The loop repeats until the environment signals the end or the rollout reaches 50 turns. The whole record of one attempt is a trajectory, also called a rollout.

Step through a rollout

The user asks the Alon-Tarsi question and adds a preference: be cost efficient if possible. Press Step to run one turn. Watch the context grow, the turn count rise and the bill add up.

    The question and its first moves follow the paper's Figure 2 (local search for the definition, a math model for the bound, "in Kn,n, Eulerian subgraphs are unions of even cycles"). The remaining turns, the token counts and the cents are illustrative. The limits are the paper's: 50 turns, 24,000 input tokens and 8,000 generated tokens in training (Sec. 4.4).

    Notice what the orchestrator sees. At turn k it reads the whole history: the instruction, the preference, the tool list, every earlier reasoning block, call and result. It writes the next reasoning and call. It never sees the helpers' weights or prices directly, only the descriptions and price notes in its prompt, and the text that comes back.

    The paper writes this as a Markov decision process (Sec. 2.1). The history is the state the policy conditions on. The action is the next turn. Each action has a cost and a latency.

    ak
    The action at turn k: a reasoning block plus one tool call (or the final answer). Each action has a cost ck in dollars and a latency lk in seconds.
    πθ
    The policy: Orchestrator-8B with weights θ. It is a language model, so "choosing an action" means generating text token by token.
    hk
    The history: everything in the context window so far. In training it may hold up to 24,000 tokens.
    u
    The user's instruction, which also carries the preference instruction when there is one (Sec. 3.3).
    ok
    The observation: the text a tool or model returned, appended under the user role.

    The goal has four parts (Sec. 2.1): get the answer right, follow the user's tool preferences, and keep the total cost and the total latency low. After the last turn the environment gives a correctness reward between 0 and 1. Chapter 4 turns these four goals into one number.

    One worked number on the budget. At most 8,000 tokens may be generated per rollout in training, across up to 50 turns. So the orchestrator's own thinking must stay short; about 160 tokens per turn if it used all 50. Long thinking belongs to the helpers, who are billed separately.

    After a tool call at turn 3, where does the tool's result go?

    Chapter 3

    Tools as data

    Describe every helper, from a search engine to GPT-5, in one JSON format, then shuffle the kit and the prices

    A manager needs to know its team. In ToolOrchestra every helper is a tool, and every tool has the same kind of description (Sec. 3.1): a name, a text description, and a typed parameter schema. They arrive as a JSON list in the prompt.

    For a web search the description is easy to write. For a model it is not. What is Qwen3-32B good at? The paper writes model descriptions with a three-step recipe:

    1. Sample 10 training tasks at random.
    2. Run the model on them and record its trajectories.
    3. Ask another LLM to write a description from the tasks, the trajectories and whether the model succeeded.
    The paper's description of Qwen3-32B (Appendix C, shortened)

    "Advanced mathematical and quantitative reasoning, often solving complex problems and only faltering on highly specialized or computationally heavy items. Scientific domain knowledge is strong, especially in biology ... chemistry is mixed ... Coding and function call abilities are moderate, where it makes mistakes in parameters from time to time."

    That paragraph is the only thing the orchestrator knows about Qwen3-32B before it calls it. This matters later: in Chapter 8 the paper swaps in models never seen in training, writes new descriptions the same way, and the policy still routes well.

    Build one training instance

    Each training example gets a random subset of the catalog, a random provider's price list and, often, a user preference. Press Sample and read the JSON the orchestrator would see.

    
        

    The catalog is the paper's training list (Appendix D) and the providers are its pricing sources (Appendix E). The JSON layout, the descriptions and the prices shown are illustrative; the paper does not print a full prompt. The first preference is the paper's Appendix F example; the others are written by us in the same form.

    Why randomize? Two reasons, both about not overfitting (Sec. 3.3). Real users have different tools: one has GPT-5 access, another only open models. And prices change from provider to provider. If the kit and the prices were fixed, the policy could memorize "call tool 3 on step 2". With a shuffled kit and shuffled prices it must read the descriptions and weigh the costs.

    The catalog is wide. Query writers and generalists include GPT-5, GPT-5-mini, Llama-3.3-70B, Llama-3.1-8B, DeepSeek-R1, Nemotron-Ultra-253B, Phi-4-mini, Gemma-3-27B and Qwen3-32B. Code writers include starcoder2-15B and Qwen2.5-Coder-32B. Math models are Qwen2.5-Math-72B and 7B. Basic tools are Tavily web search, a Faiss index with Qwen3-Embedding-8B for local search, and a Python sandbox.

    Preferences are data too. An LLM writes pairs of a preference instruction (plain text, appended to the task) and a preference vector (numbers the reward will use). A second LLM checks that the two agree. Here is the paper's example, from Appendix F:

    Tools: web search, local search, Qwen3-235B, Llama-3.3-70B, o3-mini, o3

    "I am a company employee and there is some confidential information in my server. There are many GPUs in the server, so I can host open-sourced models or retrievers. It would be great if we can avoid API calling as much as possible."

    P = [0, 1, 1, 1, 0, 0, 0, 0, 0]: prefer local search, Qwen3-235B and Llama-3.3-70B. The last three numbers weight accuracy, cost and latency; here all three are 0.

    Hold on to that vector. Chapter 4 shows exactly how it enters the reward.

    How does the orchestrator learn what an unfamiliar model such as Qwen3-32B is good at?

    Chapter 4

    One number for four goals

    Score a group of eight attempts with the paper's reward and see which ones it pushes up

    We want four things at once: a right answer, low cost, low latency and respect for the user's tool preferences. Reinforcement learning needs one number per trajectory. How do you fold four goals into one? One is a yes or no, one is in dollars, one is in seconds and one is a count of tool calls.

    Start with the part that cannot be argued with. The outcome reward is 1 if the trajectory solves the task and 0 if not (Eq. 1). For the HLE-style training questions, GPT-5 acts as the judge: it compares the predicted answer with the reference, so "Ninety" and "90" both count (Sec. 3.2). For the synthetic tasks of Chapter 6, a three-part check decides.

    The efficiency rewards are simple too: minus the dollars, minus the wall-clock time. Token counts for every model, open or proprietary, are converted to dollars with third-party API price lists, so one unit covers all of them (Sec. 3.2, Appendix E).

    Now the trick. For each trajectory τ, stack its numbers into one vector: how many times it called each tool, then outcome, then minus cost, then minus latency.

    Then normalize each entry over the group of rollouts, and score:

    Mτ
    The measurement vector of one trajectory: n tool counts plus three scores, so n + 3 numbers.
    mt
    How many times the trajectory called tool t.
    routcome
    1 if solved, 0 if not.
    −$(τ)
    Minus the dollars spent. Negative, so that "bigger is better" holds for every entry.
    −Clock(τ)
    Minus the wall-clock time the trajectory took.
    M̂τ[k]
    Entry k rescaled to the range 0 to 1 within this group: the group's worst gets 0, its best gets 1. If every rollout has the same value, the entry is set to 0.
    minT, maxT
    The smallest and largest value of that entry across the group T of rollouts.
    P
    The preference vector, each weight between 0 and 1: one per tool, then poutcome, pcompute, platency. It comes with the task, from the preference pairs of Chapter 3.
    0 otherwise
    A wrong answer earns nothing, however cheap or fast. Savings only count when you are right.

    Score eight attempts

    Eight rollouts of one task. Move the weights of P and watch the reward R and the advantage A of each rollout. Teal bars get pushed up in training; the others get pushed down.

    1.00
    0.50
    0.00
    0.00

    The eight rollouts are illustrative. The arithmetic is the paper's: min-max normalization over the group (Sec. 3.2), the zero for a wrong answer (Eq. 2), and the GRPO advantage (Eq. 3, with the population standard deviation). The red line marks the homogeneity filter: groups whose reward spread is below 0.1 are dropped (Sec. 3.2).

    A worked number, with the defaults: poutcome = 1, pcompute = 0.5, everything else 0. Rollout 1 is right and costs 0.9 cents, the cheapest in the group. Its outcome entry normalizes to 1, its cost entry to 1. So R = 1 × 1 + 0.5 × 1 = 1.50.

    Rollout 5 is also right, but it called GPT-5 four times for 27 cents, the dearest. Its cost entry normalizes to 0, so R = 1.00. The three wrong rollouts get 0. The group mean is 0.814 and the spread (standard deviation) is 0.645.

    A(1) = (1.500 − 0.814) / 0.645 = +1.06    A(5) = (1.000 − 0.814) / 0.645 = +0.29    A(wrong) = (0 − 0.814) / 0.645 = −1.26

    Both right answers are pushed up, but the cheap one about three and a half times as hard. Now set pcompute to 0. Every right answer gets the same R = 1 and the same advantage, +0.77. The reward stops caring whether you spent 0.9 cents or 27.

    Two more details carry weight. The normalization is relative to the group: a 6.5 cent rollout looks thrifty next to a 27 cent one and wasteful next to a 0.9 cent one. And the paper never mixes dollars with seconds directly. Each entry becomes a 0 to 1 rank-like score first, then P decides how much each one matters.

    Now try All correct with only poutcome on. The outcome entry is the same for everyone, so it is set to 0, every R is 0, the spread is 0, and the homogeneity filter drops the group. A task the policy always solves teaches nothing about outcome. Only the efficiency and preference terms can still separate the rollouts.

    The big reveal: the user's preference is part of the task. P is not one global setting chosen by the engineers. Each training task can carry its own preference instruction and vector. So the trained model learns to read "avoid API calls" or "speed matters" in the prompt and change its routing. That is what Table 3 tests (Chapter 8).
    A group has eight rollouts. All eight are correct, and P has poutcome = 1 with every other weight 0. What happens?

    Chapter 5

    GRPO: learn from the group

    Turn rewards into updates, filter the useless groups, and train a small router in your browser

    We have a reward for each rollout. How does it change the model? ToolOrchestra uses Group Relative Policy Optimization (GRPO), the method introduced with DeepSeekMath (Sec. 3.2). The idea fits in one sentence: sample several rollouts of the same task, and push each one up or down by how much better it did than its siblings.

    A(τ)
    The advantage: how many standard deviations this rollout's reward sits above the group mean. Positive means "do more of this".
    mean R
    The average reward of the rollouts sampled for the same task. It is the baseline, so no separate value network is needed.
    std R
    The spread of the group's rewards. Dividing by it keeps updates the same size on easy and hard tasks.
    LGRPO
    The objective to maximize, averaged over sampled trajectories.
    ratioθ
    πθ(τ) / πold(τ): how much more likely the trajectory is under the new weights than under the weights that sampled it.
    clip
    Caps the ratio to [1 − ε, 1 + ε], so one update cannot move the policy too far. The paper does not report ε.

    In a language model, "push the trajectory up" means raising the probability of every token the orchestrator generated in it: the reasoning, the tool name, the arguments. Tool outputs are not the model's tokens; our reading is that they are context, not targets, as in most agent RL setups. The paper does not spell this out.

    Agent RL is unstable, and the paper mentions a "KL loss explosion" it had to avoid. It drops three kinds of examples from the backward pass (Sec. 3.2):

    1. Homogeneity filtering: the group's reward spread is below 0.1, so the rollouts behaved alike and the signal is weak.
    2. Format consistency filtering: the output does not match the tool-call format.
    3. Invalid output filtering: the rollout gives no valid answer or output.

    Train a router here

    The same toy as the hero: three steps (find a fact, compute, reason), eight helpers. Choose the group size and whether to filter, then press Train. The left plot is the learning curve; the right shows the final route.

    Rollouts per task:
    1.00
    0.00

    A toy policy: one softmax over eight helpers for each of three steps, 24 numbers in all, updated with the GRPO advantage (a plain policy-gradient step; with one update per batch the clip is never active). 16 tasks per update, as in the paper's training batch. The success rates and prices are ours. The real policy is an 8B language model writing text.

    Try it with poutcome = 1 and pcompute = 0. The router settles on web search for the fact, the code interpreter for the arithmetic and GPT-5 for the reasoning. In our toy that route reaches about 70% at about 5.9 toy cents. "GPT-5 for every step" reaches about 54% at 15 toy cents. The trained router wins on both axes, because each step has a helper that suits it.

    Be careful with that last sentence. We built the toy so that each step has a cheaper specialist. Whether real HLE steps look like that is exactly what the paper's results test, and Chapter 7 shows they mostly do.

    Now set the group size to 2 and train again. The curve is noisier and more groups are filtered, because two rollouts often tie. Turn the filter off and the run keeps those zero-signal groups; in the toy they cost only time, in the real run they can destabilize training.

    The real run, with its sizes

    ItemValueSource
    Base modelQwen3-8BSec. 4.4
    Training dataGeneralThought-430K (filtered) + ToolScaleSec. 4.4
    Learning rate1e-6Sec. 4.4
    Training batch / rollout batch16 / 8Sec. 4.4
    Max input / max generation24,000 / 8,000 tokensSec. 4.4
    Max turns per rollout50Sec. 4.4
    Hardware16 NVIDIA H100 GPUsSec. 4.4
    Homogeneity thresholdreward std < 0.1Sec. 3.2
    Training steps, wall-clock time, API spendnot reported—

    Our reading of one update: 16 tasks, 8 rollouts each, so 128 trajectories. Every rollout runs live: it really calls web search, really runs code, and really calls GPT-5 and the other helpers through their APIs. GPT-5 then judges the answers. The helpers' answers are part of the environment; only the orchestrator's weights change. The paper does not say whether the update touches all 8B weights or an adapter; it does not mention adapters.

    Why does GRPO not need a separate value network to judge whether a rollout was good?

    Chapter 6

    ToolScale: worlds to practise in

    Build a synthetic environment with a database, tools and checkable tasks, one stage at a time

    RL needs tasks where you can check the answer automatically, thousands of them, with tools to call. Real multi-turn tool tasks with verified answers are scarce (Sec. 3.3). So the paper makes them. The dataset is ToolScale.

    The recipe has two halves. First, simulate a world: a domain, a database and the functions that read and change it. Second, write tasks in that world, each with the exact function calls that solve it. Step through the stages with the paper's movie-booking example.

    Build a world, stage by stage

    Pick a stage. Each one shows what the LLM is asked for and what comes out, using the paper's Entertainment example.

    Stages, prompts and the movie example follow Figure 4, Sec. 3.3, Appendix I and the prompt Tables 6 to 14. The booking rows and the task are the ones drawn in Figure 4; the paper does not name which LLM generated the data.

    The filter at the end is strict. A task is removed if (1) running its gold calls throws an error, (2) LLMs cannot solve it in pass@8 (eight tries, none right), or (3) it can be solved without any action at all. The first catches broken tasks, the second impossible ones, the third trivial ones.

    And how is a trajectory judged? All three checks must pass (Sec. 3.3):

    1. Execution correctness: the database after the trajectory matches the database after the gold calls.
    2. Process fidelity: the trajectory mentions the information o that the task says must be communicated.
    3. Operation completeness: every database entry the gold calls touched was also touched by the trajectory.

    Count the ten worlds

    Choose what to count. Each bar is one domain.

    Paper, Table 5. Totals are our sums.

    ToolScale gives the function-calling practice. The other half of the data, GeneralThought-430K, gives reasoning questions with answers, the kind GPT-5 can judge. Together they cover the two skills the benchmarks test: call functions correctly, and know when a question needs a stronger mind.

    A synthetic task can be solved by simply replying, with no function call. What happens to it?

    Chapter 7

    Results, and the one equal-cost comparison

    Read Table 1 honestly, then compare every system at the same budget

    Table 1 runs every system once on each benchmark, with up to 50 turns and temperature 0. Orchestrator-8B scores 37.1% on HLE, 76.3% on FRAMES and 80.2% on τ²-Bench. Its average cost is 9.2 cents and its average latency 8.2 minutes per task (HLE and FRAMES averaged).

    Is that a fair fight? It depends on which row you compare with. The costs in Table 1 are not equal: each system spends what it spends. So Table 1 can show "more accurate and cheaper", which is a strong result, but it is not an equal-budget comparison. The paper has one of those: Figure 6.

    Compare at the same budget

    Each curve is one system run with a cap of 10, 20, 50 and 100 turns. Drag the budget line. The read-out gives each system's HLE score at that cost, where the paper measured it.

    $0.18

    Points read off the paper's Figure 6 by eye, about ±1 point and ±$0.02; the paper prints no numbers for it. Cost here is per HLE question, not the HLE and FRAMES average of Table 1. Between measured points we interpolate straight lines. Our reading, from matching the 50-turn points to Table 1: the GPT-5, Claude and Qwen curves are those models with basic tools.

    At about 18 cents per question, Orchestrator-8B (50 turns) reads about 36%. GPT-5's cheapest measured point, 10 turns at about 16 cents, reads about 27%. GPT-5 needs about 45 cents to reach 35%. Its best point, 100 turns at about 60 cents, reads about 36%: roughly what Orchestrator-8B gets for under a third of the money.

    One oddity, honestly reported. Orchestrator-8B's 50-turn point in Figure 6 reads about 36%, a little under Table 1's 37.1%. GPT-5's matches Table 1 (35.1%). The paper does not explain the gap; it may be a separate run.

    Table 1, in full

    Accuracy in %, cost in cents and latency in minutes, both averaged over HLE and FRAMES. τ²-Bench costs are in Table 16; they tell the same story (Orchestrator-8B 10.3 cents, 8.6 minutes; GPT-5 with basic tools 31.3 cents, 20.2 minutes).

    ToolsModelHLEFRAMESτ²CostLatency
    NoneQwen3-8B3.224.2–0.20.6
    Nemotron-49B3.625.6–0.41.1
    Llama-3.3-70B3.832.4–0.51.4
    Qwen3-235B5.234.3–2.63.3
    Claude Opus 4.111.758.2–27.48.2
    GPT-523.466.3–6.24.1
    BasicQwen3-8B4.726.540.71.32.2
    Nemotron-49B6.828.223.22.53.5
    Llama-3.3-70B4.642.317.62.84.3
    Qwen3-235B14.039.552.912.310.2
    Claude Opus 4.119.863.546.076.232.5
    GPT-535.174.077.730.219.8
    Basic + modelsQwen3-8B30.668.972.327.618.3
    Nemotron-49B25.857.966.725.617.1
    Llama-3.3-70B19.752.455.819.713.4
    Qwen3-235B32.874.275.629.721.2
    Claude Opus 4.134.672.876.852.525.6
    GPT-521.257.562.317.813.6
    Basic + modelsOrchestrator-8B37.176.380.29.28.2

    Three readings of this table, from most to least clean:

    1. Same base, same kit. Prompted Qwen3-8B with the full kit: 30.6 / 68.9 / 72.3 at 27.6 cents. Trained: 37.1 / 76.3 / 80.2 at 9.2 cents. This isolates the training: +6.5, +7.4 and +7.9 points at one third of the cost.
    2. Same kit, different managers. Every "basic + models" row uses the same tools. Orchestrator-8B is the most accurate and the cheapest of them on all three benchmarks.
    3. Each model at its best. Figure 1 picks each rival's best row: GPT-5 with basic tools (35.1), Claude and Qwen3-235B with the full kit (34.6, 32.8). The margins there are smaller, 2 to 4 points on HLE.
    What is solid, and what is thin. Being cheaper is a large effect: 9.2 against 30.2 cents is not noise. Being 2 points more accurate than GPT-5 on HLE is a small effect from one run each, at temperature 0, with no error bars and no stated subset size. Also, the GPT-5 τ²-Bench score could not be reproduced: OpenAI reports 84.2, the paper's setup reached 77.7 (Table 1 note).
    Which figure or table in the paper compares systems at equal cost?

    Chapter 8

    New tools, new prices, your preferences

    Test whether the routing policy carries over to helpers and price lists it never trained on

    A manager trained on one team is only useful if it can manage the next team too. Chapter 3 shuffled kits and prices during training for exactly this reason. The paper runs three tests of how far that carries.

    Unseen models (Sec. 6.3, Table 2). The basic tools stay. The paper swaps every model for one not seen in training. Query writers: Claude Opus 4.1, o3-mini and GPT-4o. Code writers: Claude Opus 4.1, Claude Sonnet 4.1 and Codestral-22B. Math: OpenMath-Llama-2-70B and DeepSeekMath-7B. Generalists: Claude Opus 4.1, Claude Sonnet 4.1 and Gemma-3-27B. New descriptions are written with the Chapter 3 recipe.

    Unseen prices (Appendix H, Table 4). The same tools, priced with DeepInfra's list, which was not among the ten training price lists.

    Preferences (Sec. 6.4, Table 3). Each test question carries a held-out preference instruction. The score rewards right answers that also follow the preference.

    Move the policy to new conditions

    Pick a condition. Bars show each manager's score on the three benchmarks; the label under each group is its average cost where the paper reports one.

    Paper: Table 1 ("basic + models" rows), Table 2, Table 4 and Table 3. The preference score is the paper's own metric (Appendix L): a right answer earns the preference vector dotted with its tool counts, cost and latency, each scaled against a run of the starting Qwen3-8B on the same question. It is not an accuracy. The paper reports no cost for the preference test.

    With unseen models, Orchestrator-8B still leads every column at the lowest cost: 22.0 / 73.8 / 48.8 at 34.8 cents, against GPT-5's 16.4 / 54.8 / 44.8 at 81.3 cents. But look at the absolute numbers. Its τ²-Bench score falls from 80.2 to 48.8, and its cost rises from 9.2 to 34.8 cents. Everyone falls, because the new kit is different. "Generalizes" here means "stays best of this group", not "keeps its score".

    With unseen prices the scores barely move: 36.9 / 76.6 / 80.4 at 7.5 cents. With preferences, Orchestrator-8B scores 46.7 / 68.4 / 79.5 on the paper's preference metric, against 34.6 / 62.3 / 70.3 for GPT-5.

    With unseen models (Table 2), Orchestrator-8B scores 48.8 on τ²-Bench, down from 80.2. What is the fair summary?

    Chapter 9

    The fine print

    Check each headline claim against its evidence and name what the paper does not test

    A paper's abstract is its authors' framing. The tables are the measurements. Here we hold the five headline claims against the tables, and give each a verdict. Pick a claim.

    Check a claim

    Each card gives the claim, the evidence, and our reading.

    Verdicts are our reading of the paper's tables, not the authors' words.

    And here is what the paper does not test, so no claim rests on it:

    Where this sits in "learning on the job". ToolOrchestra learns once, offline, in synthetic worlds, and then adapts at deployment only through its prompt: new tool descriptions, new prices, the user's preference. The learning happened in rehearsal, not on the job. The paper's closing line points further: recursive orchestrators, managers of managers.
    Why can we not say from this paper how much the preference term in the reward helps accuracy?

    Chapter 10

    Connections

    Lock in the cheat sheet, run the core in a few lines, and place the orchestrator in the field

    You can now read the ToolOrchestra paper and defend each of its choices. Why train a manager instead of prompting one. Why every helper is a JSON tool with a written description. Why the reward normalizes over the group and zeroes wrong answers. Why GRPO, why filters, why synthetic worlds. And which comparisons are fair. Let's lock it in.

    The one-paragraph summary

    ToolOrchestra trains Qwen3-8B, by GRPO, to act as an orchestrator: in a loop of up to 50 turns it reasons, calls one tool, and reads the result. Its tools include web and local search, a code sandbox, specialist models and frontier models such as GPT-5, all described in one JSON format. Each rollout's tool counts, correctness, minus cost and minus latency are min-max normalized over its group, weighted by a per-task preference vector, and zeroed if the answer is wrong. Training uses ToolScale (10 synthetic domains, 4,063 checkable tasks) and GeneralThought-430K, with random tool subsets and random price lists. The result, Orchestrator-8B, scores 37.1 / 76.3 / 80.2 on HLE / FRAMES / τ²-Bench at 9.2 cents a task, against 35.1 / 74.0 / 77.7 at 30.2 cents for GPT-5 with basic tools.

    The numbers to remember

    WhatNumberSource
    HLE / FRAMES / τ², Orchestrator-8B37.1 / 76.3 / 80.2Table 1
    Same, GPT-5 with basic tools35.1 / 74.0 / 77.7Table 1
    Same, prompted Qwen3-8B with the full kit30.6 / 68.9 / 72.3Table 1
    Cost per task (HLE + FRAMES average)9.2 vs 30.2 vs 27.6 centsTable 1
    Latency per task8.2 vs 19.8 vs 18.3 minutesTable 1
    τ²-Bench cost, Orchestrator vs GPT-5 basic10.3 vs 31.3 centsTable 16
    GPT-5 calls per task: Orchestrator / Claude manager1.6 / 6.2Table 15
    Prompted GPT-5 calls to its own family98% (300 HLE problems)Fig. 3, App. A
    HLE at about 18 cents: Orchestrator vs GPT-5 (10 turns, 16 cents)about 36 vs about 27Fig. 6, read by eye
    Unseen models: HLE / FRAMES / τ² at cost22.0 / 73.8 / 48.8 at 34.8 centsTable 2
    Preference metric, Orchestrator vs GPT-546.7 / 68.4 / 79.5 vs 34.6 / 62.3 / 70.3Table 3
    ToolScale: domains, tools, DB entries, tasks10, 197, 7,048, 4,063Table 5 (our sums)
    Training: lr, batch, rollouts, limits, GPUs1e-6, 16, 8, 24k in / 8k out / 50 turns, 16 H100Sec. 4.4

    The cheat sheet

    PieceIn plain words
    ak ∼ πθ(ak | hk)Read the whole history, write the next reasoning and one tool call.
    Mτ = [mt…, routcome, −$, −Clock]Measure a trajectory: tool counts, right or wrong, minus cost, minus time.
    M̂ = (M − minT) / (maxT − minT)Rescale each measure to 0 to 1 within the group; a constant measure becomes 0.
    R = M̂ · P if solved, else 0Weight the measures by the user's preference; wrong answers earn nothing.
    A = (R − mean) / stdCompare each rollout with its siblings on the same task.
    min(ratio · A, clip(ratio) · A)Push good rollouts up and bad ones down, but not too far in one step.
    std < 0.1 → dropSkip groups where everyone did the same.

    The core, as code

    This sketch implements the reward of Eq. 2 and the advantage of Eq. 3 for one group, then trains the toy router from this page. Each step's policy is a softmax over helpers. Copy it into Python 3 with NumPy.

    pythonimport numpy as np
    rng = np.random.default_rng(0)
    
    # toy world: 8 helpers, 3 steps (find, compute, reason); our numbers, not the paper's
    HELP  = ["self", "local", "code", "math7b", "qwen32b", "web", "gpt5mini", "gpt5"]
    PRICE = np.array([.02, .05, .05, .1, .4, .8, 1.0, 5.0])       # toy cents per call
    LOCAL = np.array([1, 1, 1, 1, 1, 0, 0, 0])                   # self-hostable?
    SUCC  = np.array([[.20, .70, .05, .05, .40, .90, .55, .70],    # find a fact
                      [.30, .05, .92, .80, .60, .10, .80, .90],    # compute
                      [.15, .10, .25, .30, .45, .15, .60, .85]])   # reason
    
    def reward(M, ok, P):
        """Eq. 2: min-max normalize each column over the group, dot with P, zero if wrong."""
        lo, hi = M.min(0), M.max(0)
        span = np.where(hi > lo, hi - lo, 1.0)
        Mn = np.where(hi > lo, (M - lo) / span, 0.0)        # constant column -> 0
        return np.where(ok, Mn @ P, 0.0)
    
    def advantage(R):
        """Eq. 3, plus the homogeneity filter (std < 0.1 -> drop the group)."""
        sd = R.std()
        return None if sd < 0.1 else (R - R.mean()) / sd
    
    def train(p_out=1.0, p_cost=0.0, p_local=0.0, G=8, B=16, steps=300, lr=1.0):
        theta = np.zeros((3, 8))                                 # one logit per (step, helper)
        P = np.concatenate([p_local * LOCAL, [p_out, p_cost]])  # tool prefs, outcome, compute
        for _ in range(steps):
            grad = np.zeros_like(theta)
            for _ in range(B):                                    # B tasks per update
                pi = np.exp(theta - theta.max(1, keepdims=True)); pi /= pi.sum(1, keepdims=True)
                pick = np.array([[rng.choice(8, p=pi[s]) for s in range(3)] for _ in range(G)])
                ok = (rng.random((G, 3)) < SUCC[np.arange(3), pick]).all(1)
                counts = np.stack([np.bincount(p, minlength=8) for p in pick])
                M = np.column_stack([counts, ok, -PRICE[pick].sum(1)])
                A = advantage(reward(M, ok, P))
                if A is None: continue
                for g in range(G):                                # policy gradient of log pi
                    for s in range(3):
                        grad[s] -= A[g] * pi[s]; grad[s, pick[g, s]] += A[g]
            theta += lr * grad / (G * B)
        pi = np.exp(theta); pi /= pi.sum(1, keepdims=True)
        acc  = np.prod((pi * SUCC).sum(1)); cost = (pi * PRICE).sum()
        return [HELP[i] for i in pi.argmax(1)], round(float(acc), 3), round(float(cost), 2)
    
    print(train())                          # ['web', 'code', 'gpt5'], about 0.70, about 5.9
    print(train(p_out=.4, p_cost=1.0))     # cheaper reasoning helper, lower accuracy
    print(train(p_local=.8))                # local search replaces web search for the fact

    In the real system, each row of M comes from a full trajectory of an 8B model writing text and calling live tools, and the update is the clipped GRPO objective on its tokens. The bookkeeping is the same.

    Where it sits in the field

    ToolOrchestra joins three lines of work. Tool-use RL: Toolformer taught a model when to call an API; Search-R1, ToRL and ToolRL train tool use with RL; OTC penalizes excess calls. Model routing: a router picks one model per query, once; an orchestrator decides at every step, and also writes the sub-task. Compound AI systems: intelligence from a system of parts rather than one model.

    Inside this "learning on the job" series, the contrast is useful. TTT-Discover changes its weights while it works on one problem. Self-distillation methods learn from feedback after deployment. A proactive assistant learns its user's habits. ToolOrchestra learns in rehearsal, then adapts on the job only by reading. AgentFlow, another lesson in this series, trains a planner inside a multi-module agent loop with a related GRPO variant.

    Keep going

    The takeaway. Routing is a skill, and a small model can learn it with RL if the reward counts cost only among right answers and the training kit keeps changing. The headline margin over GPT-5 is small and from single runs; the cost gap and the same-base gain over prompting are the solid results.

    Now press Present or Teach and explain, out loud and from memory, why a wrong answer earns zero however cheap it was, and why Figure 6, not Table 1, is the equal-cost comparison. If you can, you own this paper. Then go back to the reward dials and make the router keep everything on your own machines.

    Based on "ToolOrchestra: Elevating Intelligence via Efficient Model and Tool Orchestration" by Hongjin Su, Shizhe Diao, Ximing Lu, Mingjie Liu, Jiacheng Xu, Xin Dong, Yonggan Fu, Peter Belcak, Hanrong Ye, Hongxu Yin, Yi Dong, Evelina Bakhturina, Tao Yu, Yejin Choi, Jan Kautz and Pavlo Molchanov (NVIDIA and the University of Hong Kong, November 2025), arXiv 2511.21689
    Read the original paper · Back to Veanors