Papers
Topics
Authors
Recent
Search
2000 character limit reached

Tail-Likelihood Reinforcement Learning

Published 2 Sep 2026 in cs.LG and stat.ML | (2609.02987v1)

Abstract: Reinforcement learning typically optimizes average reward. For generative policies, the average can hide an important distinction: two policies can achieve the same mean reward while having very different chances of producing a rare but high-reward rollout. This matters as sampling increases during training and inference, since its benefit depends on retaining probability mass on high-reward outcomes. We propose to optimize this coverage directly. Rather than considering only expected reward, we consider all of its upper tails: for each reward threshold, how likely is the policy to exceed it? This turns a continuous reward into a family of binary success events. We introduce Tail-Likelihood Reinforcement Learning (TailRL), which maximizes the log-probability of exceeding a randomly chosen reward threshold. Its gradient gives more weight to rare, high-reward rollouts and can be interpreted as a mixture of Best-of-(k) gradients. TailRL requires only a simple modification to the advantage function, making it compatible with existing reinforcement learning pipelines. Across object localization, maze navigation, GUI grounding, and code optimization, TailRL leverages rare high-reward training samples to avoid suboptimal solutions and yields models that benefit more from additional samples at inference time.

Summary

  • The paper introduces a new reinforcement learning (RL) objective that utilizes tail probabilities and assigns more significant weight to rare, high-reward events, which results in maximizing rare high-reward outcomes.
  • TailRL differs from MaxRL and the standard expected-reward RL due to the use of logarithmic transformation, allowing RL to focus on enhancing high-quality, though relatively infrequent, outcomes during training and inference.
  • TailRL is supported by a harmonic decomposition where the utility of policy optimization is translated over multiple inference scales and dimensions, and by the results of experiments comparing best-O-policy optimization, GIOU, and Pass-k losses over the utility of traditional metrics such as MIo

Problem formulation and central claim

“Tail-Likelihood Reinforcement Learning” (2609.02987) addresses a limitation of expected-reward policy optimization for generative policies. Standard RL maximizes the mean reward, which is insufficient when deployment permits repeated sampling and selection. Two policies can have similar expected reward while differing substantially in the probability of producing rare, high-quality rollouts. The distinction is consequential for both training and inference: expected-reward optimization may concentrate probability mass around a reliable moderate-reward mode, reducing the availability of rare outcomes that would otherwise be discovered through Best-of-kk sampling.

The paper’s central claim is that continuous rewards should be treated not as a single scalar objective but as a continuum of binary events. For an input xx, rollout z∼πθ(⋅∣x)z \sim \pi_\theta(\cdot \mid x), and reward r(x,z)∈[0,1]r(x,z) \in [0,1], each threshold τ\tau defines a tail event,

pθ(x,τ)=Pr⁡z∼πθ(⋅∣x)[r(x,z)>τ].p_\theta(x,\tau) = \Pr_{z\sim\pi_\theta(\cdot\mid x)} \left[r(x,z)>\tau\right].

Expected reward is the area under this tail-probability curve:

JRL(θ;x)=∫01pθ(x,τ) dτ.J_{\mathrm{RL}}(\theta;x) = \int_0^1 p_\theta(x,\tau)\,d\tau.

TailRL instead maximizes the integral of the log tail probability,

JTailRL(θ;x)=∫01log⁡pθ(x,τ) dτ.J_{\mathrm{TailRL}}(\theta;x) = \int_0^1 \log p_\theta(x,\tau)\,d\tau.

Thus, expected-reward RL aggregates tail probabilities arithmetically, whereas TailRL aggregates them geometrically. The logarithm makes low-probability, high-reward events more influential, with the gradient weight 1/pθ(x,τ)1/p_\theta(x,\tau). The method therefore emphasizes thresholds that are difficult for the current policy to exceed.

Figure 1

Figure 1: Expected-reward optimization concentrates on the mean, whereas TailRL increases probability across the reward distribution and preserves a heavier high-reward tail.

This objective is not an entropy regularizer and does not directly impose diversity. Its mechanism is objective-level reweighting: rare reward levels receive larger marginal value because improving a small tail probability produces a larger change in its logarithm. The paper consequently makes a strong claim that expected-reward optimization can be actively counterproductive when rare high-reward behavior is attainable but underrepresented, rather than merely being inefficient in such settings.

Threshold decomposition and inference-time scaling

The threshold construction gives TailRL a direct interpretation in terms of repeated sampling. A rollout with reward rir_i clears every threshold below xx0. A group of rollouts therefore provides observations of the policy’s tail probabilities at all thresholds simultaneously.

Figure 2

Figure 2: Continuous reward is represented as a family of threshold events, allowing one rollout group to estimate tail probabilities across the reward range.

The paper proves that TailRL has an exact harmonic decomposition over Best-of-xx1 objectives. Let

xx2

Then, under the stated regularity conditions,

xx3

The corresponding objective identity is

xx4

up to the constant convention induced by rewards normalized to xx5. This result establishes that TailRL does not optimize a particular inference budget. Instead, it combines learning signals from all Best-of-xx6 budgets with harmonic weights. The implication is specific and important: a policy trained with TailRL is encouraged to improve its performance under repeated sampling at multiple inference scales, rather than being tuned to one selected value of xx7.

The binary-reward case recovers MaxRL exactly. If xx8, every nontrivial threshold corresponds to the same success event, so xx9 and

z∼πθ(⋅∣x)z \sim \pi_\theta(\cdot \mid x)0

Since Best-of-z∼πθ(⋅∣x)z \sim \pi_\theta(\cdot \mid x)1 reduces to Pass@z∼πθ(⋅∣x)z \sim \pi_\theta(\cdot \mid x)2 for binary rewards, the continuous-reward decomposition becomes the harmonic Pass@z∼πθ(⋅∣x)z \sim \pi_\theta(\cdot \mid x)3 decomposition associated with MaxRL (Tajwar et al., 2 Feb 2026). TailRL is therefore not a separate heuristic for continuous rewards; it is a strict extension of a likelihood-based objective whose binary special case has an established inference-time interpretation.

Finite-rollout estimation

The population objective is generally unavailable because z∼πθ(⋅∣x)z \sim \pi_\theta(\cdot \mid x)4 is unknown. The paper’s practical contribution is an unbiased finite-rollout estimator that requires only a modification to the advantage computation in a standard critic-free policy-gradient pipeline.

