The Unreasonable Effectiveness of Entropy Minimization in LLM Reasoning

Shivam Agarwal, Zimin Zhang, Lifan Yuan, Jiawei Han, Hao Peng

TL;DR

This paper demonstrates that entropy minimization—forcing a large language model (LLM) to concentrate its probability mass on its most confident outputs—can substantially improve its reasoning capabilities in math, physics, and coding without using a single labeled example. By applying this simple objective through unsupervised finetuning, reinforcement learning, or inference-time logit adjustment, the authors show that pretrained models possess latent reasoning powers that can be unlocked entirely label-free.

What Problem Does This Paper Address?

Adapting pretrained LLMs for complex downstream tasks typically requires heavy supervision, either through Supervised Finetuning (SFT) on high-quality labeled data or Reinforcement Learning (RL) with human/automated feedback (e.g., GRPO, RLOO). However, gathering labeled data or building robust reward verifiers for complex domains like scientific coding or advanced mathematics is incredibly difficult and expensive.

The authors investigate a compelling alternative: Can we elicit strong reasoning capabilities from pretrained LLMs without any labeled data or external supervision? They exploit a fundamental intuition: modern LLMs undergo massive pretraining and annealing, meaning they are already quite capable. If a model is reasonably capable, it is more likely to be correct when it is confident. Entropy minimization (EM) acts as a mechanism to eliminate hesitation, forcing the model to commit to its most confident internal reasoning paths.

Methods

The authors systematically explore entropy minimization across three distinct stages of the LLM lifecycle:

  1. EM-FT (Direct Entropy Minimization through Token-Level Finetuning): This method mirrors standard SFT but operates on unlabeled outputs sampled directly from the model. It directly minimizes token-level entropy across the generated trajectories.
  2. EM-RL (Entropy Minimization with Negative Entropy Rewards): The model is trained using reinforcement learning policy gradients, where the only reward signal is the negative entropy of the generation. The authors explore both trajectory-level rewards (EM-RL-sequence) and token-level rewards (EM-RL-token).
  3. EM-INF (Inference-time Logit Optimization): A completely parameter-free approach. During decoding, the model's output logits are optimized via gradient descent at each step to minimize token-level entropy, bounded by a threshold ($\delta$) to prevent collapsing into pure greedy decoding. It requires no model parameter updates or training data.

The exact mathematical formulations and gradients for these approaches are detailed in the paper's overview:

Table 1: Comparing various entropy minimization estimates and their corresponding gradients. N denotes the number of trajectories. Min. denotes minimizing an objective and Max. maximizing.

Datasets

  • Training Data: The unsupervised training methods (EM-FT and EM-RL) utilized 35K unlabeled prompts sampled from NuminaMath and 25K prompts from the Eurus-2 coding split.
  • Evaluation Benchmarks:
  • Math: MATH-500, AMC, AIME 2024, Minerva Math, and OlympiadBench.
  • Coding: LeetCode, LiveCodeBench-v2, and SciCode (a challenging scientific coding benchmark).
  • Science: UGPhysics (specifically the Semiconductor Physics subset).
  • Alignment/Values: IndVal (Individualistic Value Reasoning), used to probe the limitations of the approach.

Key Insights and Ideas

  • Pretraining Priors are Underutilized: Pretrained models often already "know" how to solve complex problems, but their token distributions remain diffuse (uncertain). Minimizing entropy effectively "sharpens" the model's focus, capitalizing on latent knowledge.
  • Labels Aren't Mandatory for RL Success: Unsupervised RL using pure negative entropy can match or exceed the performance of models trained on 60K ground-truth labeled examples. This challenges the assumption that RL for reasoning strictly requires external verifiers (like code executors or math parsers).
  • Inference Optimization Beats Heavy Sampling: Instead of generating multiple diverse paths and using majority voting (Self-Consistency), optimizing the logits of a single path at inference time (EM-INF) yields superior results at a fraction of the computational cost.

Key Results

  • Competitive with Labeled Baselines: On Qwen-7B, unsupervised EM-RL achieved comparable or superior performance to strong RL baselines like GRPO and RLOO that were trained on 60K labeled examples, notably outperforming them on LeetCode, Minerva, and AMC.
Table 2: Performance comparison of unsupervised finetuning (EM-FT) and various rewarding methods in EM-RL with supervised finetuning and RL. Italics, Bold indicates performance improvement over GRPO and SC-RL (self-consistency RL), respectively. Dash line ("–") denotes that self-consistency is inapplicable. FLOPs are reported as 1017 (§D.4).
  • Outperforming Frontier Models on SciCode: At inference time, EM-INF enabled Qwen-2.5-32B-Instruct to achieve a 10.7% success rate on the main problems of the SciCode benchmark, outperforming proprietary giants like GPT-4o (9.2%), Claude 3 Opus (4.7%), and Gemini 1.5 Pro (7.7%).
Table 4: Performance comparison of inference time scaling with ADAPTIVE TEMP and EM-INF with API models and inference time scaling meth- ods on Scicode. Sub and main indicate subprob- lem and main problem mode in Scicode, whereas w/BG refer to with background knowledge in the prompts. Bold,Italics indicate the best and second best performance over all methods.
  • High Computational Efficiency: EM-INF achieved better accuracy on the AMC benchmark while being 3x more efficient than traditional inference-time scaling methods like self-consistency.
Figure 1: Computational efficiency of EM- INF compared to self-consistency with N = 4, 8, 16 on AMC.

Limitations and Future Work

  • Dependence on Base Model Capability: Entropy minimization hinges on the assumption that the model's confidence correlates with correctness. When tested on Llama-3.1-8B-Instruct—which had weaker initial math reasoning behaviors—EM was less effective and occasionally degraded performance.
  • Failure on Alignment Tasks: On the IndVal (value reasoning) dataset, EM provided no improvement. This is because alignment tasks require navigating pluralistic human values where pretraining confidence biases do not inherently map to the correct target behavior.
  • Future Directions: The authors suggest that future post-training and inference-time scaling algorithms should include standalone entropy minimization as a standard baseline to clearly separate true algorithmic innovation from the intrinsic capabilities already present in the base model.

Summary updated

Abstract

Entropy minimization (EM) trains the model to concentrate even more probability mass on its most confident outputs. We show that this simple objective alone, without any labeled data, can substantially improve large language models' (LLMs) performance on challenging math, physics, and coding tasks. We explore three approaches: (1) EM-FT minimizes token-level entropy similarly to instruction finetuning, but on unlabeled outputs drawn from the model; (2) EM-RL: reinforcement learning with negative entropy as the only reward to maximize; (3) EM-INF: inference-time logit adjustment to reduce entropy without any training data or parameter updates. On Qwen-7B, EM-RL, without any labeled data, achieves comparable or better performance than strong RL baselines such as GRPO and RLOO that are trained on 60K labeled examples. Furthermore, EM-INF enables Qwen-32B to match or exceed the performance of proprietary models like GPT-4o, Claude 3 Opus, and Gemini 1.5 Pro on the challenging SciCode benchmark, while being 3x more efficient than self-consistency and sequential refinement. Our findings reveal that many pretrained LLMs possess previously underappreciated reasoning capabilities that can be effectively elicited through entropy minimization alone, without any labeled data or even any parameter updates.
BibTeX
@inproceedings{agarwal2025unreasonable,
  author = {Shivam Agarwal and Zimin Zhang and Lifan Yuan and Jiawei Han and Hao Peng},
  title = {{The Unreasonable Effectiveness of Entropy Minimization in LLM Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=UfFTBEsLgI},
}
Figure