Skip to content

Estimating Great Expectations Under Autoregressive Language Models with Potentials

Francesco I. Re, Shubhangi Ghosh, Tim Vieira, Ryan Cotterell

cs.AI

Abstract

Many applications of language models require estimating the expectation of a test functional under the model. Obtaining precise estimates can be computationally expensive. We show how to improve estimation precision by exploiting next-token conditional probabilities available as a by-product of sampling. Our approach uses potentials: real-valued functions of prefixes that induce an additive decomposition of the test functional. We construct a family of estimators parameterized by these potentials and derive conditions for variance reduction. Across applications including entropy estimation, watermark detection, and rare-event probability estimation, our estimators achieve substantial variance reductions relative to Monte Carlo and importance sampling baselines at comparable computational cost.

Create a lesson

Metadata

Categories
cs.AI, cs.LG, stat.ME