CreditFilter: Calibrated Token Weights over the Within-Response Entropy Rank for RLVR
Organizations: Nanyang Technological University · Amazon AGI
Abstract
Critic-free reinforcement learning with verifiable rewards (RLVR) typically assigns a uniform advantage to every token. Token-reweighting heuristics like the 80/20 mask favor high-entropy tokens, but fail to measure a token's actual impact on the outcome. We formalize this impact as the forking value: the variance of the success probability over the policy's next-token choices. The expected forking values along a response sum exactly to the reward variance. Token credit is thus, in expectation over a prompt's responses, a fixed budget spent at the forks. This motivates weights that redistribute credit within a response. The forking value factorizes into a fork consequence, which requires costly continuations to estimate, and a fork probability, which the softmax provides. On Qwen3-8B-Base, this fork probability decays exponentially with a token's within-response entropy rank at class-specific rates, revealing that most tokens carry negligible forking value. CreditFilter weights each token by an exponential window over the same rank. The window is calibrated to this fork-probability envelope, under an approximately flat fork consequence. CreditFilter needs no extra forward passes and is stabilized by difficulty damping and an entropy-gated fallback. Averaged over three seeds, it outperforms DAPO by 7.7 points on MATH500 and by 10.5 and 9.1 points on AIME24 and AIME25. Its dynamically adaptive variant matches it. The ablations show that both parts matter: ranking tokens within each response rather than across the batch, and matching the window's decay rate to the envelope. Code is available at https://github.com/yoctta/CreditFilter.
Figures & tables
| MATH500 | AIME24 | AIME25 | unanswered (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Run | late | 400 | late | 400 | late | 400 | M500 | A24 | A25 |
| CreditFilter | 0.876 | 0.882 | 0.338 | 0.352 | 0.277 | 0.283 | 0.3 | 4.0 | 0.8 |
| CreditFilter-D | 0.887 | 0.889 | 0.367 | 0.372 | 0.268 | 0.276 | 0.7 | 5.0 | 1.9 |
| GRPO | 0.833 | 0.848 | 0.263 | 0.281 | 0.184 | 0.173 | 1.0 | 2.4 | 4.5 |
| DAPO | 0.830 | 0.837 | 0.244 | 0.259 | 0.177 | 0.195 | 0.9 | 4.6 | 1.5 |
| 80/20 mask | 0.827 | 0.817 | 0.302 | 0.294 | 0.236 | 0.227 | 3.4 | 10.9 | 7.3 |
| Run | MATH500 | AIME24 | AIME25 |
|---|---|---|---|
| CreditFilter | |||
| DAPO |
| MATH500 | AIME24 | AIME25 | unanswered (%) | |||||||||
| Run | late | 400 | late | 400 | late | 400 | M500 | A24 | A25 | |||
| CreditFilter | 0.876 | 0.882 | 0.338 | 0.352 | 0.277 | 0.283 | 0.3 | 4.0 | 0.8 | |||
| DAPO | 0.830 | 0.837 | 0.244 | 0.259 | 0.177 | 0.195 | 0.9 | 4.6 | 1.5 | |||
| 80/20 rule, batch cut | 0.741 | 0.731 | 0.193 | 0.177 | 0.149 | 0.144 | 5.8 | 6.6 | 5.6 | |||
| Window shape | ||||||||||||
| top 20% window | 0.854 | 2.2 | 0.858 | 0.380 | +4.2 | 0.400 | 0.280 | +0.3 | 0.274 | 3.3 | 10.2 | 13.4 |
Appendix figures & tables25 assets
Supplementary material from the paper’s appendix.
Appendix
| symbol or term | meaning |
|---|---|
| , , | verifier outcome of response , its group-normalized advantage, and the advantage rescaled by the coefficient |
| , | class of a response, its verifier outcome (correct or wrong), which selects the width; sign of its advantage, which selects the floor and the damping |
| , | entropy and fork probability of token , from the same softmax |
| , (midpoint rank) | entropy rank of a token within its response, (near ) at the highest entropy; the window uses , the width fits use the midpoint rank (Appendix D ) |
| , | the kernel of a token, with the width (rank interval over which the weight halves) and the floor; is the kernel of a class |
| class mass, the mean of the kernel over the rank (Proposition 7 ) |
| Model | Qwen3-8B-Base with its official tokenizer and ChatML chat template |
|---|---|
| Prompts | DAPO-17k ( BytedTsinghua-SIA, 2025 ) , boxed-answer variant (17,917 problems); prompts of at most 1,024 tokens; data seed 201 (300 and 400 in Appendix F.2 ) |
| Batch | 128 prompts 16 rollouts per step; mini-batch 32 prompts, i.e. four optimizer updates per step |
| Schedule | 400 steps; checkpoint every 25 steps |
| Optimizer | AdamW, learning rate constant (no warm-up), , weight decay , gradient clipping at norm , one optimizer pass per mini-batch; no KL loss and no entropy bonus; token-mean loss aggregation |
| Coefficient | the window coefficient is computed under no gradient from the rollout entropies, the verifier outcomes, the sign of each response’s advantage and the pass rate of its group; it multiplies the advantage, which is itself a constant of the update |
| Rollouts | vLLM, temperature 1.0, top- 1.0, no top- ; at most 20,480 response tokens |
| Run | Kernel | Rank | Fallback | Damp. | Clip | |||
|---|---|---|---|---|---|---|---|---|
| CreditFilter | exp | resp. | 0.10/0.14 | 0.1/0 | 1.5/3.0 | 1/0 | 0.27 | 0.196/0.200 |
| CreditFilter-D † | exp, dyn. | resp. | 0.111/0.155 | 0/0 | 1.5/3.0 | 1/0 | 0.27 | rescaled each step |
| DAPO | none | — | — | — | off | 0/0 | 0.28 | 1/1 |
| GRPO | none | — | — | — | off | 0/0 | 0.20 | 1/1 |
| top 20% window | hard | resp. | — | 0/0 | 1.5/3.0 | 1/0 | 0.27 | 0.200/0.200 |
| wide window | exp | resp. | 0.20/0.28 | 0.1/0 | 1.5/3.0 | 1/0 | 0.27 | / |
| Method | Token weight | Rank | Host | Clip | Settings |
|---|---|---|---|---|---|
| 80/20 mask | hard | batch | DAPO | 0.28 | released training script: top-20% of each micro-batch of 32 responses at every update, by the entropy under the current policy; loss averaged over the kept tokens; 10 warm-up steps, weight decay , dual-clip constant ; training grader also accepts mathematically equivalent answers |
| STARE | surprisal quantiles | batch | DAPO | 0.28 | O1 variant, , , , (STARE’s symbols) |
| SC-GRPO | self-conditioned KL | — | GRPO | 0.20 | , , |
| Run | mean | fully on (%) | uniform (%) |
|---|---|---|---|
| CreditFilter | 0.84 | 64 | 8 |
| CreditFilter-D | 0.69 | 30 | 10 |
| top 20% window | 0.84 | 57 | 0 |
| wide window (0.20/0.28) | 0.65 | 37 | 9 |
| random rank | 0.60 | 42 | 8 |
| reversed rank | 1.00 | 100 | 0 |
| Source | Part | Where |
|---|---|---|
| Derived | The target of a sign-preserving token weight is the value-weighted forking spectrum; it reduces to the forking spectrum, and to the fork-probability envelope, under the stated conditions | Propositions 3 and 4 , Corollary 6 |
| Measured | The fork-probability envelope over the within-response rank: exponential, with widths and on the base model (the runs use and , the rounded widths of a subset of the responses; Section 3.1 ); the fork consequence over the rank | Section 5.1 , Tables 11 and 15 |
| Chosen | The within-response rank and the exponential form of the window, from three requirements that do not use the measurement; the class-mass floor, the damping and the fallback | This subsection; ablated in Table 3 |
| Approximated | Assumption 2 ; the fork consequence taken as flat over the rank (condition K); the value factor left out of the window | Appendices E.5 , E.4 and E.6 |
| correct | wrong | ||||
|---|---|---|---|---|---|
| step | capped (%) | ||||
| 50 | 431 | 0.060 [0.057, 0.065] | 440 | 0.126 [0.112, 0.142] | 3 |
| 100 | 302 | 0.100 [0.090, 0.108] | 578 | 0.218 [0.208, 0.229] | 2 |
| 150 | 388 | 0.104 [0.091, 0.114] | 473 | 0.243 [0.230, 0.256] | 4 |
| 200 | 391 | 0.099 [0.087, 0.112] | 498 | 0.223 [0.210, 0.236] | 1 |
| 250 | 400 | 0.076 [0.059, 0.088] | 493 | 0.346 [0.320, 0.372] | 0 |
| correct | wrong | |
| responses / positions | 294 / 7056 | 672 / 16128 |
| envelope width | 0.111 [0.099, 0.123] | 0.155 [0.146, 0.165] |
| forking-value width | 0.125 [0.063, 0.207] | 0.146 [0.086, 0.332] |
| top-band forking value | 3.93 [2.64, 5.24] | 1.07 [0.55, 1.52] |
| consequence (bands 2–10) | 2.12 [1.21, 3.13] | 0.70 [0.43, 0.98] |
| relative slope of (bands 2–10) | [ , 1.1] | 0.3 [ , 4.6] |
| class | treatment | positions | top-band gain | head-to-tail | |||
|---|---|---|---|---|---|---|---|
| correct | all positions (paper) | 7056 | 0.111 [0.098, 0.124] | 0.125 [0.069, 0.221] | 2.12 [1.21, 3.13] | 2.9 [1.7, 5.6] | 0.67 [0.24, 3.55] |
| correct | no truncated continuation | 4577 | 0.109 [0.095, 0.121] | 0.087 [0.061, 0.240] | 3.15 [1.91, 4.49] | 2.1 [1.2, 3.6] | 0.69 [0.29, 2.81] |
| correct | truncated graded 1 | 7056 | 0.111 [0.098, 0.124] | 0.136 [0.080, 0.226] | 2.21 [1.27, 3.21] | 2.8 [1.6, 5.0] | 0.70 [0.29, 3.53] |
| wrong | all positions (paper) | 16128 | 0.155 [0.146, 0.165] | 0.146 [0.093, 0.344] | 0.70 [0.46, 0.96] | 2.4 [1.3, 3.9] | 1.15 [0.42, 6.63] |
| wrong | no truncated continuation | 8443 | 0.150 [0.141, 0.161] | 0.110 [0.074, 0.823] | 0.66 [0.29, 1.08] | 3.4 [1.5, 7.7] | 1.05 [0.28, 10.84] |
| wrong | truncated graded 1 | 16128 | 0.155 [0.146, 0.165] | 0.164 [0.089, 0.665] | 0.51 [0.22, 0.79] | 3.0 [1.3, 6.8] | 1.20 [0.26, 12.70] |
| band | |||||
|---|---|---|---|---|---|
| correct responses | |||||
| 0–0.025 | 904 | 3.93 [2.64, 5.24] | 0.637 [0.630, 0.643] | 2.49 [2.35, 2.62] | 6.17 [4.14, 8.12] |
| 0.025–0.05 | 886 | 0.96 [ 0.08, 1.96] | 0.579 [0.570, 0.589] | 1.81 [1.70, 1.92] | 1.66 [ 0.18, 3.58] |
| 0.05–0.075 | 875 | 0.93 [0.00, 1.81] | 0.530 [0.517, 0.542] | 1.51 [1.40, 1.62] | 1.75 [ 0.01, 3.49] |
| 0.075–0.1 | 580 | 1.39 [0.09, 2.68] | 0.469 [0.452, 0.488] | 1.28 [1.18, 1.38] | 2.96 [0.60, 5.39] |
| 0.1–0.15 | 582 | 0.88 [ 0.03, 2.05] | 0.398 [0.376, 0.419] | 1.05 [0.95, 1.15] | 2.21 [ 0.36, 4.98] |
| model | [95% CI] | ( ): | ||
|---|---|---|---|---|
| Qwen3-1.7B | 120 | 0.119 [0.047, 1.057] | 0.071 | 0.65 / 0.44 / 0.03 |
| Qwen3-4B | 120 | – [0.062, ] | 0.086 | 0.37 / 0.26 / 0.02 |
| Qwen3-14B-Base | 120 | 0.255 [0.072, 0.913] | 0.108 | 0.79 / 0.04 / 0.16 |
| Qwen3-32B | 60 | 0.307 [0.059, ] | 0.091 | 0.25 / 0.17 / 0.03 |
| Qwen3-8B (post-trained) | 120 | 0.218 [0.043, 1.499] | 0.084 | 0.31 / 0.34 / 0.01 |
| Qwen2.5-7B-Instruct | 120 | 0.130 [0.048, 1.225] | 0.081 | 0.41 / 0.12 / 0.02 |
| class | rank | cover | [95%] | [95%] | |||
|---|---|---|---|---|---|---|---|
| correct | 0–0.0025 | 460 | 0.64 | 0.869 | 8.21 [6.04, 10.86] | 9.45 [6.90, 12.61] | 11.45 |
| correct | 0.0025–0.005 | 392 | 0.72 | 0.832 | 3.05 [2.15, 4.15] | 3.67 [2.58, 4.99] | 4.15 |
| correct | 0.005–0.01 | 408 | 0.76 | 0.796 | 2.55 [1.73, 3.48] | 3.20 [2.17, 4.38] | 3.12 |
| correct | 0.01–0.015 | 408 | 0.80 | 0.763 | 1.68 [0.98, 2.49] | 2.20 [1.27, 3.28] | 2.40 |
| correct | 0.015–0.025 | 407 | 0.83 | 0.720 | 2.82 [1.26, 5.04] | 3.92 [1.78, 6.95] | 3.87 |
| correct | 0.025–0.0375 | 401 | 0.87 | 0.671 | 0.62 [0.26, 1.03] | 0.93 [0.38, 1.53] | 0.78 |
| weight profile | correct | wrong |
|---|---|---|
| uniform weights | 0.21 [0.12, 0.28] | 0.16 [0.10, 0.23] |
| top 20% window | 0.40 [0.23, 0.53] | 0.51 [0.31, 0.61] |
| top of the rank only | 0.35 [0.17, 0.52] | 0.31 [0.13, 0.48] |
| CreditFilter window (exponential with its floor) | 0.61 [0.44, 0.69] | 0.64 [0.44, 0.70] |
| wide window ( with its floor) | 0.57 [0.41, 0.65] | 0.48 [0.31, 0.58] |
| reversed rank (exponential in ) | 0.04 [0.02, 0.05] | 0.00 [0.00, 0.00] |
| Rank band | Coefficient | Implied part | Remainder | |
|---|---|---|---|---|
| Correct responses | ||||
| top 2.5% ∗ | 1,512 | 0.0091 [0.0041, 0.0140] | 0.0061 [0.0037, 0.0088] | 0.0030 [ 0.0014, 0.0072] |
| top 0.25% | 275 | 0.0398 [0.0259, 0.0534] | 0.0267 [0.0191, 0.0350] | 0.0131 [0.0029, 0.0231] |
| 0.25–2.5% | 1,237 | 0.0058 [ 0.0004, 0.0122] | 0.0035 [0.0001, 0.0073] | 0.0022 [ 0.0033, 0.0075] |
| 2.5–10% | 1,426 | 0.0006 [ 0.0037, 0.0054] | 0.0000 [ 0.0025, 0.0027] | 0.0006 [ 0.0028, 0.0040] |
| 10–30% | 1,162 | 0.0005 [ 0.0029, 0.0021] | 0.0004 [ 0.0016, 0.0008] | 0.0001 [ 0.0023, 0.0022] |
| MATH500 | AIME24 | AIME25 | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Run | tokens | unans. | at cap | tokens | unans. | at cap | tokens | unans. | at cap |
| CreditFilter | 6,346 | 0.3 | 3.6 | 9,797 | 4.0 | 3.5 | 9,188 | 0.8 | 3.3 |
| top 20% window | 8,467 | 3.3 | 15.4 | 12,109 | 10.2 | 4.0 | 11,250 | 13.4 | 3.5 |
| 80/20 rule, per-response cut | 6,228 | 5.7 | 13.3 | 10,972 | 25.5 | 4.8 | 9,699 | 20.8 | 4.6 |
| 80/20 rule, batch cut | 2,446 | 5.8 | 0.9 | 3,961 | 6.6 | 0.6 | 3,112 | 5.6 | 0.3 |
| 80/20 mask | 3,989 | 3.4 | 3.7 | 8,866 | 10.9 | 5.5 | 7,720 | 7.3 | 6.0 |
| Run | tokens ( ) | Run | tokens ( ) |
|---|---|---|---|
| CreditFilter | 6.04 | 80/20 mask | 5.21 |
| CreditFilter-D | 5.06 | SC-GRPO | 4.19 |
| GRPO | 3.90 | STARE | 1.72 |
| DAPO | 2.87 | top 20% window | 6.88 |
| Budget | CreditFilter | DAPO | GRPO |
|---|---|---|---|
| 4k | 0.779 / 0.168 / 0.176 | 0.827 / 0.242 / 0.179 | 0.806 / 0.208 / 0.168 |
| 8k | 0.867 / 0.286 / 0.258 | 0.828 / 0.243 / 0.179 | 0.832 / 0.253 / 0.193 |
| 12k | 0.875 / 0.326 / 0.274 | 0.828 / 0.243 / 0.179 | 0.832 / 0.255 / 0.194 |
| 20,480 | 0.876 / 0.334 / 0.277 | 0.828 / 0.243 / 0.179 | 0.832 / 0.255 / 0.194 |
| Run | Step | tokens ( ) | MATH500 | AIME24 | AIME25 |
|---|---|---|---|---|---|
| DAPO | 400 | 2.87 | 0.837 | 0.259 | 0.195 |
| 500 | 3.65 | 0.838 | 0.266 | 0.188 | |
| 525 | 3.82 | 0.840 | 0.259 | 0.201 | |
| 550 | 3.99 | 0.837 | 0.275 | 0.210 | |
| 575 | 4.18 | 0.829 | 0.256 | 0.204 | |
| 600 | 4.48 | 0.832 | 0.256 | 0.206 |
| Window | MATH500 | AIME24 | AIME25 | |
|---|---|---|---|---|
| accuracy | exponential | |||
| top 20% | ||||
| mean generated tokens | exponential | |||
| top 20% | ||||
| unanswered at the cap (%) | exponential | |||
| top 20% |
| Run | MATH500 | AIME24 | AIME25 |
|---|---|---|---|
| CreditFilter | 2,556 | 7,028 | 6,607 |
| DAPO | 905 | 1,969 | 1,549 |
| GRPO | 1,696 | 4,080 | 3,300 |
| Set | Run | seed 201 | seed 300 | seed 400 | mean s.d. |
|---|---|---|---|---|---|
| MATH500 | CreditFilter | 0.876 | 0.831 | 0.872 | |
| DAPO | 0.830 | 0.858 | 0.660 | ||
| top 20% window | 0.854 | 0.722 | 0.877 | ||
| CreditFilter DAPO | +0.046 | 0.027 | +0.212 | ||
| CreditFilter top 20% window | +0.022 | +0.110 | 0.004 | ||
| AIME24 | CreditFilter | 0.338 | 0.278 | 0.360 |
| Method | Forking proxy | Hard/soft | Fixed/adaptive | Fork measured? | Entropy control |
| Token reweighting | |||||
| 80/20 mask † ( Wang et al., 2025 ) | token entropy, batch top 20% | hard | fixed fraction | no | none |
| GTPO / GRPO-S ( Tan et al., 2026 ) | entropy share | soft | fixed rule | no | none |
| Cov.-aware GRPO ( Wang et al., 2026 ) | probability–advantage covariance | soft | data-dependent kernel | no | stable entropy (stated aim) |
| OAR-P ( Li et al., 2026 ) | counterfactual perturbation | soft | fixed rule | yes, per token (one forward pass per token) | none |
| OAR-G ( Li et al., 2026 ) | input-gradient saliency | soft | fixed rule | no | none |
| State | continuation | KL [95%] | KL correct / wrong | ||||
|---|---|---|---|---|---|---|---|
| step 250 (in band) | 1.90 | window kept | 0.284 | 22.1 [20.2, 24.0] | 22.5 | +0.017 | 5.4 / 28.4 |
| step 250 (in band) | 1.90 | uniform | 0.535 | 11.7 [10.7, 12.6] | 12.4 | +0.077 | 3.3 / 14.8 |
| step 275 (excursion onset) | 3.24 | window kept | 0.264 | 23.1 [21.3, 24.8] | 23.3 | 0.085 | 4.9 / 29.4 |
| step 275 (excursion onset) | 3.24 | uniform | 0.383 | 16.1 [14.8, 17.3] | 16.8 | 0.016 | 3.5 / 20.4 |
| step 275 (excursion onset) | 3.24 | fallback | 0.316 | 20.4 [18.7, 21.9] | 20.7 | +0.023 | 4.2 / 25.8 |
| step 300 (late excursion) | 3.25 | window kept | 0.232 | 152.9 [137.6, 167.9] | 148.2 | 0.102 | 22.5 / 188.7 |
Token-Level Credit Assignment
Token-level credit assignment allocates sequence-level rewards across the words, actions, or reasoning steps that shape a model’s outcome.
See all 62 papers