R-Zero

A model writes its own hard questions, answers them, and learns from its own vote. This lifts Qwen3-4B-Base from 42.57 to 49.93 on math, with no human questions or labels.

Learn how two copies of one model, a Challenger that asks and a Solver that answers, teach each other to reason with no outside data at all.

Set how often the Solver is right, then press Ask the Solver 10 times. Watch the Challenger’s reward rise and fall as the question gets harder. Then we build, piece by piece, the vote, the reward, the filter and the loop that make it work.

You need a rough idea of what a probability is and what it means to train a model. We build the rest from zero, including reinforcement learning.

Based on “R-Zero: Self-Evolving Reasoning LLM from Zero Data” by Chengsong Huang, Wenhao Yu, Xiaoyang Wang, Hongming Zhang, Zongxia Li, Ruosen Li, Jiaxin Huang, Haitao Mi and Dong Yu (Tencent AI Seattle Lab and partner universities), ICLR 2026. Read the paper on arXiv. It is an assigned reading for MIT MAS.S62 AI4AI, and it belongs to Lecture 7, RL in Practice and Self-Play. Every idea is re-taught here in our own words and devices.

Pay the Challenger for a question

50%

Toy question: every one of the 10 answers is right with the chance you set; a wrong answer is one of one or four wrong values. The reward formula and the 10 answers per question are the paper’s (Sections 2.2 and 3.1). The curves are averages over 2,000 simulated questions per point, run in your browser.

Chapter 0

Why Reasoning Models Run Out of Questions

See why human-made questions and labels cap self-improvement, and what R-Zero takes away

Picture a student who has finished every problem in the textbook. The answer key sits at the back, and no new problems are left. Who writes the next ones?

A reasoning model faces the same wall. The best way to train it today is reinforcement learning with verifiable rewards, or RLVR. The model tries a problem, a checker says right or wrong, and the model learns from that score.

RLVR needs two things in large amounts: questions and labels, the correct answers that the checker compares against. Humans write both. That work is slow, costly and hard to scale.

The paper makes a sharper point. If humans must write every question and every label, a model can never learn past what humans can write and check. The supply of human data is also the ceiling on the skill.

Three ways around the wall, and where each one stops

Earlier work attacked the wall from three sides. Each one removes some human work and keeps the rest.

Label-free RL removes the labels. The reward comes from the model’s own outputs: how confident it is, how low the entropy of its output is, or how often its answers agree. But it still needs a pile of human questions to run on.

Self-challenging removes the questions. The model writes its own tasks and learns from them. Many of these methods lean on an outside code executor, a program that runs the model’s code and says whether it works. That check works for code. It does not exist for open-ended reasoning.

Supervised fine-tuning and plain RLVR need both questions and labels. They are the baseline that the other two try to escape.

R-Zero takes away all three

R-Zero starts from one base model: a language model that finished pretraining on text but has not yet been tuned to follow instructions or reason well. It starts with nothing else. No questions. No labels. No code executor. It makes two copies of the base model and gives them opposite jobs.

The Challenger writes new questions. The Solver answers them. The Challenger earns reward for questions at the edge of what the Solver can do. The Solver earns reward for answering them. Both improve, and the questions get harder as the Solver gets better.

Where does the label come from? From the Solver itself. It answers each question many times, and the most common answer becomes the label. Chapter 2 builds that idea. Try the question below first.

Remove what you do not have

Each button is something you can buy or build. Switch one off and watch which methods stop. The green rows can still run.

The needs of each method follow the paper’s introduction (Section 1): RLVR and fine-tuning use curated tasks and labels, label-free RL uses a pre-existing task corpus, many self-challenging methods use code executors. This is a summary, not a survey of every method.

Only one row stays green when you switch off all three. That is the claim of the paper: a base model can improve with nothing outside itself. R-Zero keeps one real condition, which Chapter 8 returns to. The answers must be easy to compare by machine, so math is the test field.

What you will build

The results are strong for a method with no data. On Qwen3-4B-Base, the math average rises from 42.57 to 49.93 after three iterations, and the general-reasoning average rises from 26.34 to 31.15 (Tables 1 and 2). We cover those tables in Chapter 7, with the places where R-Zero does not win.

  1. The training engine: sampling, rewards and GRPO, built from zero.
  2. A vote stands in for the answer key: pseudo-labels and agreement.
  3. Paying the Challenger for uncertainty: the reward that peaks at 50%.
  4. Varied and well-formed questions: the repetition penalty and the format check.
  5. Building the Solver’s curriculum: the filter, the Solver reward and the settings.
  6. The co-evolution loop: one iteration end to end.
  7. What the tables show: Tables 1 and 2, and where R-Zero loses.
  8. Ablations, collapse and limits: what each part is worth, and where the loop breaks.
  9. Field guide: numbers, checklist, core code, links.
Which statement describes what R-Zero removes compared with earlier label-free and self-challenging methods?

Chapter 1

The Training Engine: Sampling, Rewards and GRPO

Learn how a model improves from right and wrong samples of its own answers, with no second model to judge them

You sit down eight times at the same puzzle. Each time you reason a little differently. Five attempts end in the right answer and three end wrong. What do you do tomorrow?

You repeat what the five good attempts had in common, and you drop what the three bad ones did. Nobody told you the rule. You compared your own tries and kept the better ones. That is the whole idea of this chapter.

The pieces, in plain words

A policy is a chooser. For a language model, the policy is the model itself: given the text so far, it picks the next token. A response is the whole chain of tokens it writes for one question, here a worked solution that ends in a final answer.

A reward is one number that scores a response. In RLVR (reinforcement learning with verifiable rewards) a rule-based checker gives that number: 1 if the final answer is right, 0 if it is wrong. Reinforcement learning is the loop of sample, score, then nudge the model toward the high scores.

One obstacle remains. A raw reward of 1 does not say whether a response was good for this question. If the question is easy, almost every response scores 1. A better signal asks: was this response better than the others on the same question?

Group-relative advantage

