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.
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
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.
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 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.
Chapter 1
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.
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.
Chapter 2
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):
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.
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.
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.
Chapter 3
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:
"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.
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:
"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.
Chapter 4
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:
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.
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.
Chapter 5
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.
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):
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.
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.
| Item | Value | Source |
|---|---|---|
| Base model | Qwen3-8B | Sec. 4.4 |
| Training data | GeneralThought-430K (filtered) + ToolScale | Sec. 4.4 |
| Learning rate | 1e-6 | Sec. 4.4 |
| Training batch / rollout batch | 16 / 8 | Sec. 4.4 |
| Max input / max generation | 24,000 / 8,000 tokens | Sec. 4.4 |
| Max turns per rollout | 50 | Sec. 4.4 |
| Hardware | 16 NVIDIA H100 GPUs | Sec. 4.4 |
| Homogeneity threshold | reward std < 0.1 | Sec. 3.2 |
| Training steps, wall-clock time, API spend | not 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.
Chapter 6
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.
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):
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.
Chapter 7
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.
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.
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.
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).
| Tools | Model | HLE | FRAMES | τ² | Cost | Latency |
|---|---|---|---|---|---|---|
| None | Qwen3-8B | 3.2 | 24.2 | – | 0.2 | 0.6 |
| Nemotron-49B | 3.6 | 25.6 | – | 0.4 | 1.1 | |
| Llama-3.3-70B | 3.8 | 32.4 | – | 0.5 | 1.4 | |
| Qwen3-235B | 5.2 | 34.3 | – | 2.6 | 3.3 | |
| Claude Opus 4.1 | 11.7 | 58.2 | – | 27.4 | 8.2 | |
| GPT-5 | 23.4 | 66.3 | – | 6.2 | 4.1 | |
| Basic | Qwen3-8B | 4.7 | 26.5 | 40.7 | 1.3 | 2.2 |
| Nemotron-49B | 6.8 | 28.2 | 23.2 | 2.5 | 3.5 | |
| Llama-3.3-70B | 4.6 | 42.3 | 17.6 | 2.8 | 4.3 | |
| Qwen3-235B | 14.0 | 39.5 | 52.9 | 12.3 | 10.2 | |
| Claude Opus 4.1 | 19.8 | 63.5 | 46.0 | 76.2 | 32.5 | |
| GPT-5 | 35.1 | 74.0 | 77.7 | 30.2 | 19.8 | |
| Basic + models | Qwen3-8B | 30.6 | 68.9 | 72.3 | 27.6 | 18.3 |
| Nemotron-49B | 25.8 | 57.9 | 66.7 | 25.6 | 17.1 | |
| Llama-3.3-70B | 19.7 | 52.4 | 55.8 | 19.7 | 13.4 | |
| Qwen3-235B | 32.8 | 74.2 | 75.6 | 29.7 | 21.2 | |
| Claude Opus 4.1 | 34.6 | 72.8 | 76.8 | 52.5 | 25.6 | |
| GPT-5 | 21.2 | 57.5 | 62.3 | 17.8 | 13.6 | |
| Basic + models | Orchestrator-8B | 37.1 | 76.3 | 80.2 | 9.2 | 8.2 |
Three readings of this table, from most to least clean:
Chapter 8
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.
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.
Chapter 9
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.
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:
Chapter 10
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.
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.
| What | Number | Source |
|---|---|---|
| HLE / FRAMES / τ², Orchestrator-8B | 37.1 / 76.3 / 80.2 | Table 1 |
| Same, GPT-5 with basic tools | 35.1 / 74.0 / 77.7 | Table 1 |
| Same, prompted Qwen3-8B with the full kit | 30.6 / 68.9 / 72.3 | Table 1 |
| Cost per task (HLE + FRAMES average) | 9.2 vs 30.2 vs 27.6 cents | Table 1 |
| Latency per task | 8.2 vs 19.8 vs 18.3 minutes | Table 1 |
| τ²-Bench cost, Orchestrator vs GPT-5 basic | 10.3 vs 31.3 cents | Table 16 |
| GPT-5 calls per task: Orchestrator / Claude manager | 1.6 / 6.2 | Table 15 |
| Prompted GPT-5 calls to its own family | 98% (300 HLE problems) | Fig. 3, App. A |
| HLE at about 18 cents: Orchestrator vs GPT-5 (10 turns, 16 cents) | about 36 vs about 27 | Fig. 6, read by eye |
| Unseen models: HLE / FRAMES / τ² at cost | 22.0 / 73.8 / 48.8 at 34.8 cents | Table 2 |
| Preference metric, Orchestrator vs GPT-5 | 46.7 / 68.4 / 79.5 vs 34.6 / 62.3 / 70.3 | Table 3 |
| ToolScale: domains, tools, DB entries, tasks | 10, 197, 7,048, 4,063 | Table 5 (our sums) |
| Training: lr, batch, rollouts, limits, GPUs | 1e-6, 16, 8, 24k in / 8k out / 50 turns, 16 H100 | Sec. 4.4 |
| Piece | In 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 0 | Weight the measures by the user's preference; wrong answers earn nothing. |
| A = (R − mean) / std | Compare 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 → drop | Skip groups where everyone did the same. |
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.
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.
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.