Papers
Topics
Authors
Recent
Search
2000 character limit reached

Next-token functional estimation

Published 17 Sep 2026 in stat.ML, cs.IT, cs.LG, math.PR, and math.ST | (2609.19529v1)

Abstract: Suppose we observe the first nn points of a sequence of random variables having length n+1n+1, and wish to estimate a functional of the unobserved final point and the empirical measure of the nn observed training points. Such next-token functionals include the probability that the next token is novel (also known as the surprise probability), the tail probability of the minimum distance between the next token and training points, and the test error of a classifier trained on the observed points. All of these quantities are classically estimated by the leave-one-out method, which is inconsistent under temporal dependence. We propose a leave-a-window-out estimator, which deletes a window of length ττ after each index before forming the empirical measure and reduces to leave-one-out at τ=1τ= 1. Under natural assumptions, we show that the error of our estimator decays at a parametric rate for any stationary ββ-mixing process that also admits a Marton coupling. Our results thus cover several natural functionals on a large class of stochastic processes. We complement these upper bounds with a sharp minimax lower bound for estimating the surprise probability on mixing Markov chains. Simulations on Markov chains, moving-average processes, and autoregressive processes show that our estimator succeeds in many scenarios where leave-one-out and add-constant baselines fail.

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.