atlas

Research map / Learning theory and algorithms / Sample complexity

Estimating the Probabilities of Rare Outputs in Language Models

ICLR 2025 · Learning theory and algorithms › Sample complexity · approach: Minimax estimation rates · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Studies low probability estimation for argmax outputs of small transformer LMs under independent-token input distributions, comparing importance sampling (ITGIS, MHIS) with activation extrapolation (QLD, GLD) against naive sampling.

Problem

Estimating the probability that a language model outputs a target token under a formally specified input distribution when that probability (1e-9 to 1e-5) is too small for random sampling within a fixed budget.

Approach

Two families of estimators: importance sampling that up-weights inputs likely to produce the rare token (gradient-based independent-token proposal ITGIS, and Metropolis-Hastings MCMC over a Boltzmann posterior MHIS), and activation extrapolation that fits distributions to pre-unembed activations (Quadratic Logit Decomposition, which uses a presumed independence between whitened subspaces, and a Ga

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use importance sampling (ITGIS or MHIS) instead of activation extrapolation (QLD or GLD)Low-probability estimation · Language-model rare-token behaviorsItakura–Saito lossHelped
Use QLD instead of GLDActivation extrapolation · Language-model rare-token behaviorsItakura–Saito lossHelped
Use an optimal constant estimate instead of GLDLow-probability estimation · Language-model rare-token behaviorsItakura–Saito lossNo clear effect
Use MHIS instead of ITGISLow-probability estimation · Smaller modelsItakura–Saito lossHurt
Use MHIS instead of ITGISLow-probability estimation · Larger modelsItakura–Saito lossHelped
Use ITGIS rather than MHISLow-probability estimation · spanish distributionItakura–Saito lossMixed
Use MHIS rather than ITGISLow-probability estimation · hex and icl distributionsItakura–Saito lossMixed
Increase QLD's sample budget beyond 2^16QLD · Language-model rare-token behaviorsItakura–Saito lossHelped
Score methods using squared error in log-space instead of Itakura–Saito loss (ablation)Compared estimation methods · All tested distributions and model sizesSquared error in log-spaceNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: C4 CodeParrot

Benchmarks: 8 synthetic input distributions (hex, camel, colon, if, caps, english, spanish, icl) over small transformer models

Metrics: Itakura-Saito loss squared error in log-space leave-one-out cross-validation loss

Baselines: Naive sampling (optimal constant) Gaussian Logit Difference Quadratic Logit Decomposition

Builds on: Greedy Coordinate Gradient adversarial training Adaptive Multi-Level Splitting

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy