A model tuned on only 1,000 reasoning examples gets smarter when you stop it from stopping: append “Wait” and AIME24 accuracy climbs from 50.0% to 56.7%.
Learn how a small, carefully chosen training set and one tiny decoding trick make a language model think longer on demand, and how to measure whether that really helps.
Pick a thinking budget below and watch the stream of thinking blocks, the answer it ends with, and the accuracy it earns. Then we build, piece by piece, the data, the training and the decoding rule behind it.
You need a rough idea of what a language model does (it writes one token at a time) and a percent as a score. We build the rest from zero.
A reading for MIT MAS.S62 How to AI an AI for (Almost) Anything, taught with Lecture 6, Model Evolution. Paper: Muennighoff, Yang, Shi, Li, Fei-Fei, Hajishirzi, Zettlemoyer, Liang, Candès and Hashimoto, “s1: Simple test-time scaling” (arXiv 2501.19393). Every idea is re-taught here in our own words and devices.
Accuracy is the paper’s s1-32B on the 30 problems of AIME24: 50.0% without budget forcing (Table 1), 53.3% with two Waits (Table 4), 56.7% at its longest setting (Figure 1, 7,320 thinking tokens). The two caps are read off Figure 4a and are approximate (about 30% and about 43%). Block counts are schematic, not to scale. The raspberry question is the paper’s Figure 3, shortened; its answers here are an illustration of what a cap and a Wait do.
Chapter 0
See why spending more compute at answer time helps, why the first copies of it were expensive, and what s1 does instead
Picture a student in an exam hall. The paper has a hard problem on it. The student writes a quick answer in ten seconds and hands it in. A second student has the same knowledge but uses the full hour: tries a method, checks it, spots a slip, and fixes it. The second student scores higher, and nothing about their brain changed. They only spent more time thinking.
A language model can do the same. A language model is a program that reads text and writes the next small piece of text, one piece at a time. Each piece is a token: a short word, part of a word, or a symbol. If the model writes a long chain of tokens before it answers, we say it is thinking. More thinking tokens means more computation spent on one question.
For years, the main way to build a better model was to spend compute before anyone used it. Train a bigger model on more text. This is train-time compute. You pay it once, in a data center, and every later user shares the bill.
The paper is about the other place: test-time compute. This is the work the model does while it answers one question. “Test time” just means “when the model is being used”. You pay it again for every question. The deal is simple: for a hard question, let the model think longer, and its answer gets better.
In late 2024, OpenAI’s o1 model showed this working well. The more tokens o1 spent thinking, the higher its score on hard math and science tests. But OpenAI did not publish how it was built. It said only that it used large-scale reinforcement learning (RL), a way of training where the model tries things and gets a reward when it does well.
Many teams tried to copy o1. Some used tree search. Some used several models that talk to each other. DeepSeek’s R1 succeeded in matching o1, and it used reinforcement learning with millions of samples and several training stages. That is a large bill. And, the authors point out, none of the open copies showed a clear curve where thinking longer reliably gave better answers.
So the authors ask a plain question: what is the simplest approach that gives both test-time scaling and strong reasoning? “Scaling” here means a curve that keeps rising as you spend more tokens.
Move one is about data. Take a model that already learned from the internet, Qwen2.5-32B-Instruct (32 billion numbers inside, tuned to follow instructions). Show it just 1,000 questions, each with a long worked solution. The authors call this set s1K. The idea behind the number: the model has already read a huge amount of reasoning during pretraining, so a few examples only wake up a skill it has. Training took 26 minutes on 16 H100 chips.
Move two is about decoding. Decoding is the loop that picks each next token while the model writes. The authors add a small rule to this loop and call it budget forcing. If the model thinks too long, the loop cuts the thinking off. If the model tries to stop too early, the loop deletes its stop signal and types the word “Wait” instead. The model reads “Wait” and often re-checks its work.
Together they give s1-32B. It beats OpenAI’s o1-preview on competition math by up to 27% (the paper says on MATH and AIME24). And stretching its thinking with budget forcing takes it from 50% to 57% on AIME24, a set of 30 hard high-school contest problems.
Before the details, see the pipeline end to end. Each stop below becomes a chapter. Press through them and watch the number of examples shrink, then watch the work move from the data to the decoder.
Five stations, left to right. Choose one to see what goes in, what comes out, and which chapter explains it.
Counts are the paper’s (Section 2 and Appendix D). Box sizes are drawn on a log scale so that 1,000 stays visible next to 59,029.
Notice the shape. The first three stations make the data smaller. Station four is cheap because the data is small. Station five costs nothing to train at all: it is a rule in the code that runs the model. That is why the paper calls its method simple.
By the end you should be able to rebuild the method from scratch: write the data filter, serialize one training example with its delimiters, compute the number of gradient steps, write the budget-forcing loop, and score a test-time method with the paper’s three metrics. You will also know what the paper does not show, and where its method stops working.
One honest note on the data. The paper’s numbers come from one model, three benchmarks, and small test sets: AIME24 has only 30 problems, so one problem is 3.3 points. We flag this again where it matters.
Chapter 1
Follow one question through the thinking stage and the answering stage, and learn which tokens count as compute
Open a maths textbook to a worked example. It does not jump from the question to the answer. It shows the scratch work: “Let n be the number of tokens. Try n = 1: the first player wins. Try n = 2: the second player wins. A pattern appears.” Only then does it say “the answer is 809”. The scratch work is where the reasoning lives.
A reasoning trace is that scratch work, written as text by the model before it answers. It is long, it backtracks, and it says things like “hmm, that gives a fraction, so I made a slip”. The answer after it is short. In s1 the model learns to write both, in that order.
Quick background. A language model reads a list of tokens and gives a probability for every possible next token. Training makes the probability of the real next token go up. Take a text, hide each token in turn, and ask the model to guess it from the tokens before it.
The score for one guess is the log-probability the model gave the real token, written log p. A log of a probability is zero when the model was certain and a large negative number when it was surprised. We add a minus sign so that surprise is a positive cost, called the loss. Training nudges the model’s weights (its internal numbers) to lower the loss. Fine-tuning on examples of a task is called supervised fine-tuning, or SFT.
The set T is the one design choice in this equation. The paper says: “We do not compute loss on questions, only on reasoning traces and solutions.” The model reads the question but is never asked to predict it. That is called loss masking: a mask marks which positions count toward the sum.
A text file cannot say “this part is thinking”. So the authors add delimiters: special marker tokens that split a sample into stages. They reuse the chat markers of Qwen2.5 and enclose the thinking stage with <|im_start|>think and the answer with <|im_start|>answer, each on its own line. One training sample is one string:
one s1K sample, as text<|im_start|>user
{question}
<|im_start|>think
{reasoning trace written by Gemini}
<|im_start|>answer
{final solution written by Gemini}
The tokenizer turns this string into a list of integers. For a batch of B samples padded to length L, the model sees a tensor of shape [B, L] and writes logits of shape [B, L, V], where V is the vocabulary size. The loss mask is a tensor of shape [B, L] of zeros and ones. Positions in the question get 0. Positions in the thinking and answer stages get 1.
The delimiter matters later. The token <|im_start|>answer is how the model says “I am done thinking”. Chapter 5 uses exactly that moment: the decoder watches for this token, and then either lets it pass or blocks it.
When the model writes one token, it runs one full pass through all 32 billion weights. So thinking tokens are test-time compute. A trace of 8,000 tokens costs about 8,000 passes. That is why the paper measures “thinking time” in tokens, and why the x-axis of every figure is a count of tokens.
Try it. Slide the trace length and switch between what the model reads and where the loss is counted.
The bar is one training sample, to scale. Switch the view, then drag the length of the thinking stage.
Illustrative sample: a 150-token question and a 400-token answer. Appendix C, Table 7 lists average thinking lengths of 2.9K to 4.1K tokens for the three largest sources, and Appendix D.1 trains with a sequence limit of 32,768 tokens.
With the default length, 3,000 thinking tokens out of 3,560 total, the thinking stage is most of the sample. That is the point of the data: it is almost all scratch work. The loss counts it, so the model spends nearly all its learning on how to reason in this style.
Humans do not write 3,000-token scratch work for 1,000 problems. So the authors use distillation: ask a stronger model to do the task, then train a smaller model on its output. They call the Google Gemini Flash Thinking API with each question and extract two things, the reasoning trace and the final response. Section 2 of the paper builds the question set; Chapter 2 here follows it.
A subtle point: some of those traces end in a wrong answer. The authors keep them. Their grader marks 53.6% of s1K as correct. They say they want to capture the reasoning process, not only correct solutions. The model learns the habit of working step by step, checking, and backing up.
Chapter 2
Build the raw pool, then filter it twice: first for quality, then for difficulty
A chef who wants to teach 1,000 recipes does not pick them at random from a million. She wants dishes that are tricky, that cover many cuisines, and that are written down correctly. Picking the training set for s1 is the same job, and the authors name the three goals: quality (clean, well-formed samples), difficulty (problems that need real reasoning) and diversity (many different fields).
This chapter builds the raw pool and applies the first two goals. Chapter 3 applies the third.
The authors collect 59,029 questions from 16 sources. Their largest is NuminaMATH with 30,660 maths problems from the web. They add historical AIME problems from 1983 to 2021 (the American Invitational Mathematics Examination, a contest for strong high-school students), OlympicArena (4,250 olympiad questions in seven sciences), OmniMath (4,238 competition problems) and AGIEval (2,385 problems from tests such as the SAT and LSAT).
They also write two new sets. s1-prob has 182 questions from the probability section of Stanford’s Statistics PhD qualifying exams, with handwritten solutions. s1-teasers has 23 hard brain-teasers of the kind used in trading interviews, taken from the PuzzledQuant site. These are small, but they add professional-level problems the web sets lack.
For each question, the Gemini Flash Thinking API produces a trace and a solution. That gives 59,029 triples: (question, trace, solution). The authors then decontaminate: they delete any sample that shares an 8-gram (a run of eight words in a row) with a test question from MATH500, GPQA Diamond or AIME24. This stops the model from seeing the exam in training.
The first filter is blunt. Drop every sample whose Gemini call hit an API error: 59,029 falls to 54,116. Then drop samples with formatting trouble, found by simple string patterns: ASCII-art diagrams, references to images that do not exist, and broken question numbering. That leaves 51,581.
59,029 − 54,116 = 4,913 dropped for errors · 54,116 − 51,581 = 2,535 dropped for format
The authors add one shortcut. From datasets they judged clean enough to need no more filtering, they set aside 384 samples for the final 1,000. Chapter 3 shows how.
Easy questions teach little. If a plain model already solves a problem, a long reasoning trace adds almost nothing. So the authors test two models on every question: Qwen2.5-7B-Instruct and Qwen2.5-32B-Instruct. A third model, Claude 3.5 Sonnet, plays grader. It reads the question, the model’s attempt and the reference solution, explains its reasoning, and ends with one word: Yes or No.
grading prompt (paper, Figure 8, shortened)You are an AI assistant for grading a science problem.
Judge whether the attempt is correct by comparing it with the correct answer.
# Problem
{problem}
## Attempt
{attempt}
## Correct answer
{solution}
Explain your reasoning, and end your response on a new line
with only "Yes" or "No".
The rule: remove any question that either model gets right. Why two models? A single model can slip on an easy question, and then an easy question looks hard. With two, the odds that both slip are lower. The paper says this brings the pool from 51,581 to 24,496 questions.
51,581 − 24,496 = 27,085 removed as too easy (52.5% of the pool)
The authors also record the length of each reasoning trace in tokens. They assume harder problems need more thinking, so length is a second signal for difficulty. Chapter 3 uses it. Try the two-model filter on a toy set below.
Each square is a question. Switch the two filters on and off. A square that a model can solve is removed; one that slips through is outlined.
Toy set of 20, made up for illustration: 6 easy for both models, 3 that only the 32B model solves, 1 that only the 7B model solves (the 32B model slipped), and 10 hard for both. The real pool is 51,581 questions and the paper reports only the final count, 24,496.
With both filters on you keep 10 of 20 and every kept question is hard for both models. Turn off the 7B filter and one easy question stays in: the one the 32B model slipped on. Turn off the 32B filter and three questions stay in that only the big model can solve. Two models close both gaps.
The filter uses the same Qwen2.5-32B-Instruct that the authors will fine-tune. So “hard” here means hard for that model. The paper says the idea of filtering with a model should work for other setups, but it tuned the filter to its own. If you copy the recipe for another base model, run the filter with that model.
Chapter 3
Run the paper’s sampling algorithm and see why it prefers long traces from random domains
You have 24,496 hard questions and room for 1,000. Take the first 1,000? They may all be number theory. Take the 1,000 with the longest traces? They may all come from one source. A good tasting menu needs one dish from each corner of the kitchen, and a few of the heaviest ones. This chapter is the paper’s recipe for that menu.
To spread picks across fields, you first need to know the field of each question. The authors ask Claude 3.5 Sonnet to label each question with a domain from the Mathematics Subject Classification, the American Mathematical Society’s list of maths topics (geometry, combinatorics, number theory, and so on). The list also covers physics, biology and economics. The final set spans 50 domains.
The paper gives the selection as Algorithm 1 in Appendix C.4. It has two stages.
Two separate ideas are at work. Picking the domain uniformly means a tiny field such as potential theory gets as many draws as a huge one. That is the diversity goal. Weighting the question toward long traces is the difficulty goal, using the length signal from Chapter 2.
Suppose a domain still holds m questions, sorted so that rank 1 is the longest trace. The paper sets the weight of rank r to 2 to the power minus r. Weights are not probabilities yet, because they do not add to 1. Divide each by the total.
Worked example with m = 4. The raw weights are 0.5, 0.25, 0.125 and 0.0625. Their total is 0.9375. So P(1) = 0.5 / 0.9375 = 53.3%, P(2) = 26.7%, P(3) = 13.3% and P(4) = 6.7%. In a big domain, P(1) tends to 50%, P(2) to 25%, and so on.
Read that again. The longest remaining trace has about a 50% chance each time, and the draw removes it. The next draw from the same domain faces a new rank 1. So the picks come almost always from the top few longest traces of each domain. The algorithm box calls the weighting “power-law”, but the formula it writes is the exponential one above; we follow the formula.
Run it. The toy below has eight domains of very different sizes. Draw 60 questions under different rules and watch who gets picked.
Outlined bars show how many questions each toy domain holds. Filled bars show your 60 picks. Change the rules, then press Draw 60.
Toy data, made up: domain sizes 300, 200, 120, 80, 60, 40, 25 and 10, with random trace lengths from about 500 to 8,000 tokens. The weight 2−rank and the domain-then-question order are the paper’s Algorithm 1. Picks are drawn five times wider than the outlines so they stay visible. Pressing Draw 60 again gives a new random draw.
With uniform domains the eight bars of picks are close to level, about 7 or 8 each, and the smallest domain (10 questions) is represented. Switch to “by size” and the biggest domain takes about a third. Switch off the long-trace weight and the average length of the picks falls to the pool average. The two controls do two different jobs.
In Chapter 8 you will see the ablation (Table 2). Random 1,000 samples, 1,000 maximally diverse samples, and the 1,000 longest traces each do worse on AIME24 than s1K. The paper reports a drop of around 30% on AIME24 on average for the first three. Only using all three signals together works.
Chapter 4
Turn 1,000 examples into 315 gradient steps, and see what the learning rate and the sequence length do
You have 1,000 samples. Now the model has to learn from them. Think of a piano student who already plays well. You do not send them back to scales for a year. You hand them one hard piece, five times through, with a patient teacher. After an afternoon the style has changed. That is the size of the training job here: 26 minutes on 16 NVIDIA H100 chips.
The starting point is Qwen2.5-32B-Instruct. It is already pretrained on a huge amount of text and already tuned to follow instructions. The authors chose it because on maths it generally matches or beats the larger 72B version of the same family. They update all of its weights; this is full fine-tuning, not a small add-on.
The training objective is the loss from Chapter 1, with the mask on the question. Nothing else: no reward model, no reinforcement learning, no extra stage. This is the whole of what the paper means by “simple”.
A hyperparameter is a setting you choose before training, such as how many passes to make. Here are the paper’s, from Appendix D.
How many gradient steps is that? 1,000 samples in batches of 16 is 62.5 batches, so 63 per epoch when the last batch is partly full. Five epochs make 5 × 63 = 315 steps, which matches the paper. Warmup is 5% of 315 = 15.75, rounded up to 16 steps. The other 299 steps are the decay.
Check it. At the end of warmup, t = w: the fraction is 0, cos(0) = 1, so η = η0. Halfway through the decay the fraction is 0.5, cos(π/2) = 0, so η = η0/2. At the last step the fraction is 1, cos(π) = −1, so η = 0. Why warm up? At step 0 the optimizer has no statistics about the gradients, and a big first step can damage a good model. Why decay? Small late steps let the weights settle.
Change the two knobs and watch the schedule.
The curve is the learning rate at each gradient step. The shaded part is warmup. Drag the epochs or the batch size.
The defaults (5 epochs, batch 16, 315 steps, 16 warmup steps, peak 1e-5) are the paper’s (Appendix D). Other settings are for exploring; the paper does not report them. Steps per epoch are rounded up for a partly full last batch.
16 chips for 26 minutes is 16 × 26 / 60 = 6.9 chip-hours, which the paper rounds to 7 H100 hours. Training the same model on all 59K samples took 394 H100 hours, about 56 times more. The authors ran PyTorch FSDP (fully sharded data parallel), which splits the 32B weights and optimizer state across the 16 chips so that they fit in memory.
Appendix D.1 reports a surprise. The training sequence length is the longest sample the trainer will accept; anything longer is cut. If you set it too short, long samples lose their ending, including the answer. With a limit of 4,096 tokens, 74% of samples were cut. With 32,768, none were.
Why does that change the model’s behavior? The model only learns to write <|im_start|>answer from samples that contain it. If most samples are cut before it, the model rarely learns that moment, so at test time it keeps thinking for too long.
Choose the training sequence length. The bars show the paper’s result on AIME24, in average thinking tokens and in accuracy.
Appendix D.1, Table 8. Model A trained with sequence length 4,096 (74% of samples cut off); model B with 32,768 (0% cut). Each cell is accuracy / average thinking tokens per sample. AIME24 values are 30.0% / 20,721 and 50.0% / 6,984. Each bar has its own scale, so compare a bar only with itself across the two settings.
The longer limit wins twice. It is more accurate (50.0% against 30.0%) and cheaper to run, because the thinking is 6,984 tokens instead of 20,721. The authors keep the longest setting.
python, a sketch of the loop (not the authors' code)for epoch in range(5):
for batch in loader(s1k, batch_size=16): # input_ids [16, L], mask [16, L]
logits = model(batch.input_ids) # [16, L, V]
nll = cross_entropy(logits[:, :-1], batch.input_ids[:, 1:], reduction="none")
loss = (nll * batch.mask[:, 1:]).sum() / batch.mask[:, 1:].sum() # question masked out
loss.backward(); opt.step(); sched.step(); opt.zero_grad()
Chapter 5
Step through the decoding rule that sets a minimum and a maximum amount of thinking
Back to the exam hall. Now the invigilator has two lines to say. At the limit, she says “pens down, write your answer”. And if a student puts the pen down after five minutes, she walks over, taps the page, and says “Wait. Read it again.” The student has the same brain. The invigilator only controls when thinking stops.
That invigilator is budget forcing. It is a rule in the code that runs the model, and it needs no training. This chapter builds it from the loop up.
A model writes by looping. Feed in the text so far. The model gives a probability for each next token. The decoder picks one token, adds it to the text, and loops. The loop runs until the model writes a stop token or a length limit is reached.
After Chapter 1 you know the model has a special token of its own for “I have finished thinking”: the delimiter <|im_start|>answer. The paper calls it the end-of-thinking delimiter. The model chooses to write it, just as it chooses any other token. After it, the model writes the answer. Budget forcing watches for that one token.
Count the thinking tokens as they come out. If the count passes the chosen maximum, append the end-of-thinking delimiter yourself, and optionally the words “Final Answer:”. The model now believes it chose to stop thinking. It moves on to the answer stage and writes its best answer so far. The model never sees a hard cut; it sees a normal-looking text.
Now the harder case. The model writes the end-of-thinking delimiter, and the thinking is shorter than you want. Do not let that token into the text. Delete it, and append the word “Wait” instead. Then carry on decoding. The model reads its own reasoning, which now ends in “Wait”, and writes what such a word usually starts: a second look. You can repeat this as many times as you like.
The paper shows the effect with a question: how many times does the letter r appear in “raspberry”? The model counts, writes “the number of r’s is 2”, and tries to stop. The decoder appends “Wait”. The model writes “let me re-read the question carefully”, spells out r-a-s-p-b-e-r-r-y, finds three, and says its first answer was wrong. The final answer is 3.
Everything is plain text and token ids. The state is one growing string plus two counters.
The cache of already computed work for the earlier text (the KV cache) can usually be reused at each restart in a typical inference server (the paper does not discuss this), so a Wait costs only the new tokens. Each Wait adds one token to the text, plus whatever the model writes after it.
Now run it. The toy model below always wants to stop at certain points, and the decoder decides whether to let it. Set the cap and the number of Waits, then press Replay.
The strip is the thinking stage, to scale. Warm blocks are the model’s own thinking; pink marks are what the decoder did. Set the maximum, set how many Waits to force, and replay.
Illustrative toy, not paper data. The model wants to stop after 300, then 220, 180, 150, 130, 110 and 100 more tokens. The first answer (2) is wrong, one to three Waits fix it (3), and from four Waits on the toy repeats itself and goes wrong, which echoes the paper’s note that too many Waits can cause repetitive loops. The paper’s real numbers are in Chapters 6 to 8.
Try these. Set Waits to 0: the toy stops at token 300 and answers 2, wrong. Set Waits to 1: it is blocked once, thinks 220 tokens more, and answers 3. Set Waits to 6 with a low cap, say 600: the cap hits first, and the answer comes from half-finished thinking. The two rules interact: the cap always wins.
Symptom: past some number of Waits, the accuracy stops rising. Measurement: the paper’s Figure 4a shows AIME24 improving as the model is prevented from stopping 2, 4 and 6 times, and flattening at six. Cause: suppressing the delimiter too often leads the model into repetitive loops instead of new reasoning. Fix the authors suggest for future work: rotate through different strings, add frequency penalties, or raise the temperature. They also note the context window as a hard ceiling.
python, a sketch of budget forcing (not the authors' code)def budget_forced(model, prompt, max_think=None, n_waits=0): END = "<|im_start|>answer" # end-of-thinking delimiter text, think, waits = prompt + "<|im_start|>think\n", 0, 0 hit_cap = False while True: room = None if max_think is None else max_think - think out = model.generate(text, stop=[END], max_tokens=room) # new text + token count text += out.text; think += out.n_tokens if out.stopped_on_stop_string and waits < n_waits: text += "Wait"; waits += 1; continue # delimiter suppressed, Wait appended hit_cap = out.hit_token_limit break text += ("\n" + END + "\nFinal Answer:") if hit_cap else ("\n" + END + "\n") return model.generate(text).text # the answer stage
Chapter 6
Score any test-time method with three numbers, and see why the paper’s baselines lose
Two coaches each say their runner is “fast”. One runner finishes any race in the time you ask for, and is a bit quicker on longer races. The other finishes in a random time and gets slower on long races. “Fast” alone does not tell them apart. You need three questions: does the runner hit the time you set, does more training make them better, and what is their best result?
The authors ask the same three questions of a test-time method. The reason is practical. Many ways exist to make a model think more or less. A good one must let you choose the amount, must improve as the amount grows, and must reach a high score. They name the three properties Control, Scaling and Performance.
Take one benchmark, such as AIME24, and one method. Pick a set A of compute budgets, measured in thinking tokens: for example 2,048, 4,096, 8,192. For each budget a, run the model and record its accuracy f(a). Connect the points and you have a piecewise-linear curve f, with thinking tokens on the x-axis and accuracy on the y-axis. Figure 1 of the paper is exactly such curves.
Worked example, with made-up numbers. Three budgets: 1,000, 2,000 and 4,000 tokens, with accuracies 20, 32 and 40 (percent). The three pairs give slopes of 12 points over 1,000 tokens (a slope of 12 per 1,000 tokens), 20 over 3,000 (6.7 per 1,000) and 8 over 2,000 (4.0 per 1,000). Their mean is (12 + 6.7 + 4.0) / 3 = 7.6 per 1,000 tokens. Performance is 40. If you had asked for at most 3,000 tokens and one of four runs went past it, Control is 3/4 = 75%.
Budget forcing is not the only way to steer length. The paper compares it with other ways, which fall into two families. In conditional length control you tell the model in the prompt how long to think. In rejection sampling you sample many answers and keep only one that fits the budget.
The paper also adds budget forcing on top of TCC and SCC (written TCC + BF and SCC + BF), to see whether the cap rescues them. Look at the numbers, all on AIME24, from Table 3.
Choose a method. Three bars give its Control, its Scaling slope and its best accuracy. A bar that points left is negative.
All values are the paper’s Table 3 (AIME24). BF = budget forcing, TCC / SCC / CCC = token / step / class-conditional control, RS = rejection sampling. The paper does not state the units of the Scaling column; read it as relative slope. Each bar has its own scale.
Step through them. BF: Control 100%, Scaling 15, Performance 56.7. It is the only method with all three good. TCC: Control only 40%, and Scaling −24. The model cannot count tokens, even when trained to. Adding BF fixes control (100%) and Scaling turns to 13, but Performance stays at 40.0.
SCC gets 60% control. The paper explains why it is mediocre: when you ask for fewer steps the model writes longer steps, so the total length barely changes. The model hacks around the constraint. CCC has the best Scaling (25) but only 50% control and a lower peak: telling the model to “think longer” works, but you cannot say how much longer.
Rejection sampling is the surprise: Scaling is −35, a negative slope. Allow only short generations and accuracy is higher than if you allow long ones. The caption of Figure 6 says it took an average of 655 tries per sample at the tightest setting. The authors looked at an example. In the short setting the model jumped to the right approach. In the longer setting it backtracked a lot. Their guess: short generations are the ones where the model was on the right track from the start. Long ones are the ones where it made mistakes and kept doubting itself. So a long thinking trace is often a sign of trouble, and picking by length alone picks the troubled runs.
Chapter 7
Read Table 1 and Figures 2 and 4 line by line, and compare 1,000 examples with 800,000
A report card has many numbers. Reading it well means asking of each one: who is being compared, on what test, with how much help? This chapter reads the paper’s main table and its figures that way.
AIME24 has 30 problems from the 2024 American Invitational Mathematics Examination. Every answer is an integer from 000 to 999. Because there are only 30 problems, one extra right answer is worth 3.3 points. MATH500 is 500 competition-maths problems of varying difficulty, the same 500 that OpenAI used in earlier work. GPQA Diamond is 198 PhD-level questions in biology, chemistry and physics. The paper notes that PhD-holders in those fields score only 69.7% on it.
Unless said otherwise, the authors score with temperature 0 (greedy decoding: always pick the most likely token) and report accuracy, which equals pass@1: the share of problems solved on a single try.
Table 1 has three groups of models. API only models are closed: o1-preview, o1-mini, o1, and Gemini 2.0 Flash Thinking, the very model that wrote s1K’s traces. Open weights models share their weights but not their data: Qwen2.5-32B-Instruct (the starting point), QwQ-32B, r1 and r1-distill. Open weights and open data models share both: Sky-T1, Bespoke-32B and s1. Use the device to scan each test.
Choose a test. Each bar is one model’s accuracy. The teal bars are s1. The number under each name is how many examples it was trained to reason on.
All numbers are the paper’s Table 1. N.A. means unknown or not reported, so that model has no bar. o1, o1-mini and QwQ do not disclose their training-example counts; r1 uses far more than 800K (“≫800K”).
Take AIME24 first. s1-32B without budget forcing scores 50.0, up from 26.7 for its base model: the 1,000 examples nearly double the score. With budget forcing it reaches 56.7. o1-preview scores 44.6, so s1-32B is ahead by 12.1 points. As a ratio, 56.7 / 44.6 = 1.27, which is the abstract’s “up to 27%”. It is a relative gain, and AIME24 is where it is largest.
Now look at what s1 does not win. On GPQA Diamond, o1-preview scores 73.3 and s1-32B scores 59.6. On AIME24, o1 (74.4), r1 (79.8), o1-mini (70.0) and r1-distill (72.6) are far higher. The paper’s claim is narrower than “beats o1”: it is the most sample-efficient open-data reasoning model, and it beats o1-preview on the two maths tests.
Compare the example counts. Sky-T1 and Bespoke-32B used 17,000 examples each. r1-distill used 800,000. s1 used 1,000. Bespoke-32B scores 63.3 on AIME24, higher than s1’s 56.7, with 17 times the data. And r1-distill’s 72.6 uses 800 times the data. The paper’s own caveat: whether 1,000 samples can reach r1’s level is an open question. A seven-day follow-up (Appendix A, s1.1) regenerated the same 1,000 questions’ traces with DeepSeek r1 instead of Gemini and got a better model.
The distillation pays off in one more way. Gemini 2.0 Flash Thinking, the teacher, scores 60.0 on AIME24. s1-32B at 56.7 nearly matches it. The authors take that as a sign that the distillation worked.
Figure 4 puts two scaling methods side by side. In panel (a), budget forcing on s1-32B for AIME24: the curve climbs as you cap at 2,048 and 4,096 tokens, then as the model is prevented from stopping 2, 4 and 6 times, and flattens at six. In panel (b), the same question for GPQA Diamond with a different tool: take the base model Qwen2.5-32B-Instruct, sample it 64 times at temperature 1 and take a majority vote among 2, 4, 8, 16, 32 and 64 of them. That is parallel scaling: independent tries, then a vote. The vote curve stays between about 46 and 51 on GPQA while s1 with budget forcing climbs to about 60. The authors conclude that sequential scaling beat parallel scaling here.
Be careful about what that comparison is. The two lines differ in two things at once: the model (s1-32B against its base) and the scaling method. The figure does not show majority voting on s1-32B itself. Chapter 8 adds that case.
Chapter 8
Swap the data, swap the word, add parallel voting, and find where the method stops working
A cook says “the secret is the pinch of saffron”. A good friend replies: leave it out and taste again. An ablation does that to a paper’s method: remove or swap one part and measure what changes. If nothing changes, the part was not the secret. This chapter reads the paper’s ablations, then lists where the method stops.
The authors build four other 1,000-sample sets and train the same way. 1K-random draws 1,000 at random from the pool (quality only). 1K-diverse spreads picks across domains with no regard to difficulty. 1K-longest takes the 1,000 longest traces (difficulty only). 59K-full trains on everything. Every score uses budget forcing at a maximum of about 30,000 thinking tokens. The paper adds a 95% bootstrap confidence interval for each difference from s1K on AIME24: the range that the true difference is likely to lie in, found by resampling the 30 problems 10,000 times.
Read the AIME24 column. s1K scores 50.0. 1K-random scores 36.7, with an interval of −27% to −3%: the whole range is negative, so it is worse. 1K-diverse scores 26.7 (−40% to −10%): worse. 1K-longest scores 33.3 (−37% to 0%): the paper calls it significantly worse overall, though on GPQA it does best (59.6). And 59K-full, trained on 59 times more data and 394 H100 hours, scores 53.3, with an interval of −13% to +20%: that range contains zero, so the data cannot tell it apart from s1K.
Table 4 tests the extrapolation step: the model is stopped from ending its thinking twice, with a different string appended each time. With no string at all, the model gets a blank where its delimiter was. Compare on all three tests.
Choose which part you swap, and which test you read. The bars show every variant at once. The teal bar is the paper’s choice.
Table 2 (all with budget forcing at about 30,000 thinking tokens) and Table 4 (s1-32B, two suppressions of the delimiter) are the paper’s. The axis starts at 0 on AIME24, at 80 on MATH500 and at 45 on GPQA so that small gaps stay visible; read the numbers, not the bar lengths, across tests.
For the word ablation, see the AIME24 column. Two Waits take s1 from 50.0 to 53.3. “Hmm” and “Alternatively” leave it at 50.0. Appending nothing, just ignoring the delimiter twice, leaves AIME at 50.0 and hurts MATH500 (90.2 against 93.0) and GPQA (55.1 against 57.6). So the word is doing work. The paper says “Wait” generally gives the best performance, and it does not claim to know why.
Chapter 5 said that Waits flatten out at about six. The authors then try to add parallel scaling on top of the sequential s1-32B. Two ways, both on AIME24 (Figure 7):
REBASE scales better than majority voting and even than sequential scaling in that setting. The cost: an extra forward pass through the reward model at each step. The paper also reports that for sequential scaling prompted for up to 512 steps, 12 of the 30 questions produced a response longer than the context window, and accuracy dropped sharply. The two kinds of scaling complement each other.
The paper is open about limits. Here they are as symptom, measurement and fix.
Chapter 9
Keep the numbers, the terms, the checklist and the core code on one page
Here is the paper on one page. s1 asks for the simplest way to get test-time scaling and strong reasoning. It collects 59,029 questions with Gemini traces, filters them to 24,496 hard ones, selects 1,000 by domain and trace length, fine-tunes Qwen2.5-32B-Instruct for 315 steps in 26 minutes, and then controls thinking length with budget forcing: cut off at a maximum, or replace the stop signal with “Wait” to force a minimum. It is scored on three metrics: Control, Scaling and Performance. Go back to the hero dial any time and press through the five settings with this page in mind.
| What | Value | Where in the paper |
|---|---|---|
| Questions collected | 59,029 from 16 sources | Section 2.1 |
| After errors, then format filter | 54,116, then 51,581 | Section 2.2 |
| After the difficulty filter | 24,496 | Section 2.2 |
| Final set, s1K | 1,000 over 50 domains | Section 2.2, Algorithm 1 |
| s1K graded correct | 53.6% | Section 2.2 |
| Base model | Qwen2.5-32B-Instruct | Section 4, Appendix D |
| Training | 5 epochs, batch 16, 315 steps, lr 1e-5, 26 min on 16 H100 | Appendix D |
| GPU hours, s1K against 59K | 7 against 394 | Section 5.1 |
| AIME24, base model | 26.7 | Table 1 |
| AIME24, s1-32B without and with BF | 50.0, then 56.7 | Table 1, Figure 1 |
| MATH500, GPQA Diamond for s1-32B | 93.0 and 59.6 | Table 1 |
| Budget forcing: Control, Scaling, Performance | 100%, 15, 56.7 | Table 3 |
| Rejection sampling: Scaling | −35 | Table 3, Figure 6 |
| Two Waits against none | 53.3 against 50.0 on AIME24 | Table 4 |
| Training length 4,096 against 32,768 | 30.0% against 50.0% on AIME24 | Table 8 |
| Term | In plain words |
|---|---|
| Test-time compute | The work a model does while answering one question, counted here in thinking tokens. |
| Reasoning trace | The scratch work the model writes before its answer. |
| End-of-thinking delimiter | The special token <|im_start|>answer that ends the thinking stage. |
| Budget forcing | A decoding rule: cap the thinking, or swap the delimiter for “Wait” to extend it. |
| Sequential and parallel scaling | Later thinking builds on earlier thinking, against independent tries then a vote. |
| Control, Scaling, Performance | Share of runs obeying the limit, average slope of accuracy against tokens, best accuracy. |
| Distillation | Training a model on the outputs of a stronger one. |
| Ablation | Remove or swap one part and measure the change. |
To rebuild the method for your own model, work down this list.
python, the selection and the metrics (a sketch of the paper's Algorithm 1 and Section 3.2)import random def select_s1k(pool, sure, n=1000): # pool: questions with .domain and .think_len; sure: the 384 sure-thing samples chosen = set(sure) by_domain = {} for q in pool: by_domain.setdefault(q.domain, []).append(q) while len(chosen) < n and by_domain: d = random.choice(list(by_domain)) # domain, uniform qs = sorted(by_domain[d], key=lambda q: -q.think_len) # rank 1 = longest w = [2.0 ** -(r + 1) for r in range(len(qs))] # weight 2^-rank q = random.choices(qs, weights=w)[0] chosen.add(q); by_domain[d].remove(q) if not by_domain[d]: del by_domain[d] return list(chosen) def control(runs, a_max): return sum(a <= a_max for a in runs) / len(runs) def scaling(pts): # pts: [(tokens, accuracy), ...] sl = [(fb - fa) / (b - a) for i, (a, fa) in enumerate(pts) for (b, fb) in pts[i+1:]] return sum(sl) / len(sl) def performance(pts): return max(f for _, f in pts)
The budget-forcing loop itself is the code in Chapter 5.
s1 is a reading for Lecture 6 of MIT MAS.S62, on how models and their training evolve. It sits between three lines of work: reasoning models trained with large-scale reinforcement learning (o1, DeepSeek r1), small-data tuning (the LIMA result that 1,000 examples can align a model; the paper’s own guess is that reasoning is already in the base model and 1,000 samples switch it on), and test-time scaling by repeated sampling and search.
Now press Present or Teach and explain s1 from memory: why these 1,000 samples, how the loss is masked, what budget forcing does to the text, and why rejection sampling scales backwards. Then go back to the thinking dial and predict each setting before you press it.
All the ideas here are from Niklas Muennighoff, Zitong Yang, Weijia Shi, Xiang Lisa Li, Li Fei-Fei, Hannaneh Hajishirzi, Luke Zettlemoyer, Percy Liang, Emmanuel Candès and Tatsunori Hashimoto (Stanford, University of Washington, Allen Institute for AI and Contextual AI). Read the original: arXiv 2501.19393. Code, data and model: github.com/simplescaling/s1. This page is our own re-teaching and is not by the authors.