GRPO (group relative policy optimization, from the DeepSeekMath paper) answers that question with a trick. Sample a group of G responses to one question. Score all of them. Then judge each response against its own group’s average.

The older method, PPO, trains a second model called a critic to guess how good each situation is. GRPO needs no critic. The group’s mean reward plays that role.

The distance above the mean, measured in units of spread, is the advantage of a response. Positive advantage means “do more of this”. Negative means “do less”.

Âi
The advantage of response i. The same number is applied to every token of that response.
Ri
The reward of response i. Under RLVR it is 1 for a right answer and 0 for a wrong one.
mean(R)
The average reward of the G responses to this one question. It is the baseline each response is judged against.
std(R)
The spread of those G rewards. Dividing by it puts every question on the same scale.
ε
A tiny constant that stops division by zero when all G rewards are equal.

Work one example by hand. G = 8 responses, and 4 are right. The mean is 0.5. The spread is the square root of 0.5 × 0.5, which is 0.5. A right response scores (1 − 0.5) / 0.5 = +1. A wrong one scores (0 − 0.5) / 0.5 = −1.

Now change the group. Only 1 of 8 is right. The mean is 0.125 and the spread is 0.331. The lone right response scores (1 − 0.125) / 0.331 = +2.65. Each wrong one scores −0.125 / 0.331 = −0.38. A rare success gets a big push. Try it below.

Flip the answers, read the advantage

Eight responses to one question. A pressed button is a right answer. Flip them, or press a preset. The bars show each response’s advantage.

Group size 8 and ε = 10−6 are chosen for the demo. The formula is the paper’s Appendix I.1. The paper’s own Solver runs use 5 rollouts per question and its Challenger runs use 4 (Appendix B.1).

Look at the all-wrong and all-right presets. Every bar drops to zero. If every response gets the same reward, the spread is zero, and no response looks better than any other. The model learns nothing from that question.

What the update does

GRPO then updates the model with a PPO-style rule. For each token, it compares how likely the new model finds that token with how likely the old model found it. Call that ratio r. It multiplies r by the advantage, so tokens in good responses become more likely.

L
The loss the optimizer lowers. Lowering it raises the chance of tokens that had positive advantage.
ri,t
New probability of token t in response i, divided by the old probability. Above 1 means the new model likes the token more.
clip(·)
Cuts r to the range 1 − εc to 1 + εc, so one update cannot move the model too far.
β KL
A penalty for drifting away from the earlier model. R-Zero sets its weight to 0.01 (Appendix B.1).

The data flow is small. One question goes in. G sampled responses come out as a token tensor of shape [G, L], where L is the longest response. The checker returns rewards of shape [G]. The advantages also have shape [G], and each one is copied across its row of L tokens.

pythonimport numpy as np

def advantages(rewards, eps=1e-6):
    """rewards: array [G] for G responses to ONE question."""
    r = np.asarray(rewards, dtype=float)
    return (r - r.mean()) / (r.std() + eps)   # [G]; all zeros if every reward is equal

print(advantages([1,1,1,1,0,0,0,0]))   # +1 x4, then -1 x4
print(advantages([0]*8))                 # all 0: nothing to learn

The failure that shapes the whole paper

Symptom. You train on a batch of questions and the model barely changes. Measurement. For most questions, the G rewards are all equal, so the advantages are all zero. Fix. Feed the model questions where its own answers are mixed, some right and some wrong.

That fix is the job R-Zero hands to the Challenger. It must find questions at the edge of the Solver’s skill, because only there does GRPO have anything to learn from. The next three chapters show how it learns to do so.

A group of 8 responses to one question all get reward 0. What does GRPO do with this question?

Chapter 2

A Vote Stands In for the Answer Key

Turn ten answers into a pseudo-label, and measure how much the Solver agrees with itself

Ten friends each solve the same hard problem on their own, and you have no answer key. Six of them write 14, three write 12, and one writes 9. Which answer do you trust?

Most people pick 14. Six independent minds landed on the same number, and that agreement is evidence. It is not proof. But it is far better than having no label at all.

R-Zero builds its labels exactly this way. There are no friends, only the Solver, asked the same question ten times. Each ask is a fresh sample, so the reasoning differs each time, and so can the answer.

From ten answers to a label and a score

The paper writes the steps in four lines. For a question x, query the current Solver for m responses y1 to ym. The paper uses m = 10. The most frequent answer is the pseudo-label: a stand-in for the true label that was never given.

Then count how many of the ten answers match that pseudo-label, and divide by ten. That fraction is the Solver’s empirical accuracy, written p̂. The name is a little misleading, and the next section explains why.

ŷ(x)
The pseudo-label for question x: the answer that the most responses agree on. Ties go to one of the tied answers.
y1, …, ym
The m sampled final answers from the Solver. Each is the text found inside the box of one response.
p̂(x)
The share of responses that match the pseudo-label, from 0.1 to 1.0 when m = 10. It measures agreement, not truth.
1{·}
The indicator: 1 when the statement inside is true, otherwise 0. Summing it counts the matches.

Work the friends example. The answers are 14 six times, 12 three times, and 9 once. The pseudo-label is 14. Six of ten match, so p̂ = 0.6. If the answers were 4, 3, 2 and 1 of four different values, the winner has 4 votes and p̂ = 0.4. If all ten agree, p̂ = 1.0.

The data flow

The Solver prompt is fixed: Please reason step by step, and put your final answer within \boxed{} (Appendix B.2). One question goes in. Ten responses come out, a token tensor of shape [10, L]. A parser pulls the text inside each box, giving a list of 10 short strings. A counter finds the most common one.

pythonfrom collections import Counter

def pseudo_label(answers):
    """answers: list of m extracted final answers, e.g. ['14','14','12',...]"""
    label, n = Counter(answers).most_common(1)[0]
    return label, n / len(answers)          # (pseudo-label, p-hat)

print(pseudo_label(['14']*6 + ['12']*3 + ['9']))   # ('14', 0.6)

When the vote is wrong

