stat.MLNov 24, 2026

PAC Learning to Sample: On Computational Aspects of Language Generation

Authors: Alkis Kalavasis, Shuchen Li, Manolis Zampetakis

Organizations: Harvard University · Yale University

Abstract

The success of language models has motivated theoretical work on learning to sample from distributions on discrete domains. A prominent abstraction is the model of language generation in the limit, introduced by Kleinberg and Mullainathan (NeurIPS 2024), in which the algorithm must generate from the target language after some finite but unspecified number of positive examples. While its positive results are surprisingly general, most guarantees are qualitative. In this work, we seek quantitative guarantees on sample and time complexity, inspired by statistical and computational learning theory. To this end, we study a PAC model of language generation, proposed (in a different context) by De, Diakonikolas, and Servedio (SODA 2015), in which a Boolean concept class CC over {−1,1}n\{-1,1\}^n defines the target languages: given uniformly random positive examples of an unknown concept f∈Cf \in C, the learner must output a sampler whose output distribution (conditioned on the training data) is close in total variation to the uniform distribution over f−1(1)f^{-1}(1). Their work implicitly gives an efficient algorithm for PAC learning to sample CC, given three primitives for CC: an online learner, approximate sampling and counting oracles, and an SQ learner. We ask whether these ingredients, in particular online learnability, are necessary. First, we construct a Boolean concept class CC for which online learning is cryptographically hard, yet PAC learning to sample is computationally efficient. Then, we develop new algorithms that use offline ERM oracles instead of online learners, together with approximate sampling/counting oracles for intersections of concepts in CC and an SQ learner for CC. We view our results, together with the work of De, Diakonikolas, and Servedio, as a first step towards understanding the computational complexity of language generation.

Figures & tables

Explore similar work

CardsList
  1. Mistake-Bounded Language Generation

    May 11, 2026Jon Kleinberg, Charlotte Peale, Omer Reingold

  2. Sample Complexity of Autoregressive Reasoning: Chain-of-Thought vs. End-to-End

    Apr 13, 2026Steve Hanneke, Idan Mehalel, Shay MoranCoT SupervisionSample Complexity

  3. On Language Generation in the Limit with Bounded Memory

    May 28, 2026Jon Kleinberg, Anay Mehrotra, Amin Saberi +1Statistical Learning TheoryText Generation