Given z∼πθ(⋅∣x)z \sim \pi_\theta(\cdot \mid x)5 rollouts with rewards z∼πθ(⋅∣x)z \sim \pi_\theta(\cdot \mid x)6, TailRL assigns rollout z∼πθ(⋅∣x)z \sim \pi_\theta(\cdot \mid x)7 the weight

z∼πθ(⋅∣x)z \sim \pi_\theta(\cdot \mid x)8

A threshold cleared by many rollouts contributes little weight per rollout; a threshold cleared by only a few rollouts contributes substantially more. If the rewards are sorted as z∼πθ(⋅∣x)z \sim \pi_\theta(\cdot \mid x)9, the weights are computed by

r(x,z)∈[0,1]r(x,z) \in [0,1]0

The estimator is

r(x,z)∈[0,1]r(x,z) \in [0,1]1

The authors prove that this estimator is unbiased for the order-r(x,z)∈[0,1]r(x,z) \in [0,1]2 TailRL objective. This order-r(x,z)∈[0,1]r(x,z) \in [0,1]3 objective is not merely a variance-reduced estimate of a fixed expected-reward gradient. Instead, the rollout budget determines the objective being approximated:

  • r(x,z)∈[0,1]r(x,z) \in [0,1]4 recovers expected-reward RL.
  • Increasing r(x,z)∈[0,1]r(x,z) \in [0,1]5 incorporates progressively higher Best-of-r(x,z)∈[0,1]r(x,z) \in [0,1]6 terms.
  • r(x,z)∈[0,1]r(x,z) \in [0,1]7 approaches population TailRL.

This distinction is conceptually important. In ordinary REINFORCE, additional rollouts primarily reduce estimator variance. Under TailRL, additional rollouts also change the target toward a more tail-sensitive objective.

In practical implementations, the weights are centered within each group. The paper explicitly notes that this changes the exact target: mean-centering with r(x,z)∈[0,1]r(x,z) \in [0,1]8 rollouts produces an unbiased estimator of the order-r(x,z)∈[0,1]r(x,z) \in [0,1]9 objective rather than order τ\tau0. This is a nontrivial qualification for comparisons based on nominal rollout counts and should be accounted for when interpreting the estimator theoretically.

ImageNet object localization

The first experiment tests the population objective in a setting where the full output space is finite and the exact tail probabilities can be computed. A ResNet-50 backbone produces four categorical distributions corresponding to bounding-box coordinates, with 50 bins per coordinate and IoU as the continuous reward.

Figure 3

Figure 3: ImageNet object localization samples four categorical box coordinates and uses IoU with the ground-truth box as the reward.

The authors report that population-level TailRL, using only scalar IoU feedback, matches or exceeds supervised objectives that directly observe ground-truth coordinates. In particular, it obtains higher CorLoc@τ\tau1 and CorLoc@τ\tau2 than the strongest supervised L1+GIoU objective while achieving comparable mean IoU. This is a deliberately strong comparison: TailRL receives no coordinate-level supervision, yet competes with a task-specific loss that has direct access to the target box.

The experiment also validates the finite-rollout theory. As τ\tau3 increases from 16 to 1024, the finite-rollout training curves approach the exact population-level objective. The cosine similarity between finite-rollout and population gradients rises steadily with the rollout budget, and τ\tau4 closely tracks the population variant. The implication is that rollout count controls both statistical fidelity and objective order, rather than merely reducing noise.

At matched τ\tau5, TailRL outperforms GRPO and RLOO on CorLoc@τ\tau6, mean IoU, and Best-of-τ\tau7 IoU. More notably, TailRL with τ\tau8 exceeds GRPO and RLOO trained with τ\tau9, using one sixty-fourth as many training rollouts per input. It also Pareto-dominates PKPO in the reported comparison: with only 16 rollouts it improves CorLoc@pθ(x,τ)=Pr⁡z∼πθ(⋅∣x)[r(x,z)>τ].p_\theta(x,\tau) = \Pr_{z\sim\pi_\theta(\cdot\mid x)} \left[r(x,z)>\tau\right].0 and mean IoU, while at matched compute it matches PKPO on Best-of-pθ(x,τ)=Pr⁡z∼πθ(⋅∣x)[r(x,z)>τ].p_\theta(x,\tau) = \Pr_{z\sim\pi_\theta(\cdot\mid x)} \left[r(x,z)>\tau\right].1 reward and performs better on the other metrics.

