Skip to content

The Entropy Mechanism of Reinforcement Learning for Reasoning Language Models

optionalcorefrontierpaperrubric 12/122025 · ~45 min

Ganqu Cui, Yuchen Zhang, Jiacheng Chen, … Ning Ding

Status

TL;DR. Without an entropy intervention, RL on reasoning models spends its policy entropy quickly and then stalls. Across 11 base models, validation performance follows R=−a eH+bR=-a\,e^{H}+b, so the final score can be predicted early. The paper shows that one step of policy gradient changes entropy by minus the covariance between a token’s log-probability and its advantage. Because a tiny fraction of tokens has very high covariance, clipping or KL-penalizing just those tokens (Clip-Cov, KL-Cov) keeps entropy up and improves results, by +6.4 points on average for Qwen2.5-32B.

Why it matters now. “Entropy collapse” is the symptom behind several fixes you will meet in RLVR, including DAPO’s clip-higher. This paper gives the first clean answer to why entropy falls and which tokens cause it. For a researcher training search agents, it gives a diagnostic you can log (covariance per token) and a cheap, targeted control, instead of a global entropy bonus that is hard to tune.

The paper trains 11 base models (Qwen2.5 0.5B–32B, Mistral, LLaMA, DeepSeek-Math) with GRPO, REINFORCE++ and PRIME on math and code, with no KL and no entropy bonus. In every run, entropy drops fast: 73% of the entropy and 76% of the performance gain are used in the first 200 of 2,400 gradient steps. Plotting validation performance against entropy gives a curve with two fitted numbers:

R=−a eH+b,dRdH=−a eH,R∣H=0=b−a.R = -a\,e^{H} + b, \qquad \frac{dR}{dH} = -a\,e^{H}, \qquad R\big|_{H=0} = b-a .

Training moves left along this curve, buying reward with entropy. When entropy reaches 0, the predicted ceiling is b−ab-a. Fitting a,ba,b on the first 36 steps predicts the next 200 with RMSE 0.9% (math) and 1.2% (code). The coefficients do not depend on the RL algorithm, but they do depend on the model and data, and they are log-linear in model size within Qwen2.5.

For a softmax policy with logits zz, the entropy change after one update is, to first order (Lemma 1):

ΔH≈−Cov⁡a∼π(log⁡π(a), Δza).\Delta H \approx -\operatorname{Cov}_{a\sim\pi}\big(\log\pi(a),\ \Delta z_a\big).

What sets Δz\Delta z is the algorithm. With vanilla policy gradient, Δza=η π(a)A(a)\Delta z_a=\eta\,\pi(a)A(a) (Theorem 1); with natural policy gradient, Δza=ηA(a)\Delta z_a=\eta A(a) (Theorem 2):

ΔHPG≈−η Cov⁡(log⁡π, π⋅A),ΔHNPG≈−η Cov⁡(log⁡π, A).\Delta H_{\text{PG}} \approx -\eta\,\operatorname{Cov}\big(\log\pi,\ \pi\cdot A\big),\qquad \Delta H_{\text{NPG}} \approx -\eta\,\operatorname{Cov}\big(\log\pi,\ A\big).

In words: rewarding a token the model already likes, or punishing a token it already dislikes, lowers entropy. Rewarding a rare token or punishing a likely one raises it. In RLVR the policy mostly samples likely tokens, and the ones in correct answers get positive advantage, so the covariance stays positive and entropy keeps falling. The paper measures this: −ΔH-\Delta H and the covariance follow nearly the same curve during GRPO training, and easier prompts (higher group accuracy) have higher covariance.

Worked example. Take three tokens with π=[0.7,0.2,0.1]\pi=[0.7,0.2,0.1], so log⁡π≈[−0.36,−1.61,−2.30]\log\pi\approx[-0.36,-1.61,-2.30] and H≈0.80H\approx0.80.

