Manuscript Offprint
arXiv:2610.09856Self-Evolve With a Reference:Anchored Training of Tool-Integrated Agents
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Self-evolving tool-integrated agents learn from tasks and feedback generated within their own training loop. A Curriculum Agent generates tasks, while an Executor Agent learns from self-consistency signals through reinforcement learning. However, relying solely on the current Executor for feedback has two limitations: group-relative advantages vanish under full consensus, while uncertainty-based curriculum rewards favor disagreement without showing whether the generated tasks support further learning. These limitations motivate an additional reference beyond the current Executor. We propose AnchorLoop, which introduces a frozen copy of the previous iteration's Executor as a historical reference and reuses it on both sides of the training loop. For the Executor, the anchor provides a cross-reference advantage that evaluates current outputs against both current and historical majority answers. For the Curriculum, it provides an agreement-based reference based on differences in sampled majority agreement. Since the Executor and anchor have identical parameters during Curriculum training, this comparison serves as a proxy for task selection rather than evidence of inter-version improvement or correctness. Across 13 reasoning benchmarks, AnchorLoop improves over Agent0 by 2.5% on mathematical reasoning and 2.8% on general reasoning tasks. It also maintains higher effective-advantage variance and continues improving in later iterations as the unanchored baseline shows diminishing gains. These results demonstrate the benefit of introducing a lightweight historical reference into self-evolving tool-integrated agents without external task or answer supervision.
Keywords: Tool-Integrated Agents, Reference, Reinforcement Learning
1. Introduction
Tool-integrated language model agents can learn to solve complex tasks through multi-turn interaction with external tools. Recent work further extends this capability toward self-evolution, where agents generate not only solutions but also their own training tasks and feedback. A representative paradigm couples a Curriculum Agent that generates tasks with an Executor Agent that learns to solve them through reinforcement learning [25]. By generating tasks and feedback within the training loop, such systems reduce their reliance on externally supplied training tasks and answer labels. This creates a closed learning loop in which the Executor serves not only as the learner, but also as a source of feedback for training both agents.
This reliance on the current Executor, however, creates limitations on both sides of self-evolution. On the Executor side, group-relative learning relies on differences among sampled outputs. When all outputs in a group reach consensus, the centered advantages vanish and provide no relative preference among trajectories. On the Curriculum side, uncertainty can identify tasks that elicit disagreement from the Executor, but disagreement alone does not indicate whether those tasks provide useful opportunities for further learning. In both cases, the learning signal is determined entirely by the current Executor, without a reference beyond its present behavior.
These limitations motivate a natural question: can self-evolution gain an additional reference while remaining self-contained? Our key idea is to use the system's own recent history as that reference. Specifically, we retain the Executor from the previous iteration as a frozen anchor. This introduces a temporal comparison without requiring externally supplied tasks or answer labels. Historical reference models have been used in iterative learning; for example, SPIN compares against responses from a previous model while retaining human reference responses [2]. Our focus is different: we study how a recent Executor can serve as a shared reference for both sides of a self-evolving Curriculum–Executor loop.
Based on this idea, we propose AnchorLoop, which reuses the same historical anchor on both sides of self-evolution. For the Executor, the anchor provides a cross-reference advantage that evaluates current outputs against both the current and anchor majority answers, augmenting the preference induced by current self-consistency. For the Curriculum, the anchor provides an agreement-based reference through the positive difference in sampled majority-agreement rates. The anchor is refreshed from the previous Executor at the beginning of each outer iteration and remains frozen throughout that iteration.
Importantly, the two uses of the anchor have different interpretations. Curriculum training precedes Executor training in each iteration, so the current Executor and the newly refreshed anchor have identical parameters during the Curriculum stage and produce independent rollout groups. Their sampled agreement difference therefore serves as an agreement-based proxy for shaping the Curriculum reward, rather than direct evidence of improvement between model versions or correctness. During subsequent Executor training, the current Executor evolves while the anchor remains fixed, enabling a genuine historical comparison. We further characterize this historical advantage and show that it acts as a conditional reweighting of current outputs: it can introduce additional relative information when current and historical majorities differ, while still vanishing under full current consensus.
Our contributions are threefold:
• Historical Anchoring. We introduce AnchorLoop, which uses the previous iteration's Executor as a shared historical reference for both Curriculum and Executor training.
• Dual-Sided Learning. We develop a cross-reference advantage for Executor training and an agreement-based reference for Curriculum training, and characterize how the historical reference shapes both learning signals.
• Empirical Validation. Across two backbones and thirteen reasoning benchmarks, AnchorLoop consistently improves over the unanchored baseline by 2.5-2.8% points on average, while continuing to improve in later training iterations.
Agreement-Based Group-Relative Learning. For each task , the Executor samples trajectories . A fixed final-answer parser maps each well-formed output to a canonical answer . Following self-consistency [23], the unique modal answer among valid outputs defines a pseudo-label , and each trajectory receives
Invalid or missing outputs receive zero reward and do not vote for , while groups without a unique modal answer are unresolved and excluded from updates that require a pseudo-label.
The reward measures agreement rather than independently verified correctness: the pseudo-label is determined entirely by the sampled outputs. A consistent but incorrect group can therefore receive the same agreement reward as a consistent correct group.
Group-relative policy optimization (GRPO) [20] normalizes these rewards within the sampled group:
where and denote the mean and standard deviation of the group rewards, and is a stabilizer. The policy is then optimized using a clipped surrogate objective in the style of PPO [19]. When all trajectories agree on the same valid answer, for all , yielding . Thus, the centered group-relative advantage provides no relative preference within a fully consensual group.
3. Method
3.1. Historical Anchor for Self-Evolution
AnchorLoop introduces a historical reference into the Curriculum–Executor loop defined in Section 2. At outer iteration t, we retain the previous iteration’s Executor as a frozen anchor,
and hold it fixed throughout the iteration. The anchor therefore represents the most recently completed Executor while requiring no externally supplied tasks or answer labels.
The same anchor is reused on both sides of self-evolution, but with different roles. For Executor training, it provides a historical majority answer used to construct a cross-reference advantage (Section 3.2). For Curriculum training, it provides an additional rollout group whose sampled agreement is compared with that of the current Executor (Section 3.3). The anchor is refreshed at the beginning of every outer iteration, as illustrated in Figure 1. Figure 1 is schematic, and Equation (11) defines the complete Curriculum reward.
The Curriculum and Executor are initialized from the same base model and updated separately. The Curriculum is optimized with GRPO [20], while the Executor uses ADPO [25]. Curriculum training precedes Executor training within each outer iteration. This update order gives the anchor different interpretations across the two stages, as detailed in Section 3.4.
3.2. Executor: Cross-Reference Advantage
The current agreement reward provides a relative preference only when answers within a group differ. AnchorLoop augments this current-only signal with an anchor-based comparison that changes how
Unanchored Co-Evolution

AnchorLoop

