TL;DR
When AI agents execute real-world tasks like cleaning up file systems, standard reinforcement learning methods (like GRPO) actually train them to become reckless, averaging away rare catastrophic mistakes in favor of fast shortcuts. This paper introduces Tail-Aware Post-training (TAP), a drop-in algorithmic replacement that aligns training with human risk aversion by concentrating learning updates on the worst-case outcomes. As a result, agents learn to verify before acting—drastically reducing catastrophic failures without sacrificing helpfulness.
What Problem Does This Paper Address?
Most AI safety research assumes an unsafe user—someone trying to jailbreak a model or ask for bomb-making instructions, where the safe behavior is simply to refuse. Today, however, language models act as autonomous agents executing code and managing files. Here, danger often emerges from completely benign requests.
Imagine asking an assistant to "clear out superseded *draft* files." Ninety percent of the time, deleting them directly works fine and saves time. Ten percent of the time, a file named Draftline_MSA—a signed, critical contract—gets wiped out forever.
Checking files first costs a small effort penalty in every episode (like paying an insurance premium). Standard post-training algorithms like Group Relative Policy Optimization (GRPO) optimize for the mean reward across a group of trial runs (rollouts). Because catastrophes are rare "tail events," their massive penalties get averaged out by the 90% of runs where taking the reckless shortcut succeeded. Consequently, standard RL actively trains the agent to skip safety checks, leaving it less safe than before training.
Methods
Humans aren't risk-neutral; we gladly accept a slightly slower assistant to avoid a 1-in-10 chance of deleting a production database. Drawing on expected utility theory, the authors model user satisfaction with a concave, exponential utility function rather than a flat average.
Instead of maximizing mean reward, Tail-Aware Post-training (TAP) maximizes the certainty equivalent of user satisfaction (known as entropic risk). TAP modifies GRPO's advantage calculation in two steps:
- Within-group z-score standardization: Raw rewards within a group of rollouts are standardized to have zero mean and unit variance.
- Entropic-risk weighting (softmin tilt): TAP applies an exponential weight ($e^{\beta \tilde{r}}$ with $\beta = -2$) to the standardized rewards. As a rollout's reward drops, its weight grows exponentially, concentrating the negative gradient update heavily onto the worst failures in the group.
What’s new here isn't entropic risk itself, which exists in RL literature, but combining it with group standardization. As an agent converges during training, its rollouts become more similar and reward variance shrinks. Without z-scoring first, the exponential tilt weakens as variance drops, causing the algorithm to silently revert back to standard mean-reward GRPO late in training. Standardizing first locks the level of risk aversion in place throughout training.
Datasets
- SAFETASK (Newly Introduced): A benchmark of 1,295 multi-turn tool-use tasks across 64 business domains. Every prompt is benign, but a hidden environmental hazard appears in an average of 12.4% of episodes, turning direct execution into an irreversible catastrophe unless the agent uses verification tools first.
- CAPE-Bench & $\tau$-bench (Retail): Adapted public benchmarks featuring counterfactual hidden constraints (e.g., whether an action violates policy or a customer withdraws confirmation at the last second), set to occur in 10% of deployment episodes.
- IFEval & BFCL v4: Used to evaluate whether safety post-training degrades general instruction-following and function-calling capabilities.
Key Insights and Ideas
- Mean reward overstates user satisfaction: By Jensen’s inequality, the utility of an average reward is strictly greater than the average utility of risky rewards. Optimizing the mean mathematically forces the agent to take on more risk than a human user wants.
- Simply increasing the penalty doesn't fix GRPO: You might think multiplying the failure penalty by $8\times$ would force GRPO to care. It doesn't. Because GRPO normalizes rewards within each group, once a penalty is large enough to dominate the spread, making it even larger barely changes its normalized advantage—and groups that happen to have zero failures still push the agent to skip checks.
- Penalizing low reward (not just harm) prevents over-refusal: Because failing to complete a task also yields a low reward, lazy refusals land in the exact same bad tail as safety violations. The agent can't game TAP by doing nothing; it is forced to check and complete the task.
Key Results
Across Qwen3-8B, OLMo-3-7B, and Gemma-3-4B, GRPO consistently made every model more dangerous in risky worlds, driving violation rates near 86%–100%.
- Drastic harm reduction: On CAPE-Bench with Qwen3-8B, GRPO drove the risky-world harm rate from 31.2% (base model) up to 86.3%, whereas TAP dropped it to 0.0%—while simultaneously boosting safe-world task completion from 64.8% to 94.9%.
- Consistent gains on SAFETASK: For Gemma-3-4B, GRPO increased harm from 78.9% to 99.0%, while TAP reduced it to 56.9% (keeping completion high at 94.8%). On Qwen3-8B, TAP cut harm from 91.6% down to 66.5% (vs. GRPO's 99.7%).
- Preserved general skills: On IFEval and BFCL v4, TAP stayed within ~0.6 to 1 percentage point of the base models, avoiding alignment tax.
Limitations and Future Work
The authors use a fixed risk-aversion parameter ($\beta = -2$) across all tasks and models, noting that future work could dynamically adapt risk aversion based on the specific user or the stakes of the task. Additionally, the studied benchmarks focus on hazards resolvable via single-episode verification checks; extending this to hazards that unfold subtly across many steps of ultra-long-horizon tasks—and testing with live human users—remains open.
Summary updated