The reward-binarization ablation clarifies why the continuous formulation matters. Training MaxRL with IoU thresholds of pθ(x,τ)=Pr⁡z∼πθ(⋅∣x)[r(x,z)>τ].p_\theta(x,\tau) = \Pr_{z\sim\pi_\theta(\cdot\mid x)} \left[r(x,z)>\tau\right].2 or pθ(x,τ)=Pr⁡z∼πθ(⋅∣x)[r(x,z)>τ].p_\theta(x,\tau) = \Pr_{z\sim\pi_\theta(\cdot\mid x)} \left[r(x,z)>\tau\right].3 produces policies specialized around the selected threshold. At CorLoc@pθ(x,τ)=Pr⁡z∼πθ(⋅∣x)[r(x,z)>τ].p_\theta(x,\tau) = \Pr_{z\sim\pi_\theta(\cdot\mid x)} \left[r(x,z)>\tau\right].4, the methods reach approximately pθ(x,τ)=Pr⁡z∼πθ(⋅∣x)[r(x,z)>τ].p_\theta(x,\tau) = \Pr_{z\sim\pi_\theta(\cdot\mid x)} \left[r(x,z)>\tau\right].5. At CorLoc@pθ(x,τ)=Pr⁡z∼πθ(⋅∣x)[r(x,z)>τ].p_\theta(x,\tau) = \Pr_{z\sim\pi_\theta(\cdot\mid x)} \left[r(x,z)>\tau\right].6, MaxRL trained at threshold pθ(x,τ)=Pr⁡z∼πθ(⋅∣x)[r(x,z)>τ].p_\theta(x,\tau) = \Pr_{z\sim\pi_\theta(\cdot\mid x)} \left[r(x,z)>\tau\right].7 reaches only approximately pθ(x,τ)=Pr⁡z∼πθ(⋅∣x)[r(x,z)>τ].p_\theta(x,\tau) = \Pr_{z\sim\pi_\theta(\cdot\mid x)} \left[r(x,z)>\tau\right].8, whereas continuous TailRL reaches approximately pθ(x,τ)=Pr⁡z∼πθ(⋅∣x)[r(x,z)>τ].p_\theta(x,\tau) = \Pr_{z\sim\pi_\theta(\cdot\mid x)} \left[r(x,z)>\tau\right].9. At CorLoc@JRL(θ;x)=∫01pθ(x,τ) dτ.J_{\mathrm{RL}}(\theta;x) = \int_0^1 p_\theta(x,\tau)\,d\tau.0, TailRL reaches approximately JRL(θ;x)=∫01pθ(x,τ) dτ.J_{\mathrm{RL}}(\theta;x) = \int_0^1 p_\theta(x,\tau)\,d\tau.1, compared with JRL(θ;x)=∫01pθ(x,τ) dτ.J_{\mathrm{RL}}(\theta;x) = \int_0^1 p_\theta(x,\tau)\,d\tau.2 for the JRL(θ;x)=∫01pθ(x,τ) dτ.J_{\mathrm{RL}}(\theta;x) = \int_0^1 p_\theta(x,\tau)\,d\tau.3-threshold method and only JRL(θ;x)=∫01pθ(x,τ) dτ.J_{\mathrm{RL}}(\theta;x) = \int_0^1 p_\theta(x,\tau)\,d\tau.4 for the JRL(θ;x)=∫01pθ(x,τ) dτ.J_{\mathrm{RL}}(\theta;x) = \int_0^1 p_\theta(x,\tau)\,d\tau.5-threshold method. These results support the claim that threshold selection discards ordering information above the selected cutoff.

Text-Maze navigation and rare-success learning

The Text-Maze experiment isolates the regime in which TailRL is intended to be most useful. A JRL(θ;x)=∫01pθ(x,τ) dτ.J_{\mathrm{RL}}(\theta;x) = \int_0^1 p_\theta(x,\tau)\,d\tau.6M-parameter decoder-only transformer generates paths through JRL(θ;x)=∫01pθ(x,τ) dτ.J_{\mathrm{RL}}(\theta;x) = \int_0^1 p_\theta(x,\tau)\,d\tau.7 mazes. The reward combines progress toward the goal with a penalty for path inefficiency; reward JRL(θ;x)=∫01pθ(x,τ) dτ.J_{\mathrm{RL}}(\theta;x) = \int_0^1 p_\theta(x,\tau)\,d\tau.8 is obtained only by reaching the goal along a shortest path.

The initialization policy is varied across checkpoints whose shortest-path success rates range from approximately JRL(θ;x)=∫01pθ(x,τ) dτ.J_{\mathrm{RL}}(\theta;x) = \int_0^1 p_\theta(x,\tau)\,d\tau.9 to JTailRL(θ;x)=∫01log⁡pθ(x,τ) dτ.J_{\mathrm{TailRL}}(\theta;x) = \int_0^1 \log p_\theta(x,\tau)\,d\tau.0. With JTailRL(θ;x)=∫01log⁡pθ(x,τ) dτ.J_{\mathrm{TailRL}}(\theta;x) = \int_0^1 \log p_\theta(x,\tau)\,d\tau.1, TailRL, GRPO, and RLOO behave similarly when successful trajectories are common. Their behavior diverges sharply as success becomes rare. In the low-coverage regime, expected-reward baselines fail to improve reliably, whereas TailRL continues to learn. The paper specifically reports learning from an initial success rate of approximately JTailRL(θ;x)=∫01log⁡pθ(x,τ) dτ.J_{\mathrm{TailRL}}(\theta;x) = \int_0^1 \log p_\theta(x,\tau)\,d\tau.2, corresponding to roughly one shortest-path success per 10,000 attempts.

This result supports the proposed mechanism rather than merely showing an aggregate performance advantage. Partial-credit trajectories provide a dense reward signal, but expected-reward updates favor common moderate-progress paths. TailRL assigns greater relative influence to the rare trajectories that reach higher reward levels, allowing their score-function gradients to affect subsequent training. The paper’s training-dynamics analysis shows that GRPO and RLOO lose entropy early and stabilize near the initial path-length distribution, whereas TailRL preserves higher entropy and continues expanding the generated path distribution.

The inference-scaling results are also consistent with the theory. At small JTailRL(θ;x)=∫01log⁡pθ(x,τ) dτ.J_{\mathrm{TailRL}}(\theta;x) = \int_0^1 \log p_\theta(x,\tau)\,d\tau.3, the policies may appear similar, but TailRL’s Pass@JTailRL(θ;x)=∫01log⁡pθ(x,τ) dτ.J_{\mathrm{TailRL}}(\theta;x) = \int_0^1 \log p_\theta(x,\tau)\,d\tau.4 and Best-of-JTailRL(θ;x)=∫01log⁡pθ(x,τ) dτ.J_{\mathrm{TailRL}}(\theta;x) = \int_0^1 \log p_\theta(x,\tau)\,d\tau.5 curves improve more rapidly as JTailRL(θ;x)=∫01log⁡pθ(x,τ) dτ.J_{\mathrm{TailRL}}(\theta;x) = \int_0^1 \log p_\theta(x,\tau)\,d\tau.6 increases. Thus, Pass@JTailRL(θ;x)=∫01log⁡pθ(x,τ) dτ.J_{\mathrm{TailRL}}(\theta;x) = \int_0^1 \log p_\theta(x,\tau)\,d\tau.7 understates the difference between the learned distributions. TailRL’s advantage emerges when additional samples can expose rare successful trajectories.

GUI grounding

The GUI experiment evaluates Qwen2.5-VL-3B and Qwen2.5-VL-7B on ScreenSpot-Pro after on-policy training on GTA1. The reward combines target inclusion, coordinate proximity, and output-format compliance. Training uses eight prompts and eight rollouts per prompt, with no KL regularization and identical optimization settings across TailRL, GRPO, and RLOO.