Figure 1: Overview of AnchorLoop. The left panel illustrates an unanchored two-agent self-evolution loop that can plateau. At outer iteration t, AnchorLoop copies the previous Executor into a frozen anchor and reuses it on both sides of the loop. During Curriculum training, the current Executor and anchor have identical parameters but produce independent rollout groups for the agreement-based reference reward. All format-valid tasks form the same-iteration task pool . During Executor training, the anchor remains fixed while the current Executor is updated. Current groups are resampled at every inner step, whereas one anchor group per task and Curriculum batch is cached and reused to construct the cross-reference advantage.
current outputs are weighted. Because the anchor remains fixed throughout the iteration, it provides a common historical reference as the Executor updates. This design does not guarantee a nonzero advantage for every task or prevent all forms of training stagnation.
Current and anchor references. For each task x in the Executor stage, we sample G trajectories from the current Executor and another G trajectories from the anchor. Each resolved group follows the definition in Section 2 to produce a pseudo-label, for the current group and for the anchor group. If either group is unresolved, the task is omitted from the pseudo-label-dependent Executor update. Anchor rollouts are cached at the granularity of a Curriculum batch and reused across the inner Executor steps that use the same tasks, amortizing anchor sampling across those steps.
Let denote the parsed valid answer of current Executor trajectory i. Invalid and missing trajectories receive zero for both indicators. Each current trajectory receives two outcomes,
Both indicators score the same current answer . The first measures agreement with the current group's majority, whereas the second measures agreement with the anchor group's majority rather than scoring an anchor trajectory.
Cross-reference advantage. We form two advantages by centering and normalizing over the current group:
where and are the mean and standard deviation of , while and are the mean and standard deviation of . The cross-reference advantage combines the two:
where controls the contribution of the historical advantage.
Properties of the historical term. The historical term acts as a conditional reweighting of current outputs. For resolved current and anchor groups with , several boundary cases clarify its behavior. If the two majority labels agree, the two indicators coincide and . If all current answers are identical, is constant across the current group even when the majority labels differ. Centering therefore makes both advantage terms zero. A different anchor label alone cannot restore a relative preference within a fully consensual current group.
When the two majority labels differ and the current group contains only those two answers, with both present, the historical advantage is a positive rescaling of the current advantage. If the anchor's majority answer is absent from the current group, the two advantages are identical. With additional answer classes, the historical term can distinguish outputs that match the anchor majority from other outputs that disagree with the current majority. Its contribution therefore depends on the sampled answer composition. These group-level relations do not establish equivalence between complete training runs.
Refreshing the anchor ties its parameters to the most recently completed Executor iteration. This does not establish that the anchor remains informative on every task, nor that a reference fixed to the base model must necessarily become uninformative.
3.3. Curriculum: Anchor-Referenced Reward
The Curriculum evaluates each generated task using sampled behavior from the current Executor. AnchorLoop augments this current-only signal with an independently sampled rollout group from the anchor. We first define the inherited task-level Curriculum terms and then introduce the anchor-referenced component.
Base Curriculum reward. Each candidate task is evaluated with current Executor trajectories . Let denote the number of valid parsed answers with canonical label . We define
If no trajectory has a valid answer, we set . The maximum count remains defined when several labels tie, although such a group has no pseudo-label. Invalid and missing trajectories do not add to any label count and remain in the fixed denominator G.
Let denote the number of Python calls executed by the sandbox before trajectory terminates. Calls executed before an invalid or missing final answer are still counted. With call cap , the task-level tool-use term is
For a Curriculum batch of candidate tasks, we compute pairwise BLEU distances between task texts and connect two tasks when their distance is below . Let denote the connected component containing . The repetition term is
The binary gate equals one when the generated task passes the fixed Problem: and Answer: format in Appendix B.1, and zero otherwise.
Anchor-referenced agreement. We augment these inherited terms with an anchor comparison. For each candidate task , we define
where and are the majority agreement rates of the current Executor and anchor, respectively. For a resolved group, each rate is the number of rollouts matching its own unique modal answer divided by the fixed . Invalid and missing outputs contribute zero to the numerator but remain in the denominator. If either group is unresolved, we set ; the uncertainty, tool-use, repetition, and format terms remain defined.
Importantly, is computed over anchor outputs and is not the current-group mean of defined in Section 3.2. Moreover, the two agreement rates are computed with respect to their respective group majorities rather than a shared ground-truth answer.
Interpretation. The reference term measures a difference in sampled agreement, not a difference in correctness. A positive means that the sampled current group has a larger majority fraction than the sampled anchor group. It does not establish that the current Executor is more accurate, nor that it can solve a task that the anchor cannot. In particular, a more concentrated but incorrect answer distribution can also receive a positive score.
The update order imposes a second limitation on this interpretation. Because Curriculum training precedes Executor training, the current Executor and the newly refreshed anchor have identical parameters during the Curriculum stage and differ only through independent sampling. Their sampled agreement rates may therefore differ, but such a difference is not evidence of progress between historical model versions. Taking the positive part does not remove this sampling variation. We consequently use as an agreement-based proxy for Curriculum shaping rather than as a measure of correctness or inter-version improvement.
Complete Curriculum reward. We combine the reference term with the inherited uncertainty, tool-use, repetition, and format-validity terms:
Algorithm 1: Training procedure of AnchorLoop.
Input: Base model , outer iterations
Initialize separate agents
for do
Set and freeze the anchor for iteration
Keep fixed; update only via GRPO with reward ; collect all format-valid tasks in while retaining their Curriculum batch assignments
Keep fixed; update only on via ADPO using the scaled cross-reference advantage
Resample each current group at every Executor inner step and reuse one cached anchor group per task and Curriculum batch
Discard and its rollout cache, and denote the resulting Executor by
end
Output: Trained Executor
The base reward weights used throughout the reported training runs are listed in Table 3. When , the remaining components of remain active; a zero reference term therefore does not by itself discard the task.
3.4. Alternating Training with an Iterative Anchor
AnchorLoop alternates Curriculum and Executor training over outer iterations. Let denote the Executor after iteration , with . At the beginning of iteration , we refresh the anchor as
and keep it frozen throughout the iteration.
Curriculum stage. We first fix the Executor and update only the Curriculum Agent using GRPO with the reward from Section 3.3. The current Executor and newly refreshed anchor therefore have identical parameters during this stage and differ only through independent sampling.
All format-valid tasks generated during Curriculum training form the same-iteration task pool , with their Curriculum batch assignments preserved. We do not filter these tasks according to or the total Curriculum reward . The Curriculum-generated Answer: field is used only for format checking and is neither provided to the Executor nor used as a supervision label.
Executor stage. We then freeze the Curriculum Agent and update only the Executor on . The anchor remains fixed at , while the current Executor evolves during optimization, providing the historical comparison used by the cross-reference advantage in Section 3.2.
Each task remains fixed across the Executor inner steps associated with its Curriculum batch. For each task, the current Executor resamples trajectories at every inner step, whereas the anchor group is sampled once per task and Curriculum batch and cached across the corresponding Executor updates. Current groups are not retained between inner steps. After the Executor stage, the resulting policy is denoted . The task pool and all cached rollouts are then discarded. The next outer iteration generates a new task pool and does not replay tasks from earlier iterations.
Policy optimization. For Curriculum training, the Curriculum Agent's group consists of a batch of generated tasks. Each task is scored by from Section 3.3, and the resulting rewards are normalized across the task batch to form the GRPO advantages.
For Executor training, each group consists of the trajectories sampled for a single task. The standard group-relative advantage is replaced by the cross-reference advantage from Section 3.2. The Executor follows ADPO [25], which scales the advantage according to current answer agreement and dynamically adjusts the upper clipping bound.
For each task , we compute the current-group agreement score
where is the fraction of current outputs matching the current group's modal answer. Let denote the ADPO task weight, where is nondecreasing. We apply this weight to the complete cross-reference advantage:
(14)
Thus, the same task weight scales both the current and historical components. The clipping interval is
where and is nonincreasing. Thus, both the task weight and the upper clipping bound are recomputed from the current group’s agreement score.
Token-level Executor objective. Let denote the token generated at position of trajectory , and let contain the task, preceding generated tokens, and any tool observations returned before that position. Tool observations condition subsequent generation but are not themselves optimized. We use a mask over generated reasoning, tool-call, and final-answer tokens, with .
The behavior policy is frozen before sampling the current group at each Executor inner step. The token-level importance ratio is
The same trajectory-level advantage is applied to all optimized tokens in trajectory i. The Executor objective is
(16)
where the KL reference is the frozen base model, .
The anchor adds one frozen Executor checkpoint to storage at any given time. Its rollouts are cached at the task–Curriculum-batch level, amortizing anchor sampling across the corresponding Executor inner steps. Overall, the anchor serves as an independently sampled reference during Curriculum training and becomes a historical reference as the Executor subsequently updates. Algorithm 1 summarizes the complete training procedure, while the corresponding functions and hyperparameters are reported in Appendix A.2. Appendix B provides the Curriculum and Executor prompts, together with the answer-parsing and group-resolution rules.
4. Experiments and Results
4.1. Experimental Setup
Training Details. We evaluate AnchorLoop on two open-source base models, Qwen3-4B-Base [27] and MiMo-7B-Base [11]. For each backbone, the Curriculum Agent, Executor Agent, and initial anchor are derived from the same base model. We implement AnchorLoop on VeRL [21] with a sandboxed Python interpreter provided by VeRL-Tool. A complete <python>-</python> block triggers one subprocess call, whose standard output is returned to the model as the next observation. Training follows the alternating procedure in Section 3.4. Each outer iteration consists of a Curriculum stage followed by an Executor stage. All format-valid tasks generated during Curriculum training enter the same-iteration Executor task pool while retaining their Curriculum batch assignments; we apply neither reward-based task filtering nor task replay across outer iterations. For each task, the current Executor samples trajectories at every Executor inner step, whereas the anchor samples trajectories once per task and Curriculum batch and reuses them across the corresponding inner steps. The anchor is refreshed from the previous iteration's Executor at the beginning of each outer iteration and remains frozen throughout that iteration.
Unless otherwise specified, we report models after three outer iterations. Table 1 uses this setting for both backbones, while the anchor-refresh analysis in Figure 3(a) additionally extends training to a fourth iteration. AnchorLoop uses no externally supplied training tasks or answer labels during self-evolution; the Curriculum Agent generates the complete Executor training task pool. Appendix A provides the full training configuration, hyperparameters, and sandbox settings.
Baselines and Benchmarks. We compare against seven baselines: two no-training references (Base Model and Base Model w/ Tool), four self-evolving methods (Absolute Zero [28], SPIRAL [10], R-Zero [6], and Socratic-Zero [22]), and Agent0 [25], the direct unanchored baseline underlying our two-agent training setup.
We evaluate mathematical reasoning on seven benchmarks: AMC23 [17], MATH-500 [5, 9], GSM8K [3], Minerva [8], OlympiadBench [4], AIME24 [13, 14], and AIME25 [15, 16]. General reasoning is evaluated on six benchmarks: SuperGPQA [12], MMLU-Pro [24], BBEH [7], GPQA-Diamond [18], HumanEval [1], and AGIEval [29]. We report greedy pass@1 except mean@32 for AMC23 [17] and AIME. Appendix C provides baseline adaptations, dataset details, and the complete evaluation and aggregation protocol.
4.2. Main Results
Table 1 compares AnchorLoop with the seven baselines across thirteen reasoning benchmarks. Overall, historical anchoring consistently improves over the unanchored Agent0 baseline on both backbones and across both evaluation domains.
Table 1: Results on mathematical and general reasoning benchmarks. The two AVG columns summarize their respective benchmark groups. Best per backbone is in bold.
| Model Name | Mathematical reasoning | General reasoning | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AMC23 | MATH | GSM8K | Minerva | Olympiad | AIME24 | AIME25 | AVG | SuperGPQA | MMLU-Pro | BBEH | GPQA-D | HumanEval | AGIEval | AVG | ||
| Qwen3-4B-Base | ||||||||||||||||
| Base Model | ✕ | 45.4 | 68.6 | 88.5 | 37.3 | 41.2 | 11.0 | 6.33 | 42.6 | 21.1 | 37.6 | 7.6 | 36.5 | 65.7 | 54.8 | 37.2 |
| Base Model w/ tool | ✓ | 45.9 | 72.7 | 88.8 | 38.1 | 42.4 | 12.5 | 7.86 | 44.0 | 25.8 | 43.6 | 8.5 | 37.2 | 67.1 | 55.4 | 39.6 |
| + Absolute Zero | ✓ | 50.3 | 76.8 | 88.8 | 40.6 | 42.9 | 12.7 | 13.0 | 46.4 | 26.4 | 52.9 | 8.7 | 38.4 | 68.4 | 56.7 | 41.9 |
| + SPIRAL | ✕ | 56.7 | 77.8 | 90.1 | 42.8 | 39.6 | 13.5 | 10.2 | 47.2 | 26.5 | 53.0 | 9.4 | 38.9 | 67.9 | 57.3 | 42.1 |
| + R-Zero | ✕ | 57.7 | 80.2 | 90.5 | 52.4 | 43.6 | 12.3 | 4.45 | 48.7 | 28.3 | 51.4 | 10.2 | 39.6 | 69.6 | 57.9 | 42.8 |
| + Socratic-Zero | ✕ | 57.7 | 80.3 | 88.5 | 47.3 | 49.2 | 19.4 | 13.8 | 50.9 | 28.5 | 54.2 | 10.8 | 40.1 | 70.2 | 58.4 | 43.7 |
| + Agent0 | ✓ | 60.4 | 79.9 | 91.1 | 56.7 | 48.4 | 17.3 | 14.9 | 52.7 | 30.4 | 55.1 | 11.5 | 41.7 | 71.8 | 60.1 | 45.1 |
| + AnchorLoop (ours) | ✓ | 63.5 | 82.9 | 94.3 | 58.1 | 49.7 | 20.5 | 17.4 | 55.2 | 32.7 | 58.7 | 14.3 | 44.3 | 74.5 | 62.8 | 47.9 |
| MiMo-7B-Base | ||||||||||||||||
| Base Model | ✕ | 58.3 | 75.6 | 89.9 | 47.3 | 46.6 | 30.7 | 22.3 | 53.0 | 24.9 | 42.3 | 8.5 | 26.1 | 52.3 | 48.0 | 33.7 |
| Base Model w/ tool | ✓ | 63.6 | 77.9 | 91.1 | 51.4 | 50.2 | 34.4 | 26.9 | 56.5 | 26.4 | 44.2 | 9.4 | 27.4 | 54.1 | 48.9 | 35.1 |
| + Absolute Zero | ✓ | 64.2 | 77.0 | 91.6 | 50.0 | 49.1 | 33.8 | 26.6 | 56.0 | 27.6 | 48.6 | 10.0 | 29.2 | 55.8 | 50.2 | 36.9 |
| + SPIRAL | ✕ | 64.7 | 78.0 | 92.4 | 51.8 | 47.6 | 35.2 | 28.1 | 56.8 | 28.0 | 47.9 | 10.4 | 29.8 | 56.2 | 50.8 | 37.2 |
| + R-Zero | ✕ | 65.0 | 80.5 | 93.3 | 57.2 | 51.3 | 33.0 | 28.6 | 58.4 | 28.8 | 48.4 | 10.7 | 31.0 | 57.0 | 51.5 | 37.9 |
| + Socratic-Zero | ✕ | 66.5 | 79.3 | 90.4 | 52.5 | 55.8 | 39.1 | 34.0 | 59.7 | 29.2 | 49.1 | 11.1 | 31.7 | 57.6 | 52.3 | 38.5 |
| + Agent0 | ✓ | 67.3 | 81.4 | 94.2 | 57.9 | 54.1 | 39.5 | 32.4 | 61.0 | 30.5 | 51.3 | 12.2 | 33.5 | 59.2 | 54.0 | 40.1 |
| + AnchorLoop (ours) | ✓ | 70.0 | 84.1 | 95.7 | 60.6 | 56.7 | 42.3 | 35.4 | 63.5 | 33.0 | 54.0 | 14.6 | 36.4 | 62.1 | 56.7 | 42.8 |
Mathematical reasoning. As shown in Table 1, AnchorLoop achieves a Math AVG of 55.2 on Qwen3-4B-Base and 63.5 on MiMo-7B-Base, improving over Agent0 by 2.5 percentage points on both backbones. Relative to the tool-augmented base models, the corresponding gains are 11.2 and 7.0 points. The improvement is also consistent at the benchmark level: AnchorLoop obtains the highest reported score in every mathematical benchmark column on both backbones, including AIME24 and AIME25.
General reasoning. Table 1 shows a similar pattern outside the mathematical domain. AnchorLoop reaches a General AVG of 47.9 on Qwen3-4B-Base and 42.8 on MiMo-7B-Base, exceeding Agent0 by 2.8 and 2.7 percentage points, respectively. It also obtains the highest reported score in every general-reasoning benchmark column on both backbones. These improvements are notable because the Curriculum generates mathematical training tasks, whereas the evaluation spans knowledge-intensive reasoning, coding, and general problem solving. The results therefore show that the gains associated with historical anchoring are not confined to the mathematical benchmarks used to characterize the training distribution.
Appendix Table 4 reports the mean and sample standard deviation over five independent training runs. These statistics characterize run-to-run variability rather than statistical significance. Appendix E further reports per-benchmark trajectories, iteration dynamics, and sensitivity results on MiMo-7B-Base.
4.3. Training Dynamics
Later-iteration performance. Figure 2(a) tracks Math AVG across the three outer iterations. Agent0 improves by 5.8 points in the first iteration, but its incremental gains decrease to 2.0 and 0.9 points in iterations 2 and 3. AnchorLoop begins from the same initialization and shows a comparable early improvement, while retaining gains of 2.8 and 2.0 points in the subsequent iterations. Consequently, the gap between the two methods grows across later training and reaches 2.5 points after iteration 3. This pattern motivates examining whether the learning signals available to the two methods evolve differently over training.
(a) Math AVG Across Iterations