Here is the catch. A vote is right when wrong answers scatter and right answers agree. There is only one right value, but many ways to go wrong. So a crowd that errs usually errs in different directions.

The device below tests that. It repeats the vote on 1,500 toy questions per point. You choose how many different wrong values the Solver can give. Set it to one wrong value and see the vote fail.

Test the vote

The purple line is how often the vote equals the true answer. The blue line is the average agreement p̂. Choose how the wrong answers behave, then drag the accuracy.

40%

Toy model, run in your browser: each of the 10 answers is right with the chance you set, otherwise it is one of the wrong values with equal chance. Real wrong answers are not uniform, so a real Solver sits somewhere between these cases. The vote with m = 10 answers is the paper’s (Section 3.1).

Read the lines at 40%. With one shared wrong value, the vote hits the true answer in about 27% of questions. With four wrong values it hits in about 69%, and with seven in about 79%. The agreement p̂ stays between 0.42 and 0.65 in all of them. It cannot tell these cases apart.

What p̂ really is

p̂ is not accuracy. It is how much the Solver agrees with its own vote. A confident Solver with a shared misconception gets p̂ = 1.0 on a wrong label. The paper calls it empirical accuracy against the pseudo-label, and that is the honest reading.

The paper measures how good the labels are. It samples 200 questions after each of the first three iterations and grades the pseudo-labels against GPT-4o as a stand-in for truth. Label accuracy is 79.0%, then 69.0%, then 63.0% (Table 5). Chapter 8 returns to that drop.

The Solver answers one question ten times: eight answers are 7, and two are 5. The true answer is 5. What are the pseudo-label and p̂?

Chapter 3

Paying the Challenger for Uncertainty

Derive the reward that peaks when the Solver is right half the time, and see why half is the target

A teacher picks homework for one student. If every problem is easy, the student coasts and learns nothing. If every problem is far too hard, the student cannot start and learns nothing either. The best homework sits at the edge: the student gets about half of it right.

The Challenger has exactly this job, with one twist. Nobody tells it how hard a problem is. It learns difficulty only from a reward that is built out of the Solver’s behaviour. This chapter builds that reward.

Why half is the target

Chapter 1 showed that GRPO learns only from mixed groups. So we want a score of how mixed the Solver’s results are. Take a question the Solver gets right with chance p. Its reward is 1 with chance p and 0 with chance 1 − p.

The variance of that reward is the average squared distance from its mean. The mean is p. The average of the squared reward is also p, since 1 squared is 1. So the variance is p − p², which is p(1 − p).

Check three values. At p = 0.1, the variance is 0.09. At p = 0.3, it is 0.21. At p = 0.5, it is 0.25. At p = 0.9, it is 0.09 again. The curve is a hill with its peak at p = 0.5. You can find the peak by setting the slope 1 − 2p to zero.

The paper grounds this in recent theory (Appendix F). It says the gap between the Solver’s policy and an ideal policy is at least p(1 − p) divided by 2β², where β controls entropy regularization. A larger gap means more left to learn, and the gap’s lower bound peaks at p = 0.5. Treat this as motivation for the design, not a proof of the results.

The uncertainty reward

R-Zero uses a simpler shape than the parabola. It is a tent that peaks at 1 when p̂ = 0.5 and falls in straight lines to 0 at p̂ = 0 and p̂ = 1. The Solver here is frozen while the Challenger trains, so the target does not move under the Challenger’s feet.

runc
The uncertainty reward for question x. It is 1 at best and 0 at worst.
p̂(x; Sφ)
Agreement of the frozen Solver (weights φ) with its own vote on x, from Chapter 2.
½
The target. The bars around p̂ − ½ take its size, as a distance from the target. The factor 2 stretches that distance to the 0 to 1 range.

Work three cases. If 5 of 10 answers match the vote, p̂ = 0.5 and the reward is 1 − 2 × 0 = 1.0. If 3 of 10 match, p̂ = 0.3 and the reward is 1 − 2 × 0.2 = 0.6. If 9 of 10 match, p̂ = 0.9 and the reward is 1 − 2 × 0.4 = 0.2. If all 10 match, the reward is 0.

Slide the agreement, read the reward

The yellow bars are R-Zero’s tent reward for each possible agreement count. The thin line is the variance curve p(1 − p), scaled so its peak is 1. Drag how many of the 10 answers match the vote.

3 of 10

The reward formula and m = 10 are the paper’s (Section 2.2). The variance line is p(1 − p) from Appendix F, multiplied by 4 so its peak matches the tent’s peak. With 10 answers the most common one always has at least one vote, so p̂ cannot be 0.

Both shapes agree on the main point. Reward is lowest when the Solver always agrees with itself, and highest in the middle. The tent is easier to compute and to read, and it gives the same ranking on the two sides of the target.

How the Challenger earns it

The Challenger is trained with GRPO too. It gets a fixed prompt: You are an expert competition-math problem setter… Aim for a difficulty such that fewer than 30% of advanced high-school students could solve it (Appendix B.2). It must put the problem inside <question> tags and the final answer in a box.

One training step runs like this. The Challenger writes a group of G questions. For each question, the frozen Solver gives m = 10 answers. The vote gives p̂, and the tent gives a reward. GRPO then compares each question with its group, and raises the chance of whatever kind of question earned more.

The reward is built from the Solver’s behaviour, so the Challenger follows the Solver. As the Solver improves, yesterday’s half-right questions become easy. They stop paying. The Challenger must write harder ones to keep earning, and that moves the target.

The weak spot

Symptom. A question earns a high reward, but it is broken: ambiguous, or with no single right answer. Measurement. In the opening device, set to scattered wrong answers, the reward stayed near 0.78 when the Solver was right only 5% of the time, and the vote was the true answer in about 1% of questions. Fix. Add a filter and watch the label accuracy.

The reward cannot tell “hard but fair” from “broken”. Both make the Solver disagree with itself. Chapter 5 adds a filter that partly helps, and Chapter 8 shows how much label noise survives anyway.

