One-shot Entropy Minimization

Zitian Gao, Lynx Chen, Haoming Luo, Joey Zhou, Bryan Dai

TL;DR

Post-training large language models (LLMs) typically requires complex reinforcement learning (RL) pipelines with thousands of labeled examples and meticulously designed reward functions. This paper introduces One-shot Entropy Minimization (EM), showing that training an LLM on just a single unlabeled prompt for 10 steps can match or exceed the performance of traditional RL on complex reasoning tasks. It achieves this by acting as a distribution-shaping tool that compresses the model's confidence around its inherent, correct reasoning paths.

What Problem Does This Paper Address?

While state-of-the-art models like DeepSeek-R1 and OpenAI's o-series demonstrate remarkable reasoning capabilities via post-training Reinforcement Learning, implementing RL is notoriously difficult. It demands massive amounts of high-quality ground-truth data and carefully engineered reward functions to prevent "reward hacking."

The authors investigate whether an LLM's latent reasoning potential can be unlocked entirely without external supervision, rewards, or large datasets. They tackle this by revisiting Entropy Minimization (EM)—an unsupervised approach—and exploring its limits in ultra-data-scarce (one-shot) scenarios.

Methods

The authors propose a simple, fully differentiable, closed-form objective called One-shot Entropy Minimization:

  1. Entropy Minimization Algorithm: The core objective minimizes token-level conditional entropy during generation. Crucially, it only penalizes the generated tokens (not the prompt tokens), encouraging the model to become highly confident in its own sequential predictions.
  2. Variance-Based Data Selection: Since not all prompts provide useful gradients, the authors sample multiple responses per prompt from an unlabeled pool and calculate the variance of the pass@k accuracy. They select a single prompt with the highest behavioral variance—meaning a problem that sits right on the cusp of the model's current capability (neither too easy nor impossible).
  3. Ultra-Minimal Training: The model is trained on this single selected prompt for only 10 steps using a standard constant learning rate ($2 \times 10^{-5}$) and a moderate generation temperature (0.5).

Datasets

  • Training Pool: Prompts are drawn unlabeled from the NuminaMath dataset.
  • Evaluation Benchmarks: The method is evaluated across diverse math, logic, and coding benchmarks, including MATH500, Minerva Math, OlympiadBench, AMC23, LogiQA/KK (logic), and MBPP (coding).

Key Insights and Ideas

  • Distribution Shaping vs. Learning: One-shot EM does not inject new knowledge into the model. Instead, it acts as a "confidence compression" mechanism, pruning redundant or hesitant token pathways and forcing the model to commit to its top latent trajectories.
  • The Logits Shift Phenomenon: EM and RL drive model behavior in fundamentally opposite directions. EM induces a rightward logits shift (increasing skewness), which amplifies the probability of already high-confidence tokens. Conversely, RL suppresses high-probability tokens that fail to align with ground truth, causing a leftward shift.
Figure 1: Distribution plot of the flattened logits sampled from 20 sample data points for each of the four models: Base, EM, RL, and RL after EM.
  • The "Overconfidence" Trap: Training beyond 10 steps causes a fascinating decoupling: the training loss continues to decrease, but reasoning performance sharply declines. The authors term this overconfidence, where the model excessively amplifies its internal biases and collapses its output distribution.
Figure 2: The left y-axis represents the EM training loss, while the right y-axis shows the average score across four reasoning benchmarks. It can be observed that the training loss converges rapidly, whereas the average score peaks around step 10 and then begins to decline. The results in the figure are obtained by repeating the experiments with the same training hyper-parameters using 16 different seeds to reduce randomness.
  • Opposite Temperature Trends: Because EM heavily concentrates probability mass on top tokens, EM-trained models perform exceptionally well with lower evaluation temperatures (e.g., greedy decoding). This directly contrasts with RL-trained models, which typically require higher temperatures to explore alternative paths.
Figure 4: The impact of generation temperature during evalutating on the average performance of the trained model across four reasoning datasets. The results in the figure are obtained by repeating the experiments with the same training hyper-parameters using 16 different seeds to reduce randomness.

Key Results

When applied to the Qwen2.5-Math-7B base model, 1-shot EM achieved an astonishing average performance gain of 24.7 percentage points across math benchmarks, effectively rivaling full RL frameworks trained on thousands of examples:

  • MATH500: Jumped from 53.0% to 78.8% (+25.8)
  • Minerva Math: Rose from 11.0% to 35.3% (+24.3)
  • AMC23: Soared from 44.1% to 70.3% (+26.2)

The 10-step, 1-shot EM approach closely matched or outperformed RLVR (Reinforcement Learning Vitality Restoration) baselines that ran for 1,000 steps. However, the authors note that EM's success is bounded by the base model's intrinsic capacity; it provided massive boosts to capable models like Qwen2.5-7B but yielded negligible improvements on weaker bases like LLaMA-3.1-8B.

Limitations and Future Work

  • High Training Stochasticity: EM training exhibits significant variance depending on the random seed. Identical configurations can result in final benchmark scores differing by up to a factor of two.
  • Risk of Distribution Collapse: Due to the overconfidence effect, the training window is incredibly narrow (exactly ~10 steps). Future work must develop robust early-stopping criteria or adaptive scheduling mechanisms to stabilize training.
  • Task Granularity: The current setup operates purely at the token level. The authors suggest exploring structured entropy minimization over entire semantic units or full sentence sequences to better capture high-level reasoning uncertainty.

Summary updated

BibTeX
@misc{gao2025one,
  author = {Zitian Gao and Lynx Chen and Haoming Luo and Joey Zhou and Bryan Dai},
  title = {{One-shot Entropy Minimization}},
  year = {2025},
  eprint = {2505.20282},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.20282},
}
Figure