Search

Search papers and lessons

s1: Simple test-time scaling

Niklas Muennighoff, Zitong Yang, Weijia Shi et al. · 2025

s1 fine-tunes a 32B model on 1,000 curated reasoning examples, then uses budget forcing to end or extend its thinking, and it beats o1-preview on AIME 2024.

On this page

  • Colour = topic mix
  • Calculus
  • Discrete math
  • Neural network basics
  • Linear algebra
  • Probability
  • Language & LLMs
  • ReadReady to readNot yet

TL;DR

s1 asks for the simplest way to get a language model to think longer and answer better when it is given more compute at test time. The authors fine-tune Qwen2.5-32B-Instruct on 1,000 carefully chosen reasoning examples. They then control thinking length with budget forcing, a decoding rule that ends the model's thinking early, or extends it by appending the word "Wait". The resulting model, s1-32B, scores 56.7 percent on AIME 2024, against 44.6 percent for OpenAI's o1-preview.

Builds on: Autoregressive Model, Chain-of-Thought Prompting, Supervised Learning, Scaling LLM Test-Time Compute Optimally · Leads to: Neural Scaling Laws and the open reasoning models that followed. The paper itself compares against DeepSeek R1 and distillation baselines.

Why it mattered

In early 2025 many groups tried to copy the reasoning ability OpenAI's o1 model had shown, but the paper says none of them had openly reproduced a clear test-time scaling curve. s1 made two points at once. First, a 32B open-weight model can gain a large reasoning boost from only 1,000 training examples. Second, that boost can be scaled at inference time by a rule that needs no new training. The authors released the model, data and code, so the claims can be checked. The paper's comparison table lists the R1-distill model as trained on 800K reasoning samples, and the authors note that the concurrent r1-32B model was trained on 800 times more reasoning samples than s1.

The problem

Test-time scaling means spending more computation while the model answers, so that harder questions get more thinking. OpenAI's o1 showed that this works but did not publish how it was trained. DeepSeek R1 matched o1 with reinforcement learning over millions of samples and several training stages. The open question was whether a much smaller recipe could give both strong reasoning and a clear scaling trend.

The paper names two kinds of test-time scaling. In sequential scaling, each computation depends on the one before, as when a model writes a long reasoning trace that builds on its earlier steps. In parallel scaling, computations run independently and their answers are combined, as in majority voting (see self-consistency). The authors bet that sequential scaling should win, because later steps can correct earlier ones. Their experiments support this on the models they test.

Two problems follow. Which training examples should a small model learn from? And how can a fixed model be made to think for a chosen amount of time? The paper answers both.

How it works

Take the pipeline in the order it runs. The stages are shown in the diagram below.

  1. Collect 59,029 questions. The authors gathered them from 16 sources, including NuminaMATH with 30,660 problems, historical AIME problems from 1983 to 2021, and science olympiad questions. Two new sets were added: 182 probability questions from a Stanford qualifying exam, and 23 hard brain-teasers. Google's Gemini Flash Thinking API produced a reasoning trace and a final solution for each question. Check: 59,029 questions give 59,029 traces and solutions.
  2. Filter for quality. Questions that hit API errors were removed, leaving 54,116. Items with formatting problems, such as ASCII diagrams or broken image references, were removed, leaving 51,581. Of the final 1,000 examples, 384 come from sources the authors judged high quality and needing no further filtering. Check: 54,116 is smaller than 59,029, and 51,581 is smaller than 54,116.
  3. Filter for difficulty. Two Qwen2.5 models, a 7B and a 32B, attempted each question. A question either model solved correctly was dropped as too easy. The length of the reasoning trace was a second signal: a longer trace suggests a harder problem. This leaves a pool of 24,496 candidates. Check: 24,496 is smaller than 51,581.
  4. Filter for diversity. Each question was labelled with a domain from the American Mathematical Society's subject classification. The sampler picks a domain uniformly at random, then a question from it, favouring long traces. It repeats this until it has 1,000 questions spanning 50 domains. These 1,000 questions are s1K. Check: 50 domains with 1,000 questions means about 20 per domain on average, but the random draw does not fix each domain's count.
  5. Fine-tune. The authors ran supervised fine-tuning of Qwen2.5-32B-Instruct on s1K. Training took 26 minutes on 16 H100 graphics processors. The result is s1-32B.
  6. Apply budget forcing at inference. The model writes its thinking between markers. If the thinking is too long, the decoder appends the end-of-thinking marker (a special delimiter token that closes the thinking section), optionally followed by "Final Answer:", so the model must give its best answer now. If the model is trying to stop too early, the decoder suppresses the end-of-thinking marker and appends "Wait", so the model reflects on what it has written. Figure 3 of the paper shows the model trying to stop after writing "…is 2.", then, after "Wait", finding and fixing its error.
  7. Measure the result. For each method the authors run several budgets and record three numbers: how well the budget is obeyed (control), the average slope of accuracy against compute (scaling), and the best accuracy reached (performance).