The frozen Solver agrees with its own vote on 9 of 10 answers to a new question. What reward does the Challenger earn from the uncertainty term, and what does it learn?

Chapter 4

Keeping Questions Varied and Well-Formed

Add the repetition penalty and the format check, and build the Challenger’s full reward

Ask a student to invent eight practice problems. The student finds one problem of the right difficulty, and then writes it eight times with new numbers. Every copy earns the same good reward. The student has learned to repeat, not to explore.

The Challenger can fall into the same rut. Chapter 3’s reward pays for questions near 50% agreement. Once the Challenger finds one question shape that pays, it can write that shape again and again. A batch of near copies teaches the Solver one skill, over and over.

Symptom. A batch where most questions look alike. Measurement. Group the questions by how similar they are and count the biggest group. Fix. Charge each question a penalty that grows with the size of its group.

Measuring similarity with BLEU

BLEU is a score from machine translation. It counts how many short word sequences (called n-grams) two texts share. A score of 1 means the texts match. A score of 0 means they share nothing. R-Zero uses it because it is fast, and the calculation must run many times while the Challenger rolls out questions.

The paper turns similarity into a distance: dij = 1 − BLEU(xi, xj). Two identical questions are at distance 0. Two unrelated questions are close to distance 1. Appendix B.4 gives the details: NLTK’s sentence BLEU with its first smoothing function, and questions split on whitespace with no lowercasing.

Clusters and the penalty

With all pairwise distances in hand, the method groups questions into clusters. It uses agglomerative clustering with average linkage. That means: start with every question alone, then repeatedly merge the two groups whose average cross-distance is smallest. Stop when no pair is closer than the threshold τBLEU = 0.5.

Each question then pays a penalty equal to the share of the batch that its cluster fills. The lone question in a cluster of one pays 1/B. A question in a cluster that fills half the batch pays 0.5.

rrep(xi)
The penalty charged to question i. It is subtracted from that question’s reward.
λ
A scale factor. The paper sets λ = 1.
|Ck|
The number of questions in the cluster that holds question i, counting i itself.
B
The batch size: how many questions the Challenger wrote in this group.

The format check

One more rule comes first. The Challenger must wrap each problem in <question> and </question> tags. Without them, the system cannot cut the problem out of the Challenger’s text. Such an output gets a final reward of 0 at once. No Solver answers are sampled for it, and no other signal is computed.

Together these give the full Challenger reward. A question that passes the format check earns its uncertainty reward minus its repetition penalty, and the result is never below 0.

ri
The final scalar reward of question i. GRPO turns the rewards of the whole group into advantages.
runc
The tent reward from Chapter 3, from the frozen Solver’s agreement.
rrep
The cluster-size penalty above. The max with 0 stops negative rewards.

Work two questions in a batch of B = 8. Question A has runc = 0.9 and sits in a cluster of 5. Its penalty is 5/8 = 0.625, so its reward is max(0, 0.9 − 0.625) = 0.275. Question B has runc = 1.0 and sits alone. Its penalty is 1/8 = 0.125, so its reward is 0.875. The unique question wins by a wide margin. Test it.

Cluster the batch, charge the rut

Eight questions with their uncertainty rewards (thin outline). The filled bar is the reward after the penalty. Pick a batch, move the threshold τ, and break the tags on question 4.

0.50

Toy batch. Each question has an invented position on a topic line, and the distance between two questions is their gap, capped at 1, standing in for 1 − BLEU. The uncertainty rewards are invented. The rules are the paper’s: average linkage, τ = 0.5 and λ = 1 (Section 2.2 and Appendix B.4), and the reward is max(0, runc − rrep).

Start with the rut at τ = 0.5. Five of the eight questions fall in one cluster, so each pays 0.625 and keeps little. Switch to the varied batch and the same uncertainty rewards survive almost whole. Raise τ high enough and unrelated groups merge, so the penalty lands on everyone. Lower it near 0 and every question looks unique, so the penalty vanishes.

Realization: the reward in code

pythonfrom collections import Counter
from sklearn.cluster import AgglomerativeClustering

def challenger_rewards(questions, p_hat, bleu, tau=0.5, lam=1.0):
    """questions: B strings; p_hat: [B] agreement of the frozen Solver;
    bleu: [B, B] BLEU similarity matrix. Our sketch of Section 2.2."""
    B = len(questions)
    dist = 1 - bleu                                  # [B, B] distances
    labels = AgglomerativeClustering(n_clusters=None, metric='precomputed',
                 linkage='average', distance_threshold=tau).fit_predict(dist)
    size = Counter(labels)
    out = []
    for i, x in enumerate(questions):
        if '<question>' not in x or '</question>' not in x:
            out.append(0.0); continue              # format check: reward 0, nothing else computed
        r_unc = 1 - 2 * abs(p_hat[i] - 0.5)
        r_rep = lam * size[labels[i]] / B
        out.append(max(0.0, r_unc - r_rep))
    return out                                      # [B] rewards for GRPO

The paper tests this part with an ablation. Removing the repetition penalty drops the Qwen3-4B-Base math average from 49.07 to 45.76, and the general average from 31.15 to 28.73 (Table 3). Chapter 8 reads that table in full.

A batch has B = 8 questions. Six of them fall in one cluster. A question in that cluster has runc = 0.7. What is its final reward?

Chapter 5

Building the Solver’s Curriculum

Filter the Challenger’s questions to the informative band, then train the Solver on them

A coach has a box of 8,000 practice problems that a machine wrote overnight. Some are far too easy, and some are so murky that nobody knows the answer. The coach wants only the problems that stretch the player. So the coach tests each one and keeps the middle.

That is Phase 2 of an R-Zero iteration. The Challenger is now trained and frozen. Its job is to write questions in bulk. The current Solver is asked to answer every one. A filter then picks the questions worth training on.

Sampling the candidate pool

The paper draws N = 8,000 candidate questions from the Challenger, each from the same fixed prompt. For every question, the current Solver gives m = 10 answers. The vote picks a pseudo-label, and p̂ counts the agreement, exactly as in Chapter 2.

