Quantifying Behavioral Tails in Black-Box Language Models
cs.LG, cs.CL, stat.ML
Submitted: 2026-09-27
Updated: 2026-09-29
License: http://creativecommons.org/licenses/by/4.0/
The gist: We introduce RareTrap, a framework for estimating the probability of severe behaviors in black box large language models (LLMs).
Terminology
Abstract
We introduce RareTrap, a framework for estimating the probability of severe behaviors in black box large language models (LLMs). A key challenge for probability estimation is defining a tractable distribution over the input space. To accomplish that, RareTrap uses a surrogate LLM and constructs a geometry-aware mapping from a lower-dimensional latent reference space into its token-embedding space to induce an explicit and reproducible distribution over input prompts. A response-level performance function is utilized on the response to quantify behavior severity. This enables sequential rare event simulation that concentrates evaluations on progressively more severe behaviors while preserving probability under the induced prompt distribution, which would otherwise be prohibitive to measure. Across 10 open-weight and two frontier models (GPT-5.4 and Claude Sonnet 4.6), we find that RareTrap successfully induces severe resource consumption behaviors and computes their probability with as few as 200 evaluations. RareTrap provides model developers a principled approach for evaluating language models under a common distribution, and prioritizing alignment effort to improve safety and mitigate risks.
Sources
- Phi-4-reasoning Technical Report
- Estimating Tail Risks in Language Model Output Distributions
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
- Rare Event Analysis of Large Language Models
- Mistral 7B
- Forecasting Rare Language Model Behaviors
- OverThink: Slowdown Attacks on Reasoning LLMs
- Shared Global and Local Geometry of Language Model Embeddings
- POT: Inducing Overthinking in LLMs via Black-Box Iterative Optimization
- ThinkTrap: Denial-of-Service Attacks against Black-box LLM Services via Infinite Thinking
- 2 OLMo 2 Furious
- gpt-oss-120b & gpt-oss-20b Model Card
- Estimating Rare Events in Language Models with Proper Evaluation
- SCARCE: Scalable Cascade Analysis for Rare-event Characterisation via Embeddings
- Predicting LLM Safety Before Release by Simulating Deployment
- Qwen3 Technical Report
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks