AutoScaffold: AI-Guided Scaffolding for Reinforcement Learning of Language Models
Zijian Zhang, Rizhen Hu, Jiangweizhi Peng, Shiyang Li, Sujay Bhatt, Sihan Zeng, et al.
arXiv:2611.14515v1Reinforcement learning with verifiable rewards has become a standard way to post-train language models for reasoning and agentic tasks. The appeal is clear: you get a lot of training experience from each rollout — the model’s reasoning, its actions, and the feedback it receives. But the standard RL setup throws most of that information away. It collapses each attempt into a single outcome reward. That means a failed rollout may still contain useful partial reasoning, a successful rollout may be using a clumsy strategy, and on especially hard tasks, almost everything fails, so the reward signal becomes nearly useless. This paper is about how to make better use of that rich training experience. The key idea is scaffolding. In education, scaffolding means temporary support that helps a learner do something they cannot yet do alone, and then gradually disappears as the learner improves. In language model training, a scaffold can be a strategy, a hint, or a partial solution added to the prompt during training only. The student model uses it while learning, but at evaluation time the scaffold is removed, so the model must solve the task independently. That sounds promising, but existing scaffolding methods have three big limitations. First, they are usually not automatic. Humans design the hints, strategies, or skill libraries ahead of time, often with a lot of domain knowledge. Second, they are not really adaptive. As the student gets better, the old scaffold may stop being useful, or may become too strong and make the task too easy, which can actually reduce learning signal. Third, they are not unified across domains. A scaffold that makes sense for mathematical reasoning is not the same thing as what an embodied agent needs, or what a GPU kernel generator needs. So in practice, researchers often have to hand-design a new scaffolding system for each domain and then refine it over multiple training runs. This paper asks a simple but important question: can a strong teacher model automatically turn the student’s own training experience into scaffolds, adapt those scaffolds over time, and do it across very different domains without human intervention during training? The proposed answer is AutoScaffold. It is an AI-for-AI framework in which a frozen teacher language model watches an ongoing RL training run and periodically designs scaffolds for the student. The teacher does not train itself; it just observes and advises. Every fixed number of training steps, it looks at the student’s experience using query tools that let it inspect training statistics, individual trajectories, groups of attempts on the same task, and its own previous decisions. Based on that evidence, it tries to diagnose what is going wrong. AutoScaffold then writes scaffolds at two levels. The first is class-level strategy: guidance shared across a whole task class, such as a general way to approach a category of problems. The second is instance-level hints: targeted help for individual tasks that the student still cannot solve. This distinction matters because some failures are shared across many tasks, while others are stubborn one-offs. The paper argues that both types of support are useful, but for different reasons. The framework is also adaptive. The teacher revisits and revises the scaffolds throughout training. It can change not just the wording, but also the strength and frequency of the support. Importantly, class-level revisions are validated on held-out tasks before they are deployed. The teacher checks whether a proposed change really helps the current student, compared against both no scaffold and the current scaffold. If the edit looks better, it is kept; otherwise it is discarded. This is meant to prevent the teacher from overreacting to a few examples or keeping scaffolds that are no longer useful. There is an important training dynamic here. Scaffolds are only injected during training, not at evaluation. So the goal is not to make the student dependent on the scaffold. The goal is to use the scaffold to unlock learning signal, improve the student’s policy, and then remove the scaffold once the student can perform on its own. The paper also emphasizes that a scaffold can be too weak or too strong. If it is too weak, the student still fails and learns little. If it is too strong, the student may succeed too easily, which can remove the learning signal altogether under binary outcome rewards. That is why the teacher has to tune support carefully rather than simply adding more help. The method is evaluated on four very different domains, each with its own task structure and RL algorithm. The first is ALFWorld, which involves embodied household tasks. The second is search-based question answering. The third is mathematical reasoning. The fourth is KernelBench, which is GPU kernel generation. This spread is important because it tests whether one scaffolding framework can really work across very different kinds of problems. The results are reported under scaffold-free evaluation, meaning the student is judged without the training scaffold attached. That is the key test: did the scaffold actually teach the model something lasting? Across all four domains, the answer is yes. AutoScaffold improves over the corresponding RL baselines in every case. The paper reports a 7.2-point gain in success rate on ALFWorld, a 4.0-point gain in average exact match on search-based QA, up to a 2.0-point gain in average accuracy on mathematical reasoning, and a 3.0-point gain in correctness on KernelBench. On KernelBench, it also increases the fraction of tasks where the correct kernel runs faster than the PyTorch reference by up to 5.0 points. And on math, it surpasses QuestA while using about one-third as many student training steps. Those are meaningful results because they show two things at once. First, the scaffolds are not just helping the model cheat during training; the gains persist when the scaffold is removed. Second, the framework is not limited to one narrow setting. It works on embodied tasks, search-based QA, math, and code generation, which is a strong sign of generality. The paper also compares AutoScaffold to methods that rely on human-designed scaffolding, and says it is competitive with or surpasses them. That matters because it suggests the teacher-generated scaffolds are not merely convenient; they are effective. The authors also run ablations, and these show that the components of the framework matter. In particular, interactive queries and scaffold validation are important. Removing scaffold validation, for example, reduces ALFWorld success by 14.1 points. That is a large drop, and it supports the claim that scaffolds need to be checked and revised as the student changes, rather than treated as static prompts. The analysis of scaffold evolution is especially interesting. The teacher does not always give the same kind of help. Instead, it identifies different failure modes in different task classes and shifts its scaffolds over time. Early on, it tends to use broader step-by-step workflows or strategies. Later, as the student improves, it moves toward more targeted fixes. That progression matches the educational intuition behind scaffolding: give more structure when the learner is weak, then withdraw or narrow support as competence develops. The paper also reports that revised scaffolds help the student learn more than keeping the old scaffold or using no scaffold, which supports the value of adaptation rather than static assistance. There are a few limitations and things to watch going forward. The framework still depends on a strong teacher model that can inspect trajectories and write useful scaffolds. It is automatic in the sense that humans do not intervene during training, but it is not teacher-free. The teacher also needs at least minimal domain information, such as the task description and task classes. And while the method is unified across the four tested domains, it is still an open question how far this generality extends to other settings, especially ones with different reward structures or much messier task definitions. Another point is that the paper focuses on scaffolds as training-time text. That is powerful because it is simple and flexible, but it also means the teacher’s design space is constrained to what can be expressed in prompts. Finally, the method relies on periodic updates and validation, which adds complexity and overhead compared with plain RL. Still, the main contribution is clear: AutoScaffold shows that a frozen teacher can use a student’s own training experience to create, validate, and adapt scaffolds across domains, and that this can improve scaffold-free performance in a real and measurable way. More broadly, it offers a practical route to turning the information inside failed and partially successful rollouts into something the student can actually learn from.
Also spotted that day
Previous daily papers