Then comes the rule. A question and its pseudo-label join the training set S only if the agreement is close enough to 1/2.

(xi, ŷi) ∈ S
Question i with its pseudo-label joins the Solver’s training set S.
|p̂i − ½| ≤ δ
The informative band: agreement may be at most δ away from one half. The paper sets δ = 0.25.

With m = 10, δ = 0.25 means the agreement count must lie between 2.5 and 7.5, so the whole numbers 3 to 7 pass. A question where only 2 answers match the vote, or 8 or more, is dropped. The paper states the range directly: between 3 and 7, inclusive (Section 3.1).

Widen or narrow the band

Each bar is the share of the 8,000 candidates whose answers match the vote that many times. Green bars are kept. Drag δ and watch the band change. The paper uses 0.25.

0.25

The shape of the bars is invented to show the idea: the paper does not publish how many of the 8,000 candidates pass. The pool size N = 8,000, m = 10 and the band 3 to 7 (δ = 0.25) are the paper’s (Section 3.1).

Two jobs in one filter

The first job is difficulty control. Questions on the right of the chart are too easy: the Solver already agrees with itself, so GRPO has nothing to learn from them. The second job is quieter. It is quality control.

A very low agreement often means the question itself is ambiguous or ill-posed, or that the pseudo-label is unreliable. The filter discards those too. The paper sees this as a bonus: it improves both the quality and the calibration of the training data.

Chapter 3 warned that the reward cannot tell hard from broken. The filter cannot either, since a broken question can still give 4 or 5 matching answers by chance. It trims the worst. It does not remove all the noise.

Training the Solver

Phase 3 trains the Solver on S with GRPO and a simple reward. For each question, the Solver writes a group of answers. Each answer earns 1 if it matches the pseudo-label, and 0 if it does not. This is RLVR from Chapter 1, but the “verifier” is just a string match against the earlier vote.

Why does the filter help GRPO directly? In the training group, the Solver writes G = 5 answers (Appendix B.1). If the Solver is right with chance q, then all five agree with chance q5 + (1 − q)5, and the advantage dies. At q = 0.5 that is only 6%. At q = 0.9 it is 59%. A filter that keeps q near 0.5 keeps most groups alive.

The data flow for one Solver step is short.

  1. Batch. 128 questions from S enter, each with its pseudo-label (a string such as "14").
  2. Rollouts. The Solver writes 5 responses per question, at temperature 1.0 and top-p 0.99. The token tensor has shape [128, 5, L].
  3. Rewards. A parser pulls each final answer. A string match with the pseudo-label gives [128, 5] values of 0 or 1.
  4. Advantages. Each question’s five rewards are normalized with Chapter 1’s formula, giving [128, 5].
  5. Update. One GRPO step at learning rate 10−6, weight decay 0.01 and KL weight 0.01.

Appendix B.1 lists the settings of one iteration. The Solver trains for up to 15 steps, and the Challenger for up to 5. The run uses BF16 mixed precision and FlashAttention 2, built on the EasyR1 code. Both phases use batch size 128.

Three Solver phases of 15 steps make the 45 training steps behind every main table. The paper evaluates a checkpoint every 15 steps, so each checkpoint marks the end of one iteration (Section 3.1).

Why not train on everything the Challenger writes?

Symptom. The Solver trains on every generated question and its general reasoning score falls. Measurement. In the paper’s ablation, removing the filter lowers the Qwen3-4B-Base math average from 49.07 to 47.35, and the general average from 31.15 to 26.69 (Table 3). Fix. Keep only the band, as above.

With m = 10 answers and δ = 0.25, which question is kept in the Solver’s training set?

Chapter 6

The Co-Evolution Loop

Follow one full iteration with its data flow, then watch the curriculum and the skill rise together

Picture a sparring partner and an athlete. The partner sets drills just past what the athlete can do. The athlete trains on the best drills. Next week the athlete is stronger, so the partner sets harder drills. Each side keeps the other honest.

There is one rule in that picture: only one side trains at a time. While the partner designs drills, the athlete stands still. While the athlete trains, the drills are fixed. R-Zero uses the same rule, and this chapter shows why it matters.

One iteration, three phases

Both models start as copies of the same base model, with different jobs. An iteration is one full round. Algorithm 1 in the paper has three phases.

  1. Train the Challenger (Chapters 3 and 4). The Solver is frozen. The Challenger writes groups of questions. Each question gets a reward from the Solver’s agreement, the repetition penalty and the format check. GRPO updates the Challenger for up to 5 steps.
  2. Build the dataset (Chapter 5). The Challenger is now frozen. It writes N = 8,000 questions. The Solver answers each one 10 times. The vote gives a label, and the filter keeps agreement from 0.3 to 0.7.
  3. Train the Solver (Chapter 5). The kept set is the training data. GRPO rewards agreement with the pseudo-label, for up to 15 steps.

Then the loop repeats with the stronger Solver. The paper’s main tables use three iterations, 45 Solver steps in all. In the paper’s Algorithm 1 the same Challenger carries over from one iteration to the next, so it keeps what it learned about difficulty.

The only link between the two models is data. The Challenger sends strings: questions. The Solver sends strings back: answers, which become a vote. No gradient flows from one model into the other.

Why freeze one side

The Challenger’s reward depends on how the Solver behaves. If the Solver changed while the Challenger was learning, the same question would earn different rewards from one step to the next. The Challenger would chase a moving target. Freezing the Solver gives it a stable thing to aim at.

The same holds in reverse. The Solver’s labels come from a vote taken before its training step. Keeping the dataset fixed while the Solver trains gives it a clean, stable lesson.

Does the Challenger’s training matter?

The paper tests this with a control. Train the Solver on questions from an untrained Challenger, the base model with the Challenger prompt. This is the “R-Zero (frozen challenger)” row in Tables 1 and 2. The real method beats it on the first iteration by +3.7 points for Qwen3-4B-Base and +1.52 for Qwen3-8B-Base on the math average (Section 3.2).