At JTailRL(θ;x)=∫01log⁡pθ(x,τ) dτ.J_{\mathrm{TailRL}}(\theta;x) = \int_0^1 \log p_\theta(x,\tau)\,d\tau.8, TailRL and RLOO achieve similar Pass@JTailRL(θ;x)=∫01log⁡pθ(x,τ) dτ.J_{\mathrm{TailRL}}(\theta;x) = \int_0^1 \log p_\theta(x,\tau)\,d\tau.9, while GRPO is weaker. Their behavior separates under inference-time sampling. TailRL’s Pass@1/pθ(x,τ)1/p_\theta(x,\tau)0 continues increasing as 1/pθ(x,τ)1/p_\theta(x,\tau)1 grows, whereas RLOO plateaus earlier. The reported matching-budget results are particularly strong:

Model TailRL rollouts to match RLOO Pass@1/pθ(x,τ)1/p_\theta(x,\tau)2 Reduction
Qwen2.5-VL-3B 1/pθ(x,τ)1/p_\theta(x,\tau)3 1/pθ(x,τ)1/p_\theta(x,\tau)4
Qwen2.5-VL-7B 1/pθ(x,τ)1/p_\theta(x,\tau)5 1/pθ(x,τ)1/p_\theta(x,\tau)6

A single TailRL rollout exceeds GRPO’s mean Pass@1/pθ(x,τ)1/p_\theta(x,\tau)7 at both model scales. These comparisons directly instantiate the paper’s claim that training for the upper tail can convert a large inference budget into a smaller one. The result is not simply a gain in single-sample accuracy: it is a change in the slope of the inference-scaling curve.

The supplementary category-level analysis reports that at 1/pθ(x,τ)1/p_\theta(x,\tau)8, TailRL leads the stronger baseline in 11 of 12 model-scale/category combinations, with gains as large as 12.0 percentage points on Dev at 3B and 11.5 points on CAD at 7B. However, the experiment uses one seed per method, and the absolute values are not directly comparable to published ScreenSpot-Pro results because the paper uses a different output format and evaluation pipeline. The within-pipeline comparisons remain informative, but the limited replication constrains the strength of claims about robustness.

Code runtime optimization

The final experiment tests whether expected-reward training collapses onto a reliable but suboptimal solution. The task asks Qwen3-1.7B to rewrite slow C++ programs while preserving correctness and improving runtime. Incorrect programs receive zero reward; correct programs receive their speedup measured using deterministic gem5 execution. Copying the input is always correct and receives reward exactly 1/pθ(x,τ)1/p_\theta(x,\tau)9, creating an explicit moderate-reward shortcut.

The initial rollout distribution contains 74.4% incorrect programs, 23.5% correct programs with no speedup, and only 2.1% correct faster programs. Under GRPO and RLOO, training rapidly converges toward copying. Correctness rises above 98%, but mean reward remains just below rir_i01024rir_i10.98\timesrir_i20.96\timesspeedup.</p><p>TailRLfollowsadifferenttrajectory.Itpreservessubstantiallyhigherentropyandcontinuesgeneratingriskyrewrites.Single−rolloutcorrectnessislower,butthepolicyassignsgreaterprobabilitytocorrectandfasterprograms,raisingmeanrewardto speedup.</p> <p>TailRL follows a different trajectory. It preserves substantially higher entropy and continues generating risky rewrites. Single-rollout correctness is lower, but the policy assigns greater probability to correct and faster programs, raising mean reward to r_i$3, nearly three times the copying baseline. On the held-out test set, the mean Best-of-$r_i$4 speedup is $r_i$5 for TailRL, compared with $r_i$6 for GRPO and $r_i$7 for RLOO.

The paper is explicit that these are matched-compute, one-epoch results and that TailRL is still improving at the end of training. Consequently, the comparison establishes a strong early-training difference but does not establish the converged performance ordering under unlimited optimization. It nevertheless provides the clearest empirical example of the proposed failure mode: expected reward can favor a policy that is highly reliable at a moderate reward while eliminating the rare behaviors required to reach substantially higher reward.

Relation to existing objectives

TailRL differs from GRPO and RLOO at the level of the population objective, not merely the baseline or normalization. RLOO changes the control variate, and GRPO standardizes group rewards, but both retain expected reward as the target. Their within-input reward weighting remains effectively linear.

PKPO directly optimizes a selected Best-of-$r_i$8 objective. TailRL instead combines Best-of-$r_i$9 objectives across all $x$00 with harmonic coefficients, avoiding a predefined inference budget. MaxRL is recovered for binary rewards, while TailRL preserves information that would be lost by binarizing a continuous reward at one threshold.

The method is also distinct from distributional RL and risk-sensitive RL. Distributional RL estimates a return distribution with a critic and typically uses Bellman propagation. Risk-sensitive methods generally select a particular functional such as CVaR. TailRL uses neither a learned distributional critic nor a fixed risk level. Its tail sensitivity arises from direct policy-gradient reweighting over all reward thresholds.

The ordinal-regression interpretation in the paper is useful. TailRL can be viewed as minimizing ordinal cross-entropy against the ideal target $x$01: each threshold asks whether the policy can exceed that level, and the objective sums the log-likelihoods of all such events. This interpretation explains why the method retains distinctions among high reward levels that binary success objectives erase.

Limitations and open questions

The theoretical results require regularity assumptions, including differentiable policy probabilities, fixed support, finite tail-likelihood, and bounded weighted score functions. These conditions are plausible for the finite-support softmax policies used in the experiments, but the $x$02 weighting can become numerically and statistically problematic when tail probabilities are extremely small. The finite-rollout estimator avoids direct access to the population probability, but rare thresholds may still be represented by few or no successes in a group.

The method assumes a deterministic, bounded scalar reward and uniform threshold weighting after normalization. The paper notes that nonuniform threshold distributions are equivalent to monotone reward transformations, but it does not determine how such transformations should be selected for a task. In code optimization, for example, the reward has an unbounded speedup semantics that is operationally handled through bounded evaluation and normalization; the sensitivity of TailRL to reward clipping or upper-tail calibration remains open.

Several empirical comparisons have limited replication. GUI grounding uses one seed per method, and the evaluation reward and output format differ from published benchmark protocols. The code experiment is intentionally matched at one epoch and is not a converged comparison. The ImageNet population experiment relies on a finite discretized action space, while the exact population objective is generally unavailable for large autoregressive policies. Finally, the paper establishes improved Best-of-$x$03 and Pass@$x$04 behavior under the task reward, but it does not evaluate whether stronger tail optimization worsens performance under an imperfect or misspecified reward model. That question is particularly relevant because inference-time selection can amplify reward-model errors (Gao et al., 2022).

