PAC Learning to Sample: On Computational Aspects of Language Generation
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 over defines the target languages: given uniformly random positive examples of an unknown concept , the learner must output a sampler whose output distribution (conditioned on the training data) is close in total variation to the uniform distribution over . Their work implicitly gives an efficient algorithm for PAC learning to sample , given three primitives for : 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 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 and an SQ learner for . 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.
Create a lesson
Metadata
- Categories
- stat.ML, cs.CL, cs.DS, cs.LG
Related papers
Multiscale Learning Can Reduce Sample Complexity
Shared title terminologystat.MLAmir R. Asadi
Beyond Langevin: Sampling Multimodal Densities using the Witten Laplacian on 1-forms
Shared title terminologystat.MLSahani Pathiraja, Panos Parpas
Nonlinear Representation Learning in Deep Generative Models for Out-of-distribution Generation
Shared title terminologystat.MLBryon Aragam, Yida Lyu, Ruiyi Yang
Riemannian Sample-Average Approximation under Markov Dependence: Finite-Sample Guarantees, One-Step Refinement, and Inference
Shared title terminologystat.MLXiaotian Chang, Qirui Hu, Nan Qiao
Improved Sample Complexity of Robust Reinforcement Learning with KL Uncertainty Sets
Shared title terminologystat.MLYudan Wang, Zilong Deng, Nathaniel D. Bastian et al.
EnSurv: Deep Generative Survival Modeling with Application to Kidney Graft Outcomes
Shared title terminologystat.MLRajdeep Pathak, Tamalika Koley, Shreyashi Basak et al.