The researchers propose an iterative unalignment method for estimating rare event probabilitiesRare Event Estimation via Iterative Unalignment
Translation in progress — untranslated text is omitted.
The researchers propose a new importance sampling (IS) method that constructs a proposal distribution by perturbing the original model weights, to estimate the probability of rare events in the random output trajectories of agents. The method parameterizes the proposal distribution itself as a differentiable language model, enabling gradient-based search in weight space, and designs an objective that combines an event-amplifying differentiable surrogate with adaptive regularization, dynamically balancing amplification and estimator stability. The authors evaluate on models of approximately 120M and approximately 2.6B parameters, across three event families and over 300 rare events with probabilities as low as 10^-9, with relative standard error of reference probabilities below 10%. In the most verifiable setting, for events with probability below 10^-7, the IS estimator achieves over 800x computational efficiency gain over naive Monte Carlo, and the implementation is open-sourced.
- When agents operate autonomously, extremely rare failures on their own stochastic decoding trajectories, even with low per-trial probability, can be catastrophic at deployment scale. Estimating the probability of rare events in output trajectories under fixed inputs is needed, but naive Monte Carlo is computationally infeasible in this regime.
- Iterative Unalignment writes the importance sampling proposal as a perturbation of the base model weights q_δ=p_{θ+δ}. A differentiable surrogate S_δ amplifies events, a stepwise reverse KL regularizer R_δ constrains deviation, and the effective sample size ratio is used to adaptively adjust the regularization strength online. Finally, exact importance weights are used to estimate probabilities.
- On GPT-2 Small (approximately 120M) and Gemma-2 (approximately 2.6B), across three event families and over 300 events (rarity as low as 10^{-9}, reference probability relative standard error below 10%), the authors report: for Token Presence with probability below 10^{-7}, IU achieves an average computational efficiency gain of over 800x relative to naive Monte Carlo; on GPT-2, with 128 samples per estimate after training, the average 95th percentile error for events below 10^{-7} is 1.2 orders of magnitude.
- The authors note that estimator accuracy in the deep tail is difficult to rigorously verify, and evaluation requires extensive sampling, which limits the model sizes that can be studied. Experiments cover GPT-2 Small and Gemma-2, Token Presence, Composite Token Presence, and Profanity Classifier, and use quantile log error to measure the gap between repeated estimates and reference probabilities.