A toy shows why. The model below is invented, so read its numbers as illustrations. The Solver has a skill. Each question has a difficulty. The Solver answers right more often when skill beats difficulty. A trained Challenger aims near the Solver’s skill. An untrained one keeps asking the same level of question.

Run the loop in a toy world

Top: the difficulty of the Challenger’s questions (warm hill) and the share the filter keeps at each difficulty (green line). The blue marker is the Solver’s skill. Bottom: skill after each iteration. Choose a Challenger and run iterations.

Illustrative toy, not the paper’s data. Per-answer success is 1 / (1 + e4(difficulty − skill)). Question difficulty is spread with width 0.5. A trained Challenger sits 0.15 above the Solver’s skill. The filter keeps a question when 3 to 7 of 10 answers match. The skill gain is 0.9 times the average learning signal 4q(1 − q) of kept questions, shrinking as skill grows.

Run three iterations with the trained Challenger. About 38% of its questions pass the filter every round, because it keeps re-aiming. With the untrained one, the pass rate falls round by round, since the same questions get easy. The skill curves split.

Why two models and not one

A fair question: why not let one model play both roles? The paper tried it (Appendix D, Table 6). The single-model version peaks at 47.31 after the first iteration and falls from there. The two-model version reaches 49.12 at iteration 3 (Table 3 and Figure 3 give 49.07 for the same step, a small mismatch inside the paper).

The pseudo-labels are worse too. At iteration 1, the single model’s label accuracy is 63.4%, against 71.0% for two models. The paper guesses the cause: a problem-setter and a solver that share one body share one set of biases. That is a hypothesis, not a tested explanation.

The loop as code

pythondef r_zero(base, iterations=3, N=8000, m=10, delta=0.25):
    Q, S = copy(base), copy(base)              # same weights, two roles
    for it in range(iterations):
        # Phase 1: train the Challenger against the FROZEN Solver (up to 5 GRPO steps)
        for step in range(5):
            qs = Q.generate(PROMPT_P0, n=G)            # G question strings
            p_hat = [agreement(S, q, m) for q in qs]  # vote of the frozen Solver
            Q = grpo_update(Q, qs, challenger_rewards(qs, p_hat))
        # Phase 2: build the dataset with the FROZEN Challenger
        data = []
        for q in Q.generate(PROMPT_P0, n=N):
            label, p = pseudo_label(S.answer(q, m))
            if abs(p - 0.5) <= delta: data.append((q, label))
        # Phase 3: train the Solver on (question, pseudo-label) pairs (up to 15 GRPO steps)
        S = grpo_train(S, data, reward=lambda y, label: float(y == label))
    return Q, S
Why does R-Zero freeze the Solver while it trains the Challenger?

Chapter 7

What the Tables Show

Read the math and general-reasoning results, including the places where R-Zero does not win

You open a results table and see forty numbers in a grid. Where do you look first? Look at the rows to learn what is being compared. Look at the columns to learn what is being measured. Then look for the cells where the story does not hold.

This chapter reads Tables 1 and 2 that way. The claim to test is simple: a model trained only on its own questions and votes improves on benchmarks written by humans.

The setup in one paragraph

The paper tests four base models. Qwen3-4B-Base and Qwen3-8B-Base share one architecture family at two sizes. OctoThinker-3B and OctoThinker-8B come from the Llama family. That second pair matters: earlier work found that RL applied directly to Llama models gave weak results, so it is a harder test.

Each table has four rows per model. Base Model is the model with no training. Absolute Zero is another label-free self-play method, run as a baseline. R-Zero (frozen challenger) trains the Solver on questions from an untrained Challenger. R-Zero is the full method after three iterations, 45 steps.

The math benchmarks are AMC, Minerva, MATH-500, GSM8K, OlympiadBench, AIME25 and AIME24. For AMC and AIME the paper reports mean@32: sample 32 answers per problem and average the score. The others use greedy decoding, one answer picked by the highest probability. GPT-4o judges whether a math answer matches the ground truth.

The general-domain benchmarks are SuperGPQA (graduate-level questions across 285 fields), MMLU-Pro (a harder MMLU) and BBEH (extra-hard BIG-Bench tasks). They use exact-match accuracy with greedy decoding. All numbers come from held-out test sets.

Explore the tables

Compare the four rows

Pick a model and a benchmark set. Each row of bars shows the four methods on one benchmark: base (grey), Absolute Zero (light grey), the frozen-Challenger run (pale warm) and R-Zero (warm). The numbers on the right are base and R-Zero.

All numbers are copied from Tables 1 and 2 of the paper (results after 45 training steps). Scales are shared inside each set, 0 to 100 for math and 0 to 70 for general. The paper shows single numbers without error bars.

What the tables say

On the math average, R-Zero beats the base model for all four models. Qwen3-4B-Base goes from 42.57 to 49.93, which is +7.36. Qwen3-8B-Base goes from 48.64 to 53.72, which is +5.08. OctoThinker-3B goes from 26.64 to 29.32, and OctoThinker-8B from 36.41 to 38.52.

The training questions were math only, yet general reasoning also rises. Qwen3-4B-Base goes from 26.34 to 31.15 on the general average, and OctoThinker-8B from 11.70 to 23.00. The paper reads this as a gain in underlying reasoning, not in math facts. The evidence is indirect: the tables do not test that explanation.

The frozen-Challenger row isolates the Challenger’s training. It is above base on most averages but under the full method almost everywhere, as Chapter 6 predicted. A notable cell: on Qwen3-8B general reasoning, the frozen run scores 31.29, slightly below the base model’s 31.98.

Where R-Zero does not win

Symptom. You read only the bold cells and conclude that R-Zero wins everywhere. Measurement. Look at single benchmarks. On Qwen3-4B-Base, AIME25 falls from 10.30 to 9.60. On Qwen3-8B-Base, Absolute Zero scores 18.20 and 18.40 on AIME25 and AIME24, while R-Zero scores 13.30 and 15.40. On OctoThinker-3B, Absolute Zero’s general average is 16.03, against R-Zero’s 11.12.