(b) Effective Advantage Variance
(c) Curriculum Frontier Fraction
Figure 2: Training dynamics on Qwen3-4B-Base. (a) Math AVG across three outer iterations. (b) Within-group variance of the effective Executor advantage, , averaged over sampled groups. By iteration 3, it decreases to 0.07 for Agent0 but remains at 0.28 for AnchorLoop. (c) Fraction of Curriculum tasks with a positive sampled reference gap. An unresolved current–reference pair contributes zero. The fraction decreases from 54.7% initially to 16.1% for Agent0 and 32.9% for AnchorLoop by iteration 3.
Effective advantage variance. Figure 2(b) measures the within-group variance of the final effective Executor advantage. Let contain all sampled Executor groups across the update steps of outer iteration . For group size and final ADPO-scaled advantage , we compute
Both methods begin at . By iteration 3, Agent0 decreases to 0.07, whereas AnchorLoop retains substantially more within-group variation at 0.28. This observation is consistent with the motivation for cross-reference training: the anchored objective preserves more differentiated effective advantages in the sampled groups as training proceeds. It does not imply that the historical component is nonzero for every group; as established in Section 3.2, both components vanish when all current answers are identical. Nor does this statistic alone establish that the increased variance causes the performance improvement.
Positive reference-gap frequency. Figure 2(c) examines the Curriculum side by reporting the fraction of generated tasks for which the independently sampled current and reference groups satisfy
An unresolved group pair contributes zero and is not counted as positive. For AnchorLoop, the reference group is sampled from the newly refreshed anchor; for Agent0, we construct the diagnostic using a second independent rollout group from the same Executor checkpoint. During Curriculum training, the current and reference models have identical parameters, and each agreement rate is computed against its own group's majority answer. The measured fraction decreases from 54.7% initially to 16.1% for Agent0 and 32.9% for AnchorLoop by iteration 3.
Consistent with the interpretation in Section 3.3, this statistic measures the frequency of positive sampled agreement differences rather than correctness or inter-version progress. The higher fraction observed for AnchorLoop therefore characterizes the sampled Curriculum signal; it does not imply that
Table 2: Tool comparisons and anchor ablations on Qwen3-4B-Base. Agent0 and AnchorLoop are shared endpoints. Only the anchor variants use matched training and evaluation settings.
| Method | Math AVG | General AVG |
|---|---|---|
| Without tool access | ||
| Qwen3-4B (Base) | 42.6 | 37.2 |
| + SPIRAL | 47.2 | 42.1 |
| + R-Zero | 48.7 | 42.8 |
| With tool access | ||
| + TIR | 44.0 | 39.6 |
| + Absolute Zero | 46.4 | 41.9 |
| Matched anchor variants with tool access | ||
| Agent0 | 52.7 | 45.1 |
| only | 53.6 | 45.9 |
| only | 54.4 | 46.7 |
| Full AnchorLoop | 55.2 | 47.9 |
the current Executor has newly solved those tasks or establish that the reference reward causes the subsequent performance difference.
4.4. Anchor Analysis
Contribution of the two anchor signals. The matched anchor block of Table 2 separates the two uses of the anchor: on the Curriculum side and on the Executor side. All four configurations use the same Qwen3-4B-Base initialization, three outer iterations, update steps, ADPO settings, tool environment, and evaluation protocol. When the historical advantage is disabled, the Executor uses with unit coefficient. When enabled, it uses with . Disabling the Curriculum reference sets while leaving all other Curriculum rewards and task handling unchanged.
Adding alone improves the Math and General averages from 52.7/45.1 to 53.6/45.9, while adding alone reaches 54.4/46.7. Combining both gives the full AnchorLoop result of 55.2/47.9. Thus, both anchor uses are associated with improvements over the unanchored configuration in the matched setting, with the Executor-side historical advantage producing the larger individual change. The endpoint comparison does not, however, isolate the mechanism behind either improvement or establish a synergistic interaction between the two components.
Iterative versus fixed anchor. Figure 3(a) tests whether refreshing the historical reference matters by comparing AnchorLoop with an anchor permanently fixed to the base model. The two settings remain close in the first iteration, but diverge as training proceeds. The iterative and fixed variants reach 55.2 and 53.0 at iteration 3, respectively, and 56.3 and 53.3 at iteration 4. These results show that refreshing the anchor with the most recently completed Executor is associated with stronger later-iteration performance in this setting. They do not establish that a fixed anchor necessarily becomes uninformative, nor do they isolate checkpoint age as the sole source of the difference.
Comparison across tool settings. Table 2 places AnchorLoop alongside methods evaluated with and without tool access under their respective training configurations. Adding the Python tool to the untrained Qwen3-4B base model changes Math AVG from 42.6 to 44.0 and General AVG from 37.2


