Better Supervision Is Nearby: Neighborhood On-Policy Self-Distillation

Xincheng Wei, Yifan Ding, Yoshua Li, Yuquan Lu, Ziheng Li, Yi Lu, Dongsheng Ma, Rongxiang Weng, Xunliang CaiarXiv 2026

TL;DR

Neighborhood On-Policy Self-Distillation (N-OPSD) improves mathematical reasoning in LLMs by distilling knowledge from a diverse pool of "nearby" experts—local parameter perturbations of the base model. By greedily selecting experts that provide complementary corrections and routing between them at each reasoning step, N-OPSD consistently outperforms standard self-distillation across multiple model scales on challenging math benchmarks like AIME.

What Problem Does This Paper Address?

Training models for complex mathematical reasoning often relies on On-policy Self-Distillation (OPSD). In this setup, a "student" model generates a reasoning path, and a "privileged teacher" (the same model, but given access to the ground-truth reference solution) provides the target probability distribution for the student to learn from.

The bottleneck is that standard OPSD uses a single, fixed teacher. Even with the reference solution, a single parameter setting might not provide the best possible supervision at every single token in a long reasoning chain. The authors hypothesize that the "neighborhood" of the model—parameter settings just a tiny Gaussian perturbation away—contains experts that are better at correcting specific parts of a solution than the original unperturbed model.

Methods

The N-OPSD framework consists of two main phases: offline expert selection and online routing during training.

1. Perturbation Experts & Offline Selection

The authors create a candidate pool of 500 experts by adding small Gaussian noise ($\sigma$) to the base model's parameters. To keep training efficient, they use a greedy algorithm to select a compact pool of $K=25$ experts.

  • Selection Criterion: They reward experts for "filtered Positive Teacher Advantage" (PTA). This measures how much an expert increases the probability of the correct reference token compared to a baseline, specifically at positions where the student is currently unconfident.
  • Complementarity: The selection process specifically looks for experts that cover different positions in the reference solutions, ensuring the pool is diverse rather than redundant.

2. Online Routing (MaxPeak-Anchored Quantile Routing)

During training, the student generates a reasoning prefix. Because the student might deviate from the reference solution, the system can't just look up the "correct" next token. Instead, the experts evaluate the student's current state:

  • MaxPeak: The system identifies the token that receives the highest probability from any expert in the pool. This token becomes the "anchor."
  • Quantile Selection: Among all experts that agree on that anchor token, the system selects one based on a discrete quantile (e.g., the 75th percentile of confidence). This prevents the student from learning from extreme outliers while still choosing a high-quality supervision source.
Figure 1: Overview of NEIGHBORHOOD OPSD. (a) Selected local perturbation experts expand reference-side selection-feasible (SF) coverage beyond M0 (Qwen3-8B, σ = .002; 500-question analysis set). (b) OPSD uses M0 at every student-visited state, while NEIGHBORHOOD OPSD routes one expert’s full next-token distribution at each state. Colors distinguish selected experts; distributions are schematic.

Datasets

  • Training: 10,000 problems from the OpenThoughts dataset.
  • Evaluation: The models were tested on high-level math competition benchmarks: AIME 2024, AIME 2025, and HMMT February 2025.
  • Models: The researchers applied N-OPSD to the Qwen3 family at 1.7B, 4B, and 8B scales.

Key Insights and Ideas

  • "Nearby" is a Goldmine: Small parameter perturbations ($\sigma \approx 0.002$) reveal experts that are specialists in different parts of the reasoning process. A single teacher is a generalist that leaves useful supervision on the table.
  • Direction vs. Support: The routing mechanism separates the direction (which token to pick via MaxPeak) from the level of support (how confident the distribution should be via Quantile Selection). This two-step process is more robust than simple averaging or majority voting.
  • Reference-Side Coverage: The selected pool of 25 experts covers significantly more "correctable" positions (26.53%) in reference solutions than the single unperturbed teacher (15.69%).
  • Student-Prefix Transfer: Even though experts are selected based on reference solutions, the improvements they provide transfer well to the "messier" reasoning paths generated by the student during training.

Key Results

N-OPSD achieved the highest scores across all tested model scales and benchmarks compared to standard OPSD and other recent variants like EOPD and PW-OPSD.

  • Accuracy Gains: On the three-benchmark average (Average@12), N-OPSD improved over standard OPSD by:
  • +2.75 points for Qwen3-1.7B
    • +1.67 points for Qwen3-4B
    • +1.94 points for Qwen3-8B
  • Efficiency: While running 25 experts sounds expensive, the authors optimized the process (streaming metadata and materializing one expert at a time), resulting in a training step time roughly 1.42x that of standard OPSD. Crucially, inference uses only the distilled student model, so there is zero overhead for the end-user.

Limitations and Future Work

  • Task Generality: The study focused exclusively on mathematical reasoning. It remains to be seen if this "neighborhood" effect is as potent in code generation or general-purpose dialogue.
  • Static Pool: The expert pool is selected once before training starts. The authors suggest that periodically re-selecting experts as the student evolves could yield even better results, though at a higher computational cost.
  • Model Specificity: The experiments were conducted on the Qwen3 family; testing on other architectures (like Llama or Mistral) would confirm the method's broader applicability.

Summary updated

BibTeX
@misc{wei2026better,
  author = {Xincheng Wei and Yifan Ding and Yoshua Li and Yuquan Lu and Ziheng Li and Yi Lu and Dongsheng Ma and Rongxiang Weng and Xunliang Cai},
  title = {{Better Supervision Is Nearby: Neighborhood On-Policy Self-Distillation}},
  year = {2026},
  eprint = {2609.39687},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.39687},
}
Figure