Fix. Read R-Zero as a method that lifts the averages and most benchmarks, with real exceptions. The hardest benchmarks, with scores near 10, move least and are also the noisiest. With no error bars, a one-point change there should not be trusted.

Do the paper’s numbers agree with each other?

Mostly, with a few mismatches worth knowing. The abstract says Qwen3-4B-Base gains +6.49 on math, which equals 49.07 minus 42.58 from Table 3 and Figure 3. Table 1 prints 49.93 minus 42.57, which is +7.36. The abstract’s +7.54 on general reasoning also differs from Table 2’s +4.81 for the same model. The text also says Qwen3-8B-Base rises from 49.18 to 54.69, while Table 1 prints 48.64 and 53.72.

The same happens on general reasoning. The text says Qwen3-8B-Base gains +5.13, but Table 2 gives 31.98 to 34.50, which is +2.52. The OctoThinker-3B gain of +3.65 matches the table. We use the table values throughout this lesson and flag the gaps. They are likely from different runs or paper versions, and the paper does not explain them.

Does it need the math prompt?

The paper worried that math-heavy benchmarks might flatter a math-only curriculum. In Appendix H it removes the math instruction from the Challenger’s prompt, so questions cover commonsense, logic and more. For Qwen3-8B, the AMC score rises from 61.67 to 65.53, and the general benchmarks tick up (MMLU-Pro 61.53 to 61.83, SuperGPQA 31.38 to 32.29). For Qwen3-4B the results are about even. So the method is not tied to math, at least for the larger model.

What does the “R-Zero (frozen challenger)” row in Tables 1 and 2 test?

Chapter 8

Ablations, Collapse and Limits

Measure what each part is worth, then see where the loop breaks and why

A bridge engineer tests two things. First, what each beam is worth: remove it and see what happens. Second, where the whole bridge fails: load it until it breaks. This chapter does both for R-Zero, using the paper’s ablations and its iteration study.

What each part is worth

An ablation removes one part of a method and measures the loss. The paper removes two parts from Qwen3-4B-Base: the repetition penalty (Chapter 4) and the difficulty filter (Chapter 5). Table 3 gives the result.

MethodMath averageGeneral averageChange from full R-Zero
R-Zero49.0731.15the full method
without repetition penalty45.7628.73math −3.31, general −2.42
without filtering47.3526.69math −1.72, general −4.46

Both parts matter. Without the repetition penalty, the question batch loses variety and math suffers most. Without the filter, the Solver trains on noisy labels and general reasoning suffers most. The paper’s text says the filter ablation falls “by over 6 points” on the general average. The table gives 4.46, so we trust the table and flag the gap.

A third ablation changes the architecture, not a reward. Appendix D lets one shared model play both roles. It peaks at 47.31 after one iteration and then declines, while two separate models reach 49.12 at iteration 3 (Table 6). Two roles in two models is itself a design choice that earns its keep.

Where the loop breaks

The paper then runs the loop longer, on models of three sizes. The result is a rise followed by a fall. Model collapse is the name for a model getting worse after training on its own outputs. Drag the step slider below and compare the sizes.

Climb, peak, fall

Top: the math average at each iteration (15 steps each), with a star at the peak. Bottom: the share of pseudo-labels that were correct. Pick a model size and drag the step.

45

Performance values are the labels printed on the paper’s Figure 3 (step 0 is the base model). Label accuracy is Table 7, where the paper graded 500 sampled questions with Gemini. For the 4B model, Table 5 grades 200 questions per iteration with GPT-4o and gets 79.0%, 69.0% and 63.0%, so the two graders disagree on the level but agree on the trend.

Three facts stand out. Every size rises first, then falls. The peak comes later for bigger models: step 15 for 0.6B, step 30 for 1.7B and step 45 for 4B. And label accuracy sinks steadily for all of them, from about 70% at step 15 to about 42 to 45% at step 60.

Why does the Challenger’s pool get less reliable? The paper checks that the questions do get harder. A fixed Solver scores 59.0% on questions from iteration 1 and only 47.0% on those from iteration 3, against GPT-4o answers (Table 5). Harder questions mean a weaker vote.

What the paper knows, and what it guesses

The obvious suspect is label noise. But the paper shows it is not the whole story. At each model’s peak checkpoint, label accuracy was 70.6% for the 0.6B model, 55.2% for 1.7B and 48.8% for 4B. There is no common threshold below which training fails.

The paper suggests a second cause: training only on self-made data can shrink diversity and amplify the model’s own biases. It points to earlier work on model collapse. This is a plausible hypothesis. The paper does not test it, and says that understanding the collapse is future work.

Limits the authors state

R-Zero depends on tasks where correctness can be checked in a clear, objective way. Majority voting works for math because answers are short and comparable. Creative writing, dialogue and preference-driven tasks have no such answer. The paper names this as its main limit, and notes that its labeling method may not carry over to every task type.

The method has been tested only on small bases. The main tables use four models of 3B to 8B parameters, and the iteration study adds 0.6B and 1.7B. The smallest model peaks after a single iteration. The paper does not test larger models, so how the loop behaves at frontier scale is open.

The good news: it stacks with human data

R-Zero is not an either-or choice. The paper first runs R-Zero, then fine-tunes on a human-labeled math dataset (MATH-12k) with GRPO. For Qwen3-4B-Base, this beats fine-tuning the base model on the human data alone by +2.35 points (Figure 4). The figure marks +3.69 for the 8B model.

Order matters. Mixing the human data into R-Zero training beats either source alone, but it does not beat doing R-Zero first and the human data second. The authors guess that mixing dilutes the high-quality signal. They call the cause open. In effect, R-Zero works as a mid-training step before supervised training.

The 0.6B model peaks at step 15 while the 4B model peaks at step 45. What does the paper conclude?

Chapter 9

Field Guide

Keep the numbers, the checklist and the core code, and find where to go next