Conclusion

TailRL replaces expected-reward maximization with the integral of log tail probabilities over all reward thresholds. This formulation gives rare high-reward outcomes greater influence, recovers MaxRL for binary rewards, and admits an unbiased finite-rollout estimator whose order increases with the rollout budget. Its harmonic Best-of-$x$05 decomposition provides a direct connection to inference-time sampling.

Across object localization, maze navigation, GUI grounding, and code optimization, the largest gains occur when high-reward outcomes are rare or when a reliable moderate-reward shortcut suppresses exploration. The strongest reported results include a $x$06 reduction in GUI inference rollouts needed to match a baseline’s Pass@$x$07, learning from approximately $x$08 initial maze success, and a $x$09 Best-of-$x$10 code-optimization speedup versus less than $x$11 for expected-reward baselines. The paper therefore presents TailRL as a practical objective-level alternative to expected reward when the desired policy must retain and exploit a high-reward tail.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Explain it Like I'm 14

1. What is this paper about?

This paper introduces a new way to train artificial intelligence systems using reinforcement learning.

In reinforcement learning, an AI tries something, receives a score, and learns to make better choices. For example, an AI might:

  • draw a box around an object in a picture,
  • find its way through a maze,
  • click the right button in a computer program, or
  • improve a computer program.

Most reinforcement-learning methods try to improve the average score. The authors argue that this is not always enough. An AI might have a good average score but almost never produce an excellent answer.

The paper proposes a method called Tail-Likelihood Reinforcement Learning, or TailRL. Its goal is to help the AI keep producing rare but very high-quality answers.

2. What questions are the researchers asking?

The paper mainly asks:

  1. Can training focus more on rare, excellent answers instead of only average answers?
  2. Does this help when the best answers are possible but difficult to find?
  3. Does TailRL make an AI improve more when it is allowed to try many answers at test time?
  4. Can it stop the AI from settling for a common but merely “okay” solution?
  5. Can the method work with existing reinforcement-learning systems without requiring a completely new training process?

The key idea is that two AIs can have the same average score but behave very differently.

For example:

  • AI A gets a score of 6 almost every time.
  • AI B usually gets 5, but sometimes gets 10.

Both might have similar average scores. However, if we let each AI try many times and choose its best attempt, AI B is more useful because it still has a chance of producing an excellent answer.

3. How does the method work?

Average reward versus high-reward outcomes

Traditional reinforcement learning looks mostly at the average reward:

“How well does the AI do on a typical attempt?”

TailRL also asks:

“How likely is the AI to achieve a score above each possible level?”

Suppose an AI receives scores between 0 and 1. The researchers consider many score thresholds:

  • Is the score above 0.2?
  • Is it above 0.5?
  • Is it above 0.8?
  • Is it above 0.95?

For each threshold, they calculate the chance that the AI will beat it. This is called a tail probability.

A tail probability is simply the chance of reaching at least a certain score. For example, if an AI gets a score above 0.9 in 2 out of every 100 attempts, then its tail probability at 0.9 is 2%.

Why use logarithms?

TailRL maximizes the log-probability of passing these thresholds rather than just maximizing the probabilities directly.

This makes rare successes especially important. If a very high score is possible but happens only rarely, TailRL gives it extra attention.

An everyday analogy is searching for treasure:

  • A normal method might mostly reward finding ordinary rocks because they are common.
  • TailRL gives more importance to the difficult-to-find gold, because discovering it could greatly improve the final result.

Connection to trying multiple times

The paper also studies Best-of-kk performance. This means the AI generates kk answers and keeps the best one.

For example:

  • Best-of-1 means using one attempt.
  • Best-of-10 means trying 10 times and choosing the best answer.
  • Best-of-1,000 means trying 1,000 times and choosing the best answer.

The authors show mathematically that TailRL is related to improving Best-of-kk performance for many different values of kk. In other words, it is designed to help whether the AI gets only a few attempts or many attempts.

How is it trained?

The AI generates a group of possible answers, called rollouts. Each rollout receives a reward.

TailRL then:

  1. Sorts the answers by their rewards.
  2. Gives more credit to answers that exceed difficult, high reward thresholds.
  3. Uses these credits to update the AI so that similar answers become more likely in the future.

A useful analogy is grading a group of students. Instead of only rewarding the student with the highest average grade, the teacher also asks:

“Who managed to solve the hardest problems?”

Students who solve rare, difficult problems receive extra attention.

The method can be added to existing policy-gradient reinforcement-learning systems by changing how rewards are turned into advantages. An advantage is a number that tells the AI whether an action was better or worse than expected.

The paper also explains that the number of training attempts matters:

  • With only one rollout, TailRL behaves like ordinary expected-reward training.
  • With more rollouts, it increasingly focuses on higher and rarer rewards.
  • With very many rollouts, it approaches the full TailRL objective.

4. What did the researchers find?

The paper reports experiments in several areas, including:

  • object localization in images,
  • maze navigation,
  • graphical user-interface interaction, and
  • code optimization.

The provided text gives detailed results for the image-localization experiment and summarizes results from the other tasks.

Image localization

In the image task, the AI had to draw a box around an object. Its reward was based on intersection over union, or IoU. IoU measures how much the AI’s box overlaps with the correct box.

The researchers found that:

  • Population-level TailRL matched or outperformed several methods that were given the exact correct box during supervised training.
  • TailRL performed better than standard reinforcement-learning methods such as GRPO and RLOO in the reported comparisons.
  • With only 16 training attempts, TailRL sometimes performed better than other methods using 1,024 attempts.
  • As the number of rollouts increased, the finite-sample TailRL estimate became more similar to the exact TailRL objective, as predicted by the theory.

These results suggest that TailRL can use training examples more efficiently, especially when excellent answers are uncommon.

Other tasks

The paper’s abstract and summary report that TailRL also helped in other settings:

  • Maze navigation: It learned successfully even when the starting policy succeeded only about 0.01% of the time.
  • GUI grounding: It achieved performance similar to RLOO with far fewer inference attempts.
  • Code optimization: It avoided getting stuck copying the original code and achieved a large improvement in Best-of-1024 performance.