flowchart LR
  A["59K questions with Gemini traces"] --> B["Quality filter: 51,581"]
  B --> C["Difficulty filter: drop questions the 7B or 32B model solves, pool of 24,496"]
  C --> D["Diversity sampling across 50 domains, favouring long traces"]
  D --> E["s1K: 1,000 examples"]
  E --> F["Fine-tune Qwen2.5-32B-Instruct: s1-32B"]
  F --> G["Budget forcing at test time"]

A tiny illustration of step 6, with invented numbers and not taken from the paper: suppose a limit of 2,000 thinking tokens is set. At token 2,000 the decoder appends the end-of-thinking marker and "Final Answer:", and the model writes its answer. If instead the model tries to stop at token 800 while the minimum is 1,500, the marker is suppressed, "Wait" is appended, and thinking continues.

The math

Budget forcing is a decoding rule with two thresholds. Let LL be the number of thinking tokens written so far, Lmax⁡L_{\max} the upper limit and Lmin⁡L_{\min} the lower limit. The rule is:

  • if L≥Lmax⁡L \ge L_{\max}, append the end-of-thinking marker (and optionally "Final Answer:");
  • if the model tries to end thinking while L<Lmin⁡L < L_{\min}, suppress the marker and append "Wait".

The paper usually sets only Lmax⁡L_{\max}. The thresholds are in tokens, which is the compute measure the authors use. The paper writes the same bounds as amin⁡a_{\min} and amax⁡a_{\max} when it defines its metrics below, where aa is one run's budget.

Step 6 in symbols: the three metrics

Let A\mathcal{A} be the set of evaluation runs, each with a fixed compute budget aa in thinking tokens, and let f(a)f(a) be benchmark accuracy at that budget. The authors define the following. The control is the fraction of runs that obey the budget:

Control=1∣A∣∑a∈A1(amin⁡≤a≤amax⁡),\text{Control} = \frac{1}{|\mathcal{A}|}\sum_{a \in \mathcal{A}} \mathbb{1}\big(a_{\min} \le a \le a_{\max}\big),

where 1(⋅)\mathbb{1}(\cdot) is 1 when the condition holds and 0 otherwise. The scaling is the average slope between pairs of runs:

Scaling=1(∣A∣2)∑a,b∈Ab>af(b)−f(a)b−a.\text{Scaling} = \frac{1}{\binom{|\mathcal{A}|}{2}} \sum_{\substack{a, b \in \mathcal{A} \\ b > a}} \frac{f(b) - f(a)}{b - a}.

The performance is the best accuracy reached, max⁡a∈Af(a)\max_{a \in \mathcal{A}} f(a).

A check with invented numbers. Suppose three runs at 1,000, 2,000 and 4,000 tokens give accuracies 40, 50 and 55 percent. The three pairwise slopes are (50−40)/1000=0.010(50 - 40)/1000 = 0.010, (55−50)/2000=0.0025(55 - 50)/2000 = 0.0025, and (55−40)/3000=0.005(55 - 40)/3000 = 0.005 points per token. Their mean is 0.0175/3≈0.00580.0175 / 3 \approx 0.0058 points per token. The slope is positive, so the method scales, but it is flattening: the first doubling helps more than the second.

Results

The main table compares s1-32B with other models. The numbers are from the paper's Table 1, and the benchmarks are AIME 2024 (30 problems), MATH500 (500 competition problems) and GPQA Diamond (graduate-level science questions).

ModelTraining examplesAIME 2024MATH500GPQA Diamond
o1-previewnot stated44.685.573.3
QwQ-32B-previewnot stated50.090.654.5
Qwen2.5-32B-Instruct (base)not stated26.784.049.0
s1 without budget forcing1K50.092.656.6
s1-32B (with budget forcing)1K56.793.059.6

What the numbers show. On AIME 2024, s1-32B scores 56.7 against o1-preview's 44.6. The gap is 12.1 points, and the ratio is 56.7/44.6≈1.2756.7 / 44.6 \approx 1.27, which is the "up to 27%" in the abstract. On MATH500 the gap is smaller, 93.0 against 85.5. On GPQA Diamond s1-32B trails o1-preview, 59.6 against 73.3, so the claim is about math and not general science. Budget forcing adds a little: 56.7 with it against 50.0 without it on AIME 2024.

