Preserving Exploration for LLM Reasoning via Mean Order-Statistic Alignment

Ruotian Peng, Yi Ren, Long-Fei Li, Yandong WenNeurIPS 2026

TL;DR

When we fine-tune large language models (LLMs) with reinforcement learning to make them better at math and coding, they often become tunnel-visioned—getting better at their first guess while losing the creative ability to explore alternative solutions. This paper introduces Mean Order-Statistic Alignment (MOSA), a clever regularization trick that preserves a model’s "shape of curiosity" without forcing it to stick to its old vocabulary choices. As a result, models get better at both nailing the answer on the first try and brainstorming diverse solutions when given multiple attempts.

What Problem Does This Paper Address?

Reinforcement Learning from Verifiable Rewards (RLVR)—using algorithms like GRPO—is the secret sauce behind recent reasoning models. You give a model a math problem, let it generate several attempts, and reward the ones that land on the right answer.

However, RL fine-tuning suffers from exploration collapse. As the model learns to maximize rewards, it pours almost all its probability mass into its single favorite next token, starving the runner-up choices. While its single-try accuracy (pass@1) goes up, its ability to find a correct answer across K independent attempts (pass@K) often drops below that of the un-tuned base model!

The standard fix is token-wise KL regularization, which penalizes the fine-tuned model whenever its exact token probabilities drift from the base model. But this is an overly strict straightjacket: if the base model favored a wrong reasoning path, token-wise KL punishes the new model for moving away from those specific words. How do we let a model freely change which words it chooses, while preserving how broadly it hedges its bets?

Figure 1: (a) GRPO induces exploration collapse, increasing top-1 mass while diminishing top-2/top-3 mass; in contrast, MOSA preserves the base model’s probability allocation. (b) The mean order-statistic profile provides a compact characterization of the model’s exploration behavior. (c) MOSA improves pass@128 averaged over 6 math reasoning benchmarks across 3 model backbones.

Methods

The authors realize that exploration isn't about specific words; it’s about the shape of probability allocation.

To capture this, they introduce a new policy-level statistic called the mean order-statistic profile:

  1. Sort by rank, forget identity: At every step of generating an answer, take the model's probability distribution over the entire vocabulary and sort the probabilities from highest to lowest (1st place, 2nd place, 3rd place, etc.), throwing away the actual token labels.
  2. Average across rollouts: Average these sorted vectors across all token positions and generated responses in a batch. A slow decay across ranks means the model keeps many options open; a sharp drop-off means it has collapsed onto a single path.

Because sorting and averaging preserve the fact that probabilities are non-negative and sum to one, this profile is itself a valid probability distribution. The authors propose Mean Order-Statistic Alignment (MOSA), which replaces standard token-wise KL with a KL divergence penalty between the base model's rank profile and the fine-tuned model's rank profile.

Making it fast: Sorting a 150,000-token vocabulary at every step would be painful. Instead, MOSA uses a compact "top-N + tail" approximation: it tracks only the top $N$ probabilities (e.g., $N=3$) and sweeps everything else into a single residual "tail" bucket, reusing the rollouts already generated during standard RL training.

Datasets

No new benchmarks are introduced; the authors train and evaluate on established reasoning and coding suites:

  • Arithmetic Puzzle: Trained and tested on the Countdown dataset (from TinyZero), where models combine given numbers with basic operators to hit a target.
  • Mathematical Reasoning: Trained on the MATH dataset; evaluated across 6 benchmarks: AIME 2024, AIME 2025, AMC 2023, MATH-500, Minerva Math, and Olympiad-Bench.
  • Code Reasoning: Trained on the DeepCoder dataset; evaluated on LiveCodeBench and HumanEval+.

Key Insights and Ideas

  • Exploration is an identity-free property: Two models can prefer completely different words and mathematical strategies while having the exact same exploration capacity. Abstracting away token identity removes the friction between learning a task and staying curious.
  • You only need the tip of the distribution: Ablations show that tracking just the top $N=3$ ranks (plus the tail bucket) is enough to stabilize policy entropy and achieve peak accuracy.
  • Exploration and exploitation aren't enemies: Usually, forcing a model to stay diverse hurts its top-1 accuracy. Because MOSA only constrains the global rank structure rather than local token choices, improving diversity actually helps the model discover better solutions during training—boosting pass@1 and pass@K simultaneously.
  • Genuine strategic diversity: Using an LLM-as-a-judge evaluation on AIME problems, the authors show MOSA doesn't just paraphrase answers—it discovers genuinely distinct mathematical strategies.

Key Results

MOSA was tested across models ranging from 3B to 32B parameters (including Qwen2.5 and DeepSeek-R1-Distill backbones):

  • Countdown (Qwen2.5-3B): MOSA hits 80.2% pass@1 (vs. 67.2% for GRPO and 70.4% for token-wise KL) and 94.7% pass@128 (a +13.5% absolute jump over token-wise KL). It also finds 3.37 distinct valid equations per problem on average, more than doubling GRPO's 1.41.
  • Math Benchmarks (3B to 32B): Averaged across the 6 math tasks on Qwen2.5-32B, standard GRPO causes pass@128 to drop from the base model's 75.9% down to 71.6%. MOSA pushes it up to 78.0%, while also beating GRPO on pass@1 (48.2% vs. 46.5%).
  • Plug-and-play: Combining MOSA with newer RL variants like GSPO and DAPO boosts both metrics even further (DAPO+MOSA reaches 44.0% pass@1 and 75.7% pass@128 on Qwen2.5-Math-7B).
  • Code Generation: On LiveCodeBench (7B), MOSA outperforms the base model by +4.12 points on pass@1 and +5.38 on pass@16, consistently beating standard GRPO.

Limitations and Future Work

While MOSA scales smoothly from 3B up to 32B parameter models in the authors' experiments, they note that evaluating how well this profile-alignment behavior holds up at even larger frontier scales (such as 70B+ parameter models) remains an open direction for future work. Additionally, tuning the alignment weight $\beta_{\text{MOSA}}$ still exhibits a mild trade-off between maximizing single-try accuracy (pass@1) and multi-try exploration (pass@128), though the method outperforms baselines across a wide 50-fold range of weights.

Summary updated

Abstract

In this paper, we propose the mean order-statistic profile, a policy-level representation for characterizing rollout diversity in large language models. The profile is a vocabulary-sized vector obtained by sorting each next-token distribution over the vocabulary and averaging across token positions by rank. Its entries are non-increasing with rank: slower decay indicates many likely token choices, suggesting more diverse continuations, whereas faster decay indicates fewer alternatives. Based on this representation, we develop Mean Order-Statistic Alignment (MOSA) to preserve the fine-tuned model’s exploration ability, by minimizing the KL divergence between its profile and that of the base model. For efficiency, we approximate each profile using the top-N probabilities and a residual tail bucket, yielding an implementation with minimal computational overhead. Experiments on Countdown, 6 mathematical reasoning benchmarks, and 2 coding benchmarks show that MOSA discovers more diverse plausible solutions, improves both pass@1 and pass@K, and scales to models with up to 32B parameters.
BibTeX
@inproceedings{peng2026preserving,
  author = {Ruotian Peng and Yi Ren and Long-Fei Li and Yandong Wen},
  title = {{Preserving Exploration for LLM Reasoning via Mean Order-Statistic Alignment}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=G3nrmCAXwT},
}
Figure