cs.CLOct 13, 2026

Weighted Ensemble Sampling for Rare-Event Estimation in Language Models

Authors: Zixuan Liu, Gustavo Didier, Fangzheng Wu, Brian Summa, Zizhan Zheng

Organizations: Department of Computer Science, Tulane University, New Orleans, LA, 70118, USA · Department of Mathematics, Tulane University, New Orleans, LA, 70118, USA

Abstract

Rare but severe failures of large language models can become practically significant at deployment scale. Estimating their probabilities with direct Monte Carlo sampling is highly inefficient, while proposal-based methods typically require auxiliary learning of an additional proposal distribution. We introduce Weighted Ensemble (WE), a training-free framework for rare-event estimation in language models. WE samples exclusively from the original language model and improves upon direct Monte Carlo by periodically reallocating the sampling budget toward prefixes that appear more likely to reach the target rare event. To guide this reallocation without learning a separate proposal distribution, we exploit internal LLM representations as prefix-level signals and empirically validate their effectiveness. We provide a theoretical analysis of the proposed algorithm. Experiments on safety-related tasks spanning both small-scale and modern large-scale LLMs demonstrate that WE improves the efficiency and reliability of rare-event probability estimation.

Figures & tables

Appendix figures & tables32 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Rare Event Estimation via Iterative Unalignment

    Sep 21, 2026Hanming Yang, Daksh Mittal, Jing Dong +1Importance SamplingLLM Safety

  2. Amplify, Locate, Estimate (ALE) on Rare-Failure Rates of Fine-Tuned LLMs

    Oct 26, 2026Patrick Reichherzer, Jonathan Evertz, Thorsten HolzRare-Event EstimationLanguage Model Safety Evaluation