The broad pattern is that TailRL is especially useful when:

  • very good answers are possible,
  • those answers are rare, and
  • the AI is allowed to try several times.

5. Why are these findings important?

Standard reinforcement learning can accidentally make rare good solutions disappear. If the AI stops producing an excellent answer, it may stop learning about that answer entirely. This creates a harmful cycle:

  1. A very good solution is rarely sampled.
  2. The AI receives little training information about it.
  3. The solution becomes even less likely.
  4. The AI settles on a common but weaker solution.

TailRL tries to prevent this by giving more learning importance to rare, high-reward outcomes.

This matters for generative AI because users often care about the best useful answer, not just the average answer. If a model can generate many attempts, it is valuable for at least one of those attempts to be excellent.

6. Overall implications

The main message of the paper is:

Training an AI should not focus only on making its average answer better. It should also preserve the possibility of producing exceptional answers.

TailRL offers a way to do this without completely replacing existing reinforcement-learning systems. It changes how the training algorithm values different rewards, giving extra attention to difficult and unusually good outcomes.

If the results hold across more tasks, this approach could make AI systems better at:

  • reasoning,
  • solving difficult problems,
  • writing or improving code,
  • navigating complicated environments, and
  • taking advantage of extra computation by trying many possible answers.

However, the method may require several rollouts during training, and the paper’s strongest benefits are expected when high-quality solutions are rare but still reachable. Further research would be needed to understand its computational cost, its behavior on more tasks, and how well it works when rewards are noisy or poorly designed.

Practical Applications

Immediate Applications

  • Large-language-model post-training for reasoning and code generation — Software/AI
    • Replace the standard group advantage calculation in GRPO-, RLOO-, or REINFORCE-style pipelines with TailRL’s rank- and reward-based weighting.
    • This is actionable for tasks with verifiable or scalar rewards, such as:
    • mathematical problem solving,
    • code generation and optimization,
    • program repair,
    • GUI action generation,
    • structured data transformation,
    • tool-use planning.
    • The practical benefit is preserving probability mass on rare, high-quality solutions rather than concentrating the model on common but mediocre outputs.
    • A resulting product could be a TailRL post-training module that accepts existing rollout batches, sorts rewards, computes the recurrence-based weights, centers the advantages, and sends them to an existing policy-optimization implementation.
    • Dependencies: rewards must be reasonably reliable and comparable within a task; training must generate multiple independent rollouts per prompt; the model and optimizer must tolerate higher-variance emphasis on rare outcomes.
  • Inference-time scaling and Best-of-kk deployment — Software/AI
    • Use TailRL-trained models in systems that draw multiple candidate responses and select the best one using a verifier, evaluator, compiler, simulator, or reward model.
    • Suitable workflows include:
    • sample-and-rank coding assistants,
    • theorem-proving systems,
    • mathematical reasoning engines,
    • automated UI agents,
    • content-generation systems with quality filters.
    • Because the objective is theoretically related to a harmonic mixture of Best-of-kk objectives, TailRL is useful when the deployment sampling budget may vary—for example, from k=4k=4 in an interactive setting to k=128k=128 in batch processing.
    • Dependencies: deployment needs a trustworthy selection function and enough inference compute to sample multiple candidates. TailRL does not eliminate the cost of evaluating or ranking those candidates.
  • Code optimization and program synthesis — Software engineering
    • Train models to retain rare transformations that produce large performance or correctness gains, instead of collapsing onto a safe strategy such as copying the input.
    • A practical pipeline can sample several candidate patches or optimized programs, execute them against tests and benchmarks, compute a continuous reward from correctness, runtime, memory, or code quality, and apply TailRL weighting.
    • Potential tools include:
    • compiler-optimization agents,
    • automated refactoring systems,
    • program-repair services,
    • benchmark-driven code-generation assistants.
    • Dependencies: execution-based rewards must be deterministic or controlled for noise; benchmark coverage must prevent reward hacking; sandboxing is required for untrusted generated code.
  • GUI agents and browser automation — Software/productivity
    • Apply TailRL to agents that generate action sequences for websites, desktop applications, or mobile interfaces.
    • Rewards can combine task completion, partial progress, number of steps, recovery from errors, and safety constraints. TailRL can preserve rare trajectories that successfully complete difficult tasks.
    • A deployable workflow is: generate NN action traces, execute them in isolated environments, score completion, compute TailRL advantages, and update the policy.
    • At deployment, multiple traces can be sampled and selected by a task verifier.
    • Dependencies: the environment must be resettable or simulatable; action execution can be expensive; UI changes and reward-model errors may reduce transfer to real applications.
  • Object localization and other vision policies — Computer vision
    • Train visual policies using a scalar geometric reward such as intersection-over-union (IoU), without requiring every training example to expose a fully supervised target.
    • Similar uses may include:
    • object detection box refinement,
    • visual tracking,
    • keypoint placement,
    • image segmentation proposal selection,
    • camera-view or region selection.
    • The paper’s localization results suggest that a carefully designed continuous reward can compete with direct coordinate supervision, particularly when high-quality predictions are rare.
    • Dependencies: the reward must provide meaningful partial credit; exact population-level TailRL is practical mainly when the action space is enumerable or the reward distribution can be estimated accurately.
  • Robotics and navigation policy learning — Robotics
    • Use TailRL for trajectory policies in maze navigation, manipulation, and mobile robotics where successful trajectories are rare but partial progress can be scored continuously.
    • Example rewards include distance-to-goal, collision avoidance, completion, energy use, grasp quality, or trajectory smoothness.
    • TailRL is especially relevant during early training when the success probability is extremely low and expected-reward optimization may fail to rediscover rare successful trajectories.
    • Dependencies: independent rollouts require simulation, parallel robots, or reliable resets; safety constraints should be enforced outside the learned reward; sim-to-real transfer must be validated.
  • Research benchmarking and diagnostics — Academia
    • Evaluate RL and generative policies using more than mean reward. Report:
    • Best-of-kk performance,
    • reward-quantile coverage,
    • success probabilities at multiple thresholds,
    • performance as inference compute increases,
    • retention of rare high-quality trajectories.
    • This can reveal cases in which two policies have similar average reward but substantially different potential under additional sampling.
    • A practical benchmark extension would provide reward-survival curves pθ(r>τ)p_\theta(r>\tau) and Best-of-kk curves alongside conventional averages.
    • Dependencies: comparisons require consistent reward definitions, fixed sampling protocols, and sufficient evaluation rollouts to estimate upper-tail behavior reliably.
  • Adaptive allocation of training and inference compute — Industry/operations
    • Use the empirical rollout budget NN as a controllable way to move between ordinary expected-reward learning and stronger tail-focused learning.
    • Organizations can use smaller NN for inexpensive routine tasks and larger NN for difficult prompts where rare high-reward outcomes are valuable.
    • This supports tiered workflows such as:
    • low-latency single-sample responses,
    • moderate-budget Best-of-kk responses,
    • high-budget search for high-stakes tasks.
    • Dependencies: larger rollout groups increase computational and evaluation costs; the best budget may vary by task difficulty and reward sparsity.
  • Decision support and daily-life assistants — Consumer applications
    • TailRL-trained assistants could generate several plans or recommendations and retain unusual but high-quality options—for example:
    • travel itineraries,
    • study plans,
    • household scheduling,
    • meal planning under constraints,
    • troubleshooting procedures.
    • The system should present candidates and evidence rather than automatically selecting a rare option when the reward model is uncertain.
    • Dependencies: subjective or poorly specified rewards can cause undesirable optimization; user preferences and safety constraints need explicit modeling.