Figure 3: Anchor and Curriculum analyses on Qwen3-4B-Base. (a) Math AVG across outer iterations with an iterative anchor versus an anchor fixed to the base model. (b) Sensitivity over the historical-advantage weight and Curriculum reference weight on a grid; the default setting is . (c) Pass rate and average tool calls on 200 tasks sampled from each Curriculum stage. The iteration-1 Executor generates trajectories per task, and both statistics are computed from the same 1,600 trajectories per stage.
to 39.6. Among the tool-integrated training methods, AnchorLoop reaches 55.2/47.9, compared with 52.7/45.1 for Agent0.
These comparisons provide context for tool-integrated performance but should not be interpreted as a controlled ablation of tool access. The methods differ simultaneously in task generation, training objective, and reward design. The comparisons across methods in Table 2 therefore do not isolate the causal contribution of either tool use or historical anchoring. Appendix D further analyzes the historical-advantage structure, computational cost, anchor refresh and caching, and representative failure cases.
4.5. Curriculum Analysis
Sensitivity to and . Figure 3(b) evaluates the two anchor-specific weights: the historical-advantage weight , which balances and in Executor training, and the Curriculum reference weight , which scales . Across the grid, the default setting reaches a Math AVG of 55.21, while all evaluated configurations remain within 1.5 points of this value. The result indicates limited sensitivity within the evaluated range, although it does not characterize settings outside the grid or remove the need to select the two weights.
Evolution of Curriculum tasks and tool use. We further examine how the generated task distribution changes across Curriculum stages . From each stage, we sample 200 tasks and evaluate them using a fixed iteration-1 Executor, which independently generates trajectories per task. We compute the mean binary agreement reward and the average number of tool calls over the same 1,600 trajectories for each stage.
Figure 3(c) shows that the measured pass rate under this fixed Executor decreases from 71.8% on to 39.4% on , while the average number of tool calls per trajectory increases from 1.32 to 2.87. Because the same Executor is used to evaluate tasks from all stages, these changes indicate that the distribution of Curriculum-generated tasks evolves over training: later task sets lower agreement reward and more tool interactions from this fixed evaluator.
These statistics should not be interpreted as direct measures of task difficulty or correctness. In particular, compares independently sampled agreement rates during Curriculum training rather than identifying tasks that the current Executor can solve but the anchor cannot. The observed trends therefore characterize how the generated task and response distributions change alongside anchored self-evolution; they do not by themselves establish that later tasks are intrinsically harder, that additional tool calls are necessary, or that causally produces either trend. Appendix F provides selected Curriculum tasks, post-update Executor comparisons, and full reasoning traces.
5. Conclusion
We introduce AnchorLoop to address weakening feedback in self-evolving Curriculum and Executor training. At each outer iteration, a frozen copy of the previous Executor provides an independently sampled agreement reference for Curriculum training and helps construct a cross-reference advantage for Executor training, without external tasks or answer labels. Across two backbones and thirteen benchmarks, AnchorLoop improves Math AVG over Agent0 by 2.5 points and General AVG by 2.7 to 2.8 points. It also retains higher effective-advantage variance and shows stronger gains in later iterations.
References
[1] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021. URL https://arxiv.org/abs/2107.03374.
[2] Zixiang Chen, Yihe Deng, Huizhuo Yuan, Kaixuan Ji, and Quanquan Gu. Self-play fine-tuning converts weak language models to strong language models. In International Conference on Machine Learning (ICML), 2024.
[3] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
[4] Chaoqun He, Renjie Luo, Yuzhuo Bai, Shengding Hu, Zhen Leng Thai, Junhao Shen, Jinyi Hu, Xu Han, Yujie Huang, Yuxiang Zhang, Jie Liu, Lei Qi, Zhiyuan Liu, and Maosong Sun. OlympiadBench: A challenging benchmark for promoting AGI with olympiad-level bilingual multimodal scientific problems. arXiv preprint arXiv:2402.14008, 2024.
[5] Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In NeurIPS Datasets and Benchmarks, 2021.
[6] Chengsong Huang, Wenhao Yu, Xiaoyang Wang, Hongming Zhang, Zongxia Li, Ruosen Li, Jiaxin Huang, Haitao Mi, and Dong Yu. R-Zero: Self-evolving reasoning LLM from zero data. arXiv preprint arXiv:2508.05004, 2025.
[7] Mehran Kazemi, Bahare Fatemi, Hritik Bansal, John Palowitch, Chrysovalantis Anastasiou, Sanket Vaibhav Mehta, Lalit K. Jain, Virginia Aglietti, Disha Jindal, Peter Chen, Nishanth Dikkala, Gladys Tyen, Xin Liu, Uri Shalit, Silvia Chiappa, Kate Olszewska, Yi Tay, Vinh Q. Tran, Quoc V. Le, and Orhan Firat. BIG-Bench Extra Hard. arXiv preprint arXiv:2502.19187, 2025.
[8] Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, Yuhuai Wu, Behnam Neyshabur, Guy Gur-Ari, and Vedant Misra. Solving quantitative reasoning problems with language models. In Advances in Neural Information Processing Systems (NeurIPS), 2022.
[9] Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. In International Conference on Learning Representations (ICLR), 2024.
[10] Bo Liu, Leon Guertler, Simon Yu, Zichen Liu, Penghui Qi, Daniel Balcells, Mickel Liu, Cheston Tan, Weiyan Shi, Min Lin, Wee Sun Lee, and Natasha Jaques. SPIRAL: Self-play on zero-sum games incentivizes reasoning via multi-agent multi-turn reinforcement learning. arXiv preprint arXiv:2506.24119, 2025.
[11] LLM-Core Xiaomi. MiMo: Unlocking the reasoning potential of language model – from pretraining to posttraining. arXiv preprint arXiv:2505.07608, 2025. URL https://arxiv.org/abs/2505.07608.
[12] M-A-P Team, Xinrun Du, Yifan Yao, Kaijing Ma, Bingli Wang, Tianyu Zheng, King Zhu, Minghao Liu, Yiming Liang, Xiaolong Jin, Zhenlin Wei, Chujie Zheng, Kaixin Deng, Shawn Gavin, Shian Jia, Sichao Jiang, Yiyan Liao, Rui Li, Qinrui Li, Sirun Li, Yizhi Li, Yunwen Li, David Ma, Yuansheng Ni, Haoran Que, Qiyao Wang, Zhoufutu Wen, Siwei Wu, Tyshawn Hsing, Ming Xu, Zhenzhu Yang, Zekun Moore Wang, Junting Zhou, Yuelin Bai, Xingyuan Bu, Chenglin Cai, Liang Chen, Yifan Chen, Chengtuo Cheng, Tianhao Cheng, Keyi Ding, Siming Huang, Yun Huang, Yaoru Li, Yizhe Li, Zhaoqun Li, Tianhao Liang, Chengdong Lin, Hongquan Lin, Yinghao Ma, Tianyang Pang, Zhongyuan Peng, Zifan Peng, Qige Qi, Shi Qiu, Xingwei Qu, Shanghaoran Quan, Yizhou Tan, Zili Wang, Chenqing Wang, Hao Wang, Yiya Wang, Yubo Wang, Jiajun Xu, Kexin Yang, Ruibin Yuan, Yuanhao Yue, Tianyang Zhan, Chun Zhang, Jinyang Zhang, Xiyue Zhang, Xingjian Zhang, Yue Zhang, Yongchi Zhao, Xiangyu Zheng, Chenghua Zhong, Yang Gao, Zhoujun Li, Dayiheng Liu, Qian Liu, Tianyu Liu, Shiwen Ni, Junran Peng, Yujia Qin, Wenbo Su, Guoyin Wang, Shi Wang, Jian Yang, Min Yang, Meng Cao, Xiang Yue, Zhaoxiang Zhang, Wangchunshu Zhou, Jiaheng Liu, Qunshu Lin, Wenhao Huang, and Ge Zhang. SuperGPQA: Scaling LLM evaluation across 285 graduate disciplines. arXiv preprint arXiv:2502.14739, 2025.
[13] Mathematical Association of America. 2024 AIME I Problems. https://artofproblemsolving.com/wiki/index.php/2024_AIME_I_Problems, 2024. American Invitational Mathematics Examination I.
[14] Mathematical Association of America. 2024 AIME II Problems. https://artofproblemsolving.com/wiki/index.php/2024_AIME_II_Problems, 2024. American Invitational Mathematics Examination II.
[15] Mathematical Association of America. 2025 AIME I Problems. https://live.poshenloh.com/images/past-contests/pdf/aime-2025I-exam.pdf, 2025. Reproduced with permission by LIVE by Po-Shen Loh.
[16] Mathematical Association of America. 2025 AIME II Problems. https://live.poshenloh.com/images/past-contests/pdf/aime-2025II-exam.pdf, 2025. Reproduced with permission by LIVE by Po-Shen Loh.
[17] Mathematical Association of America. American Mathematics Competitions. https://maa.org/student-programs/amc/, n.d. Accessed October 7, 2026.
[18] David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R. Bowman. GPQA: A graduate-level google-proof Q&A benchmark. In First Conference on Language Modeling (COLM), 2024. URL https://arxiv.org/abs/2311.12022.
[19] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
[20] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
[21] Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, and Chuan Wu. HybridFlow: A flexible and efficient RLHF framework. arXiv preprint arXiv:2409.19256, 2024.
[22] Shaobo Wang, Zhengbo Jiao, Zifan Zhang, Yilang Peng, Xu Ze, Boyu Yang, Wei Wang, Hu Wei, and Linfeng Zhang. Socratic-Zero: Bootstrapping reasoning via data-free agent co-evolution. arXiv preprint arXiv:2509.24726, 2025.
[23] Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V. Le, Ed H. Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models. In International Conference on Learning Representations (ICLR), 2023.
[24] Yubo Wang, Xueguang Ma, Ge Zhang, Yuansheng Ni, Abhranil Chandra, Shiguang Guo, Weiming Ren, Aaran Arulraj, Xuan He, Ziyan Jiang, Tianle Li, Max Ku, Kai Wang, Alex Zhuang, Rongqi Fan, Xiang Yue, and Wenhu Chen. MMLU-Pro: A more robust and challenging multi-task language understanding benchmark. arXiv preprint arXiv:2406.01574, 2024.
[25] Peng Xia, Kaide Zeng, Jiaqi Liu, Can Qin, Fang Wu, Yiyang Zhou, Caiming Xiong, and Huaxiu Yao. Agent0: Unleashing self-evolving agents from zero data via tool-integrated reasoning. arXiv preprint arXiv:2511.16043, 2025.
[26] Zhenghai Xue, Longtao Zheng, Qian Liu, Yingru Li, Xiaosen Zheng, Zejun Ma, and Bo An. SimpleTIR: End-to-end reinforcement learning for multi-turn tool-integrated reasoning. In International Conference on Learning Representations (ICLR), 2026. arXiv:2509.02479.
[27] An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jing Zhou, Jingren Zhou, Junyang Lin, Kai Dang, Keqin Bao, Kexin Yang, Le Yu, Lianghao Deng, Mei Li, Mingfeng Xue, Mingze Li, Pei Zhang, Peng Wang, Qin Zhu, Rui Men,
Ruize Gao, Shixuan Liu, Shuang Luo, Tianhao Li, Tianyi Tang, Wenbiao Yin, Xingzhang Ren, Xinyu Wang, Xinyu Zhang, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yinger Zhang, Yu Wan, Yuqiong Liu, Zekun Wang, Zeyu Cui, Zhenru Zhang, Zhipeng Zhou, and Zihan Qiu. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.
[28] Andrew Zhao, Yiran Wu, Yang Yue, Tong Wu, Quentin Xu, Yang Yue, Matthieu Lin, Shenzhi Wang, Qingyun Wu, Zilong Zheng, and Gao Huang. Absolute zero: Reinforced self-play reasoning with zero data. arXiv preprint arXiv:2505.03335, 2025.
[29] Wanjun Zhong, Ruixiang Cui, Yiduo Guo, Yaobo Liang, Shuai Lu, Yanlin Wang, Amin Saied, Weizhu Chen, and Nan Duan. AGIEval: A human-centric benchmark for evaluating foundation models. In Findings of the Association for Computational Linguistics: NAACL 2024, 2024. URL https://arxiv.org/abs/2304.06364.
A. Experimental Details
A.1. Training Setup
We implement AnchorLoop on top of VeRL [21] with the VeRL-Tool extension providing a sandboxed Python interpreter that executes each code block emitted by the Executor in a separate subprocess. All experiments use 8 NVIDIA A100 80GB GPUs. For AnchorLoop, one outer iteration takes about 24 hours on Qwen3-4B-Base [27] and about 36 hours on MiMo-7B-Base [11]. Multiplying these per-iteration values gives approximate three-iteration references of 72 and 108 hours. These figures are estimates rather than separately measured total times. Within each outer iteration, all tasks that pass the fixed Curriculum output format are retained with their original batch assignments and passed to the Executor stage. We do not select tasks by , the total reward , or a top-k rule. The Executor prompt contains the problem statement and any required context. The Curriculum-generated Answer: field is used only to check the generation format and is not shown to the Executor or used as a training label.
A task remains fixed across the Executor inner steps assigned to its Curriculum batch. The current Executor resamples G = 8 trajectories at every inner step. The anchor samples G = 8 trajectories once per task and batch, then reuses them across those steps. This amortizes anchor sampling while keeping current rollouts aligned with the changing Executor. The task pool, current groups, and anchor cache are discarded after the Executor stage. The next outer iteration uses newly generated tasks without replaying earlier tasks.
A.2. Hyperparameters
Table 3 summarizes the confirmed settings for both backbones. AnchorLoop use ADPO functions and clipping configuration on Qwen3-4B-Base and MiMo-7B-Base. The learning rate is lower for the larger MiMo backbone. The weight on the historical advantage and the weight on the reference reward are the defaults selected by the sweeps.
Curriculum reward configuration. The Executor group size is G = 8, and the Curriculum batch size is B = 64. The tool-use term caps each trajectory at C = 4 executed calls. The repetition graph uses BLEU distance threshold . The format gate and nonnegative truncation apply to the complete weighted sum. AnchorLoop use , , and on both backbones. These weights remain fixed across all outer iterations.
ADPO configuration. AnchorLoop configuration follows the functional form of Agent0's released ADPO implementation [25]. For an agreement score p, let and delimit the interpolation interval. We first map p to a value in [0, 1],
Let be the minimum advantage weight, the base clipping width, and the maximum increment to the upper width. The functions in Section 3 are instantiated as
With the listed values, ranges from 0.6 to 1.0, and ranges from 0.3 at low agreement to 0.2 at high agreement. The Executor's clipping interval is therefore . These functions saturate outside the interpolation interval and do not by themselves filter tasks. The score is recomputed from each current Executor group, and scales the complete mixed advantage. No additional normalization is applied to this task weight.
The base width is also the Executor's lower clipping width, and the Curriculum uses the fixed width . Its clipping interval is . At each Executor inner step, the rollout policy is frozen as before the current group is sampled. Token-level PPO ratios use this behavior policy. The KL term instead uses the frozen base model on both backbones.
Table 3: Training settings for both backbones. The base Curriculum reward weights are shared by baselines and AnchorLoop.
| Group | Hyperparameter | Value |
|---|---|---|
| Outer loop | Outer iterations | 3 |
| Group size | 8 | |
| Curriculum inner steps | 32 | |
| Executor inner steps | 128 | |
| Anchor side | Historical advantage weight | 0.6 |
| Frontier reward weight | 0.4 | |
| Optimization | Learning rate (Qwen3-4B) | |
| Learning rate (MiMo-7B) | ||
| KL coefficient | 0.01 | |
| KL reference | Frozen base model | |
| Curriculum | Clip width | 0.2 |
| Uncertainty weight | 1.0 | |
| Tool-use weight | 0.25 | |
| Repetition weight | 0.20 | |
| Tool-call cap | 4 | |
| BLEU distance threshold | 0.6 | |
| ADPO | Lower score limit | 0.3 |
| Upper score limit | 0.8 | |
| Minimum weight | 0.6 | |
| Base clip width | 0.2 | |
| Upper width increment | 0.1 | |
| Rollout | Curriculum batch size | 64 tasks |
| Max turns | 8 | |
| Max output tokens per turn | 4096 | |
| Sandbox | Code execution timeout | 30 s |
| Memory cap per call | 1 GB | |
| Max code block length | 1024 chars |
A.3. Sandbox Configuration
The Python interpreter runs in a stateless subprocess with an execution timeout of 30 seconds and a memory limit of 1 GB per call. The standard scientific stack is preinstalled, including NumPy, SciPy, SymPy, and the standard math, fractions, and itertools modules. A tool call must be enclosed by one complete <python> and </python> tag pair. Each complete pair triggers one sandbox call. An incomplete or malformed pair does not trigger execution. The interpreter's standard output is returned to the Executor as the next observation. The tool-use analysis reports the configurations and evaluation settings shown in the main paper. It does not provide a matched same-checkpoint comparison with the Python tool disabled.
B. Prompt Templates
We present the prompt templates used by the Curriculum Agent and the Executor Agent. Both prompts are kept short and remain unchanged throughout the three outer iterations. The iterative anchor shapes the policy distribution through the reward and the advantage, not through prompt edits.
B.1. Curriculum Agent Prompt
The Curriculum Agent generates one math problem per call. The prompt asks for a self-contained problem with a single numerical answer that the Executor can attempt through the tool interface defined above.
Curriculum Agent Prompt
You are a math problem creator. Generate one challenging mathematical reasoning problem that satisfies the requirements below.
-
The problem requires careful reasoning across multiple steps, not pattern matching or memorization.
-
The problem has a single unambiguous numerical answer that can be verified by computation.
-
The problem is self-contained. All needed information appears in the problem text.
-
The problem can be approached with high school or early undergraduate mathematics, including algebra, number theory, combinatorics, geometry, or calculus.
-
A Python interpreter is available to the solver for verifying intermediate computations.
Output the problem and the correct answer in the following format.
Problem: <problem statement>
Answer: <numerical answer>
B.2. Executor Agent Prompt
The Executor Agent receives the problem statement and produces a trajectory that interleaves reasoning with Python tool calls. The prompt instructs the Executor to wrap each code block in one complete <python> and </python> pair. It also requires a final answer in a fixed format that the consensus rule and binary reward can parse.
Executor Agent Prompt
You are a math problem solver with access to a Python interpreter.
Solve the following problem step by step. At any point during your reasoning you may write a short Python script and execute it by enclosing the code in <python> and </python> tags. The standard output of the script will be returned to you as the next observation, and you may continue reasoning from there.
When you have determined the final answer, output it on its own line in the format
Final Answer: <numerical answer>
Problem:
{problem}
B.3. Answer Parsing and Group Resolution
We parse the fixed final-answer field before comparing sampled outputs. A well-formed output is mapped to one canonical answer label. An output is invalid when the trajectory finishes but the field is absent, malformed, or contains conflicting answers. A trajectory is missing when it reaches a length limit, times out, terminates with an execution failure, or returns empty output before a final answer. Invalid and missing outputs do not vote for a modal label and receive reward zero, but they remain in the fixed group size G = 8.
A group is resolved only when its valid answers contain one label with a unique highest count. A highest-count tie or the absence of a valid answer makes the group unresolved. Such a group is omitted from an Executor update that requires a pseudo-label. In a diagnostic average over a fixed sampled pool, its pseudo-label-dependent contribution is zero, so the stated denominator does not change. If either group in the Curriculum comparison is unresolved, its frontier term is set to zero while the uncertainty, tool-use, and repetition terms remain active. The same parsing and resolution rules are used for current, anchor, and reference groups.
C. Baselines and Benchmark Details
C.1. Baseline Methods
We compare AnchorLoop against seven baselines that cover both untrained references and published self-evolving training methods.
Base Model. The pre-trained Qwen3-4B-Base or MiMo-7B-Base backbone evaluated without any further training and without access to the Python interpreter.
Base Model w/ Tool (TIR). The same backbone with access to the Python interpreter at inference time but no additional training.
Absolute Zero [28]. A zero-data framework in which the model proposes code reasoning tasks and solves them through Python execution. It is trained without external tasks or labels. In our adaptation, the Python interpreter is available during both training and evaluation.
SPIRAL [10]. A self-play reinforcement learning method that trains a shared policy through multi-turn self-play in TextArena zero-sum games.
R-Zero [6]. A zero-data reasoning framework that improves the base model through iterative training data the model generates itself, without a code executor.
Table 4: Run-level variability for the most recent baseline (Agent0) and AnchorLoop. Entries report mean ± sample standard deviation over five independent training runs.
| Backbone | Domain | Agent0 | AnchorLoop |
|---|---|---|---|
| Qwen3-4B | Math | ||
| Qwen3-4B | General | ||
| MiMo-7B | Math | ||
| MiMo-7B | General |
Socratic-Zero [22]. A self-evolving approach that starts from 100 seed problems. It trains a Solver and a Generator under guidance from a fixed, high-capacity Teacher, without a Python code executor.
Agent0 [25]. Agent0 trains a Curriculum Agent to propose tasks and an Executor Agent to solve them through Python tool use. The Agent0 baseline retains Ambiguity-Dynamic Policy Optimization (ADPO), which adjusts advantage weights and clipping bounds according to answer agreement. AnchorLoop retains both ADPO components and introduces an iterative anchor into the Executor advantage and the Curriculum reward.
All baselines that involve training use the same Qwen3-4B-Base and MiMo-7B-Base backbones and the same evaluation protocol as AnchorLoop. All results in tables were obtained from evaluations conducted in this work.
C.2. Evaluation Benchmarks
Table 5 lists seven mathematical and six general reasoning benchmarks. Agent0 and AnchorLoop scores average five independent training runs for each method on each backbone. Domain averages are unweighted means over benchmarks. They are computed from unrounded benchmark scores and then rounded to one decimal place. For AMC23, AIME24, and AIME25, mean@32 averages correctness over 32 responses per question and then across questions. Other benchmarks use greedy pass@1.
For the Curriculum-stage analysis in Figure 3(c), we sample 200 tasks from each stage. The iteration-1 Executor independently generates trajectories per task, yielding 1,600 trajectories per stage. Pass rate is the mean binary reward across these trajectories. Average tool calls is the arithmetic mean of the number of Python calls over the same trajectories.
C.2.1. Mathematical Reasoning
AMC23. Problems from the 2023 American Mathematics Competitions, covering high school algebra, geometry, number theory, and combinatorics. [17]
MATH-500 [5, 9]. A subset of 500 challenging problems from the MATH dataset, spanning algebra, counting and probability, geometry, intermediate algebra, number theory, prealgebra, and precalculus.
GSM8K [3]. A dataset of grade school math word problems that require arithmetic across multiple steps together with basic algebra.
Minerva (OCWCourses) [8]. This benchmark contains 272 problems from undergraduate STEM courses in MIT OpenCourseWare.
OlympiadBench [4]. Math problems from international mathematical olympiads and similar competitions.
Table 5: Reasoning benchmarks used for evaluation.
| Benchmark | Domain | Metric |
|---|---|---|
| Mathematical reasoning | ||
| AMC23 | High school competition math | mean@32 |
| MATH-500 | Mixed math topics | pass@1 |
| GSM8K | Grade school word problems | pass@1 |
| Minerva | STEM quantitative reasoning | pass@1 |
| OlympiadBench | Olympiad math | pass@1 |
| AIME24 | Advanced high school math | mean@32 |
| AIME25 | Advanced high school math | mean@32 |
| General reasoning | ||
| SuperGPQA | Graduate Q&A | pass@1 |
| MMLU-Pro | Mixed domain understanding | pass@1 |
| BBEH | Hardest BIG-Bench subset | pass@1 |
| GPQA-Diamond | Google-proof Q&A | pass@1 |
| HumanEval | Python code generation | pass@1 |
| AGIEval | Human examination tasks | pass@1 |
AIME24 and AIME25. The 2024 [13, 14] and 2025 [15, 16] editions of the American Invitational Mathematics Examination, with thirty problems each that cover advanced high school mathematics.
C.2.2. General Reasoning
SuperGPQA [12]. A question answering benchmark at the graduate level, spanning over two hundred academic disciplines.
MMLU-Pro [24]. A more challenging refinement of the MMLU benchmark with broader reasoning across fourteen subject areas.
BBEH [7]. BIG-Bench Extra Hard is a 23-task benchmark that replaces each BIG-Bench Hard task with a harder counterpart targeting related reasoning skills.
GPQA-Diamond [18]. The most challenging subset of the GPQA benchmark, designed to be unsolvable through simple retrieval.
HumanEval [1]. A Python code generation benchmark with handwritten programming problems, each accompanied by unit tests.
AGIEval [29]. A benchmark centered on human examinations that evaluates foundation models on tasks drawn from standardized tests.
D. Anchor Mechanism Analysis
This section provides a deeper analysis of the iterative anchor that underlies AnchorLoop. We quantify the compute and memory overhead it introduces, compare alternative refresh schedules, measure the efficiency gain of caching anchor rollouts, and describe the failure modes where the anchor stops contributing useful signal.
Table 6: Historical-advantage structure in matched records from five runs per backbone. Percentages use valid groups as the denominator. The final three columns partition the valid groups. The same-majority column may overlap with them.
| Executor stage | Valid/ candidate | Same majority | Zero historical term | Nonzero and collinear | Nonzero and non-collinear |
|---|---|---|---|---|---|
| Qwen3-4B-Base | |||||
| Early | 581/600 | 422 (72.6%) | 438 (75.4%) | 91 (15.7%) | 52 (9.0%) |
| Middle | 574/600 | 355 (61.8%) | 379 (66.0%) | 111 (19.3%) | 84 (14.6%) |
| Late | 586/600 | 347 (59.2%) | 369 (63.0%) | 103 (17.6%) | 114 (19.5%) |
| MiMo-7B-Base | |||||
| Early | 578/600 | 414 (71.6%) | 430 (74.4%) | 96 (16.6%) | 52 (9.0%) |
| Middle | 569/600 | 352 (61.9%) | 367 (64.5%) | 118 (20.7%) | 84 (14.8%) |
| Late | 583/600 | 340 (58.3%) | 361 (61.9%) | 106 (18.2%) | 116 (19.9%) |
D.1. Historical-Advantage Structure
We analyze matched records from the first outer iteration for Qwen3-4B-Base and MiMo-7B-Base. For each backbone, records from each of five runs are ordered by Executor update step and divided into early, middle, and late thirds before the stage counts are aggregated. A candidate matched group is valid when the current and anchor groups correspond to the same task and Curriculum batch, both records are complete, and both groups have a resolved majority answer. Invalid outputs, unresolved ties, and incomplete matches are excluded.
We classify the historical advantage from the discrete reward-indicator patterns. Its centered vector is zero only when all entries are exactly zero. A nonzero historical vector is collinear when the current vector is also nonzero and the two vectors are related by a positive scale. Negative proportionality and a nonzero historical vector paired with a zero current vector are classified as non-collinear. Thus, no numerical tolerance is used. The same-majority rate is reported separately and can overlap with the zero category.
Table 6 reports the resulting statistics. Each run contributes 120 candidate groups per stage, giving 600 per stage and backbone. These descriptive counts characterize the analyzed records but do not establish that the historical term causes the performance gains in the main results.
D.2. Cost Analysis
Table 7 compares AnchorLoop with Agent0 on Qwen3-4B-Base using eight A100 80GB GPUs. Timings are five-run means for comparable single-iteration training. The anchor adds one frozen checkpoint and G rollouts per task. Cached AnchorLoop takes 24.1 hours per iteration versus 20.5 for Agent0, a 17.6% overhead. The main performance tables evaluate both methods after the same three outer iterations. Since their per-iteration costs differ, this comparison does not match wall time or GPU hours. It supports the reported performance comparison at three iterations, but does not establish an advantage under a matched compute budget.
D.3. Anchor Refresh Schedule
The default AnchorLoop refreshes the anchor at the start of every outer iteration. Table 8 compares this default against refreshing every two iterations and against never refreshing, which reduces to a fixed anchor pinned to the base model. For each refresh schedule, we report the highest Math AVG among
Table 7: Compute and memory comparison between Agent0 and AnchorLoop on Qwen3-4B-Base.
| Metric | Agent0 | AnchorLoop (ours) |
|---|---|---|
| Time per outer iteration | 20.5 h | 24.1 h |
| GPU hours per outer iteration | 164 | 193 |
| Frozen checkpoint memory | 0 | 8.1 GB |
| Anchor rollouts per task | 0 | (cached) |
| Overhead vs Agent0 | - | +17.6% |
Table 8: Highest Math AVG among checkpoints evaluated within the first five outer iterations on Qwen3-4B-Base for each anchor refresh schedule.
| Refresh schedule | Best Math AVG |
|---|---|
| Every iteration (default) | 56.3 |
| Every two iterations | 54.4 |
| No refresh (fixed at base model) | 53.3 |
checkpoints evaluated within the first five outer iterations. The every-iteration and fixed-anchor results use the same runs and evaluation settings as Figure 3(a). The default schedule has the highest reported score in this table. The three discrete frequencies differ in when the reference checkpoint is updated. Their scores do not isolate checkpoint age or establish an optimal rule beyond the evaluated settings.
D.4. Anchor Caching Efficiency
Table 9 compares cached and uncached AnchorLoop on the same eight GPUs and comparable single-iteration training. The cached version samples anchor rollouts once per task and Curriculum batch, then reuses them across relevant Executor steps. The uncached version resamples at each such step. The five-run mean falls from 32.7 to 24.1 hours, a 26.3% reduction. Since resampling changes stochastic outputs, this comparison of complete implementations neither isolates a pure systems effect nor establishes a theoretical lower bound on anchor overhead.
D.5. Failure Case Analysis
The iterative anchor stops contributing useful signal in two identifiable regimes. We describe each with a representative example taken from our Curriculum logs on Qwen3-4B-Base.
Failure Case 1: Beyond the Frontier
Task. A problem at the level of AIME 2024 Problem 15, which asks for a unique point on a line segment that is not contained in any unit segment with endpoints on the coordinate axes. The expected solution combines coordinate geometry with optimisation.
Anchor . The eight rollouts produce eight different answers, so the group has no unique modal label.
Current . The sampled answers also tie at the highest count, leaving this group unresolved.
Under the protocol in Appendix B.3, these groups are not assigned pseudo-labels. The task receives , while the other Curriculum reward terms remain active, and it is omitted from the pseudo-label-dependent Executor update. The agreement-based terms therefore provide no comparison when
Table 9: Wall time with and without anchor rollout caching on Qwen3-4B-Base, averaged over five runs.
| Configuration | Wall time per outer iteration (h) |
|---|---|
| AnchorLoop without anchor caching | 32.7 |
| AnchorLoop with anchor caching | 24.1 |
| Agent0 (reference) | 20.5 |
Failure Case 1: Beyond the Frontier (continued)
the sampled groups do not produce unique modal labels.
Failure Case 2: Shared Wrong Consensus
Task. How many ways are there to seat 5 distinct people around a round table where rotations are considered equivalent? The correct answer is 4! = 24, after dividing by the size of the rotation group.
Anchor. Most rollouts output 120 and treat the table as linear.
Current. Most rollouts also output 120. Both checkpoints inherit the same bias from the base model and forget to divide by the size of the rotation group.
The two groups therefore select the same wrong modal label. The two indicators on every current trajectory coincide, which makes . The frontier term can compare how concentrated the two sampled groups are, but it cannot determine that their shared label is wrong. This case exposes a limitation of the present agreement-based supervision. An anchor with the same bias cannot supply the missing correctness signal.
These cases illustrate two distinct sources of uninformative anchor feedback. In the first case, the geometry and optimization task yields dispersed, tied answers, leaving neither sampled group with a unique modal label. In the second case, both groups count linear arrangements instead of circular arrangements and overlook rotational equivalence. Their shared incorrect modal answer makes , while can still compare agreement rates without identifying the mistake. These examples illustrate that useful anchor feedback depends on the sampled answer composition and that shared reasoning errors can remain undetected.
E. Additional Experimental Results
This section reports results that complement the main experiments in Section 4. Section E.1 tracks each individual mathematical benchmark across the three outer iterations on MiMo-7B-Base, showing that the average improvements in Table 1 are not concentrated on one or two benchmarks. Section E.2 extends the three iteration-dynamics panels of Figure 2 from Qwen3-4B-Base to MiMo-7B-Base. Section E.3 extends the hyperparameter sensitivity heatmap of Figure 3(b) to MiMo-7B-Base. All results in this section use the same training protocol, anchor refresh schedule, and evaluation conventions as Section 4.1.
E.1. Per-Benchmark Trajectories on MiMo-7B-Base
Table 10 reports math accuracy for each of the seven mathematical reasoning benchmarks at outer iterations under both Agent0 and AnchorLoop on MiMo-7B-Base. Iteration is the
Table 10: Per-benchmark math accuracy across outer iterations on MiMo-7B-Base. Iteration is the Base Model with tool. Iteration matches the endpoints in Table 1. Best endpoint per benchmark is in bold.
| Method (Iter) | AMC23 | MATH | GSM8K | Minerva | Olympiad | AIME24 | AIME25 | AVG |
|---|---|---|---|---|---|---|---|---|
| Agent0 | ||||||||
| 63.6 | 77.9 | 91.1 | 51.4 | 50.2 | 34.4 | 26.9 | 56.5 | |
| 66.2 | 80.3 | 92.9 | 55.4 | 52.6 | 38.2 | 30.2 | 59.4 | |
| 67.0 | 81.0 | 93.8 | 56.9 | 53.8 | 38.9 | 32.0 | 60.5 | |
| 67.3 | 81.4 | 94.2 | 57.9 | 54.1 | 39.5 | 32.4 | 61.0 | |
| AnchorLoop (ours) | ||||||||
| 63.6 | 77.9 | 91.1 | 51.4 | 50.2 | 34.4 | 26.9 | 56.5 | |
| 66.9 | 81.0 | 92.9 | 55.4 | 52.6 | 38.4 | 31.4 | 59.8 | |
| 68.8 | 82.8 | 94.1 | 58.1 | 54.9 | 40.7 | 33.9 | 61.9 | |
| 70.0 | 84.1 | 95.7 | 60.6 | 56.7 | 42.3 | 35.4 | 63.5 | |
tool-augmented base model used as the shared starting point of both methods. Iteration matches the endpoints in Table 1.
Three observations stand out. First, every benchmark improves monotonically across iterations under both methods, so the iteration average gains in Figure 4(a) are not driven by trading off one column against another. Second, AnchorLoop's per-step gain is consistently larger than Agent0's after iteration 1. The average gap widens from 0.4 at to 1.4 at and 2.5 at , which matches the increasing separation reported in Figure 4(a). Third, the largest absolute gains over the tool-augmented base appear on the harder benchmarks. AnchorLoop lifts Minerva by 9.2 points, AIME25 by 8.5, and AIME24 by 7.9, while the easier GSM8K column moves by only 4.6 points because it already starts above 91%. Agent0 also gains the most on these harder benchmarks, but consistently by smaller margins, so the AnchorLoop advantage is largest precisely on the columns with the most headroom.
E.2. Iteration Dynamics on MiMo-7B-Base
Iteration-wise math performance. Figure 4(a) tracks math AVG on MiMo-7B-Base. Both methods start from the tool-augmented base at 56.5. Agent0 improves by +2.9 on iteration 1, then by only +1.1 and +0.5, the same plateau pattern observed on Qwen3-4B-Base. AnchorLoop improves by +3.3 points on iteration 1 and continues to gain +2.1 and +1.6 points in the next two iterations. The gap to Agent0 therefore widens from 0 at iteration 0 to 2.5 at iteration 3. The iteration-3 endpoints match Table 1, and the same gap of 2.5 points carries over from Qwen3-4B-Base, indicating that the iterative anchor scales with backbone capability rather than producing a fixed offset.
Effective advantage variance. Figure 4(b) reports the same stage-averaged within-group variance defined in Section 4.3. Agent0 begins at 0.44, while AnchorLoop begins at 0.45. By iteration 3, Agent0 decreases to 0.08, whereas AnchorLoop remains at 0.30. These stage averages summarize the sampled Executor groups and do not imply that the historical term is nonzero in every group. Under the definitions in Section 3.2, both advantage terms vanish when all current answers in a group are identical. The observed difference is consistent with greater within-group variation for AnchorLoop in the evaluated MiMo runs. This panel alone does not isolate a causal effect on performance.
(a) Math AVG Across Iterations

