# OPSE: Zero-Data On-Policy Self-Evolution for Math Reasoning Models

> Source: <https://explainx.ai/blog/opse-zero-data-on-policy-self-evolution-math-2026?utm_source=rss&utm_medium=feed&utm_campaign=blog>
> Published: 2026-12-02 00:00:00+00:00

**Recommendation:** Generate problem-hint pairs with a GRPO-trained synthesizer, keep only hints that preserve the majority answer and raise teacher consensus, filter to the ~1,600 lowest-KL pairs, then distill on-policy against a frozen copy of the starting checkpoint.
More in the playbook "Fine-tuning and data": <https://wpnews.pro/playbooks/training-data>

**A language model can improve on competition math benchmarks without human-written problems, reference solutions, or a stronger teacher — by writing its own training problems and teacher-only hints, then distilling on-policy against a frozen copy of itself.** [On-Policy Self-Evolution (OPSE)](https://arxiv.org/abs/2612.00577?ref=explainx), from **Jiashuo Sun**, **Xueqiang Xu**, **Jiawei Han**, and colleagues, posted on **arXiv** and [**Hugging Face Papers**](https://huggingface.co/papers/2612.00577?ref=explainx) with [** open-source code**](https://github.com/GasolSun36/OPSE?ref=explainx). On **Qwen3-4B-Instruct-2507**, the authors report **one round** lifting four-benchmark **average accuracy from 55.7% to 59.0%**, while **zero-data baselines** gain at most **0.7** points and **curated DeepMath OPSD** gains at most **0.3**.

## Why curated OPSD runs out of data

**On-policy self-distillation (OPSD)** trains a student on its own samples while a **teacher** — often the same weights — sees **privileged context** the student lacks. That context might be a reference solution or a strategy hint. The limitation is **data design**: a problem–privilege pair that teaches **Qwen3-4B** today may teach **nothing** to an updated checkpoint tomorrow, and building pairs by hand does not scale.

[**Future-OPSD**](https://explainx.ai/blog/future-opsd-video-foresight-qwen-vlm-training-2026) showed one escape hatch for **vision-language** models: use **past–future video** as privilege without captions. OPSE targets **text-only math** with a sharper constraint: **no external corpus at all** — the model must invent both the **problem** and the **hint**.

That matters for teams blocked by **license**, **cost**, or **contamination** fears on public math sets. If you already run **GRPO** or **[multi-teacher on-policy distillation](https://explainx.ai/blog/stepfun-p2-mopd-multi-teacher-distillation-parameter-priors-qwen3-2026)** in production, OPSE is a recipe to test **synthetic supervision** before you buy another labeled bundle.

## One checkpoint, four roles

Reinforcement-learning loop metaphor for OPSE synthesizer GRPO reward

OPSE keeps a single starting checkpoint **π₀**. From it:

1. A **synthesizer** (trainable) emits**(problem, hint)** pairs. The**student** sees only the problem; the**teacher** is**frozen π₀** with the hint in its prompt.
2. **GRPO** updates the synthesizer so hints that**change next-token predictions** earn reward**only when** they preserve the model’s**majority answer** and**strengthen consensus** across samples.
3. The pipeline **deduplicates** problems with an**embedding model** (for diversity, not correctness), scores**early teacher–student KL divergence** on student prefixes, and keeps about**1,600** lowest-divergence pairs from a bank near**8,000** .
4. **OPSD distillation** runs on those pairs; the distilled student becomes the initializer for the**next round** in the paper’s multi-round experiments.

No step imports human solutions. The only outside model is a **text embedder** for **deduplication and novelty penalties**.

## How the synthesizer reward works

The README and paper spell out gates readers can reimplement without the full **veRL** stack:

- **Consensus preserved:** Sample**k = 10** answers with and without the hint. The hint counts only if the**teacher majority answer** equals the**student majority answer** .
- **Consensus strengthened:** At least**two** student completions must agree, and the teacher must be**more consistent** than the student (**s_T > s_S** ).
- **Divergence:** Reward scales with**forward KL** between teacher and student next-token distributions on the student’s own rollout, restricted to**top-16** tokens, so empty hints earn nothing.
- **Diversity:** Embedding-distance and**novelty** penalties stop the synthesizer from repeating near-duplicate problems.

This is deliberately **label-free**. The majority answer can still be **wrong**; the method rewards hints that **strengthen existing consensus**, not hints that import gold labels. That is a design choice teams should understand before copying the recipe into **customer-support** or **coding** domains where wrong consensus is costly.

## One round of OPSE in the diagram

OPSE on-policy self-evolution pipeline diagram showing synthesizer GRPO, hint selection, and distillation rounds
*Image: [Sun et al., arXiv 2612.00577](https://arxiv.org/html/2612.00577v1?ref=explainx)*

**Figure 2** in the paper (saved above) walks the loop: **GRPO synthesizer** → **harvest and gate** → **select low early divergence** → **OPSD student update** → optional **next round**.

The lower-left example shows a hint raising the vote share for the same majority answer from **4/10** to **8/10** completions — the intuition behind **strengthening** without revealing the final boxed result in the student prompt.

**Selection** uses mean KL over the **first L = 512 tokens** of student responses. The authors argue that **disagreement alone** is a poor training signal; they keep pairs where early reasoning already aligns with what a **hinted teacher** would endorse. That connects to broader **process supervision** debates on [reasoning models](https://explainx.ai/blog/recurrent-looped-transformer-infinite-reasoning-depth-2026) where **token-level** targets matter more than final-answer RL alone.

## Reported benchmark numbers

The paper evaluates **AMC23**, **AIME24**, **AIME25**, and **HMMT25** with **mean@16** accuracy, **three seeds**, temperature **0.6**, **top_p 0.95**, **top_k 20**, up to **38,912** new tokens, **non-thinking** prompts. **AMC23** is the **validation** set used to pick checkpoints; the three AIME/HMMT sets are **tests**.

| Model | Method | Zero-data? | Avg. (four benchmarks) | 
|---|---|---|---|
| Qwen3-4B-Instruct-2507 | Base | Yes | 55.7 | 
| Qwen3-4B-Instruct-2507 | R-Zero | Yes | 55.3 | 
| Qwen3-4B-Instruct-2507 | G-Zero | Yes | 56.0 | 
| Qwen3-4B-Instruct-2507 | **OPSE (1 round)** | Yes | **59.0** | 
| Qwen3-4B-Instruct-2507 | OPSD on DeepMath | No | 55.6 | 
| Qwen3-4B-Instruct-2507 | GRPO on DeepMath | No | 55.2 | 

The same table in the README lists **OLMo-3-7B** (+1.5 average) and **Ministral-3-8B** (+2.2 average) after one OPSE round. **Ministral** is the case where **curated OPSD** actually **hurts** versus base in the paper table — a reminder that privilege data must match the student, not just exist.

**Three OPSE rounds** on Qwen3-4B are reported to reach **62.6%** average in the abstract; the public repo documents **one round** end-to-end. Iterative rounds restart from the prior checkpoint per **docs/DEVIATIONS.md** — not bundled as a single `opse run` today.

### Alternate distillation losses

On the **same selected pairs**, the authors compare **OPSD**, **OPSD + EOPD**, and **EAD** losses. **EAD** posts the highest **one-round** Qwen3-4B average (**60.7%**) in the README table. Builders who already use **[E2-OPSD forks](https://explainx.ai/blog/future-opsd-video-foresight-qwen-vlm-training-2026)**-style tooling may want **EAD** first; the default release path uses **OPSD** as in the main paper row.

## How to try it on your cluster

The [**GitHub repository**](https://github.com/GasolSun36/OPSE?ref=explainx) is operationally concrete:

```
git clone https://github.com/GasolSun36/OPSE.git
cd OPSE
cp env.local.sh.example env.local.sh
bash scripts/setup/setup_gen_env.sh
bash scripts/setup/setup_distill_env.sh
pip install -e .
opse models
opse data
opse run
```

**`opse run --dry-run`** prints resolved commands without touching GPUs — useful for estimating whether your **scheduler** can hold an **8×80 GB** node for **~28 hours**. Stages resume when outputs exist; **`opse table`** prints the **AMC23** checkpoint curve and the **selected step** under the paper’s rule (highest AMC23, earliest tie-break).

**Released Hugging Face weights** for the distilled student and the **1,600 problem–hint pairs** were listed as **“to be added”** in the README when this post was written. Until those drop, your reproduction path is **full pipeline** or waiting on the cards.

### Contamination and evaluation discipline

The paper cites **Appendix B.4** for a **contamination check** on evaluation problems. For teams comparing OPSE against **[public leaderboard fine-tunes](https://explainx.ai/blog/qwen38-27b-swe-bench-pro-63-pi-harness-claimed-vs-verified-2026)**, mirror their protocol before claiming wins: **seed manifest**, **identical decoding**, and **held-out** synthetic banks matter more than a single **+3.3** headline.

## How OPSE fits next to other self-training lines

| Approach | Privilege source | Labels? | OPSE contrast | 
|---|---|---|---|
| **OPSD / Future-OPSD** | Human or modality-native context (solutions, future video) | Often yes for problems | OPSE drops all external problems | 
| **R-Zero / G-Zero** | Self-written problems or preferences | No | OPSE adds **hint-gated** teacher context and**early-divergence** selection | 
| **GRPO on curated sets** | Task rewards on fixed prompts | Needs prompt set | OPSE grows the prompt set itself | 
| **[P²-MOPD](https://explainx.ai/blog/stepfun-p2-mopd-multi-teacher-distillation-parameter-priors-qwen3-2026)** | Multiple expert teachers | Teacher models required | OPSE uses **no** stronger teacher | 

For **API consumers**, OPSE is not a product launch. For **fine-tuning shops**, it is a **benchmarked pattern** to pit against your current **synthetic data** generator — especially if you already pay for **[GRPO harness adapters](https://explainx.ai/blog/qwen38-27b-opencode-harness-adapter-lora-november-2026)** and want **math reasoning** gains without new licenses.

## What to watch before you ship weights

1. **Wrong-majority risk.** Rewards can reinforce a popular but incorrect answer cluster. Add**held-out verifiers** or**tool checks** if you move beyond math-with-boxed-answers.
2. **Compute honesty.** ~**320 GPU-hours** for the paper evaluation protocol is not a laptop experiment. Budget like a**[NeMo RL](https://explainx.ai/blog/nvidia-nccl-reshard-collective-rl-weight-refit-nemo-2026)** job, not a LoRA afternoon.
3. **Hint leakage.** Hints are**teacher-only** , but logging and tracing must keep them out of**student-facing** inference paths in production assistants.
4. **License.** Code is**MIT** ;**HMMT25** data is**CC BY-NC-SA** per**data/README.md** — non-commercial constraint on that slice.

## Practical checklist for builders

| Step | Action | 
|---|---|
| 1 | Read **arXiv 2612.00577** §2–3 for reward and selection math | 
| 2 | Run **`opse run --dry-run`** on a login node to validate paths | 
| 3 | Reproduce **one round** on**Qwen3-4B** before swapping your base model | 
| 4 | Log **majority-answer** statistics per round to catch collapse | 
| 5 | Compare against your current **synthetic SFT** baseline on the**same eval seeds** | 

If you teach **post-training**, OPSE is a teachable inverse of **[scaling loop depth](https://explainx.ai/blog/glm-5-4-coding-plan-vision-50-percent-quota-boost-november-2026)**: instead of looping layers at inference, you loop **data synthesis and distillation** at training time.

Teams new to **GRPO** and **distillation** often start with a guided build before renting an eight-GPU node. explainx.ai's **[AI builder workshops](https://explainx.ai/workshops/ai-builder)** walk through harness setup and eval discipline — the same habits OPSE assumes you already have when you read **`opse run --dry-run`**.

## Related reading

*Accuracy figures follow Sun et al., arXiv 2612.00577 and the OPSE README as of December 2, 2026. Independent replication may shift scores.*