The scaling result is the paper's headline. Extending thinking with "Wait" raises AIME 2024 accuracy from 50 to about 57 percent, a gain the paper describes as extrapolation beyond the training setup. The gain flattens out at around six times the base compute, and the paper also notes that too many suppressed end-of-thinking markers can send the model into repetitive loops. Parallel scaling of the base model by majority voting does not catch up with s1-32B.

Ablations on the data (paper's Table 2, run with a cap of about 30,000 thinking tokens, so its s1K row reads 50.0 on AIME 2024 rather than the 56.7 of the main table):

Training setAIME 2024MATH500GPQA Diamond
1K random36.790.652.0
1K diverse only26.791.254.6
1K longest traces33.390.459.6
59K full pool53.392.858.1
s1K50.093.057.6

Combining quality, difficulty and diversity matters. The random and diverse-only sets are lower than s1K on AIME 2024, and the full 59K pool gives 53.3 against 50.0, a difference the paper's bootstrap intervals show as not clearly positive. The paper's prose summarises the three weaker sets as roughly 30 percent worse on AIME 2024; the raw differences in the table are 13.3, 23.3 and 16.7 points, so read the table itself when you quote it.

Limits to keep in mind. The grader judged only 53.6 percent of s1K's distilled traces correct, so the training data is not all right, and the authors argue that the reasoning process matters more than the final answers in it. The benchmark results rely on a single 32B base model. The context window of the base model caps how far budget forcing can extend thinking. The authors also note that the Gemini API has a recitation error that made its own AIME 2024 score hard to measure, so they entered the problems by hand.

Reading guide

  • Abstract and §1 (Introduction). The question and the two contributions: s1K and budget forcing. Needs Scaling LLM Test-Time Compute Optimally for the idea of spending compute at inference.
  • §2 (Reasoning data curation). The three filters and the numbers 59,029, 1,000 and 24,496. Needs Supervised Learning for why labelled traces train a model, and Language Model for what a trace is.
  • §3 (Test-time scaling). Budget forcing and the metrics. Needs Autoregressive Model for why the decoder can stop or continue token by token, and Chain-of-Thought Prompting for why written reasoning helps.
  • §4 (Results). Table 1 and the scaling curves in Figures 1 and 4. Read the benchmark descriptions in §4.1 first, and compare with Best-of-N Sampling for another way to spend compute.
  • §5 (Ablations). Table 2 on the data and Table 3 on scaling methods. Needs Knowledge Distillation for the idea of training a student on a teacher's outputs, here Gemini's traces.
  • §6 (Discussion and related work). Sample efficiency and the limits of sequential scaling. Read alongside DeepSeek-R1: Incentivizing Reasoning in LLMs through Reinforcement Learning and Neural Scaling Laws.
  • Appendix C. The exact composition of the 59K pool and the grading prompt, if you want to reproduce the filters.

Check yourself

QuestionWhat are the two parts of the s1 method, and what does each one do?Show answer
The first is training: supervised fine-tuning of Qwen2.5-32B-Instruct on s1K, a set of 1,000 curated question and reasoning-trace pairs chosen for quality, difficulty and diversity. The second is test-time control: budget forcing, which ends the model's thinking by appending the end-of-thinking marker when a maximum is reached, or extends it by suppressing that marker and appending "Wait" when a minimum has not been met.
QuestionUsing the values in the main table, what is the relative gain of s1-32B over o1-preview on AIME 2024?Show answer
Divide 56.7 by 44.6 to get about 1.271, so the gain is about 27 percent relative (12.1 points absolute). This matches the abstract's "up to 27%".
QuestionWhy does the paper prefer sequential over parallel test-time scaling?Show answer
Sequential computations can build on earlier results: a later step can check and correct a reasoning chain that an earlier step wrote. Parallel computations run independently, so they cannot correct each other. The authors expected sequential scaling to be more effective, and the experiments with majority voting on the base model support that.
QuestionA team wants to cap s1-style answers at 4,000 thinking tokens and force a final answer when the cap is hit. Which part of budget forcing do they use, and what do they append?Show answer
The maximum-budget part. When the thinking reaches 4,000 tokens, the decoder appends the end-of-thinking marker, optionally followed by "Final Answer:", so the model writes its answer immediately instead of continuing to think.

Sources

Read the full paper

Niklas Muennighoff, Zitong Yang, Weijia Shi et al., 2025. arXiv:2501.19393