(b) Effective Advantage Variance
(c) Curriculum Frontier Fraction
Figure 4: Iteration dynamics on MiMo-7B-Base. (a) Math AVG across the three outer iterations. (b) The within-group variance of effective advantages, , averaged over sampled groups in the Executor stage. (c) The reported Curriculum frontier fraction, defined as the fraction of generated tasks with a positive sampled agreement gap under Appendix B.3. An unresolved pair contributes zero.
Curriculum frontier fraction. Figure 4(c) follows the construction in Figure 2(c). Its two groups are sampled independently from the same checkpoint, and an unresolved pair contributes zero. At iteration 0, the reported fraction is 56.2% for Agent0 and 56.4% for AnchorLoop. By iteration 3, it decreases to 17.2% for Agent0 and to 33.7% for AnchorLoop. These values record how often independently sampled groups produce a positive majority agreement gap. They do not measure correctness, identify newly solved tasks, or establish that the frontier reward caused the later performance difference. At iteration 3 on both backbones, AnchorLoop reports higher math AVG, higher effective advantage variance, and a larger positive agreement gap fraction. These concurrent differences do not establish a causal relation among the statistics.
E.3. Hyperparameter Sensitivity on MiMo-7B-Base
We sweep and on MiMo-7B-Base, the same grid used for Qwen3-4B-Base in Figure 3(b). Figure 5 reports math AVG at each grid cell. The default setting attains the highest reported Math AVG on both evaluated grids. On MiMo-7B-Base, Math AVG ranges from 60.47 to 63.50, indicating greater sensitivity than on Qwen3-4B-Base. The default setting remains the highest-performing point on both evaluated grids. These results do not establish robustness outside the tested ranges or prove that the weights transfer across backbones without selection.
F. Case Studies and Qualitative Examples
This appendix provides case-level context for the quantitative analyses in Sections 4.3 and 4.5. Section F.1 compares twelve Curriculum tasks across three outer iterations and several mathematical topics. Section F.2 groups eight topic sequences, each containing one task from iterations 0 through 3. The grouping organizes related prompts for comparison and does not establish that a later task was produced by editing the earlier tasks. Section F.3 reports four full reasoning traces, with three AIME 2024 problems and one Curriculum task from iteration 3. It places selected anchor and post-update Executor traces side by side. All cases are drawn from runs on Qwen3-4B-Base.
Sensitivity to and (MiMo-7B-Base)