Long-Term Applications

  • High-reliability healthcare decision support — Healthcare
    • Train systems to preserve rare action sequences or recommendations that achieve exceptionally good outcomes in simulation or retrospective evaluation, such as treatment planning, clinical workflow selection, or medical-image localization.
    • A possible workflow would combine a generative policy, a calibrated clinical outcome model, safety constraints, and TailRL post-training over simulated or carefully reviewed trajectories.
    • Tail-focused optimization could be useful when average performance hides a small but clinically important set of highly successful plans.
    • Dependencies: clinical rewards are delayed, confounded, noisy, and ethically constrained. Deployment would require prospective trials, clinician oversight, calibration, distribution-shift testing, and safeguards against optimizing an imperfect proxy.
  • Autonomous driving and long-horizon planning — Robotics/transportation
    • Apply TailRL to planning policies that generate multiple trajectories and retain rare trajectories with strong safety, comfort, and efficiency scores.
    • Potential products include:
    • trajectory-generation modules,
    • scenario-based planning systems,
    • simulation-trained driving policies,
    • rare-event recovery planners.
    • TailRL may help preserve successful behavior in unusual traffic or weather conditions that ordinary average-reward training under-samples.
    • Dependencies: tail rewards must prioritize safety rather than merely efficiency; rare-event simulation must be representative; formal validation, redundancy, and fail-safe control remain necessary.
  • Energy-system control and grid optimization — Energy
    • Train policies for battery dispatch, demand response, microgrid operation, or renewable-energy scheduling using rewards that combine cost, reliability, emissions, and resilience.
    • TailRL could emphasize rare operating trajectories that maintain service during demand spikes, generation failures, or extreme weather.
    • A future product could be a tail-aware model-predictive controller that samples candidate schedules and selects the best verified plan.
    • Dependencies: physical constraints, nonstationary demand, delayed rewards, and uncertain forecasts complicate reward estimation. Deployment requires robust optimization and guarantees against unsafe high-reward artifacts.
  • Finance and risk-sensitive decision systems — Finance
    • Use TailRL to train generative policies for portfolio construction, execution scheduling, or market-making simulations where rare high-quality strategies may otherwise be discarded.
    • The method could also be used to optimize coverage of favorable but plausible scenarios rather than only average simulated return.
    • Dependencies: historical rewards are nonstationary and subject to selection bias; optimizing the upper tail can increase exposure to overfitting, leverage, or catastrophic downside. Any financial implementation would require explicit risk constraints, stress testing, and conservative out-of-distribution evaluation.
  • Scientific discovery and engineering design — Academia/industry
    • Apply TailRL to generative design of molecules, materials, circuits, mechanical components, or experimental protocols when a small number of candidates may achieve exceptional objective values.
    • Candidate designs could receive continuous rewards from simulators or surrogate models, and TailRL could preserve rare high-scoring structures during optimization.
    • At inference time, Best-of-kk generation could produce a larger set of designs for laboratory or engineering validation.
    • Dependencies: simulator bias and reward hacking are major risks; generated candidates require physical experiments, manufacturability checks, intellectual-property review, and uncertainty estimates.
  • General-purpose verifier-guided generative models — AI infrastructure
    • Develop a reusable training framework in which any scalar verifier—compiler, theorem checker, simulator, safety evaluator, or human preference model—can provide the reward for TailRL.
    • This could yield model families explicitly optimized for scalable inference: increasing sampling compute would produce predictable quality gains rather than diminishing returns caused by loss of high-quality modes.
    • Dependencies: the theoretical objective assumes meaningful independent samples and a sufficiently stable reward distribution. Correlated sampling, reward-model drift, threshold regions with almost zero probability, and finite-batch bias may require regularization or alternative threshold weighting.
  • Tail-aware policy evaluation and regulation — Policy
    • Establish reporting standards for AI systems that distinguish mean performance from attainable high-end performance under additional compute.
    • Regulators or procurement bodies could require:
    • Best-of-kk curves at standardized budgets,
    • upper-tail reliability metrics,
    • reward-threshold coverage,
    • audits for collapse of rare successful behaviors,
    • documentation of sampling and selection procedures.
    • This is particularly relevant for systems used in healthcare, transportation, public services, and education.
    • Dependencies: metrics must be resistant to gaming and must not reward unsafe rare outcomes. Standardized reward definitions and independent evaluation infrastructure would be needed.
  • Personalized education and tutoring — Education
    • Train tutoring agents to retain rare instructional strategies that lead to unusually strong student understanding, rather than optimizing only average short-term response ratings.
    • Rewards could combine learning gains, misconception correction, engagement, and long-term retention.
    • A future system could generate multiple explanations or lesson plans and select among them based on learner-specific evaluation.
    • Dependencies: educational outcomes are delayed and difficult to measure; excessive exploration may confuse learners; human teachers, privacy protections, and longitudinal validation are essential.

