Estimating great expectations under autoregressive language models with potentials

Francesco I. Re, Shubhangi Ghosh, Tim Vieira, Ryan Cotterell
10/8/2026
cs.AIcs.LGstat.ME

No confident code implementation found for this paper.

Abstract

Many applications of language models hinge not on individual samples but on the expectation of a test functional under the model. Estimating such expectations reliably can be computationally expensive. In this paper, we show how to make estimation more efficient by exploiting the next-token conditional probabilities which are available as a by-product of sampling. We do so through potentials: real-valued functions on prefixes that decompose the test functional additively. We construct an estimator whose variance depends on the chosen potential, and derive conditions under which a potential reduces this variance. We then develop practical potentials for several estimands and applications, and demonstrate substantial variance reductions across several estimands at comparable computational cost.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{re2026estimating,
  title  = {Estimating great expectations under autoregressive language models with potentials},
  author = {Francesco I. Re and Shubhangi Ghosh and Tim Vieira and Ryan Cotterell},
  year   = {2026},
  eprint = {2610.11399},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.11399v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.11399.svg)](https://codeofpaper.com/paper/2610.11399)

Discussion