Figure 5: Hyperparameter sensitivity on MiMo-7B-Base, the appendix counterpart of Figure 3(b). Math AVG on a grid over the historical-advantage weight and the frontier reward weight . The peak at our default reaches 63.50, matching Table 1.
F.1. Extended Post-update Executor Comparisons
We report twelve selected Curriculum tasks, with four examples from each outer iteration . For each task, we show a displayed anchor output in gray and a displayed post-update Executor output in blue. The visual code matches the gray and blue robots used in Figure 1. These individual outputs illustrate case-level differences. They do not by themselves verify the group-level condition , estimate how often the differences occur, or establish that caused them.
Iteration 1 (anchor = base Executor, current = iteration-1 Executor). The selected iteration-1 cases display gaps such as a missing inclusion-exclusion correction or leading-digit constraint. The paired updated Executor outputs include the corresponding structural steps.
Selected Example 1 (Iter 1) – Inclusion-Exclusion
Task. Find the sum of all integers from 1 to 60 that are divisible by 4 or by 6.
Anchor . Multiples of 4 up to 60: . Multiples of 6 up to 60: . Sum . Wrong: forgot to subtract multiples of .
Current . Multiples of 4: 480. Multiples of 6: 330. Multiples of . Inclusion-exclusion: . Correct.
Selected Example 2 (Iter 1) – Arithmetic Sequence Off-by-One
Task. An arithmetic progression has first term and common difference . Find the 50th term .
Anchor . . Wrong: used instead of .
Current . . So . Correct.
Selected Example 3 (Iter 1) – Restricted Digit Count
Task. How many 5-digit positive integers have all distinct digits? (Leading digit cannot be 0.)
Anchor . Choose 5 distinct digits and order them: . Wrong: counts numbers starting with 0, which are not 5-digit.
Current . First digit : 9 choices. Remaining four positions take any of the remaining nine digits without repeats: . Correct.
Selected Example 4 (Iter 1) – Modular Pattern
Task. How many integers with satisfy ?
Anchor . Try the first few squares: , , . Only matter, so the answer is . Wrong: lists ad hoc solutions instead of identifying the structural rule.
Current . Every odd satisfies , since and is even. Even have or . So count odd integers in : , which gives . Correct.
Iteration 2 (anchor = iteration-1 Executor, current = iteration-2 Executor). The selected iteration-2 cases display errors involving cyclic constraints, auxiliary identities, and complementary counting. The paired updated Executor outputs use the corresponding additional steps.
Selected Example 5 (Iter 2) – Cyclic Bead Coloring
Task. How many ways are there to color the 5 beads of a necklace arranged in a cycle, using 3 colors, so that no two adjacent beads have the same color? (Beads are distinguishable by position; rotations are not identified.)
Anchor . First bead: 3 choices. Each of the next four: 2 choices (different from the previous). Total: . Wrong: treats the necklace as a line and ignores the constraint between bead 5 and bead 1.
Current . Chromatic polynomial of cycle with colors is . For , : . Correct.
Selected Example 6 (Iter 2) – Telescoping Sum
Task. Compute exactly as a reduced fraction.
Anchor . Add the first few decimals: . Final answer: . Wrong: returns a decimal approximation and never uses the telescoping identity.
Current . Partial fractions: . The sum telescopes: . Correct.
Selected Example 7 (Iter 2) – Constrained Permutation
Task. How many distinct arrangements of the letters in COMMITTEE have the two Ms separated by at least one other letter?
Anchor . The word has 9 letters with repeats . Total arrangements: . Wrong: ignores the “Ms separated” constraint entirely.
Current . Use complement. Total = 45360. Arrangements with the two Ms adjacent: treat MM as one block, leaving 8 items with repeats : . Answer: . Correct.
Selected Example 8 (Iter 2) – Modular Exponentiation
Task. Compute .
Anchor . Multiply step by step without Fermat. , and so on for 100 steps. The running remainder drifts off course around step 40; the anchor's final value is . Wrong: a brute hand iteration without the period-12 structure accumulates an arithmetic slip after dozens of multiplications.
Current . By Fermat's little theorem, . Write , so . . Answer . Correct.
Iteration 3 (anchor = iteration-2 Executor, current = iteration-3 Executor). The selected iteration-3 cases emphasize verification and broader search. Their updated Executor outputs use the sandbox to check intermediate claims or combine a symbolic route with a numerical check. This observation applies only to the displayed cases.
Selected Example 9 (Iter 3) – Sum of Trailing-Zero Counts
Task. Let denote the number of trailing zeros of in base 10. Compute .
Anchor . Approximate over the range, so the sum is about . Final . Wrong: estimates the average rate of zeros and never sums Legendre's exact formula.
Current . Legendre: . Verify with Python:
def z(n): t = 0; p = 5 while p <= n: t += n // p; p *= 5 return t
print(sum(z(n)) for n in range(1, 101)) # 1124
Answer . Correct.
Selected Example 10 (Iter 3) – Palindromic Quartic
Task. Compute the sum of all real roots of .
Anchor . Try rational roots . , . No rational roots, so default to Vieta on the full polynomial: sum of all roots is . Partially correct, but unjustified. The answer happens to be right because the polynomial has four real roots, but the anchor never verifies reality.
Current . The polynomial is palindromic. Divide by and substitute : , giving . , roots , both real. , roots , both real. Sum: . Verify with Python:
import numpy as np print(sum(np.roots([1,-7,14,-7,1]).real)) # 7.0
Correct, with reality justified.
Selected Example 11 (Iter 3) – Prime-Restricted Compositions
Task. How many ordered 5-tuples with each satisfy ?
Anchor . Try the symmetric tuple – but is not prime. Try , also bad. Enumerate by hand a few candidates such as (30 ✓) and (30 ✓); each has multiple orderings. Estimate . Wrong: undercounts because the manual enumeration misses several multisets.
Current . This is the coefficient of in . Compute via Python:
from itertools import product P = [2, 3, 5, 7, 11] print(sum(1 for t in product(P, repeat=5) if sum(t)==30)) # 155
Answer . Correct.
Selected Example 12 (Iter 3) – Sum-of-Two-Squares Diophantine
Task. Find all positive integer pairs with satisfying .
Anchor . . So is one pair, but must be positive. Try : , not a square. Try : , not a square. Conclude there are no solutions. Wrong: stops after two trials.
Current . Search in exhaustively with Python:
N=2025 sols=[(x,int((N-xx)**0.5)) for x in range(1,32) if (N-xx) >= 0 and int((N-xx)**0.5)**2 == N-xx] sols=[(x,y) for x,y in sols if x<=y] print(sols) # [(27, 36)]
Unique pair , since . Correct.
Observations in the twelve selected examples. The displayed pairs include missing identities, omitted constraints, and incomplete verification. Several iteration-3 updated Executor outputs use Python verification, while the corresponding displayed anchor outputs rely on approximations or limited manual trials. The examples were selected for illustration. Their composition does not estimate the prevalence of these behaviors, establish that caused them, or show that tool use first appears at iteration 3.
F.2. Selected Curriculum Tasks Across Outer Iterations
We group thirty-two selected Curriculum tasks into eight topic sequences. Each sequence contains one task from iterations under a common mathematical topic. This retrospective organization highlights differences among the displayed prompts. It does not establish a direct editing lineage, a general increase in task difficulty, or a causal effect of the Curriculum reward.
Topic Sequence A – Inclusion-Exclusion
Iter 0: Compute the sum of all multiples of 3 between 1 and 100.
Iter 1: Compute the sum of all integers between 1 and 100 that are divisible by 3 or by 5.
Iter 2: Compute the sum of all integers between 1 and 100 that are divisible by at least one of 3, 5, or 7.
Iter 3: Count the integers between 1 and 1000 that are coprime to , and report the result.
Topic Sequence B – Combinatorics with Restrictions
Iter 0: How many ways are there to arrange the letters ABCDE in a row?
Iter 1: How many distinct arrangements does the word BANANA have?
Iter 2: How many distinct arrangements of the letters of MISSISSIPPI have no two is adjacent?
Iter 3: Eight people sit at a round table. Two specific pairs, and , refuse to sit next to each other. How many seatings are there if rotations are equivalent? Verify with a short Python enumeration.
Topic Sequence C – Sequences and Recurrences
Iter 0: The arithmetic progression has what value at ?
Iter 1: Compute the sum of the first 50 terms of the arithmetic progression with .
Iter 2: Express in closed form and evaluate at .
Iter 3: The sequence with has a closed form. Derive it, evaluate , and verify with Python.
Topic Sequence D – Probability and Expectation
Iter 0: A fair six-sided die is rolled. What is the probability of rolling a 6?
Iter 1: Two fair six-sided dice are rolled. What is the probability that the sum equals 7?
Iter 2: A fair coin is flipped five times. What is the probability of getting at least two heads?
Iter 3: Ten fair six-sided dice are rolled. Compute the expected number of distinct face values that appear, as a reduced fraction, and verify with a short Monte Carlo run in Python.
Topic Sequence E – Number Theory
Iter 0: Compute gcd(48, 60).
Iter 1: Find the smallest positive integer with .
Iter 2: Find the number of positive divisors of , and their sum.
Iter 3: Find the smallest positive integer with , where is Euler's totient function. Verify with Python over .
Topic Sequence F – Algebra and Polynomials
Iter 0: Solve for .
Iter 1: Solve for .
Iter 2: The roots of are and . Compute using Vieta's formulas, without solving for the roots explicitly.
Iter 3: Find every real root of and report the sum of the real roots. Then count complex roots. Verify with Python's numpy.roots.
Topic Sequence G – Geometry
Iter 0: Compute the area of the triangle with vertices , , and .
Iter 1: Compute the area of a regular hexagon with side length 5.
Iter 2: A circular sector has radius 12 and central angle . Compute the arc length and the area of the sector, leaving answers in terms of .
Iter 3: A frustum has base radii and and slant height . Compute the volume in closed form. Verify the height computation with Python and confirm the answer.
Topic Sequence H – Calculus
Iter 0: Differentiate with respect to .
Iter 1: Evaluate .
Iter 2: Find every critical point of on and classify each as a local maximum, local minimum, or neither.
Iter 3: Compute to six decimal places using Simpson's rule with intervals, and verify with scipy.integrate.quad.
Observations across the eight topic sequences. The selected tasks show several recurring differences. Some later-iteration prompts combine more operations or request numerical verification. Python verification is included in the displayed iteration-3 tasks, but these selected sequences do not show when tool use first appears during training. They also do not establish a task-editing lineage, a general progression in difficulty, or a causal effect of .
F.3. Full Executor Reasoning Traces
We close the appendix with four selected reasoning traces. Three use verified problems from AIME 2024 [13, 14], so the answers are independently checkable. The fourth uses a Curriculum task from iteration 3. For each case, we juxtapose the displayed anchor trace with the displayed post-update Executor trace and include the Python block used by the Executor for verification. These individual traces do not measure how often the observed differences occur.
Trace 1: AIME 2024 I, Problem 1 (rates and times)
Trace 1 – AIME 2024 I Problem 1, Answer = 204
Task. Every morning Aya goes for a 9-kilometer walk and stops at a coffee shop afterwards. At speed km/h the trip takes 4 hours including minutes at the coffee shop. At speed km/h the trip takes 2 hours 24 minutes including the same minutes. Find the total trip time, in minutes, when Aya walks at km/h.
Anchor (majority). Let and be walking times in hours. Then and . Subtract: . So , giving , i.e. , so , , . Then , so , giving minutes. For , the walk takes hours = 180 minutes, plus , so total minutes. Correct algebraically but the anchor's batch is split because half of the rollouts mishandle the unit conversion of 2 hours 24 minutes, landing on and producing answers in the 190–210 range with no consensus.
Current (majority). Convert all times to hours up front: 2 hours 24 minutes = . Set so and . Eliminating gives , so , , and so . At km/h, walk time = 3 hours = 180 minutes; total = .
Verify with Python:
from sympy import symbols, solve, Rational s, t = symbols('s t', positive=True) eq1 = 9/s + t/60 - 4 eq2 = 9/(s+2) + t/60 - Rational(12, 5) sol = solve([eq1, eq2], [s, t]) s_val, t_val = sol[0] print(int(9/(s_val + Rational(1, 2)) * 60 + t_val)) # 204
Correct, batch unanimous.
Trace 2: AIME 2024 II, Problem 1 (four-set inclusion-exclusion).
Trace 2 – AIME 2024 II Problem 1, Answer = 73
Task. Among 900 residents of Aimeville, 195 own a diamond ring, 367 own a set of golf clubs, 562 own a garden spade, and every resident owns a bag of candy hearts. There are 437 residents who own exactly two of these four items and 234 who own exactly three. Find the number of residents who own all four.
Anchor (majority). Apply three-set inclusion-exclusion to and conflate “exactly ” partition counts with -fold intersection sums. The anchor reads as the pairwise-intersection sum and 234 as the triple-intersection. Then
so 900 – 687 = 213 residents own none of (i.e. only candy hearts). The anchor identifies these as the all-four owners and reports . Wrong: “exactly ” counts are not -fold intersection sums, so the inclusion-exclusion expression is malformed, and the residents owning only candy hearts are not the residents owning all four.
Current (majority). Let be the number of residents owning exactly items, with , , and unknown. Since every resident owns candy hearts, no one owns zero, so , giving . Now count the total membership across only (each resident contributes items here, since one of their items is always candy hearts): . But this equals . Hence , .
Verify with Python:
from sympy import symbols, solve
x, n1 = symbols('x n1', nonnegative=True, integer=True)
eq1 = n1 + 437 + 234 + x - 900
eq2 = 437 + 2234 + 3x - (195 + 367 + 562)
print(solve([eq1, eq2], [x, n1])) # {x: 73, n1: 156}
Correct, batch unanimous.
Trace 3: AIME 2024 II, Problem 3 ( digit grid)
Trace 3 – AIME 2024 II Problem 3, Answer = 45
Task. Find the number of ways to place a digit in each of the six cells of a grid so that (i) the sum of the two three-digit numbers formed by the two rows is 999, and (ii) the sum of the three two-digit numbers formed by the three columns is 99.
Anchor (majority). Let the cells be in the top row and in the bottom row. Row constraint: , i.e. . Column constraint: , i.e. . The anchor concludes that every column must sum to 9 and every column-pair must sum to 33, leading to by direct enumeration. Wrong: the column reading gives per column, not ; the anchor incorrectly derives the column constraint.
Current (majority). With , the row constraint and the bounds force . The column constraint with gives and . Once is fixed and each digit lies in , the bottom row is determined cell by cell (). The number of in with is the stars-and-bars count , since the upper bound 9 is not active when the sum is 8.
Verify with Python:
ct=0 for a in range(10): for b in range(10): for c in range(10): for d in range(10): for e in range(10): for f in range(10): if 100a+10b+c+100d+10e+f==999 and 10a+d+10b+e+10*c+f==99: ct+=1 print(ct) # 45
Answer 45. Correct, batch unanimous.
Trace 4: A task generated by the Curriculum at iteration 3 (Pell equation).
Trace 4 – Curriculum Task at Iteration 3
Task. Find all positive integers with such that is a perfect square. (These correspond to Pythagorean triples whose two legs are consecutive integers.)
Anchor (majority). Try small by hand. , not a square. . . . . . . None of these are squares. Conclude is the only solution in . Wrong: the anchor stops after one positive hit and never checks the rest of the range systematically, so it misses the second solution .
Current (majority). Set , i.e. . Multiply by 2: . Let , so , the negative Pell equation. Its positive integer solutions are , which give . Excluding and capping at 100 leaves . Verify with Python:
import math
sols = [] for n in range(1, 101): s = nn + (n+1)(n+1) r = int(math.isqrt(s)) if r*r == s: sols.append(n) print(sols) # [3, 20]
Verification: , and . Answer . Correct.
Observations in the four selected traces. Trace 1 displays a batch split in which some anchor rollouts use 2.24 hours instead of 2.4 for 2h 24m. Trace 2 displays confusion between counts for exactly groups and pairwise or triple intersection counts. Trace 3 displays an error in positional value, where the anchor treats as rather than . Trace 4 displays an incomplete search that stops at the first positive hit. The displayed post-update Executor traces use Python checks before reporting their final answers. These cases show how Python is used in the selected solutions, but they do not establish that Python caused robustness or that the pattern holds across tasks.