You can now rebuild R-Zero from memory. This page gathers everything in one place: the idea, the numbers, a checklist for your own version, the core code, and where to read next.

The one-paragraph summary

A reasoning model improves with RL, but RL needs human questions and labels. R-Zero removes both. It clones one base model into a Challenger and a Solver. The Solver answers each question ten times, and the vote becomes a pseudo-label. The Challenger earns the uncertainty reward 1 − 2|p̂ − ½|, which peaks when the Solver agrees with itself about half the time, minus a repetition penalty from BLEU clusters, and a format check. A filter keeps questions with 3 to 7 matching answers. The Solver trains on them with GRPO against the pseudo-labels. The two models train in turns, three iterations of 15 Solver steps. Math average on Qwen3-4B-Base rises from 42.57 to 49.93. The loop then peaks and declines, as pseudo-label accuracy drops from 79% to 63%.

The numbers that matter

WhatNumberWhere
Answers per question for the votem = 10Section 3.1
Candidate questions per iterationN = 8,000Section 3.1
Filter band3 to 7 of 10 matching (δ = 0.25)Section 3.1
Repetition penaltyτBLEU = 0.5, λ = 1Section 2.2, 3.1
Challenger phaseup to 5 steps, 4 rollouts, batch 128Appendix B.1.2
Solver phaseup to 15 steps, 5 rollouts, batch 128Appendix B.1.1
Shared training settingslearning rate 10−6, weight decay 0.01, KL weight 0.01, temperature 1.0, top-p 0.99Appendix B.1
Qwen3-4B-Base, math average42.57 to 49.93Table 1
Qwen3-4B-Base, general average26.34 to 31.15Table 2
Ablation, math average (4B)49.07 full; 45.76 without repetition penalty; 47.35 without filterTable 3
Pseudo-label accuracy by iteration (4B)79.0%, 69.0%, 63.0%Table 5
Peak step by model size0.6B: 15; 1.7B: 30; 4B: 45Figure 3
R-Zero then human-label training (4B)+2.35 over human labels aloneFigure 4

The terms

TermMeaning in one line
ChallengerThe copy of the base model that writes questions. Its reward is the uncertainty reward minus the repetition penalty.
SolverThe copy that answers questions. Its reward is 1 when an answer matches the pseudo-label.
Pseudo-labelThe most common answer among m samples. A guess at the truth, not the truth.
p̂The share of the m answers that match the pseudo-label. It measures agreement.
GRPORL that judges each response against its own group, with advantage (R − mean) / std and no critic.
Informative bandThe questions kept for the Solver: |p̂ − ½| ≤ δ.
Model collapseThe slow loss of quality that comes from training on a model’s own outputs.

A checklist to rebuild it

The core as code

pythonimport numpy as np
from collections import Counter

def agreement(solver, question, m=10):
    answers = [extract_boxed(solver.sample(question)) for _ in range(m)]
    label, n = Counter(answers).most_common(1)[0]
    return label, n / m                              # (pseudo-label, p-hat)

def uncertainty_reward(p_hat):
    return 1 - 2 * abs(p_hat - 0.5)               # 1 at p-hat = .5, 0 at p-hat = 1

def keep(p_hat, delta=0.25):
    return abs(p_hat - 0.5) <= delta + 1e-9            # counts 3..7 when m = 10

def grpo_advantage(rewards, eps=1e-6):
    r = np.asarray(rewards, float)
    return (r - r.mean()) / (r.std() + eps)

def iteration(Q, S):
    # Phase 1: Challenger vs FROZEN Solver
    for _ in range(5):
        qs = Q.generate(PROMPT_P0, n=G)
        p = [agreement(S, q)[1] for q in qs]
        Q = grpo_update(Q, qs, challenger_rewards(qs, p))    # Chapter 4
    # Phase 2: dataset from FROZEN Challenger
    data = []
    for q in Q.generate(PROMPT_P0, n=8000):
        label, p = agreement(S, q)
        if keep(p): data.append((q, label))
    # Phase 3: Solver on (question, pseudo-label)
    S = grpo_train(S, data, reward=lambda y, label: float(y == label))
    return Q, S

What the paper does not tell you

The text we read gives no count of how many of the 8,000 questions survive the filter. It gives no compute cost per iteration. It does not spell out how answers are normalized before they are counted. A faithful rebuild needs choices for all three. Treat each as an experiment of your own.

Where it sits in the field

R-Zero sits between three lines of work. Label-free RL rewards a model for confidence or consistency, but it needs a pool of questions. Self-play pairs two roles, as in code where a tester checks a coder, and it needs an executor. RLVR uses a rule-based checker and human data. R-Zero keeps the self-play shape, swaps the executor for a vote, and drops the question pool. It is also a stage you can add before supervised training.

Keep going

The takeaway. R-Zero turns one model into a teacher and a student that share nothing but strings. The teacher is paid for questions at the edge of the student’s skill. The student is paid for agreeing with its own earlier vote. It works because a vote is cheap and often right, and it fails when the votes get less right. Measure label accuracy, and stop at the peak.

Credit: R-Zero is the work of Chengsong Huang, Wenhao Yu, Xiaoyang Wang, Hongming Zhang, Zongxia Li, Ruosen Li, Jiaxin Huang, Haitao Mi and Dong Yu, at the Tencent AI Seattle Lab and partner universities, published at ICLR 2026. Source: arXiv 2508.05004. This lesson re-teaches the paper in our own words and devices, and every toy number is labelled as illustrative.

You rebuild R-Zero and the Solver’s score peaks at iteration 3, then falls at iteration 4 while the questions still look fine. What is the best next measurement?

Now press Present or Teach and explain one R-Zero iteration out loud, from memory: what each model does, which one is frozen, where the label comes from, and what the filter keeps. Then go back to the instrument at the top, switch to scattered wrong answers, and explain why the Challenger’s reward stays high while the vote is wrong.

R-Zero: Self-Evolving Reasoning LLM from Zero Data
Read the paper · Authors’ code · Course schedule · Lecture 7 · Back to Gleams