AutoMaster: Post-Training With the Same Model as Teacher
Holding the teacher fixed and changing only its written instructions, then filtering which runs the student sees, lifts scores 1.42 to 8.99 points over copying successful runs; but on the 4B student two of three gains have intervals that cross zero.
On this page
You have 512 runs that worked, and that is all you know about them. A model typed commands in a terminal, opened pages on the web, edited files in a repository, and every run finished green. Now you decide whether to feed all 512 back as they are, or change something first. Most teams keep the successful, the long, and the clean-looking ones. That judgment fails quietly: the student also learns the habit of guessing until the answer lands.
A Correct Answer Says Little About the Process
The paper opens with an uncomfortable sentence: task success does not specify which behaviors post-training should reinforce [1]. In each of its three examples the outcome passes and the process does not. In the first, a program meets the error threshold but claims fourth-order accuracy while measured convergence sits near second order; with a skill attached it checks fourth order with direct solves on finer grids [1]. Both pass. One holds up.
The second is a search: unguided, the model keeps guessing at an award, while guided it reads the director off the episode credits and checks the clues against that name [1]. The third is a code change. Both write a self-test whose input does not match the specification; unguided, the model reverses the global sort so the broken test passes, while guided it fixes the test and keeps ascending order: 38 of 38 tests pass against 32 of 38 [1].
None of those differences sits in the answer. They sit in habits nobody specified. The paper calls the carrier of such a habit a skill: a paragraph of plain language saying when to think a certain way, what to check first, and what does not count as verification, appended to the system prompt so it travels with the task [1]. No weights change. What changes is what the model is asked to do.
So filter the bad runs out? Good and bad share a run, and the behavior you want, such as doubting a self-test before rewriting the implementation, is rare even among runs that succeed [1]. Selection can only pick from what exists.
What a Paragraph Pasted Into the Prompt Can Change
The mechanism is almost too plain to be a method. Concatenate the chosen skills after the base system prompt, let the teacher run the task with that text in front of it, then fine-tune the student on the resulting runs [1]. The teacher produces demonstrations; the student is the model being trained.
- Numeric decision: when correctness turns on accuracy or convergence, put the acceptance condition inside the check you actually run, and never swap a relative requirement for absolute error [1].
- Search recovery: when searches return the same weak matches, drop the guessed restriction and query a relation that identifies the entity on its own; keeping the restriction is not a pivot [1].
- Contract keeping: read the failing assertion first, reduce the case to the boundary that explains the mismatch, and justify a changed expectation from the specification [1].
- Expression grammar: derive grouping rules from the specification before editing the parser; a power base excludes an ungrouped sign, its right operand admits signs and further powers [1].
Then the load-bearing detail: during training the skill text stays in the input, while at evaluation every student runs without skills under each benchmark's official protocol [1]. Keep on one side, remove on the other. The fifth section tests that asymmetry.
One correction to the title first. The teacher and the student are not the same model: the teacher is DeepSeek-V4-Pro-Preview throughout, the students are Qwen3.5-4B and 9B [1]. Same model means the teacher never changes; only its instructions do.
The Agent Writes the Skills and Reads the Scores Itself
No human writes the skills. An agent reads the training tasks, the unguided teacher's runs, and the student's own runs, hunting for habits to suppress and useful behaviors that rarely appear. It pilots a candidate, checks whether the intended behavior showed up and whether anything new broke, then revises wording and scope [1]. Promising versions scale to batched runs, where the agent picks the demonstrations worth training on.
The outer loop handles training. Every round restarts full-parameter fine-tuning from the same initial checkpoint, with a budget of five rounds. The agent then receives the student's scores and trajectories, evaluated without skills, and decides whether to revise a skill, change which tasks it covers, or select different demonstrations [1]. Restarting keeps the comparison clean: any difference between rounds comes from the data and the text, not from extra steps.
Three domains, one benchmark each: Terminal-Bench 2.1 with 89 tasks, BrowseComp Lite-185 with 185, and Doc2Repo with 50 repositories scored by mean test pass rate [1]. Each domain draws 1,000 training tasks into a fixed pool shared by all methods. Training uses 512 trajectories for 3 epochs at a learning rate of 10 to the minus 5 with a global batch of 32 [1].
One baseline, and a hard one: Vanilla SFT samples 512 trajectories at random from successful unguided runs and fine-tunes with the same recipe [1]. Teacher, task pool, set size, and recipe are held fixed, which is why the gap can only be booked against generation and selection.
Six Settings, and What Happens When You Remove One Part
AutoMaster holds the highest mean in all six columns, and plain SFT beats the untrained base everywhere, so copying successful runs does help [1]. The striking cell is the 9B model on Terminal-Bench 2.1: 26.59 to 35.58, where all 8.99 points come from how demonstrations are made and picked.
| Benchmark | Model | No fine-tuning | Plain SFT (512 successful runs) | AutoMaster | Gain (points) |
|---|---|---|---|---|---|
| Terminal-Bench 2.1 (accuracy) | 4B | 15.73 | 22.47 | 28.09 | +5.62 |
| Terminal-Bench 2.1 (accuracy) | 9B | 25.47 | 26.59 | 35.58 | +8.99 |
| BrowseComp Lite-185 (accuracy) | 4B | 33.69 | 43.24 | 46.13 | +2.88 |
| BrowseComp Lite-185 (accuracy) | 9B | 35.50 | 46.85 | 51.53 | +4.68 |
| Doc2Repo (mean test pass rate) | 4B | 21.39 | 32.30 | 33.72 | +1.42 |
| Doc2Repo (mean test pass rate) | 9B | 33.42 | 36.05 | 40.79 | +4.74 |
The gain alone does not say which half did the work. Removing skill guidance or data selection lowers the mean in all six settings, but the two do not weigh the same [1]. On Terminal with the 4B student, guidance alone reaches 20.22, below the 22.47 of plain SFT; on BrowseComp the order reverses, at 45.77 for selection and 43.78 for guidance. Selection favors runs that already show a useful behavior, while guidance elicits behaviors that are rare without it [1].
| Method | Terminal 4B | Terminal 9B | BrowseComp 4B | BrowseComp 9B | Doc2Repo 4B | Doc2Repo 9B |
|---|---|---|---|---|---|---|
| AutoMaster (full) | 28.09 | 35.58 | 46.13 | 51.53 | 33.72 | 40.79 |
| Without skill guidance | 17.60 | 28.46 | 45.77 | 49.19 | 32.03 | 36.97 |
| Without data selection | 20.22 | 34.08 | 43.78 | 50.27 | 31.43 | 38.29 |
| Task-matched SFT | 17.98 | 27.72 | 44.32 | 50.45 | 32.37 | 36.93 |
| Plain SFT | 22.47 | 26.59 | 43.24 | 46.85 | 32.30 | 36.05 |
The fourth row deserves the second look. Task-matched SFT uses unguided runs from the same teacher, with task IDs and counts matched to AutoMaster's final set, and no skills and no selection [1]. Same tasks, same counts, same recipe, and AutoMaster still leads by 1.08 to 10.11 points. Go finer: across the four Terminal and Search corpora, 79.3% to 91.2% of the 512 matched pairs succeed in both conditions, so the label cannot tell the two demonstrations apart [1].
Leaving the Skill Text in the Training Example Works Better
This is the least intuitive experiment in the paper. Evaluation never uses skills, so should training drop the text and make the two prompts match? Intuition says yes. The data says no: with identical trajectories and recipe, keeping the instructions beats removing them in all six settings, by 2.15 to 4.01 points [1].
Nothing supervised changes when you delete the text; only the guidance leaves the input. Keeping it makes the rule and its condition of application explicit, the authors argue, while removing it forces the student to infer both from the trajectory [1]. A script that runs through an interpreter needs no execute bit, and after deletion the student sees only the outcome, not the condition.
The five rounds add a second signal. The best mean in all six settings lands in rounds two through four, 2.16 to 4.87 points above round one [1]. BrowseComp with the 9B student sits near 49% for three rounds, then reaches 51.53% in the fourth. The paper does not sell this as a monotone climb: the agent keeps testing alternatives after a strong candidate appears.
Where It Stops Working, and Four Questions Before You Copy It
Start with where it breaks down. On the 4B model two intervals cross zero: BrowseComp at minus 1.08 to 6.85, Doc2Repo at minus 1.94 to 5.33 [1]. The means are positive, but a fresh set of tasks could erase the gain. The second limit is sharper: guidance without selection scores 20.22 on Terminal with the 4B student, 2.25 points below plain SFT [1]. Skills come paired with selection, and copying half the method can leave you worse off.
The third limit is scope. Three domains, two sizes, one teacher, five rounds, 512 trajectories, all fixed [1]. Other teachers and task families were not tested, and why a skill works is explained at the level of trajectories rather than proved. The fourth is cost: the paper reports scores but no API bill and no GPU hours for five rounds of agent-driven experiments.
- Ask whether the habit you dislike can be written down at all. If you cannot state what counts as finished, the method stops at step one.
- Ask how far success sits from correctness in your data. In the paper's control, 79.3% to 91.2% of pairs succeed in both conditions.
- Keep all four steps: write, pilot, scale, select. Skipping selection leaves one cell in the paper negative, and a task-matched control keeps you honest.
The version someone who never trains a model can repeat: keep the teacher, change what it is told to do, then pick through the runs before teaching the student. But half the gain lives outside the small model. One line worth a screenshot: before you stop a model from learning a bad habit, write down what finished means.