Advantages AACov⁡(log⁡π,A)\operatorname{Cov}(\log\pi, A)ΔH\Delta H (NPG)Reading
[1, −0.5, −0.5][1,\,-0.5,\,-0.5]+0.47+0.47≈−0.47 η\approx -0.47\,\etasharpening on the favorite
[−0.5, −0.5, 1][-0.5,\,-0.5,\,1]−0.23-0.23≈+0.23 η\approx +0.23\,\etarewarding a rare token

A finite-difference check (update the logits by ηA\eta A and recompute HH) gives the same numbers. Adding a constant to every advantage leaves the covariance unchanged, so only which tokens get the high advantages matters, not the baseline.

The paper first tries the usual tools. An entropy bonus is very sensitive: coefficients of 0.0001 and 0.001 do little, 0.01 makes entropy explode, and 0.005 holds entropy steady but does not beat the baseline. A reference-KL penalty keeps entropy up but lowers performance.

Instead, it looks at the per-token covariance term in a batch of NN tokens:

Cov⁡(yi)=(log⁡πθ(yi)−1N∑jlog⁡πθ(yj))⋅(A(yi)−1N∑jA(yj)).\operatorname{Cov}(y_i) = \Big(\log\pi_\theta(y_i)-\tfrac1N\textstyle\sum_j\log\pi_\theta(y_j)\Big)\cdot\Big(A(y_i)-\tfrac1N\textstyle\sum_j A(y_j)\Big).

This is heavy-tailed. At step 1 on Qwen2.5-7B, the top 0.02% of tokens have mean covariance 5.65, the top 2% have 1.39, and the average over all tokens is 0.003. Two methods act only on that tail:

  • Clip-Cov. Among tokens with covariance in [1,5][1,5] (hundreds of times the mean), pick a random fraction r=2×10−4r=2\times10^{-4} of the batch and detach their gradient.
  • KL-Cov. Add β ∣log⁡πθ−log⁡πold∣\beta\,\lvert\log\pi_\theta-\log\pi_{\text{old}}\rvert (with β=1\beta=1) for the top kk fraction of tokens by covariance: k=2×10−3k=2\times10^{-3} for 7B and 2×10−42\times10^{-4} for 32B.

Clip-Cov targets 0.02% of batch tokens. KL-Cov targets 0.2% at 7B and 0.02% at 32B. Raising rr, kk or β\beta raises the entropy level, so entropy becomes a tunable quantity. KL-Cov is the more stable of the two.

