All papersAI agents and tools
An AI agent boss that learns to work without its cheat sheets
Paper: R^2Orch: Recursive Self-Improvement for Agent Orchestration via Self-Play within a Skill-Internalization Loop
Mingda Zhang, Yun Huang, Qiang Huang, Yanjin Li, Rui Qian, Qichao Zhao, Tiesunlong Shen, Na Zhao, Jian Wang, Xiaoying Tang · arXiv preprint (CUHK Shenzhen, Fudan, UIUC, Tsinghua, NUS) · Posted · 15 min read · arXiv 2610.22740
- An orchestrator builds a team of AI agents for each task.
- Today it learns from task lists people made and from hints in the prompt.
- That is costly to scale. Hints are hard to remove later.
- Training signals also go flat when all tries give the same result.
89.79average in-distribution accuracy with zero skills. The best baseline gets 86.00.
- The authors tested on 12 benchmarks: 6 in-distribution and 6 held out.
- Tasks cover question answering, math, code and interactive tasks.
- They compared with six families of baselines and ran ablations.
- R^2Orch is best on all twelve benchmarks, with zero skills.
- It lifts six other Worker models with no retraining.
- Both loops matter. Removing either one costs accuracy.
- Choosing tasks and removing skills together beat each rule alone.
R^2Orch leads on both seen and held-out benchmarksFrom Table 1In-distributionHeld-out
Hover, tap or focus a bar to read its exact value.
| Method | In-distribution (%) | Held-out (%) |
|---|
| Qwen3.5-9B | 61.35 | 49.84 |
| GRPO | 61.04 | 52.07 |
| AFlow | 74.99 | 63.71 |
| FlowSteer | 82.34 | 73.52 |
| SESA | 81.57 | 73.44 |
| R^2Orch | 89.79 | 78.79 |
- The first skills are written by hand for each dataset.
- All results come from Qwen3.5-9B Workers and public benchmarks.
- Much of the evidence is on simple tasks. It may not carry to your tools.
Jump to
Every detail from the paper
Cards follow the paper's own order. Dotted words link to Words to know. Numbers match the paper.
The problem
- Agentic orchestration is widely used for complex human tasks.
- Learning to orchestrate still has three problems.
- Curricula are hand-designed.
- Advantage collapse appears when all rollouts of a task reach the same outcome.
- Evaluation signals are unreliable, because each skill gets one noisy score.
The paradigm
- R^2Orch is a new paradigm: Recursive Self-Play Orchestration.
- An inner loop of self-play improves the orchestrator on tasks it picks itself.
- An outer loop improves how the inner loop improves.
The two ideas
- Recursive Learnability is a training objective.
- It rewards a Proposer for picking certain tasks.
- These are tasks whose rollouts keep reaching different outcomes.
- That must hold as skills are withdrawn.
- Skill Withdrawal lets the outer loop remove each skill.
- A controlled test in self-play shows the orchestrator does as well without it.
- Then the skill goes.
The cycle and results
- The loops form one cycle.
- Failures become skills. Skills become parameters.
- Withdrawals lead the Proposer to new failures.
- So the orchestrator moves toward zero-skill deployment.
- Twelve datasets show R^2Orch beats baselines in question answering, math, code and interactive tasks.
- Code is at github.com/beita6969/R2Orch.
Background
- Many agentic systems now solve human tasks.
- The field moves from hand-written agent pipelines to orchestrators that learn to build agent teams.
- The agent graph links task goals to teamwork.
- Each node has a role. Each edge is a hand-off.
- This improves control, composition and reuse.
- In practice, orchestrators still learn from tasks people collect and from in-prompt skills.
- That is costly to scale and hard to improve alone.
Three lines of work
- Three lines of work try to fix this (Figure 2).
- Learned orchestration improves workflows and planning from task feedback on a given task pool.
- Self-improving agents refine memory, harness code, answers or tasks in repeated loops.
- Skill scaffolds give procedural knowledge to a policy, in context or as training support.
Three challenges
- (i) Hand-designed curricula. Methods practice on task pools that people collect in advance.
- Self-play picks its own tasks, but the solver keeps its skills.
- So choosing tasks and withdrawing skills do not inform each other.
- (ii) Advantage collapse. Group-based RL learns from differences among rollouts.
- These vanish when all reach one outcome.
- Withdrawing a skill pushes tasks it supported toward all-wrong rollouts, so collapse returns.
- (iii) Unreliable signals.
- Scaffolds fade guidance by a success rate.
- That rate mixes task choice and skill effect.
- Skill libraries keep or retire skills on one noisy score each.
- They drift until injecting a skill scores worse than injecting nothing.
The proposal
- R^2Orch (Figure 2d) nests two loops.
- In the inner loop, self-play improves the Director on tasks a Proposer chooses.
- In the outer loop, the system improves how the inner loop improves.
- Two channels join the loops: one carries the objective down, one carries the evidence up.
Downward channel
- Recursive Learnability is the downward channel.
- It rewards the Proposer for tasks whose rollouts keep reaching different outcomes as skills leave.
- Each task is scored with the candidate skill withheld.
Upward channel
- Skill Withdrawal is the upward channel.
- A random part of each rollout group hides one skill.
- This makes self-play a controlled test.
- A Bayesian posterior over the skill's remaining benefit decides when it can leave.
The cycle
- The loops close into one cycle.
- Failures are distilled into skills. Skills are distilled into parameters.
- Withdrawals lead the Proposer to new failures.
- So the Director improves on its own and moves toward zero skills.
Results
- The test uses twelve benchmarks in question answering, math, code and interactive tasks.
- R^2Orch beats all baselines on every benchmark.
- It improves six other Worker backbones without retraining.
- It keeps its accuracy at zero skills.
Definition 1: agent graph
- An agent graph is a directed graph G = (V, E, kappa, o).
- Each node is an agent with a role prompt and a model route.
- Each edge is a directed or two-way hand-off between two agents.
- kappa gives every agent a layer.
- o is the output agent whose answer is returned.
- The role-prompted nodes extend operator nodes from earlier work.
Definition 2: Director trajectory
- A trajectory is T atomic edits from an empty graph to FINISH.
- Each edit is checked and applied before the next one.
- Feedback from each edit returns to the Director.
- The edit types: AddAgent, SetPrompt, SetModel, SetLayer, ConsiderRelation, DeleteAgent, SetOutput, FINISH.
- The final graph g is run by frozen Workers.
Problem statement
- Given an evaluation distribution, a frozen Worker pool, a verifier r and a skill library.
- The goal is a Director that builds a good agent graph.
- It must work with no skill in its context.
- The Director is trained on tasks that a Proposer chooses.
- The verifier r says 0 or 1 for correctness after Workers run the graph.
- The empty set marks zero-skill deployment.
- Skills scaffold training. The Proposer picks tasks whose rollouts reach different outcomes.
- Section 4 shows how a shrinking scaffold and a learned curriculum approach this goal.
One round of R^2OrchFrom Figure 3 and Algorithm 1- InnerProposer picks a task
- Hide one skill from some tries
- Director builds agent graphs
- Workers run, verifier scores
- Update Director and Proposer
- OuterWithdraw, admit or revise skills
One randomized rollout group drives both loops.
- The framework nests two self-improvement loops.
- In the inner loop, self-play improves the Director on tasks the Proposer picks.
- The outer loop withdraws the Director's skills as each stops helping.
Two time scales
- Both policies take proximal best responses on the fast scale.
- Each is a clipped step, in the style of two-time-scale stochastic approximation.
- The Director is trained on the Proposer's picks.
- It is scored by the value of the context it reads.
- With reward = correctness less a Worker cost.
- The Proposer is scored by the reward R_P of Section 4.2.
- On the slow scale, the outer loop updates the scaffold from the same rollout groups.
- The scaffold sets the randomized context of every group.
Randomized context
- Each task has retrieved skills K_x. One skill k_x is under test.
- The G rollouts split into a hidden part (n_h) and a visible part (n_v).
- Rollouts in the hidden part read K_x without k_x. n_h is larger than n_v.
- Rollouts in the visible part read all of K_x.
- The scaffold constrains the task mix and the context where R_P is computed.
- So each outer step rewrites the objectives of the inner loop.
Director update
- Most of each update already trains the Director without the candidate skill.
- The Director uses the group-relative estimator of GRPO, with this change.
- With centered advantages it is a leave-one-out gradient.
- Each rollout's baseline is the mean of the other rollouts.
- Scaled by (1 minus 1 over G).
What each loop contributes
- Let J be the success rate under a scaffold on the evaluation tasks.
- Over rounds it splits into inner gains and outer costs.
- Inner gain: what self-play adds on a fixed scaffold.
- Outer cost: what a scaffold change takes away.
- For one withdrawn skill.
- The cost is its benefit weighted by how often it is retrieved.
- With an empty final scaffold, the left side is the zero-skill objective.
- Recursive Learnability drives the inner gains. Skill Withdrawal limits the outer costs.
Proposition 1
- Proposition 1. Zero-skill success equals starting success plus inner gains less outer costs.
- Self-play also tracks each scaffold's equilibrium.
- The proof is in Appendix A, via Lemmas A.5 and A.6.
- Recursive Learnability is the downward channel.
- It rewards the Proposer for picking tasks with split outcomes.
- Rollouts must keep reaching different outcomes with the candidate skill withheld.
Tilt and its log-partition
- How much a task can raise success follows from the proximal step.
- A step of size beta tilts the Director toward success.
- The log-partition is the cumulant generating function of the outcome.
- Its slope and curvature at zero are the success probability and the outcome variance.
- A step gains beta * p(1 - p) in success.
- It costs beta^2 * p(1 - p) / 2 in KL, to leading order.
- Within a KL budget, the gain grows with the curvature.
Recursive target
- On the current Director, the curvature is the task's learnability.
- The progress that counts is what survives withdrawal.
- So Recursive Learnability takes the curvature on the context with the skill withheld.
- It equals 4 p (1 - p) at p-minus, the success rate without the skill.
- This is proportional to the expected advantage energy of the group.
- It vanishes exactly when p-minus is 0 or 1, where every group collapses.
- It peaks at one half.
- Each withdrawal removes one more skill.
- It follows the scaffold down to the zero-skill Director.
Proposer reward
- The hidden part of each group already reads K_x without k_x.
- So it measures p-minus at no extra cost.
- The reward is a plug-in estimate of learnability on this part.
- It is discounted by gamma below 1 when only the visible part progresses.
- It is penalized by lambda_P on collapse.
- A Beta prior shrinks the success rate toward the dataset's running hidden-part success rate.
- With strength m.
- c_x flags collapse, where all outcomes agree.
- h_x flags the case where the hidden part never wins and the visible part does.
Proposer update
- The rewards become a curriculum through the Proposer.
- The Proposer is a KL-regularized environment designer.
- It maximizes expected reward minus tau times KL to a reference over a candidate list.
- The optimum is a closed-form Gibbs curriculum.
- It tilts the base model toward tasks of high Recursive Learnability.
- A pairwise update moves the Proposer toward those tasks.
- With each pick as the other's baseline.
Proposition 2
- Proposition 2. Under a small trust region.
- A task's success gain grows with its Recursive Learnability.
- The proof is in Appendix A, via Lemmas A.1 to A.3.
- Skill Withdrawal is the upward channel.
- The inner loop supplies evidence for the outer loop.
- It keeps each outer cost small by withdrawing skills.
- A skill goes when the same groups show the Director does as well without it.
Estimand and estimator
- The hidden part is chosen at random, so each rollout group is a randomized block.
- The difference of the two part means is an unbiased estimator.
- It estimates the skill's effect. This is the Neyman estimator.
- It is z_x = mean success of visible part minus mean success of hidden part.
- Its expected value is the skill's effect on that task.
- Averaging over tasks that test the skill gives its benefit.
- This estimates its cost per retrieval in the round cost.
- The plain success rate mixes the curriculum term with the skill term.
- Recursive Learnability pulls the curriculum term toward one half.
- So a threshold on success reads the curriculum, not the skill.
- The paired contrast z_x removes the curriculum.
Posterior and decisions
- Contrasts accumulate into a Bayesian-bootstrap posterior per skill.
- A Thompson draw tests first the skill closest to withdrawal.
- Withdrawal and admission are Bayes decisions.
- The losses: the positive part of the effect for withdrawing, a tolerance epsilon for keeping.
- An asymmetric zero-one loss for admitting.
- A skill is withdrawn if it has at least n_min records.
- Its expected positive effect must be at most epsilon.
- A skill is admitted if it has at least n_min records.
- The chance its effect is zero or less must be at most alpha.
- So each withdrawal costs at most epsilon in posterior expectation.
- This is measured on the tasks where the skill was tested.
Failures to skills
- The same posterior closes the outer loop.
- The least helpful skill is revised first.
- New skills are distilled from groups where both parts fail (Appendix C).
- So failures exposed by withdrawals become the next skills to internalize.
Proposition 3
- Proposition 3. Random hiding makes the paired contrast unbiased for a skill's benefit.
- The proof is in Appendix A, via randomization.
Research questions
- RQ1. How does R^2Orch compare in distribution and on held-out tests?
- RQ2. Does the Director transfer to other Worker backbones without retraining?
- RQ3. Do both loops matter, and does accuracy hold at zero skills?
- RQ4. Does Recursive Learnability pick tasks that keep giving a signal as skills leave?
- RQ5. Does Skill Withdrawal remove each skill only once the Director no longer needs it?
Setup
- Six in-distribution (IID) benchmarks give the training tasks and IID tests.
- Six out-of-distribution (OOD) benchmarks are held out.
- Baselines span direct prompting, backbone training and workflow search.
- They also include RL-trained orchestration, skill internalization and self-play with skill evolution.
- All follow the shared protocol of Table 1 (Appendix D).
R^2Orch has the best in-distribution exact matchFrom Table 1Hover, tap or focus a bar to read its exact value.
| Method | In-distribution (%) | Held-out (%) |
|---|
| DeepSeek-V4-Flash | 54.84 | 66.95 |
| SFT | 44.53 | 51.13 |
| GRPO | 46.88 | 52.07 |
| AFlow | 82.11 | 63.71 |
| AgentFlow | 83.83 | 71.99 |
| FlowSteer | 85.94 | 73.52 |
| SKILL0 | 85.16 | 73.36 |
| PATS | 86.64 | 76.13 |
| MetaSkill | 84.77 | 69.22 |
| R^2Orch | 88.59 | 78.79 |
What the table shows
- R^2Orch is best on all twelve benchmarks, against six families of baselines.
- The lead holds on the held-out half at zero skills.
- Training the backbone alone changes little.
- Orchestration lifts the frozen Workers far higher.
- So the gains come from how the Workers are organized.
- Other orchestrators learn from signals that stop tracking the Director.
- These are fixed task pools, success rates or budgets.
- Frontiers measured with skills in context.
- R^2Orch replaces them with Recursive Learnability and Skill Withdrawal.
- Its lead is largest on AIME 2026, WebShop and ALFWorld, where the ablations cost most.
Table 1 in numbers: in-distribution, per benchmark
| Method | HotpotQA EM | NQ-Open EM | MedQA Acc. |
|---|
| Qwen3.5-9B | 57.81 | 23.59 | 70.94 |
| DeepSeek-V4-Flash | 71.25 | 38.44 | 84.38 |
| SFT | 63.28 | 25.78 | 73.59 |
| GRPO | 69.22 | 24.53 | 77.03 |
| AFlow | 87.66 | 76.56 | 89.22 |
| AgentFlow | 86.25 | 81.41 | 88.44 |
| FlowSteer | 87.97 | 83.91 | 90.94 |
| SKILL0 | 87.34 | 82.97 | 89.53 |
| PATS | 89.06 | 84.22 | 91.41 |
| SESA | 88.13 | 83.28 | 88.75 |
| MetaSkill | 87.03 | 82.50 | 88.44 |
| R^2Orch | 91.09 | 86.09 | 94.06 |
Table 1a: HotpotQA EM, NQ-Open EM, MedQA accuracy (five-run mean, %).
The paper also reports F1 and standard deviations. Best on every column is R^2Orch.
| Method | AIME 2026 | MBPP+ | ALFWorld |
|---|
| Qwen3.5-9B | 48.67 | 78.59 | 47.19 |
| DeepSeek-V4-Flash | 49.33 | 84.69 | 60.16 |
| SFT | 34.67 | 78.28 | 40.94 |
| GRPO | 34.00 | 82.19 | 50.94 |
| AFlow | 52.00 | 85.31 | 73.44 |
| AgentFlow | 61.33 | 85.63 | 76.09 |
| FlowSteer | 67.33 | 88.91 | 82.19 |
| SKILL0 | 64.67 | 87.97 | 83.44 |
| PATS | 74.00 | 90.63 | 87.97 |
| SESA | 68.00 | 88.44 | 81.09 |
| MetaSkill | 55.33 | 86.25 | 79.06 |
| R^2Orch | 81.33 | 93.13 | 90.63 |
Table 1b: AIME 2026 accuracy, MBPP+ Pass@1, ALFWorld success rate (%).
| Method | IID EM | IID F1 | IID Acc. |
|---|
| Qwen3.5-9B | 40.70 | 53.32 | 61.35 |
| DeepSeek-V4-Flash | 54.84 | 66.14 | 69.64 |
| SFT | 44.53 | 57.54 | 56.87 |
| GRPO | 46.88 | 56.80 | 61.04 |
| AFlow | 82.11 | 84.96 | 74.99 |
| AgentFlow | 83.83 | 87.11 | 77.87 |
| FlowSteer | 85.94 | 87.90 | 82.34 |
| SKILL0 | 85.16 | 87.50 | 81.40 |
| PATS | 86.64 | 89.22 | 86.00 |
| SESA | 85.70 | 88.67 | 81.57 |
| MetaSkill | 84.77 | 87.19 | 77.27 |
| R^2Orch | 88.59 | 90.82 | 89.79 |
Table 1c: in-distribution averages.
Table 1 in numbers: held-out, per benchmark
| Method | TriviaQA EM | MuSiQue EM | GPQA Acc. |
|---|
| Qwen3.5-9B | 44.53 | 39.22 | 61.41 |
| DeepSeek-V4-Flash | 70.31 | 50.31 | 74.22 |
| SFT | 46.41 | 38.75 | 68.91 |
| GRPO | 47.66 | 40.94 | 67.03 |
| AFlow | 90.31 | 77.19 | 75.78 |
| AgentFlow | 88.91 | 79.06 | 79.53 |
| FlowSteer | 92.50 | 79.69 | 83.91 |
| SKILL0 | 91.25 | 79.22 | 81.25 |
| PATS | 93.75 | 82.97 | 82.97 |
| SESA | 92.66 | 81.41 | 85.47 |
| MetaSkill | 89.53 | 77.97 | 78.59 |
| R^2Orch | 95.31 | 85.31 | 86.56 |
Table 1d: TriviaQA EM, MuSiQue EM, GPQA accuracy (%).
R^2Orch is best on every column.
| Method | MATH-Hard | SWE-Bench | WebShop |
|---|
| Qwen3.5-9B | 89.38 | 15.78 | 32.81 |
| DeepSeek-V4-Flash | 92.50 | 35.78 | 65.31 |
| SFT | 87.97 | 14.69 | 32.97 |
| GRPO | 87.81 | 17.50 | 35.94 |
| AFlow | 91.41 | 28.28 | 59.38 |
| AgentFlow | 93.13 | 39.38 | 75.94 |
| FlowSteer | 93.44 | 37.97 | 78.75 |
| SKILL0 | 92.50 | 36.88 | 82.81 |
| PATS | 93.44 | 40.16 | 87.97 |
| SESA | 92.81 | 37.81 | 77.66 |
| MetaSkill | 91.56 | 34.53 | 72.19 |
| R^2Orch | 94.69 | 42.81 | 91.09 |
Table 1e: MATH-Hard accuracy, SWE-Bench resolved, WebShop success rate (%).
| Method | OOD EM | OOD F1 | OOD Acc. |
|---|
| Qwen3.5-9B | 41.88 | 51.21 | 49.84 |
| DeepSeek-V4-Flash | 60.31 | 69.77 | 66.95 |
| SFT | 42.58 | 54.85 | 51.13 |
| GRPO | 44.30 | 54.38 | 52.07 |
| AFlow | 83.75 | 87.54 | 63.71 |
| AgentFlow | 83.98 | 87.42 | 71.99 |
| FlowSteer | 86.09 | 89.30 | 73.52 |
| SKILL0 | 85.23 | 88.05 | 73.36 |
| PATS | 88.36 | 90.59 | 76.13 |
| SESA | 87.03 | 89.81 | 73.44 |
| MetaSkill | 83.75 | 86.96 | 69.22 |
| R^2Orch | 90.31 | 92.19 | 78.79 |
Table 1f: held-out averages.
Each test set has 128 items. AIME 2026 has 30.
Findings
- The Director was trained with Qwen3.5-9B Workers.
- It improves all six other backbones on every benchmark with no retraining.
- The roles and hand-offs it builds fit any Worker.
- Weaker backbones gain the most.
- The IID range across backbones narrows from 25.7 to 6.4 points.
- The graph supplies the planning and checking they lack.
- On held-out benchmarks, the mean gain is largest on interactive tasks.
- Many steps compound each hand-off there.
- The gain is smallest on math, which is near its ceiling.
How it was tested
- The six other Worker backbones are gpt-5.6-luna, grok-4.5, claude-haiku-5-5.
- They also include deepseek-v4-flash, gemini-3.5-flash and glm-5.3-flash.
- For each, the Director keeps the Qwen3.5-9B weights and skills are off.
- Only the Workers change.
- Frozen means the backbone is prompted directly.
- Plus R^2Orch means the same backbone runs under the trained Director.
- Radar plots show IID scores. Bars show held-out gains by domain (Figure 4e).
Removing any part of the recipe costs accuracy on AIME 2026From Table 2Hover, tap or focus a bar to read its exact value.
| Variant | AIME (%) |
|---|
| Direct prompting | 48.67 |
| GRPO only | 59.33 |
| No skills | 64.00 |
| Uniform picks | 66.67 |
| Fixed scaffold | 66.67 |
| Full R^2Orch | 81.33 |
Findings
- Both loops are needed (Table 2).
- Skills give the Director the early successes that make hard tasks learnable.
- The Proposer keeps groups away from uniform outcomes.
- Most of each group hides the candidate skill.
- Updates teach the Director to succeed without it.
- Zero-skill accuracy overtakes the with-skills accuracy midway through training (Figure 4a).
- A skill has already stopped helping before it leaves.
- So the outer costs stay small while inner gains build up (Proposition 1).
Table 2: ablation of R^2Orch (zero skills, five-run mean %)
| Variant | HotpotQA | NQ-Open | MedQA |
|---|
| Qwen3.5-9B direct | 57.81 | 23.59 | 70.94 |
| GRPO only | 86.09 | 82.97 | 88.44 |
| No skills (no scaffold) | 86.88 | 83.59 | 89.22 |
| Uniform picks | 90.16 | 83.59 | 92.34 |
| Failure reward | 87.97 | 82.66 | 90.47 |
| Learnability on current scaffold | 90.47 | 84.38 | 92.03 |
| Dynamic sampling (DAPO) | 88.13 | 83.59 | 92.50 |
| Scaffold fixed | 88.13 | 82.97 | 90.47 |
| Success-rate threshold (PATS) | 90.00 | 84.53 | 91.88 |
| Preset budget (SKILL0) | 89.69 | 84.22 | 91.25 |
| Validation gap (SLIM) | 90.63 | 85.00 | 93.28 |
| R^2Orch (Full) | 91.09 | 86.09 | 94.06 |
Table 2a: in-distribution (HotpotQA, NQ-Open, MedQA Ans EM or Acc.).
| Variant | AIME | MBPP+ | ALFWorld |
|---|
| Qwen3.5-9B direct | 48.67 | 78.59 | 47.19 |
| GRPO only | 59.33 | 86.88 | 73.44 |
| No skills (no scaffold) | 64.00 | 88.13 | 77.81 |
| Uniform picks | 66.67 | 90.47 | 86.88 |
| Failure reward | 64.00 | 90.00 | 84.06 |
| Learnability on current scaffold | 70.67 | 91.25 | 86.88 |
| Dynamic sampling (DAPO) | 68.67 | 91.09 | 87.50 |
| Scaffold fixed | 66.67 | 88.75 | 77.81 |
| Success-rate threshold (PATS) | 74.67 | 90.31 | 87.81 |
| Preset budget (SKILL0) | 70.67 | 90.63 | 86.09 |
| Validation gap (SLIM) | 72.67 | 91.56 | 88.28 |
| R^2Orch (Full) | 81.33 | 93.13 | 90.63 |
Table 2b: in-distribution (AIME, MBPP+, ALFWorld).
| Variant | TriviaQA | MuSiQue | GPQA |
|---|
| Qwen3.5-9B direct | 44.53 | 39.22 | 61.41 |
| GRPO only | 91.41 | 78.91 | 80.78 |
| No skills (no scaffold) | 92.34 | 80.63 | 82.66 |
| Uniform picks | 93.44 | 81.72 | 84.53 |
| Failure reward | 92.66 | 81.09 | 83.44 |
| Learnability on current scaffold | 94.69 | 83.13 | 85.47 |
| Dynamic sampling (DAPO) | 94.69 | 82.97 | 84.84 |
| Scaffold fixed | 92.34 | 81.25 | 83.28 |
| Success-rate threshold (PATS) | 93.59 | 82.97 | 84.69 |
| Preset budget (SKILL0) | 93.75 | 82.66 | 84.38 |
| Validation gap (SLIM) | 94.84 | 83.28 | 85.31 |
| R^2Orch (Full) | 95.31 | 85.31 | 86.56 |
Table 2c: held-out (TriviaQA, MuSiQue, GPQA).
| Variant | MATH | SWE | WebShop |
|---|
| Qwen3.5-9B direct | 89.38 | 15.78 | 32.81 |
| GRPO only | 92.03 | 35.00 | 71.72 |
| No skills (no scaffold) | 92.34 | 37.66 | 76.09 |
| Uniform picks | 93.91 | 38.91 | 87.03 |
| Failure reward | 92.81 | 38.13 | 83.13 |
| Learnability on current scaffold | 93.59 | 40.00 | 85.94 |
| Dynamic sampling (DAPO) | 93.91 | 39.53 | 87.81 |
| Scaffold fixed | 92.81 | 38.13 | 76.09 |
| Success-rate threshold (PATS) | 94.06 | 39.53 | 87.66 |
| Preset budget (SKILL0) | 93.75 | 39.38 | 85.00 |
| Validation gap (SLIM) | 93.59 | 40.47 | 89.22 |
| R^2Orch (Full) | 94.69 | 42.81 | 91.09 |
Table 2d: held-out (MATH, SWE-Bench, WebShop).
The first row of each group removes the whole component. The other rows change one part.
Recursive Learnability needs the fewest rollouts per effective groupFrom Figure 5cHover, tap or focus a bar to read its exact value.
| Proposer objective | Rollouts |
|---|
| R^2Orch | 14.1 |
| Uniform | 16.7 |
| GRESO | 18.8 |
| AZR | 25.6 |
| DAPO | 30.3 |
| SFL | 45.9 |
| R-Zero | 51.2 |
Findings
- Recursive Learnability picks tasks that Proposition 2 expects to gain most.
- These are tasks whose rollouts still disagree with the skill withheld.
- New groups on tasks of middle success rate reach mixed outcomes.
- That gives a nonzero GRPO signal about four times as often.
- The comparison is with p = 0 or p = 1 (Figure 5e).
- The trained Proposer learns to skip solved candidates (Figure 4c, d).
- Learnability measured with the skill in context picks tasks that collapse once the skill leaves.
- So it trails on every IID benchmark and the mean OOD score.
- So does every other objective (Table 2, Figure 5a, b).
- The hidden part already measures this score, so selection costs no extra rollouts.
- It uses the fewest rollouts per effective group (Figure 5c, d).
- These groups lead the Director to build the most distinct graph types (Figure 4b).
Figure 5: Proposer objectives and cost
| Objective | HotpotQA | NQ-Open | MedQA |
|---|
| Uniform sampling | 90.16 | 83.59 | 92.34 |
| Dynamic sampling (DAPO) | 88.13 | 83.59 | 92.50 |
| Selective rollout (GRESO) | 88.44 | 83.28 | 91.56 |
| Learnability, current scaffold (SFL) | 90.47 | 84.38 | 92.03 |
| Solve-rate reward (Absolute Zero) | 90.78 | 84.53 | 92.34 |
| Uncertainty reward (R-Zero) | 90.31 | 84.38 | 92.50 |
| Recursive Learnability (ours) | 91.09 | 86.09 | 94.06 |
Figure 5a: IID scores by Proposer objective.
| Objective | AIME | MBPP+ | ALFWorld |
|---|
| Uniform sampling | 66.67 | 90.47 | 86.88 |
| Dynamic sampling (DAPO) | 68.67 | 91.09 | 87.50 |
| Selective rollout (GRESO) | 68.00 | 90.31 | 85.78 |
| Learnability, current scaffold (SFL) | 70.67 | 91.25 | 86.88 |
| Solve-rate reward (Absolute Zero) | 77.33 | 92.19 | 88.13 |
| Uncertainty reward (R-Zero) | 70.00 | 91.72 | 87.34 |
| Recursive Learnability (ours) | 81.33 | 93.13 | 90.63 |
Figure 5a, other benchmarks.
| Objective | Rollouts | Tokens | A100 hours |
|---|
| R^2Orch | 14.1 | 1.27M | 53h |
| Uniform | 16.7 | 1.16M | 46h |
| GRESO | 18.8 | 1.15M | 131h |
| AZR | 25.6 | 2.48M | 111h |
| DAPO | 30.3 | 1.89M | 165h |
| SFL | 45.9 | 2.56M | 58h |
| R-Zero | 51.2 | 4.94M | 282h |
Figure 5c: selection cost per effective group.
An effective group mixes successes and failures, so its GRPO advantages are not all zero.
Reading the figure
- Figure 5b ranks mean held-out scores by pairwise differences.
- The order is R^2Orch, AZR, R-Zero, DAPO, SFL, Uniform, then GRESO.
- R^2Orch is 3.28 points above GRESO and 2.00 above DAPO.
- Figure 5d shows training and selection rollouts per cycle.
- Figure 5e counts seen-task picks by previous success rate p.
- The counts are 13%, 30%, 4%, 39% and 14% over the bins.
Findings
- Skill Withdrawal removes a skill once it no longer helps the current Director.
- It reads the skill's own effect, not the success rate.
- The success rate mixes that effect with the curriculum that Recursive Learnability shapes.
- So a success-rate threshold misreads the skill.
- It trails the paired contrast.
- As do a preset budget and a validation gap (Proposition 3, Table 2).
- All 12 withdrawals pass the decision rule on the card's own contrasts.
- The posterior expected positive effect is at most 0.019.
- Around each withdrawal, the seed cards no longer raise held-out accuracy (Figure 5f).
- A fixed scaffold costs most at zero skills.
- The Director keeps leaning on skills that never leave its context.
Conclusion
- R^2Orch nests two loops.
- Recursive Learnability picks tasks learnable without the candidate skill.
- Skill Withdrawal retires skills that stop helping.
- It leads on all twelve benchmarks at zero skills.
Limitations
- R^2Orch starts from initial skills that the authors write by hand for each dataset.
- The withdrawals, revisions and distillations that follow build on them.
- Deriving initial skills automatically for a new domain is still open.
Ethical considerations
- The work uses public benchmarks as their creators intend.
- It has no human participants, annotators or personal data.
- ALFWorld and WebShop are simulated.
- Code benchmarks run in standard harnesses.
- Orchestrating agents can be misused like any agent system.
- A self-improving orchestrator shares this risk.
- The authors release code for inspection and advise a sandbox.
Acknowledgements
- The authors used AI assistants to polish language and help with LaTeX typesetting.
- All other work, including experiments and first drafts, is their own.
- This appendix gives the theory behind the two channels.
- It covers policy-space progress, rollout estimators and posterior decisions.
- Proposition 1 rests on Lemmas A.4 to A.6.
- Proposition 2 rests on Lemmas A.1 to A.3 and A.9.
- Proposition 3 rests on Lemmas A.7 and A.8.
- Table 3 lists the notation.
- This write-up summarizes each lemma. Proofs are in the PDF.
A.1 Conditional setup and policy likelihoods
- Fix a task, scaffold, context K and candidate skill k.
- K-minus means K without k. Success rates are p-plus (with) and p-minus (without).
- The two parts have fixed positive sizes n_h and n_v.
- Frozen Worker kernels do not depend on the Director parameters.
- So the likelihood score is the sum of per-action policy scores.
- Different editing histories can reach the same final graph.
- So group gradients use the record score, not a terminal-graph score.
A.2 KL tilting and controllable progress
- Lemma A.1 (KL-tilt progress). The best KL-limited update tilts the reference by exp(beta * score).
- The gain at small beta is beta times the score variance.
- A small KL budget delta gives a bounded gain.
- The gain is about the square root of 2 * delta * variance.
- For a binary outcome the variance is p(1 - p).
- At a common small tilt, gains rank by p(1 - p).
- At finite tilt the rank can change.
- At beta = log 2, p = 0.3 gives 0.21 / 1.3.
- But p = 0.6 gives the smaller 0.24 / 1.6.
- With stochastic Workers, the controllable variance is only the graph-level part.
- Say every graph has Q = 1/2.
- Then correctness variance is 1/4, but no graph shift helps.
- Lemma A.2 (Equal tilt).
- The best split of a KL budget across tasks uses one common tilt.
- This holds for all tasks with positive variance.
- This motivates one advantage scale across tasks, by batch whitening.
A.3 Advantage energy, collapse, and shrinkage
- Lemma A.3. Expected advantage energy is (n - 1) p (1 - p).
- So learnability 4p(1 - p) is 4 / (n - 1) times that energy.
- A group collapses exactly when its outcomes agree.
- Collapse probability is p^n + (1 - p)^n.
- The same frontier that maximizes learnability minimizes the collapse chance of a uniform group.
- The mixed group has extra energy from skill dependence.
- Which is why the reward reads the hidden part.
- The Beta reward is a posterior-mean plug-in estimate.
- It exceeds the posterior expectation of learnability by 4 times the posterior variance.
- With large groups, the reward converges to learnability at p-minus.
- The exceptional branch keeps a discounted incentive when the hidden part keeps failing.
A.4 Mixed-context gradients and the last skill
- Lemma A.4 (Mixed-group gradient). With group-mean centering.
- The expected gradient mixes the hidden and visible value gradients.
- Weights are n_h / G and n_v / G.
- With separate centering per part, the weights are (n_h - 1) and (n_v - 1).
- In the last-skill case, the hidden weight is above n_h / G.
- It exceeds n_h / G by (n_h - n_v) / [G (G - 2)].
- With a 3 / 2 split, weights are 2 .
- 1 and relative scale is 3 / 4.
- A singleton part adds no centered gradient.
- Once no skill is retrieved.
- All G rollouts share the empty context and use whole-group centering.
- PPO clipping, anchoring, batch whitening and filtering turn this into the training surrogate.
A.5 Round accounting and interacting withdrawals
- Lemma A.5 (Round decomposition).
- Success after T rounds equals the start plus inner gains less outer costs.
- It holds for any sequence of policies and scaffolds.
- Removing several skills adds one cost per successive context.
- Two redundant skills can each cost zero alone and cost one when both go.
- No two withdrawals share a round in the runs.
- Re-testing can restore a skill whose removal hurts.
- A ledger targets tasks where the skill was tested.
- Which can differ from the evaluation tasks.
- The posterior bound transfers to the round cost up to a drift d_k.
- The cost is at most a_k times (epsilon + d_k).
- Changing the evaluation distribution adds a term, so the target keeps the distribution fixed.
A.6 Tracking under separated scaffold changes
- Lemma A.6 (Two-time-scale tracking).
- The inner state follows a stochastic recursion.
- Step sizes sum to infinity and have a finite square sum.
- The modes are finite and each has a stable equilibrium.
- Mode switches are rare enough that their spacings grow.
- Then the share of time far from the current equilibrium goes to zero.
- The proof uses a martingale argument and a flow approximation on each window.
- Running statistics are held fixed within each mode.
A.7 Randomized contrasts, bootstrap means, and decisions
- Lemma A.7 (Randomization).
- Random assignment of rollout slots makes the contrast unbiased.
- It is unbiased for the skill effect.
- Mean group success alone cannot identify the effect.
- The same mean can come from zero or nonzero effects.
- The paired contrast is needed.
- The design variance has a closed form in the part-level variances.
- Adaptive task and skill selection does not destroy within-group randomization.
- The ledger mean tracks the average of the predictable effects.
- With error at most 1 / n.
- The 30-cycle window limits drift.
- Bayesian-bootstrap weights are Dirichlet(1, ..., 1).
- The posterior mean equals the mean contrast.
- Lemma A.8 (Bayes decisions). Withdraw exactly when the expected positive effect is at most epsilon.
- Admit exactly when the chance of a non-beneficial effect is at most alpha.
- Skills are versioned by identifier, version and content hash.
A.8 The anchored curriculum and distinct pairs
- Lemma A.9 (Anchored curriculum). The unique best Proposer is the Gibbs distribution of Eq. (10).
- The pairwise update gradient matches the gradient of expected reward.
- The distinct-pair sampler redraws the second pick from the remaining candidates.
- That changes the pair weights.
- The practical stationary point also depends on pair weights, reward scale and the trust region.
- A two-candidate example shows the raw pair gradient stays nonzero at the Gibbs optimum.
A.9 The three propositions
- Proposition 1 follows from Lemma A.5 plus a zero-skill test step.
- Lemma A.6 and Lemma A.4.
- Proposition 2 follows from Lemma A.1 and the advantage-energy result of Lemma A.3.
- Lemma A.2 gives the shared-tilt optimum, and Lemma A.9 gives the expected-reward form.
- Proposition 3 follows from Lemma A.7, then Lemma A.8 for the decisions.
| Symbol | Meaning |
|---|
| pi_theta, rho_phi, rho_0 | Director, Proposer, Proposer reference |
| G = n_h + n_v | Rollouts per group (hidden, visible) |
| p-plus, p-minus | Success under K_x and under K_x without k_x |
| R_P, p-tilde_x | Proposer reward, shrunk success rate |
| z_x, Delta_k(x) | Paired contrast, skill effect on task x |
| W_t, N_t | Skills withdrawn, admitted in round t |
| beta, tau | Director step size, Proposer KL weight |
Table 3 (part): notation.
Shrinkage and compute factor
- The success rate p-tilde shrinks toward a running hidden-part success rate of the task's dataset.
- The running rate is an exponential moving average with decay 0.9, starting at one half.
- The positive reward term is multiplied by a compute factor.
- The factor is (mean dataset duration / mean task duration) to the power eta.
- So tasks are compared by learning progress per unit of compute.
- A task without both parts is scored by learnability of the whole-group shrunk success rate.
- With the same collapse penalty.
Prior record and cost term
- The Thompson draw adds one pseudo-record from a wide zero-mean prior.
- A skill with no data is drawn from the prior alone.
- The Director reward subtracts lambda times the normalized Worker cost from correctness.
- The contrasts always use raw correctness.
Director update
- The loss is the clipped PPO surrogate on the advantages of Eq. (5).
- Advantages are whitened over the batch, which rescales every task by the same factor.
- The loss is averaged over tokens, plus a KL anchor to the base model.
- Samples with tiny advantage are dropped, except a small share kept for the anchor.
Proposer update
- Each candidate list gives two distinct picks a and b.
- Draw a from the choice policy.
- Draw b from the policy conditioned on b not equal to a.
- The advantage of a is half the reward difference.
- Scaled to unit root mean square over the batch.
- The pick b takes the negative.
- The loss adds tau times KL to the reference.
- A trust region drops the policy term once the pair's tilt passes a bound.
- Choice stays stochastic.
Graph canvas
- Agents, layers and relations are edited through the action set of Definition 2.
- The canvas validates each edit before it is applied.
- Algorithm 1 lists one round. Each step cites the equation it implements.
- An LLM editor revises skills, the least helpful first.
- It distills new skills from groups in which both parts fail.
- Withdrawals follow Eq. (14).
- A new or revised skill enters on trial under a new ledger key (identifier.
- Version, content hash).
- Its records start afresh.
- Records for an unchanged skill stay pooled across Director updates.
- The admit rule admits it.
- A trial skill still not admitted after 3 times n_min records is discarded.
- Withdrawal is checked first.
- The two rules never act on one skill in the same round.
- A task with no skills runs its G rollouts without skills and adds no record.
- Each posterior uses the records of the last 30 cycles.
- 30% of tasks re-test withdrawn skills, which can be restored.
Algorithm 1: one round
- For each candidate list, draw two distinct tasks from the Proposer.
- Retrieve skills K_x. On a re-test task, add one withdrawn skill as k_x.
- Otherwise draw k_x by Thompson sampling and draw the hidden part uniformly.
- Set each rollout's context. The hidden part loses k_x.
- Run the Director and execute its graph on the Workers. Record correctness.
- Compute the Proposer reward R_P.
- If skills exist.
- Set z_x to visible mean minus hidden mean and append to the ledger.
- Take a clipped Director step and a distinct-pair Proposer step.
- For each skill with at least n_min records.
- Update the posterior and withdraw, admit or restore it.
- Discard stale trial skills. Revise the lowest-benefit skill. Distill new candidates.
| Symbol | Meaning | Value |
|---|
| G (n_h, n_v) | Rollouts per task (hidden, visible) | 5 (3, 2) |
| epsilon | Withdrawal tolerance on success rate | 0.02 |
| alpha | Admission risk | 0.05 |
| n_min | Minimum records per decision | 12 |
| B | Bayesian-bootstrap draws | 2000 |
| none | Thompson prior standard deviation | 0.25 |
| none | Evidence window (cycles) | 30 |
| none | Share of tasks that re-test withdrawn skills | 0.3 |
| gamma | Discount when only visible part succeeds | 0.5 |
| lambda_P | Penalty when all rollouts agree | 0.2 |
Table 4: hyperparameters (part 1).
| Symbol | Meaning | Value |
|---|
| m | Shrinkage strength | 2 |
| eta | Compute-factor exponent | 0.5 |
| lambda | Worker-cost weight in Director reward | 0.005 |
| tau | Proposer KL anchor | 1.0 |
| none | Trust region on Proposer tilt (nats) | 4.0 |
| none | Director KL anchor; PPO clip (low, high) | 0.005; (0.2, 0.28) |
| none | Learning rate (Director, Proposer), cosine decay | 10^-5, 10^-5 |
| none | Base model (Director, Proposer, Workers) | Qwen3.5-9B |
| none | LoRA rank | 64 |
| none | Tasks per cycle | 24 (2 lists of 8 per benchmark, 2 picks each) |
| none | Director updates | 200 |
| none | Sampling temperature (Director, Proposer, Worker) | 1.0, 1.0, 0.3 |
Table 4: hyperparameters (part 2).
Benchmarks and splits
- The six IID benchmarks are HotpotQA, NQ-Open, MedQA, AIME, MBPP+ and ALFWorld.
- They supply training tasks and IID tests.
- AIME trains on pooled problems of earlier years and tests on AIME 2026.
- The six OOD benchmarks are TriviaQA, MuSiQue, GPQA, MATH-Hard, SWE-Bench and WebShop.
- They are used only for testing.
- Each test set has 128 items. AIME 2026 has 30.
- They are disjoint from the training tasks.
- One run's 0 or 1 metric lies on a k / 128 grid.
- A five-run mean on a k / 640 grid.
- Training pools and sizes are released with the code.
- The curves in Figure 4a use a separate held-out set.
- It has 32 tasks from each IID dataset.
Metrics
- HotpotQA, NQ-Open, TriviaQA and MuSiQue report exact match (EM) and F1.
- MedQA, AIME 2026, GPQA and MATH-Hard report accuracy.
- MBPP+ reports Pass@1.
- ALFWorld and WebShop report success rate (SR).
- SWE-Bench reports the share of resolved issues.
Baselines and fairness
- Qwen3.5-9B and DeepSeek-V4-Flash are prompted directly.
- SFT and GRPO (with dynamic sampling) train Qwen3.5-9B on the same tasks.
- Each keeps the configuration whose weights score best under its default recipe.
- Other baselines: AFlow, AgentFlow, FlowSteer, SKILL0, PATS, SESA and MetaSkill.
- Each runs the best configuration from its paper.
- All share the frozen Workers, training tasks and compute budget.
- R^2Orch is tested at zero skills.
Ablation variants
- Each ablation changes one component and keeps the rest fixed.
- In each group of Table 2, the first row removes the whole component.
- Those are GRPO only, a failure reward, and a fixed scaffold.
- Other rows remove the skills or the Proposer's picks.
- They replace only the Proposer's reward, or only the withdrawal rule.
- Withdrawal-rule thresholds are tuned on validation.
Proposer objectives
- Figure 5a to e replace only the Proposer objective.
- The alternatives: uniform sampling, DAPO, GRESO, SFL, Absolute Zero and R-Zero.
- The Director update, scaffold, withdrawal rule and training rollouts stay fixed.
- Every objective trains 24 groups of five rollouts per cycle.
- DAPO's discarded rollouts count toward its cost.
- Scores are five-run means at zero skills.
Backbone transfer
- The Director keeps the weights trained with Qwen3.5-9B Workers.
- Only the Workers are replaced, with skills off.
Training dynamics
- Figure 4a evaluates every cycle's checkpoint on the held-out set.
- With current skills and with none.
- Figure 4b counts the distinct graph types over the six IID datasets.
- A candidate is unseen if never tried.
- Otherwise its previous success rate sets its class.
- Unsolved (p = 0), learnable (0 < p < 1) or solved (p = 1).
- Figure 4c sums the Proposer's probability per class.
- Figure 4d shows its probability on solved candidates as a 10-cycle moving average.
Selection evidence and withdrawals
- Each list of eight tasks yields two distinct picks.
- Figure 5e counts 2,220 picks of seen tasks over cycles 50 to 199.
- A new group is mixed if it has at least one success and one failure.
- Figure 5f measures the held-out gain of a dataset's three original seed cards used together.
- Against no cards.
- It is measured at checkpoint 0.
- It is also measured as the mean over the 10 checkpoints around each withdrawal.
- The interval is 95%.
- The MedQA topology card was restored by re-testing after its withdrawal at cycle 6.
Hyperparameters
- Table 4 lists every constant that appears as a symbol in the main text.
- The PPO clip and learning rate set the step size beta.
Compute
- R^2Orch trains on A100 GPUs for 200 cycles.
- This takes about 106 A100 hours, twice the cost of 100 cycles.
- Figure 5c, d report selection cost: extra and total rollouts per cycle.
- Rollouts and tokens per effective group, and A100 hours per 100 cycles.
Repeated runs
- Table 1 reports the mean and standard deviation over five runs.
- Table 2 and Figures 4e and 5a report five-run means.
Words to know
- Advantage collapse: Learning stops when every try at a task gets the same result.
- Agent graph: A graph of AI agents with roles and hand-offs between them.
- Director: The orchestrator being trained. It edits the agent graph.
- GRPO: An RL method that compares a group of attempts at one task.
- IID and OOD: In-distribution tests match training. Out-of-distribution tests are held out.
- KL: A number that measures how far one distribution moved from another.
- LoRA: A light way to tune a model by training small add-on weights.
- Orchestrator: A model that builds and directs a team of agents.
- Posterior: An updated belief after seeing data.
- Proposer: A model that picks the training tasks.
- Rollout: One full attempt at a task.
- Self-play: Two parts of a system train each other.
- Skill: A written hint on how to do a kind of task.
- Thompson draw: Test the option whose random draw from the posterior looks worst.
- Worker: A frozen model that runs one node of the agent graph.
Ask AI about this paper
Stuck on a word or an idea? Ask in plain words. The answer comes from the write-up on this page.
Jump to