Glossary

  • Advantage function: A quantity assigning credit to an action or rollout based on how much better it performs than a baseline. “TailRL requires only a simple modification to the advantage function”
  • Bernoulli distribution: A probability distribution over two outcomes, typically success and failure. “The reward distribution is therefore a Bernoulli distribution over success and failures.”
  • Best-of-kk: The expected maximum reward obtained from kk independently sampled rollouts. “Best-of-kk depends strongly on the upper part of the reward distribution.”
  • Categorical policy: A policy that assigns probabilities to a finite set of discrete choices. “a bounding box drawn from the categorical policy”
  • Centering: Subtracting the average value of a group of estimates to reduce variance while preserving useful relative differences. “In practice, we center the rollout weights within each group”
  • Critic-free policy gradient: A policy-gradient method that estimates policy updates without learning a separate value-function critic. “TailRL admits a simple critic-free policy-gradient estimator”
  • Cosine similarity: A measure of directional agreement between two vectors, computed from the cosine of the angle between them. “the cosine similarity between the sampled finite rollout gradient and the population-level gradient rises steadily”
  • Critic-free rollout: A sampled trajectory used for policy optimization without a learned critic providing value estimates. “critic-free rollout based policy gradient methods draw NN independent rollouts”
  • Expected maximum reward: The average of the highest reward among multiple independently sampled outcomes. “expected maximum reward among (Best-of-kk) when rewards are continuous”
  • Expected-reward objective: An optimization objective that maximizes the average reward generated by a policy. “standard RL training can progressively lose coverage over rare, high-reward rollouts”
  • Finite-order objective: A truncated objective that combines only the first finite number of terms in an otherwise infinite decomposition. “define an order T≥1T\geq 1”
  • Finite-rollout estimator: An estimator of a population-level policy gradient based on a finite group of sampled rollouts. “We show that a rollout budget of NN naturally defines an order-NN truncation of the TailRL objective”
  • Generative model: A model that produces samples from a learned or specified probability distribution. “the policy is a generative model over rewards”
  • Gradient estimator: A computable approximation to a gradient, often based on random samples. “an unbiased policy-gradient estimator”
  • GRPO: Group Relative Policy Optimization, a group-based reinforcement-learning algorithm that estimates policy updates from sampled rollouts. “We compare TailRL with GRPO”
  • Harmonic mixture: A weighted combination whose coefficients are reciprocals of positive integers, such as $1/k$. “Its gradient decomposes into a harmonic mixture of Pass@kk gradients”
  • Inference-time scaling: Improving performance by allocating additional computation or samples during inference. “This distinction matters whenever additional samples can be drawn, both during training and at inference time.”
  • Intersection-over-union (IoU): The ratio of the intersection area to the union area of two regions, commonly used to evaluate bounding-box overlap. “the continuous reward r(x,z)∈[0,1]r(x,z)\in[0,1] is its intersection-over-union (IoU) with the ground-truth box”
  • Likelihood objective: An objective that optimizes the probability, or log-probability, assigned to observed or desired events. “A likelihood objective for continuous rewards.”
  • Marginal value: The incremental change in an objective resulting from increasing the probability of a particular event or outcome. “It is the marginal value that the objective assigns to making that level more likely.”
  • MaxRL: A reinforcement-learning objective that maximizes the log-probability of success rather than its raw probability. “MaxRL maximizes $J_{\mathrm{MaxRL}(\theta;x) = \log q_\theta(x)$”
  • On-policy policy gradient: A policy-gradient method that estimates updates using trajectories sampled from the current policy. “under pure on-policy policy gradient setup”
  • Order statistic: A value determined by the sorted position of a sample within a collection. “Let r(1)≤⋯≤r(N)r_{(1)}\leq\cdots\leq r_{(N)} denote the sorted rewards”
  • Pass@kk: The probability that at least one successful outcome occurs among kk independently sampled rollouts. “performance is measured by probability of at-least one success (Pass@kk)”
  • Pareto dominates: Performs at least as well on every measured criterion and strictly better on at least one. “TailRL also pareto dominates PKPO”
  • Policy gradient: The gradient of an expected objective with respect to the parameters of a stochastic policy. “Thus, the policy gradient is a weighted combination of the score-function”
  • Population-level objective: An objective defined using the full underlying distribution rather than a finite sample. “We call \cref{eq:tailrl-objective} the population-level TailRL objective.”
  • Riemann sum: A finite sum that approximates a definite integral by evaluating a function over partitioned intervals. “The right-hand side of \cref{eq:tailrl-audit-rate} is therefore a Riemann sum over the reward range.”
  • RLOO: Leave-One-Out policy optimization, a group-based reinforcement-learning method that uses other samples in a group to construct comparative estimates. “We compare TailRL with GRPO, RLOO”
  • Rollout: A complete sampled execution, response, program, or trajectory produced by a policy. “A rollout may be a generated response, program, or trajectory.”
  • Score-function identity: An identity expressing the gradient of an expectation as an expectation involving the gradient of a log-probability. “the score-function identity gives its policy gradient as follows”
  • Tail probability: The probability that a random reward exceeds a specified threshold. “define the tail probability at threshold τ\tau”
  • TailRL: Tail-Likelihood Reinforcement Learning, which maximizes the log-probability of exceeding reward thresholds across the reward range. “We propose to optimize this coverage directly.”
  • Threshold reparameterization: Transforming reward thresholds through a monotonic change of the reward scale while preserving their ordering. “Any strictly positive normalized weighting is exactly equivalent to applying TailRL after a monotone transformation of the rewards”
  • Truncation: Restricting an infinite series or objective to a finite number of terms. “a rollout budget of NN naturally defines an order-NN truncation”
  • Unbiased estimator: An estimator whose expected value equals the quantity being estimated. “The resulting policy-gradient estimator has the standard score-function form”
  • Upper tail: The high-value portion of a probability distribution. “TailRL explicitly optimizes upper-tail probabilities across reward levels.”
  • Variance reduction: A technique for making a statistical estimator less variable across samples. “Centering reduces variance”
  • Weighted combination: A sum of components in which each component is multiplied by a possibly different coefficient. “the policy gradient is a weighted combination of the score-function”

Open Problems

We found no open problems mentioned in this paper.

Tweets

Sign up for free to view the 1 tweet with 360 likes about this paper.