Entropy collapse: the fitted performance–entropy curve and the covariance rule for entropy change Left: validation performance R plotted against policy entropy H with the fitted curve R equals minus a times e to the H plus b. Training moves from high entropy on the right to low entropy on the left; performance rises and flattens, reaching a predicted ceiling of b minus a when entropy reaches zero. Most of the entropy is spent early: 73 percent in the first 200 of 2,400 steps. Right: a two-by-two grid of token log-probability against advantage. A likely token with positive advantage or an unlikely token with negative advantage has positive covariance and lowers entropy (sharpening). An unlikely token with positive advantage or a likely token with negative advantage has negative covariance and raises entropy. A small number of tokens have very high covariance (the top 0.02 percent average 5.65, against 0.003 for all tokens). Clip-Cov removes a random fraction of these from the gradient, and KL-Cov puts a KL penalty on the top fraction, touching only 0.02 percent of tokens (Clip-Cov) or 0.2 percent at 7B and 0.02 percent at 32B (KL-Cov). Entropy is spent for reward, mostly by a few high-covariance tokens entropy H performance R ceiling at H = 0: b − a R = −a·exp(H) + b fitted per model and data training 73% of entropy spent in the first 200 of 2,400 steps ΔH ≈ −η · Cov(log π, A) natural policy gradient; PG weights A by π rare, A > 0H rises likely, A > 0H falls rare, A < 0H falls likely, A < 0H rises log π (token probability) → A > 0 A < 0 Clip-Cov / KL-Cov act on the tailtop 0.02%: mean cov 5.65 vs 0.003 overalltouch 0.02% (KL-Cov 7B: 0.2%) of tokens
Original sketch. Left: the fitted performance-entropy curve that training moves along. Right: the sign of entropy change for each pairing of token probability and advantage, and the small high-covariance tail that Clip-Cov and KL-Cov target.
  • Setup (§4). Qwen2.5-7B and 32B base models trained on DAPO-Math data with 256 prompts × 8 samples, temperature 1, 8 policy updates per rollout, groups that are all right or all wrong filtered out, and up to 8,192 generated tokens. AIME and AMC are scored as avg@32 at temperature 0.6; the other benchmarks use greedy decoding.

  • Main table (Table 2, single runs). Average over seven math benchmarks:

    ModelGRPOClip-higherClip-CovKL-Cov
    Qwen2.5-7B38.638.840.440.6
    Qwen2.5-32B45.847.250.352.2

    At 32B, KL-Cov raises AIME24 from 21.8 to 36.8 and AIME25 from 16.2 to 30.8. Clip-higher reaches 35.6 on AIME24 but drops MATH-500 from 84.2 to 77.2.

  • Dynamics. KL-Cov keeps entropy more than 10× above GRPO’s plateau, and responses grow longer. Clip-higher raises entropy early, then becomes unstable. The tokens it lets through have slightly negative average covariance (about −0.03), so it does push entropy up, but less selectively.

  • Scale. The paper reads the larger 32B gain as a sign that bigger models have more unused potential that entropy collapse hides.

  • The law is empirical. §2.6 notes it does not hold the same way for every policy or for off-policy data, and the summary in §2 even writes it in a second form, −a eH+b-a\,e^{H+b}, which is a typo for the fitted equation. Treat the predicted ceiling as specific to a model, dataset and recipe.
  • Table 2 has one run per cell and no seeds, and the methods produce longer answers, so token budget is not matched. Without repeated seeds, gains of 1–2 points at 7B are not enough to establish a robust advantage.
  • What is the right entropy level? The paper can set entropy but finds no clear relation between entropy and final score.
  • Token entropy is not strategy diversity. A policy can keep high per-token entropy by varying wording while still using one solution plan. Coverage measures such as pass@k at large k are the more direct check (see RL boundary).
  • The theory is first-order and assumes a tabular softmax; with PPO-style clipping and many updates per rollout, it is a guide rather than an exact prediction.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    A softmax policy over three tokens has probabilities [0.7, 0.2, 0.1]. Under natural policy gradient the entropy change is about −η·Cov(log π, A), with the covariance taken under π. Compute the covariance and the sign of the entropy change when the advantages are [1, −0.5, −0.5], and again when they are [−0.5, −0.5, 1]. Which case is "sharpening" and which is "exploring"?

    What a strong answer covers
    • log π ≈ [−0.357, −1.609, −2.303], with π-weighted mean ≈ −0.802. Case 1: mean advantage 0.55, covariance ≈ 0.47, so entropy falls by about 0.47·η.
    • Case 2: mean advantage −0.35, covariance ≈ −0.23, so entropy rises by about 0.23·η.
    • A finite-difference check with logits z + η·A matches both numbers, so the first-order formula is accurate for small η.
    • Case 1 rewards the already-likely token (sharpening). Case 2 rewards a rare token (exploring). Shifting all advantages by a constant does not change the covariance, so only the pairing of probability and advantage matters.
  2. Derive / compute

    The paper fits validation performance to entropy as R = −a·exp(H) + b. Derive the predicted ceiling, the marginal gain dR/dH, and explain why fitting only the first 15% of training steps can predict the final score. What does this imply about how much later training is worth without an entropy intervention?

    What a strong answer covers
    • At H = 0 the prediction is R = b − a, the ceiling once entropy is exhausted.
    • dR/dH = −a·exp(H): each unit of entropy spent buys a gain of about a·exp(H), which is largest at high entropy and smallest near 0.
    • Because R is a fixed function of H, observing the early part of the curve fixes a and b; the rest of training only moves along it. The paper fits 36 steps and predicts the next 200 with RMSE 0.9% (math) and 1.2% (code).
    • 73% of the entropy and 76% of the gain are spent in the first 200 of 2,400 steps, so most later steps give marginal returns unless entropy is managed.
  3. Mechanism

    Explain why a standard entropy bonus or a reference-KL penalty is a poor tool for preventing entropy collapse according to this paper, and why acting on only a tiny fraction of tokens (0.02% for Clip-Cov; 0.2% at 7B and 0.02% at 32B for KL-Cov) can work better.

    What a strong answer covers
    • An entropy bonus acts on every token. In §4.1 small coefficients (0.0001, 0.001) barely change entropy, 0.01 makes it explode, and 0.005 holds entropy but does not beat the baseline: the knob is very sensitive.
    • Reference KL keeps entropy up by pulling the whole policy toward the start, which also undoes useful learning; performance degrades.
    • The covariance is heavy-tailed: at step 1 on Qwen2.5-7B the top 0.02% of tokens have mean covariance 5.65 versus 0.003 overall (Table 1), so a tiny set of tokens drives most entropy loss.
    • Clip-Cov detaches the gradient of a random fraction (2e-4) of tokens with covariance between 1 and 5; KL-Cov adds a KL term on the top 2e-3 (7B) or 2e-4 (32B). Both leave the rest of the update alone.
  4. What if…

    Table 2 reports single runs on 7B and 32B Qwen2.5 for GRPO, clip-higher, Clip-Cov and KL-Cov. KL-Cov gains +2.0 average at 7B but +6.4 at 32B. Read the per-benchmark numbers and say what they do and do not support. What controls are missing?

    What a strong answer covers
    • 32B: GRPO averages 45.8, KL-Cov 52.2; AIME24 21.8 to 36.8 and AIME25 16.2 to 30.8. 7B: 38.6 to 40.6, with smaller and mixed per-benchmark changes.
    • Clip-higher already reaches 35.6 on AIME24 at 32B but drops MATH-500 from 84.2 to 77.2, which fits the paper's report that it becomes unstable later.
    • AIME has 30 problems per year, so a few problems move scores by over 10 points; one run per cell and no seeds means differences of 1–2 points on average are not reliable.
    • Missing: several seeds, matched generated tokens (KL-Cov responses get longer), a tuned entropy-bonus baseline with the same entropy level, and pass@k to show whether the method extends coverage or only pass@1.
  5. Critique

    The paper suggests the ceiling found by Yue et al. (base models beat RL models at large pass@k) is caused by entropy collapse rather than by RL itself. How strong is this argument, and what experiment would test it directly?

    What a strong answer covers
    • Supporting evidence: the fitted law predicts a ceiling when entropy reaches 0, and keeping entropy higher raised scores in Table 2.
    • But the law is empirical and not universal: §2.6 notes other policies and off-policy data show different patterns, and the paper finds no clear link between entropy level and final performance.
    • Entropy is per-token uncertainty; coverage at large k depends on whether whole solution strategies stay reachable, which token entropy measures only indirectly.
    • Direct test: train with and without KL-Cov at matched compute and plot pass@k up to large k against the base model; if the crossover disappears or moves right, the entropy explanation gains support.
  6. Design

    You RL-train a search agent and see query diversity collapse: after 100 steps, every rollout in a group issues nearly the same first query. Using this paper's covariance view, design an intervention and the measurements that would show it works.

    What a strong answer covers
    • Log per-token covariance between log-probability and advantage, separately for query tokens and answer tokens; expect high covariance on the first query tokens that the policy already favors and that get rewarded.
    • Apply KL-Cov (or Clip-Cov) only to the top fraction of query tokens by covariance, leaving answer tokens free to sharpen.
    • Measure distinct queries per group, retrieved-document overlap between rollouts, pass@1 and pass@k, at matched search calls.
    • Check that higher entropy brings useful diversity (different documents, different strategies) rather than paraphrases of the same query.

Done with this page?

Status