Standard reinforcement learning only maximizes the mean reward, losing coverage over rare excellent outputs. TailRL maximizes the policy's mean reward while simultaneously maximizing its tail-probabilities.
For an input $x$, the policy and the reward function induce a distribution over rewards. The probability that the reward $r$ lies above a threshold $\tau$ is the tail-probability $p_\theta(x,\tau)$.
Standard reinforcement learning only maximizes the mean reward, losing coverage over rare excellent outputs. TailRL maximizes the policy's mean reward while simultaneously maximizing its tail-probabilities.
Two policies can have the same expected reward and very different odds of producing an exceptional sample. Every preset opens as a matched pair with equal mean reward but different tail probabilities. This difference is reflected in their Best-of-$k$ as we increase sampling.
Drag inside either histogram to move mass between reward values.
Even if the mean is identical, the policy with the stronger tail keeps improving as sampling compute grows.
$J_{\mathrm{RL}}(\theta;x) := \mathbb{E}_{z\sim\pi_\theta(\cdot\mid x)}\!\left[\,r(x,z)\,\right]$
Expected reward
$J_{\mathrm{TailRL}}(\theta;x) := \displaystyle\int_0^1 \log p_\theta(x,\tau)\,d\tau$
Expected log tail-probability across reward thresholds
TailRL is the expected log tail-probability over uniformly sampled thresholds.
On binary rewards every nontrivial threshold asks the same question, did the rollout succeed, so the integral collapses to a single log-likelihood and TailRL reduces exactly to MaxRL.
The gradients of both objectives are a weighted sum of the score-function $S(x,z) := \nabla_\theta \log \pi_\theta(z \mid x)$.
$\nabla_\theta J_{\mathrm{RL}}(\theta;x) = \mathbb{E}_{z}\!\left[\,r(x,z)\,S(x,z)\right]$
Weight: the reward itself
$\nabla_\theta J_{\mathrm{TailRL}}(\theta;x) = \mathbb{E}_{z}\!\left[\left(\displaystyle\int_0^{r(x,z)}\frac{d\tau}{p_\theta(x,\tau)}\right)S(x,z)\right]$
Weight: expected inverse tail-probability
TailRL upweights the gradient of rollouts that are rare and excellent. Where the tail-probability $p_\theta(x,\tau)$ is low, $1/p_\theta(x,\tau)$ is large, so a rollout clearing reward thresholds the policy almost never reaches counts for far more than its reward alone would say.
The gradient of TailRL naturally decomposes as harmonically weighted gradients of Best-of-$k$ objectives.
$J_{\mathrm{TailRL}}(\theta;x) = \displaystyle\sum_{k=1}^{\infty}\frac{\text{Best-of-}k(\theta;x)-1}{k}$
$\nabla_\theta J_{\mathrm{TailRL}}(\theta;x) = \displaystyle\sum_{k=1}^{\infty}\frac{1}{k}\,\nabla_\theta\,\text{Best-of-}k(\theta;x)$
The harmonic weights $1/k$ are derived from the Maclaurin series of the logarithm. They are not selected or tuned. The sum runs over every budget, so TailRL combines Best-of-$k$ objectives across inference budgets instead of committing to one.
During training you never see the true tail probability. You see a group of $N$ rollouts and their rewards. Estimating it is just counting: fix a reward threshold $\tau$ and ask how many of the $N$ rollouts beat it.
$\hat p_\theta(x,\tau) \;=\; \dfrac{1}{N}\displaystyle\sum_{i=1}^{N}\mathbf{1}\!\left\{r_i > \tau\right\}$
Now slide the threshold from $0$ up to $1$. At each threshold we ask what fraction of rollouts attained a higher reward. That staircase is the tail-probability curve.
In an existing RLVR pipeline this is a few lines inside the advantage computation: no critic, and no new hyperparameter. The advantages can simply be written as:
$\omega\!\left(r_{(i)}\right) = \displaystyle\sum_{k=1}^{i}\frac{r_{(k)}-r_{(k-1)}}{N-k+1}, \qquad A_i = \omega(r_i) - \bar\omega$
In a group-based RLVR pipeline, only the advantage computation changes.
Both methods see identical rollouts and turn them into advantages. REINFORCE promotes a rollout by its raw margin over the group, so its update is spread roughly in proportion to reward. TailRL splits each reward gap among the rollouts that reach it, so a gap only the best rollout clears is worth $N$ times a gap everybody clears.
Draw your own reward distribution, then set how many rollouts are drawn from it.
Rare, exceptional rollouts stay visible to the update instead of disappearing into the mean.
Across every tested model and task, TailRL improves the performance-versus-sampling-compute frontier over expected-reward baselines. The largest gaps appear when exceptional outcomes are rare, or when a safe, moderate shortcut dominates the mean.
Put a box around the object, without naming it. A rollout is one sampled box, scored by its overlap (IoU) with the true box. The set of boxes is finite, so here the exact objective can be computed rather than estimated.
How good is the population-level objective?Trained on overlap alone, population TailRL matches or beats supervised objectives that see the true coordinates, leading the strongest of them, L1+GIoU, on both CorLoc thresholds.
Takeaway Using only a scalar reward, the population-level objective performs as well as or better than task-specific supervised objectives.
Larger training groups move the estimator toward that exact objective, and every TailRL budget stays above the expected-reward baselines.
Takeaway As the training rollout budget grows, the finite-rollout estimator converges to the population-level objective.
A small transformer solves mazes written as text. Stopping pretraining at different points gives starting policies from almost hopeless to occasionally successful. Reward gives partial credit for getting closer to the goal, and more for shorter paths.
Can RL bootstrap from a poor initial policy?
From a poor initialization, GRPO and RLOO fail to improve reliably. TailRL holds up across the whole sweep; PKPO trails it everywhere and falls off once successes are common.
Takeaway TailRL outperforms the other methods when the initial policy has poor coverage over rare excellent rollouts.
Each input is a slow C++ program, and the model rewrites it to run faster without breaking it. A rollout scores zero if it fails any test, otherwise its speedup over the input, timed in gem5 so noise cannot fake a gain.
Copying the input passes every test and earns reward $1$. It is by far the easiest thing to reach.
Takeaway When an easy suboptimal solution exists, expected-reward methods settle for it. TailRL keeps searching and learns to produce rarer and better outcomes.
Given a screenshot and an instruction, the model outputs where to click. Reward combines how close the click lands, a bonus for landing inside the target, and a format bonus. Qwen2.5-VL at 3B and 7B, evaluated on ScreenSpot-Pro.
Takeaway TailRL scales better with inference compute than the expected-reward baselines.
Expected-reward training fails in two ways: it overlooks rare good outcomes, or it collapses to a frequent moderate one. TailRL addresses both by keeping rarely reached reward thresholds influential.
@article{ramasubramanian2026tailrl,
title = {Tail-Likelihood Reinforcement Learning},
author = {Ramasubramanian, Shrinivas and Arora, Daman and Tajwar, Fahim and Zeng, Guanning
and Wu, Qingyang and Zhou, Zhongzhu and Xu, Chenfeng and Feng, Haiwen and Song, Yuda
and Singh, Aarti and Salakhutdinov, Ruslan and Bagnell, J. Andrew and Schneider, Jeff
and Zanette, Andrea},
journal = {arXiv preprint},
year = {2026}
}