Table contents.
Introduction
Overview
We describe connections between learning, compression, and meta-complexity (see Figure 1 ). We start off with a brief introduction to each of these themes, emphasising some important conceptual points along the way.
Figure 1. Three perspectives on structure in data: learning, compression, and meta-complexity. We investigate correspondences among them through several lenses, including Shannon’s information theory, modern variants of (time-bounded) Kolmogorov complexity, and the theory of computational pseudorandomness. Interestingly, these connections can be used both to design new learning algorithms and to prove that certain compression problems admit no efficient algorithms.
Learning and Compression. At a high level, learning and compression are two ways of asking whether observed data admit a concise explanation:
A learning algorithm uses examples to construct a model that makes useful predictions on new data.
A compression algorithm represents the data using fewer bits, together with a procedure that recovers the original data.
The outputs are different, but both tasks succeed by identifying structure or regularity : a pattern that permits prediction also makes some outcomes more likely than others, and likely outcomes can be assigned shorter descriptions. Conversely, a short description is evidence that the object is not completely unstructured and can therefore be a useful starting point for prediction.
This connection takes different forms in supervised and unsupervised learning. In supervised learning , examples arrive with labels, and the learner seeks a hypothesis that predicts the label of a fresh example. Here compression may mean inferring from a large labelled sample a short consistent hypothesis, as in Occam’s Razor, or retaining a small subsample from which a good hypothesis can be reconstructed. In unsupervised learning , there are no labels. The learner may instead produce an approximate distribution that generates the observations, or predict the next part of a sequence from its prefix. Here the relationship with source coding is especially direct: if a probabilistic model assigns probability p p p to an outcome, then the outcome can be encoded using roughly log ( 1 / p ) \log(1/p) log ( 1/ p ) bits. Thus accurate probabilistic predictions lead to short descriptions of likely data, while valid code lengths can conversely be interpreted as probability assignments. This correspondence connects distribution learning, sequence prediction, and source coding.
One of the main goals of this survey is to determine precisely how far this correspondence extends. We formulate the relevant computational tasks and present reductions showing when a learner can be transformed into a compressor, and when compression can be used to construct a learner.
Two Theories of Information. We use two complementary notions of information . In Shannon’s information theory , a message is drawn from a probability distribution , and entropy measures the optimal expected description length when coding repeated outputs of that source [160 ] (see [38 ] ). This is a statistical and distributional theory: the information content of an outcome is determined by its probability under the chosen source. In contrast, in algorithmic information theory , the Kolmogorov complexity of an individual string is the length of its shortest generating program [112 ] (see [132 ] ). No source distribution needs to be specified, and the theory specifies the information content of each string.
These two theories are related, but not interchangeable. For instance, source coding , mentioned above, connects probability distributions with description length: a distribution with a short sampler gives short algorithmic descriptions to its typical outputs. Nevertheless, compressing individual strings in this way may be computationally expensive and may require access to the code of the sampling procedure; moreover, a string with a short program need not be well compressed by a particular sampler and the associated source coding procedure.
A major focus of this survey is on connections between learning and compression under computational efficiency constraints . Consider for instance Kolmogorov complexity. It describes the shortest possible program, but it places no bound on how long that program may take to produce its output. Given a string, estimating its Kolmogorov complexity is uncomputable in general. Moreover, central properties of the theory do not automatically survive once efficiency is imposed. For example, symmetry of information holds for Kolmogorov complexity up to a small additive loss, whereas its time-bounded analogues do not hold in general (see, e.g., [67 , 84 ] ). Classical Kolmogorov complexity, while philosophically relevant, is not by itself an adequate foundation for computational learning. To study efficient learning through compression, we need both a theory of time-bounded descriptions and a theory of the computational complexity of finding or recognizing them.
Meta-Complexity. These considerations lead naturally to meta-complexity , the study of the computational complexity of problems that ask about the complexity of input objects. Canonical examples ask whether a string has a short program that generates it within a prescribed time bound, or whether the truth table of a Boolean function can be computed by a small Boolean circuit. Such problems formalise the task of detecting whether an object is compressible or structured; see [161 ] for further context. The central question is no longer merely whether short descriptions exist, but whether they can be recognised or found efficiently.
The complexity of these compression problems is intertwined with some of the most fundamental unresolved questions in theoretical computer science. In the terminology of Impagliazzo’s five worlds [98 ] , we do not yet know which computational world we inhabit: whether worst-case hard problems remain hard on typical inputs, whether such hardness supports secure cryptography, and how broadly efficient algorithms can exploit structure. Meta-complexity, through the study of the complexity of compression problems, turns out to provide a suitable framework in which to investigate this tension between tractability on typical inputs and cryptographic hardness. In turn, this will allow us to compare the feasibility of different learning tasks and their relation to Impagliazzo’s computational worlds.
There is, however, an important mismatch between learning and the standard formulation of compression problems in meta-complexity. Most canonical problems in meta-complexity are decision problems . For example, given a string x x x , a time bound t t t , and a description length s s s , the Minimum Time-Bounded Kolmogorov Complexity problem (MINKT) asks whether some program of size at most s s s produces x x x in at most t t t steps. The corresponding search problem asks for such a program. Learning is inherently a search task: a learner must output a hypothesis, sampler, or predictor, rather than merely certify that a concise representation exists. Thus, in principle, an efficient algorithm that merely recognises compressible data does not automatically yield a corresponding search algorithm. Interestingly, many results surveyed here bridge this gap indirectly: a decision procedure separating structured objects from random ones is sufficient to construct a learning algorithm.
Having introduced the main themes, we elaborate on the scope of the survey. We first revisit classical connections in which compression yields generalisation in supervised learning. After this, we compare learning tasks of different strengths, from universal sequence extrapolation and distribution learning to more traditional forms of PAC learning, and relate this hierarchy to average-case complexity, meta-complexity, and cryptography. Next, we explain how algorithms for detecting objects of low description complexity can produce learning algorithms, both through reconstruction procedures in supervised learning and through time-bounded variants of Solomonoff induction in unsupervised learning. This perspective also reveals novel phenomena such as generic learning speedups and, in certain settings, equivalences between efficient learning and the easiness of an associated meta-complexity problem. Finally, we discuss an unexpected converse direction, showing how sufficiently powerful learning algorithms can yield computational hardness results and new lower bounds in meta-complexity. For a more detailed description of each section of the survey, we refer to § 1.2 below.
We place particular emphasis on recent developments in these rapidly evolving areas. These include new connections among learning, time-bounded Kolmogorov complexity, meta-complexity, cryptography, average-case complexity, and universal sequence extrapolation. Our aim is not only to state these results, but also to explain the underlying ideas and, where appropriate, provide proofs or detailed proof sketches. The emerging theory remains far from complete, so open problems form an integral part of the survey.
Intended Audience and Required Background. The primary audience includes students and researchers interested in computational complexity, computational learning, and theoretical computer science more broadly. We aim to make the main results and proof ideas accessible without assuming prior expertise in every area involved. The preliminaries review the necessary concepts and definitions, and provide pointers to standard textbooks that cover the required material in more detail.
We also hope that researchers and students in machine learning will find the survey useful as an entry point to the complexity-theoretic foundations of learning and compression. We warn that some arguments might omit standard background or routine intermediate steps. Readers may find it helpful to use their preferred AI assistant as an interactive companion for unpacking definitions, reconstructing such steps, or translating between the terminology of theoretical computer science and intuitions from machine learning.
We stress that the selection of topics necessarily reflects the authors’ background and perspective. In particular, we do not attempt to provide a comprehensive account of learning and compression from the perspective of statistics, information theory, or theoretical machine learning. We refer the reader to § 8 for some additional pointers and complementary perspectives.
Finally, to present a general theory, much of this survey considers expressive learning problems involving unrestricted polynomial-size Boolean circuits or all efficiently samplable example distributions. As explained later in the text, these learning problems are intractable under cryptographic conjectures. However, many ideas and techniques surveyed here also apply to more restricted learning tasks, and such tasks are more likely to admit efficient algorithms. It is possible, therefore, that some results can inform practical methods or analyses, and it would be interesting to see further work along these lines. In fact, going beyond the formal connections covered here, the compression perspective has found numerous concrete applications in both classical and contemporary machine learning. A comprehensive treatment of the rich empirical literature on learning and compression lies beyond the scope of this survey, although we provide some pointers in § 8 .
Organisation
The remainder of the survey is organised as follows.
§ 2 : Preliminaries. We establish the notation and background used throughout the survey. After reviewing the required probability and information-theoretic notions, we define the supervised and unsupervised learning frameworks considered later, including sequence extrapolation, distribution learning, PAC learning, agnostic learning, and heuristic learning. We also recall the necessary concepts from cryptography, circuit complexity, Kolmogorov complexity, meta-complexity, and natural properties.
§ 3 : Classical Connections Between Learning and Compression. We present two fundamental roles of compression in supervised learning. Model compression formalises the Occam principle that a short hypothesis fitting the observed labels is unlikely to generalise poorly, while sample compression retains a small portion of the labelled sample from which a hypothesis can be reconstructed. These results illustrate, without computational efficiency considerations, how the amount of information retained from a sample controls generalisation.
§ 4 : Complexity-Theoretic Foundations of Learning and Compression. We compare five increasingly weak “learning paradises”, ranging from universal sequence extrapolation and distribution learning to heuristic PAC learning, and establish reductions among them. We then place these learning tasks within Impagliazzo’s worlds, relating their feasibility to average-case complexity, meta-complexity, and cryptographic hardness. Finally, we study white-box learning, where the learner receives the code of a sampler generating its labelled examples, and connect this additional access to the inversion of one-way functions.
§ 5 : Learning via Meta-Complexity and Algorithmic Information Theory. We explain how algorithms that distinguish low complexity objects from random ones can be combined with reconstruction procedures of pseudorandom generators to obtain supervised learning algorithms. For unsupervised learning, § 5.2 revisits Solomonoff induction and asks when prediction based on shortest programs can be implemented efficiently using estimates of time-bounded Kolmogorov complexity. We also present equivalences between learning and meta-complexity in § 5.3 , and a technique to boost the running time of learning algorithms in § 5.4 .
§ 6 : Learning vs Compression via Shannon’s Information Theory. We develop the correspondence among source coding, universal coding, and distribution learning, first at the information-theoretic level and then under computational efficiency constraints. The discussion covers arithmetic
coding, next-bit prediction, source coding theorems for time-bounded Kolmogorov complexity, conditional sampling, and symmetry of information. We conclude by relating this framework to autoregressive language modelling, where next-token probabilities determine predictions and code lengths.
§ 7 : Meta-Complexity and Computational Hardness from Learning. We study the converse direction, explaining how nontrivial deterministic, randomized, and quantum learners can imply circuit size lower bounds, a major challenge in computational complexity theory. We then show how this paradigm can establish unconditional lower bounds for meta-complexity problems. In particular, § 7.3 describes a general template in which an assumed algorithm for measuring compressibility produces a learner whose complexity-theoretic consequences contradict the original easiness assumption.
§ 8 : Related Work. We provide pointers to related connections and research directions outside the survey’s main scope, including further interactions among learning, compression, algorithmic information theory, complexity theory, and cryptography. We also provide links to the empirical literature on learning and compression and to related practical aspects of machine learning.
Acknowledgements. We thank Shuichi Hirahara for helpful discussions on deriving meta-complexity lower bounds from deterministic learning, which led to Item (ii) of Theorem 7.1 . We also thank Valentine Kabanets for helpful feedback on an earlier draft of this survey.
Use of AI Tools. We used AI tools to search for relevant literature, assist with the preparation of diagrams, identify typographical errors, check proofs for correctness, and make textual edits to improve the exposition.
Funding Information. This work was supported in part by the UKRI Frontier Research Guarantee Grant EP/Y007999/1 and the Centre for Discrete Mathematics and its Applications (DIMAP) at the University of Warwick. The authors would also like to thank the Isaac Newton Institute for Mathematical Sciences, Cambridge, for support and hospitality during the programme Logical Foundations of Complexity Theory (LFC), where part of the work on this paper was undertaken. The LFC programme was supported by EPSRC grant EP/Z000580/1.
Preliminaries
Basic Notation
For m ≥ 1 m \ge1 m ≥ 1 , we let [ m ] = { 1 , … , m } [m] = \{1,\ldots,m\} [ m ] = { 1 , … , m } .
We denote the empty string by ϵ \epsilon ϵ , and the length of a string x x x by ∣ x ∣ \lvert x\rvert ∣ x ∣ . For strings x ∈ { 0 , 1 } n x \in\{0,1\}^{n} x ∈ { 0 , 1 } n and y ∈ { 0 , 1 } m y \in\{0,1\}^{m} y ∈ { 0 , 1 } m , their concatenation is written as x y ∈ { 0 , 1 } n + m xy \in\{0,1\}^{n+m} x y ∈ { 0 , 1 } n + m .
Given a string z ∈ { 0 , 1 } n z \in\{0,1\}^{n} z ∈ { 0 , 1 } n and a set S ⊆ [ n ] S \subseteq[n] S ⊆ [ n ] , we let z ∣ S ∈ { 0 , 1 } ∣ S ∣ z\vert_{S} \in\{0,1\}^{\lvert S\rvert} z ∣ S ∈ { 0 , 1 } ∣ S ∣ denote the string obtained by restricting z z z to the coordinates in S S S .
When considering algorithms, PPT denotes probabilistic polynomial time.
Probability Theory and Information Theory
If x ∼ D x \sim D x ∼ D , then x x x is sampled from the distribution D D D . For a set S S S , x ∼ S x \sim S x ∼ S denotes a uniformly random element from S S S . For any a a a in the support of D D D , D ( a ) D(a) D ( a ) denotes its probability. We write U ℓ U_{\ell} U ℓ for the uniform distribution over { 0 , 1 } ℓ \{0,1\}^{\ell} { 0 , 1 } ℓ . We use Δ T V ( P , Q ) \Delta_{\mathrm{TV}}(P,Q) Δ TV ( P , Q ) to denote the statistical distance of two distributions with the same support. We will also use KL-divergence and its relation to statistical distance, as reviewed below.
Definition 2.1 (KL Divergence). Let P P P and Q Q Q be distributions on the same finite set Ω \Omega Ω . The Kullback–Leibler divergence from P P P to Q Q Q is defined by
KL ( P ∥ Q ) ≜ E x ∼ P [ log P ( x ) Q ( x ) ] = ∑ x ∈ Ω P ( x ) log P ( x ) Q ( x ) . \operatorname{KL}(P\Vert Q) \triangleq\mathbb{E}_{x\sim P}\left[\log\frac{P(x)}{Q(x)}\right] = \sum_{x\in\Omega} P(x)\log\frac{P(x)}{Q(x)}. KL ( P ∥ Q ) ≜ E x ∼ P [ log Q ( x ) P ( x ) ] = x ∈ Ω ∑ P ( x ) log Q ( x ) P ( x ) .
Lemma 2.2 (Pinsker’s Inequality). Let P P P and Q Q Q be distributions on the same finite set. Then
Δ T V ( P , Q ) 2 ≤ 1 2 KL ( P ∥ Q ) . \Delta_{\mathrm{TV}}(P,Q)^2 \le\frac{1}{2}\operatorname{KL}(P\Vert Q). Δ TV ( P , Q ) 2 ≤ 2 1 KL ( P ∥ Q ) .
Definition 2.3 (Conditional KL Divergence). Let ( P X , P Y ) (P_X,P_Y) ( P X , P Y ) and ( Q X , Q Y ) (Q_X,Q_Y) ( Q X , Q Y ) be random pairs on the same finite product set X × Y \mathcal{X}\times\mathcal{Y} X × Y , and suppose that Support ( P X ) ⊆ Support ( Q X ) \operatorname{Support}(P_X)\subseteq\operatorname{Support}(Q_X) Support ( P X ) ⊆ Support ( Q X ) . The conditional Kullback–Leibler divergence from P Y P_Y P Y conditioned on P X P_X P X to Q Y Q_Y Q Y conditioned on Q X Q_X Q X is defined by
KL ( P Y ∣ P X ∥ Q Y ∣ Q X ) ≜ E x ∼ P X [ KL ( P Y ∣ P X = x ∥ Q Y ∣ Q X = x ) ] . \operatorname{KL}(P_Y\mid P_X\Vert Q_Y\mid Q_X) \triangleq\mathbb{E}_{x\sim P_X}\left[\operatorname{KL}(P_Y\mid P_X=x\Vert Q_Y\mid Q_X=x)\right]. KL ( P Y ∣ P X ∥ Q Y ∣ Q X ) ≜ E x ∼ P X [ KL ( P Y ∣ P X = x ∥ Q Y ∣ Q X = x ) ] .
Lemma 2.4 (Chain Rule for KL Divergence). Let ( P 1 , … , P m ) (P_1,\ldots,P_m) ( P 1 , … , P m ) and ( Q 1 , … , Q m ) (Q_1,\ldots,Q_m) ( Q 1 , … , Q m ) be random vectors on the same finite product set X 1 × ⋯ × X m \mathcal{X}_1\times\cdots\times\mathcal{X}_m X 1 × ⋯ × X m , and suppose that Support ( P 1 , … , P m ) ⊆ Support ( Q 1 , … , Q m ) \operatorname{Support}(P_1,\ldots,P_m)\subseteq\operatorname{Support}(Q_1,\ldots,Q_m) Support ( P 1 , … , P m ) ⊆ Support ( Q 1 , … , Q m ) . For every i ∈ [ m ] i\in[m] i ∈ [ m ] , write
P < i ≜ ( P 1 , … , P i − 1 ) and Q < i ≜ ( Q 1 , … , Q i − 1 ) , P_{<i} \triangleq(P_1,\ldots,P_{i-1}) \qquad\text{and}\qquad Q_{<i} \triangleq(Q_1,\ldots,Q_{i-1}), P < i ≜ ( P 1 , … , P i − 1 ) and Q < i ≜ ( Q 1 , … , Q i − 1 ) , where P < 1 P_{<1} P < 1 and Q < 1 Q_{<1} Q < 1 denote the empty tuple. Then
KL ( ( P 1 , … , P m ) ∥ ( Q 1 , … , Q m ) ) = ∑ i = 1 m KL ( P i ∣ P < i ∥ Q i ∣ Q < i ) \operatorname{KL}((P_1,\ldots,P_m)\Vert(Q_1,\ldots,Q_m)) = \sum_{i=1}^{m}\operatorname{KL}(P_i\mid P_{<i}\Vert Q_i\mid Q_{<i}) KL (( P 1 , … , P m ) ∥ ( Q 1 , … , Q m )) = i = 1 ∑ m KL ( P i ∣ P < i ∥ Q i ∣ Q < i ) = m ⋅ E i ∼ [ m ] [ KL ( P i ∣ P < i ∥ Q i ∣ Q < i ) ] . = m\cdot\mathbb{E}_{i\sim[m]}\left[\operatorname{KL}(P_i\mid P_{<i}\Vert Q_i\mid Q_{<i})\right]. = m ⋅ E i ∼ [ m ] [ KL ( P i ∣ P < i ∥ Q i ∣ Q < i ) ] .
We use the following definition of entropy.
Definition 2.5 (Entropy). For a probability distribution D D D over a finite set, define the entropy of D D D as
H ( D ) ≜ ∑ x ∈ Support D D ( x ) log 1 D ( x ) . H(D) \triangleq\sum_{x\in\operatorname{Support}D} D(x)\log\frac{1}{D(x)}. H ( D ) ≜ x ∈ Support D ∑ D ( x ) log D ( x ) 1 .
For more information about information theory and its applications, see [38 , 150 ] .
Learning Frameworks
In supervised learning , the learner receives examples together with the desired answers, usually labels produced by an unknown target function, and the goal is to predict the correct label on new examples. In unsupervised learning , the learner receives samples without such labels and must instead capture some structure of the source that generated them.
In the learning models introduced below, sequence extrapolation and distribution learning are unsupervised, since the input consists only of samples from an unknown process or distribution. On the other hand, PAC learning and heuristic learning are supervised, since the learner is given labelled examples of the form ( x , f ( x ) ) (x, f(x)) ( x , f ( x )) and aims to predict the label of future examples.
Sequence Extrapolation
A common way to learn from data is to ask what should come next. After observing a prefix of a sequence, a learner tries to reproduce the distribution of the next block without being told the process that generated the sequence. This viewpoint captures settings ranging from sequential prediction to universal induction: the past is useful precisely when it reveals regularity in an unknown source. Here we make that intuition computational by assuming only that the sequence is produced by a short randomized program running within a prescribed time bound. Since the source itself may be random, the learner is not expected to guess the next block exactly. Instead, it should make a probabilistic prediction close to the source’s true conditional distribution.
Fix a sequence length m ∈ N m \in\mathbb{N} m ∈ N , a block length n ∈ N n \in\mathbb{N} n ∈ N , an error bound ε > 0 \varepsilon> 0 ε > 0 , a confidence value δ > 0 \delta> 0 δ > 0 , a description length s ∈ N s \in\mathbb{N} s ∈ N , and a time bound t ∈ N t \in\mathbb{N} t ∈ N .
We consider randomized Turing machines M M M of description length at most s s s (according to a fixed universal randomized machine U r U^{r} U r ). We will be interested in the random variable U r ( M , ϵ , 1 t ) U^{r}(M,\epsilon,1^{t}) U r ( M , ϵ , 1 t ) encoding the output of M M M on the empty string ϵ \epsilon ϵ when U r U^{r} U r runs over the input pair ( M , ϵ ) (M,\epsilon) ( M , ϵ ) for t t t steps. If this simulation does not produce an output, we set the output to 0 n ⋅ m 0^{n \cdot m} 0 n ⋅ m . For convenience, for a choice of n n n and m m m , if the output x x x of U r ( M , ϵ , 1 t ) U^{r}(M,\epsilon,1^{t}) U r ( M , ϵ , 1 t ) is of length less than n ⋅ m n \cdot m n ⋅ m , we add 0 0 0 ’s to it and consider instead the string x ′ = x 0 n m − ∣ x ∣ x' = x0^{nm-|x|} x ′ = x 0 nm − ∣ x ∣ . Therefore, given n n n and m m m , we will view x ∼ U r ( M , ϵ , 1 t ) x \sim U^{r}(M,\epsilon,1^{t}) x ∼ U r ( M , ϵ , 1 t ) as a random variable ( x 1 , … , x m ) (x_1,\ldots,x_m) ( x 1 , … , x m ) distributed over { 0 , 1 } n ⋅ m \{0,1\}^{n\cdot m} { 0 , 1 } n ⋅ m . For simplicity, we might omit the empty string ϵ \epsilon ϵ .
We consider a task called ( m , n , s , t , ε , δ ) (m,n,s,t,\varepsilon,\delta) ( m , n , s , t , ε , δ ) -extrapolation. In this computational task, we consider a randomized algorithm L L L such that, for every (unknown) choice of M M M of length at most s s s and index i i i , given the first i − 1 i-1 i − 1 blocks ( x 1 , … , x i − 1 ) (x_1,\ldots,x_{i-1}) ( x 1 , … , x i − 1 ) of x ∼ U r ( M , 1 t ) x \sim U^{r}(M,1^{t}) x ∼ U r ( M , 1 t ) (denoted by x < i x_{<i} x < i ), the goal is for L ( x < i ) ∼ { 0 , 1 } n L(x_{<i}) \sim\{0,1\}^{n} L ( x < i ) ∼ { 0 , 1 } n to be distributed according to ( x i ∣ x < i ) (x_i \mid x_{<i}) ( x i ∣ x < i ) , where for a given choice of n n n , m m m , M M M , t t t , the random variable ( x i ∣ x < i ) (x_i \mid x_{<i}) ( x i ∣ x < i ) denotes the conditional distribution of the i i i -th block x i x_i x i given preceding blocks x 1 , … , x i − 1 ∈ { 0 , 1 } n x_1,\ldots,x_{i-1} \in\{0,1\}^{n} x 1 , … , x i − 1 ∈ { 0 , 1 } n . Formally, we have the following definition.
Definition 2.6 (Sequence Extrapolation). We say that a randomized algorithm L L L solves ( m , n , s , t , ε , δ ) (m,n,s,t,\varepsilon,\delta) ( m , n , s , t , ε , δ ) -extrapolation if for every choice of M ∈ { 0 , 1 } ≤ s M \in\{0,1\}^{\le s} M ∈ { 0 , 1 } ≤ s the following holds:
Pr i ∼ [ m ] , x ∼ U r ( M , 1 t ) [ Δ T V ( L ( x < i ) , ( x i ∣ x < i ) ) ≤ ε ] ≥ 1 − δ . \Pr_{i\sim[m],\,x\sim U^{r}(M,1^{t})}\left[\Delta_{\mathrm{TV}}\left(L(x_{<i}), (x_i \mid x_{<i})\right) \le\varepsilon\right] \ge1-\delta. i ∼ [ m ] , x ∼ U r ( M , 1 t ) Pr [ Δ TV ( L ( x < i ) , ( x i ∣ x < i ) ) ≤ ε ] ≥ 1 − δ .
We assume that the parameters ( m , n , s , t , ε − 1 , δ − 1 ) (m,n,s,t,\varepsilon^{-1},\delta^{-1}) ( m , n , s , t , ε − 1 , δ − 1 ) are also given to L L L in unary when considering uniform algorithms and parameter sequences.
For broader treatments of sequential prediction and algorithmic approaches to extrapolation, see [36 , 91 ] .
Learning Distributions
Sometimes the goal is not merely to predict the next observation, but to construct a model of the source itself. Given independent samples from an unknown distribution, a distribution learner seeks a new sampling procedure whose outputs are statistically indistinguishable from those of the original source, up to a prescribed error. Such a model captures enough of the source’s structure to generate fresh representative data, even though it need not reveal how the source was originally implemented.
Formally, we consider the task of learning an unknown discrete distribution D D D from a fixed class D \mathcal{D} D of distributions [111 ] . The learner has access to i.i.d. samples from D D D , and the goal is to output a circuit C : { 0 , 1 } T → { 0 , 1 } n C:\{0,1\}^{T}\to\{0,1\}^{n} C : { 0 , 1 } T → { 0 , 1 } n that samples a distribution that is ε \varepsilon ε -close to D D D .
Definition 2.7 (Learning Distributions [111 ] ). Let D = { D n } n ≥ 1 \mathcal{D}=\{D_n\}_{n\ge1} D = { D n } n ≥ 1 be a class of distributions, where each D n D_n D n is a set of distributions supported over { 0 , 1 } n \{0,1\}^{n} { 0 , 1 } n . The class D \mathcal{D} D is said to be learnable in time T ( n , ε , δ ) T(n,\varepsilon,\delta) T ( n , ε , δ ) and with sample complexity m ( n , ε , δ ) m(n,\varepsilon,\delta) m ( n , ε , δ ) if there is a randomized algorithm A A A such that, for every n n n , D ∈ D n D\in D_n D ∈ D n , ε > 0 \varepsilon>0 ε > 0 , δ > 0 \delta>0 δ > 0 , and m = m ( n , ε , δ ) m=m(n,\varepsilon,\delta) m = m ( n , ε , δ ) , A ( 1 n , 1 ε − 1 , 1 δ − 1 , ⋅ ) A(1^n,1^{\varepsilon^{-1}},1^{\delta^{-1}},\cdot) A ( 1 n , 1 ε − 1 , 1 δ − 1 , ⋅ ) runs in time at most T = T ( n , ε , δ ) T=T(n,\varepsilon,\delta) T = T ( n , ε , δ ) and
Pr A , x ⃗ ∼ D ( m ) [ C ← A ( 1 n , 1 ε − 1 , 1 δ − 1 , x ⃗ ) and Δ T V ( C ( U T ) , D ) ≤ ε ] ≥ 1 − δ , (1) \Pr_{A,\vec{x}\sim D^{(m)}}\left[C\mathrel{\gets}A(1^n,1^{\varepsilon^{-1}},1^{\delta^{-1}},\vec{x})\ \text{ and }\ \Delta_{\mathrm{TV}}(C(U_T),D)\le\varepsilon\right]\ge1-\delta, \tag*{(1)} A , x ∼ D ( m ) Pr [ C ← A ( 1 n , 1 ε − 1 , 1 δ − 1 , x ) and Δ TV ( C ( U T ) , D ) ≤ ε ] ≥ 1 − δ , (1)
where C ( U T ) C(U_T) C ( U T ) is the distribution sampled by C C C , and x ⃗ ∼ D ( m ) \vec{x}\sim D^{(m)} x ∼ D ( m ) denotes a tuple of m m m i.i.d. samples from D D D .
For convenience, when Equation (1) holds for a distribution D D D , we say that A A A ε \varepsilon ε -learns D D D with probability at least 1 − δ 1-\delta 1 − δ .
For functions s , t : N → N s,t:\mathbb{N}\to\mathbb{N} s , t : N → N , we can consider the class D s , t = { D n s ( n ) , t ( n ) } n ≥ 1 \mathcal{D}^{s,t}=\{D_n^{s(n),t(n)}\}_{n\ge1} D s , t = { D n s ( n ) , t ( n ) } n ≥ 1 of distributions, where each D n s ′ , t ′ D_n^{s',t'} D n s ′ , t ′ consists of the set of all distributions D D D supported over { 0 , 1 } n ′ \{0,1\}^{n'} { 0 , 1 } n ′ sampled by a randomized machine M M M that runs in time at most t ′ t' t ′ and has description length at most s ′ s' s ′ .
Similarly, we can consider the distribution learning problem for D n s , t D_n^{s,t} D n s , t when n , s , t ∈ N n,s,t\in\mathbb{N} n , s , t ∈ N are input parameters provided to the learning algorithm A ( 1 n , 1 ε − 1 , 1 δ − 1 , 1 t , 1 s , ⋅ ) A(1^n,1^{\varepsilon^{-1}},1^{\delta^{-1}},1^t,1^s,\cdot) A ( 1 n , 1 ε − 1 , 1 δ − 1 , 1 t , 1 s , ⋅ ) .
PAC Learning
PAC (Probably Approximately Correct) learning formalises the familiar supervised task of learning a rule from labelled examples. An unknown target concept assigns a label to each input, and the learner observes examples drawn from a distribution that determines which inputs matter. From sufficiently many such examples, the learner should produce a hypothesis that makes few mistakes on a fresh input from the same distribution. The name highlights the two allowances that make the goal realistic: the hypothesis need only be approximately correct, and the learner need only succeed with high probability. In other words, PAC learning asks for reliable generalisation to the inputs that are likely to be encountered.
Formally, in the PAC learning framework, one considers an unknown function f : { 0 , 1 } n → { 0 , 1 } f:\{0,1\}^{n}\to\{0,1\} f : { 0 , 1 } n → { 0 , 1 } for some n ∈ N n\in\mathbb{N} n ∈ N . Such a function is referred to as a concept . A concept class C C C refers to a set of concepts, with C n C_n C n denoting C ∩ { f : { 0 , 1 } n → { 0 , 1 } } C\cap\{f:\{0,1\}^{n}\to\{0,1\}\} C ∩ { f : { 0 , 1 } n → { 0 , 1 }} for a fixed n ∈ N n\in\mathbb{N} n ∈ N . The PAC learnability of a concept class is defined with respect to a class D \mathcal{D} D of probability distribution ensembles D = { D n } n ∈ N \mathcal{D}=\{D_n\}_{n\in\mathbb{N}} D = { D n } n ∈ N , where each D n D_n D n is supported over { 0 , 1 } n \{0,1\}^{n} { 0 , 1 } n .
PAC learners are provided a labelled example oracle E X ( f , D n ) \mathrm{EX}(f,D_n) EX ( f , D n ) , with each query returning an independently sampled pair ( x , f ( x ) ) (x,f(x)) ( x , f ( x )) , where x ∼ D n x\sim D_n x ∼ D n .
Definition 2.8 (PAC Learning [172 ] ; see [157 ] for a survey). Let C C C be a concept class, and let D \mathcal{D} D be a class of distributions. An algorithm A A A PAC learns C C C over D \mathcal{D} D if, for all D ∈ D D \in\mathcal{D} D ∈ D , all sufficiently large n ∈ N n \in\mathbb{N} n ∈ N , all δ , ε ∈ ( 0 , 1 ) \delta,\varepsilon\in(0,1) δ , ε ∈ ( 0 , 1 ) , and all f ∈ C n f \in C_n f ∈ C n ,
Pr A ; E X ( f , D n ) [ A E X ( f , D n ) ( 1 n , 1 / ε , δ − 1 ) outputs h such that Pr x ∼ D n [ h ( x ) = f ( x ) ] ≥ 1 − ε ] ≥ 1 − δ . \Pr_{A;\,\mathrm{EX}(f,D_n)}\left[A^{\mathrm{EX}(f,D_n)}(1^n,1/\varepsilon,\delta^{-1})\text{ outputs }h\text{ such that }\Pr_{x\sim D_n}[h(x)=f(x)]\geq1-\varepsilon\right]\geq1-\delta. A ; EX ( f , D n ) Pr [ A EX ( f , D n ) ( 1 n , 1/ ε , δ − 1 ) outputs h such that x ∼ D n Pr [ h ( x ) = f ( x )] ≥ 1 − ε ] ≥ 1 − δ . For s : N → N s:\mathbb{N}\to\mathbb{N} s : N → N , we can consider the class C s = { C n s ( n ) } n ∈ N C^s=\{C_n^{s(n)}\}_{n\in\mathbb{N}} C s = { C n s ( n ) } n ∈ N of concepts, where each C n s ( n ) C_n^{s(n)} C n s ( n ) is the subset of C n C_n C n with representations of size s ( n ) s(n) s ( n ) . For example, if C = P / p o l y C=\mathrm{P}/\mathrm{poly} C = P / poly , then C s = S I Z E [ s ] C^s=\mathrm{SIZE}[s] C s = SIZE [ s ] , the set of functions f : { 0 , 1 } n → { 0 , 1 } f:\{0,1\}^n\to\{0,1\} f : { 0 , 1 } n → { 0 , 1 } computable by circuits of size s ( n ) s(n) s ( n ) . As in the previous section, we define D a , t \mathcal{D}^{a,t} D a , t to be the class of distributions samplable by a t t t -time machine with description length a a a . To make these parameters explicit, s , t , a s,t,a s , t , a may be given as inputs to the learning algorithm.
One may also consider the model of PAC learning with membership queries , which is exactly the same as the definition above, except the learner A A A is additionally provided an f f f -oracle.
A learner that always outputs a hypothesis h h h belonging to C C C is called proper . Otherwise, the learner is improper .
If ε \varepsilon ε is not given as an input but the hypothesis output by A A A satisfies Pr x ∼ D n [ h ( x ) = f ( x ) ] ≥ 1 / 2 + γ ( n ) \Pr_{x\sim D_n}[h(x)=f(x)]\geq1/2+\gamma(n) Pr x ∼ D n [ h ( x ) = f ( x )] ≥ 1/2 + γ ( n ) with probability 1 − δ 1-\delta 1 − δ for some γ ( n ) = poly − 1 ( n ) \gamma(n)=\operatorname{poly}^{-1}(n) γ ( n ) = poly − 1 ( n ) , then A A A is referred to as a weak learner .
For textbook introductions to computational learning theory and the PAC framework, see [116 SSBD14] .
Agnostic Learning
The PAC model assumes that every observed label is generated by some target concept from the class under consideration. In practice, labels may be noisy, internally inconsistent, or governed by a relationship that the chosen class cannot represent. Agnostic learning removes this assumption and asks what can still be learned from an arbitrary joint distribution over inputs and labels. Since nearly perfect prediction may then be impossible, success is measured relative to the best concept available in the class. The learner must perform almost as well as that benchmark without knowing either the source of the labels or the benchmark concept in advance. This formulation preserves a meaningful learning objective while allowing both noise and model misspecification.
In technical terms, one cannot assume that the given examples are labelled according to a function f f f belonging to the relevant concept class C C C . In fact, one cannot assume that the labels correspond to a fixed function at all. In particular, we now consider a class E \mathcal{E} E of joint distribution ensembles E = { E n } n ∈ N E=\{E_n\}_{n\in\mathbb{N}} E = { E n } n ∈ N , where each E n E_n E n is supported over { 0 , 1 } n × { 0 , 1 } \{0,1\}^n\times\{0,1\} { 0 , 1 } n × { 0 , 1 } . The example oracle E X ( E n ) \mathrm{EX}(E_n) EX ( E n ) simply returns an independent random sample from E n E_n E n each time it is queried.
Now, there is clearly no hope in general for an efficient learner to produce a hypothesis with high correctness probability over E E E (i.e., Pr ( x , b ) ∼ E n [ h ( x ) = b ] ≈ 1 \Pr_{(x,b)\sim E_n}[h(x)=b]\approx1 Pr ( x , b ) ∼ E n [ h ( x ) = b ] ≈ 1 ).1 Therefore, as alluded to above, we measure the success of an agnostic learner relative to the concept class C C C in question, asking for a hypothesis that does “almost as well” as the best concept in C C C . To that end, for n ∈ N n\in\mathbb{N} n ∈ N , define
opt n ( C , E ) ≜ max c ∈ C n { Pr ( x , b ) ∼ E n [ c ( x ) = b ] } . \operatorname{opt}_n(C,E)\triangleq\max_{c\in C_n}\left\{\Pr_{(x,b)\sim E_n}[c(x)=b]\right\}. opt n ( C , E ) ≜ c ∈ C n max { ( x , b ) ∼ E n Pr [ c ( x ) = b ] } .
Definition 2.9 (Agnostic Learning [115 , 66 ] ). Let C C C be a concept class, and let E \mathcal{E} E be a class of joint distributions. An algorithm A A A agnostically learns C C C over E \mathcal{E} E if, for all E ∈ E E \in\mathcal{E} E ∈ E , all sufficiently large n ∈ N n \in\mathbb{N} n ∈ N , and all δ , ε ∈ ( 0 , 1 ) \delta, \varepsilon\in(0,1) δ , ε ∈ ( 0 , 1 ) ,
Pr A ; EX ( E n ) [ A EX ( E n ) ( 1 n , ε − 1 , δ − 1 ) outputs h such that Pr ( x , b ) ∼ E n [ h ( x ) = b ] ≥ opt n ( C , E ) − ε ] ≥ 1 − δ . \Pr_{A;\operatorname{EX}(E_n)}\left[A^{\operatorname{EX}(E_n)}(1^n,\varepsilon^{-1},\delta^{-1})\text{ outputs }h\text{ such that }\Pr_{(x,b)\sim E_n}[h(x)=b]\geq\operatorname{opt}_n(C,E)-\varepsilon\right]\geq1-\delta. A ; EX ( E n ) Pr [ A EX ( E n ) ( 1 n , ε − 1 , δ − 1 ) outputs h such that ( x , b ) ∼ E n Pr [ h ( x ) = b ] ≥ opt n ( C , E ) − ε ] ≥ 1 − δ . In this context, if we say that an algorithm agnostically learns over the distribution class D a , t = { D m a ( m ) , t ( m ) } m ≥ 1 \mathcal{D}^{a,t}=\{\mathcal{D}^{a(m),t(m)}_m\}_{m\geq1} D a , t = { D m a ( m ) , t ( m ) } m ≥ 1 as defined above, we interpret each D m a ( m ) , t ( m ) \mathcal{D}^{a(m),t(m)}_m D m a ( m ) , t ( m ) as a set of joint example distributions supported over { 0 , 1 } m − 1 × { 0 , 1 } \{0,1\}^{m-1}\times\{0,1\} { 0 , 1 } m − 1 × { 0 , 1 } .
For a textbook treatment of agnostic learning, see [SSBD14].
Heuristic Learnability
Standard supervised learning guarantees usually require the learner to succeed for every target concept in the class. In complexity theory and cryptography, however, target functions often arise from a randomized generation procedure, just as the inputs on which they are evaluated arise from their own sampling process. Heuristic learnability reflects this situation by measuring prediction success on average over both the chosen target and the chosen input. The learner may therefore fail on exceptional targets or examples, provided that these failures are sufficiently rare in the overall experiment. Even a small advantage over random guessing can be significant in this setting, making the model especially useful for expressing connections among prediction, average-case hardness, and cryptographic security.
Let C C C be a concept class, with each f ∈ C n f \in C_n f ∈ C n having a representation σ f \sigma_f σ f of size at most polynomial in n n n . Let P = { P n } n ∈ N P=\{P_n\}_{n\in\mathbb{N}} P = { P n } n ∈ N be a distribution ensemble, with each P n P_n P n supported over representations σ f \sigma_f σ f of target functions f ∈ C n f\in C_n f ∈ C n such that f f f can be evaluated in polynomial time given σ f \sigma_f σ f . Let D = { D n } n ∈ N D=\{D_n\}_{n\in\mathbb{N}} D = { D n } n ∈ N be another distribution ensemble, with each D n D_n D n supported over example strings x ∈ { 0 , 1 } n x\in\{0,1\}^n x ∈ { 0 , 1 } n .
Definition 2.10 ([15 ] ). For any ε : N → ( 0 , 1 / 2 ) \varepsilon:\mathbb{N}\to(0,1/2) ε : N → ( 0 , 1/2 ) , we say that C C C is ε \varepsilon ε -predictable on average over P P P and D D D if there exists an algorithm A A A such that for all sufficiently large n ∈ N n\in\mathbb{N} n ∈ N ,
Pr A ; σ f ∼ P n ; EX ( f , D n ) ; x ′ ∼ D n [ A EX ( f , D n ) ( x ′ ) = f ( x ′ ) ] ≥ 1 − ε ( n ) . \Pr_{\substack{A;\ \sigma_f\sim P_n;\\ \operatorname{EX}(f,D_n);\\ x'\sim D_n}}\left[A^{\operatorname{EX}(f,D_n)}(x')=f(x')\right]\geq1-\varepsilon(n). A ; σ f ∼ P n ; EX ( f , D n ) ; x ′ ∼ D n Pr [ A EX ( f , D n ) ( x ′ ) = f ( x ′ ) ] ≥ 1 − ε ( n ) . We say that C C C is strongly predictable on average over P P P and D D D if it is ( 1 / q ( ⋅ ) ) (1/q(\cdot)) ( 1/ q ( ⋅ )) -predictable on average for any polynomial q q q . We say it is weakly predictable on average over P P P and D D D if, for some polynomial q ′ q' q ′ , it is ( 1 / 2 − 1 / q ′ ( ⋅ ) ) (1/2-1/q'(\cdot)) ( 1/2 − 1/ q ′ ( ⋅ )) -predictable on average. We mention that weak predictability for the case of C = P / p o l y C=\mathrm{P/poly} C = P/poly and all P , D ∈ P S A M P P,D\in\mathrm{PSAMP} P , D ∈ PSAMP implies strong predictability for such C C C , P P P , and D D D [15 ] .
For t : N → N t:\mathbb{N}\to\mathbb{N} t : N → N , let S A M P [ t ] \mathrm{SAMP}[t] SAMP [ t ] denote the class of distributions samplable uniformly in time at most t t t . In the case of a heuristic learner A A A working on some fixed concept class C s C^s C s , P ∈ S A M P [ t 1 ] P\in\mathrm{SAMP}[t_1] P ∈ SAMP [ t 1 ] , and D ∈ S A M P [ t 2 ] D\in\mathrm{SAMP}[t_2] D ∈ SAMP [ t 2 ] , the parameters s , t 1 , t 2 s,t_1,t_2 s , t 1 , t 2 may be given as additional inputs to A A A .
For further background on heuristic learnability and related notions, see [139 ] .
Theoretical Computer Science
We will require several notions from cryptography, complexity theory, Kolmogorov complexity, pseudorandomness, and meta-complexity. For general background in computational complexity, including randomized computation, nonuniform computation, cryptography, and circuit complexity, see [1 ] .
Cryptography
Infinitely-Often Cryptography. For the purposes of cryptography, it is important for security to hold almost everywhere . That is, one would hope for a cryptographic primitive that cannot be broken at any (but perhaps finitely many) input lengths. Likewise, for the purposes of learning and positive algorithmic tasks more broadly, one would hope for algorithms to be successful at all but finitely many input lengths. While it is reasonable to ask for this property in both cases, it poses a problem if one would like to investigate dualities between the possibility of secure cryptography and the hardness of tasks such as learning. In particular, if the hardness of learning at some fixed input length translates into the hardness of breaking a cryptographic primitive at a related input length, then the impossibility of learning in the sense described above would only yield security at infinitely many input lengths.
For this reason, to aid in a better understanding of connections between algorithmic hardness and cryptography, we consider cryptography that may only be secure infinitely often .
A pseudorandom function family is a family of keyed polynomial-time computable functions that look like a random oracle to any efficient observer. Here, we state the definition of an infinitely-often variant.
Definition 2.11 (Infinitely-Often Pseudorandom Function). An infinitely-often pseudorandom function , denoted ioPRF, is a polynomial-time computable function family f = { f : { 0 , 1 } n × { 0 , 1 } n → { 0 , 1 } } n ∈ N f = \{f : \{0,1\}^{n} \times\{0,1\}^{n} \to\{0,1\}\}_{n \in\mathbb{N}} f = { f : { 0 , 1 } n × { 0 , 1 } n → { 0 , 1 } } n ∈ N such that, for any inverse polynomial δ : N → [ 0 , 1 ] \delta: \mathbb{N} \to[0,1] δ : N → [ 0 , 1 ] and PPT machine A A A , there exist infinitely many n ∈ N n \in\mathbb{N} n ∈ N such that
∣ Pr A ; u ∼ { 0 , 1 } n [ A f ( u , ⋅ ) ( 1 n ) = 1 ] − Pr A ; R n [ A R n ( ⋅ ) ( 1 n ) = 1 ] ∣ < δ ( n ) , \left|\Pr_{A; u \sim\{0,1\}^{n}}\left[A^{f(u,\cdot)}(1^{n}) = 1\right] - \Pr_{A; R_n}\left[A^{R_n(\cdot)}(1^{n}) = 1\right]\right| < \delta(n), A ; u ∼ { 0 , 1 } n Pr [ A f ( u , ⋅ ) ( 1 n ) = 1 ] − A ; R n Pr [ A R n ( ⋅ ) ( 1 n ) = 1 ] < δ ( n ) , where R n : { 0 , 1 } n → { 0 , 1 } R_n : \{0,1\}^{n} \to\{0,1\} R n : { 0 , 1 } n → { 0 , 1 } is a uniformly random function over the set of all functions with these parameters.
Auxiliary-Input Cryptography. We also consider variants of cryptographic primitives that are allowed to make use of an additional publicly available non-uniform input string. Since this kind of cryptography generalizes the standard setting in which no such auxiliary string is given, its existence is a weaker assumption.
As with infinitely-often cryptography, auxiliary-input cryptography can arise naturally when investigating connections between secure cryptography and the hardness of learning. In particular, a specific hard instance of learning might translate to a related description of a secure cryptographic primitive. In such settings, one may only obtain auxiliary-input cryptography rather than standard (uniform) cryptography.
An auxiliary-input function family
f = { f z : { 0 , 1 } n ( ∣ z ∣ ) → { 0 , 1 } ℓ ( ∣ z ∣ ) } z ∈ { 0 , 1 } ∗ f = \{f_z : \{0,1\}^{n(|z|)} \to\{0,1\}^{\ell(|z|)}\}_{z \in\{0,1\}^{*}} f = { f z : { 0 , 1 } n ( ∣ z ∣ ) → { 0 , 1 } ℓ ( ∣ z ∣ ) } z ∈ { 0 , 1 } ∗
is said to be polynomial-time computable if there is a polynomial-time machine F F F such that for all z ∈ { 0 , 1 } ∗ z \in\{0,1\}^{*} z ∈ { 0 , 1 } ∗ and x ∈ { 0 , 1 } n ( z ) x \in\{0,1\}^{n(z)} x ∈ { 0 , 1 } n ( z ) , F ( z , x ) = f z ( x ) F(z,x) = f_z(x) F ( z , x ) = f z ( x ) .
A one-way function is a function that may be computed efficiently but cannot be inverted efficiently. This is a basic building block of many other objects in private-key cryptography. Here, we state the definition of the auxiliary-input variant.
Definition 2.12 (Auxiliary-Input One-Way Function [145 ] ). An auxiliary-input one-way function , denoted AIOWF, is a polynomial-time computable auxiliary-input function family f f f such that, for any inverse polynomial δ \delta δ and PPT machine A A A , there exist infinitely many z ∈ { 0 , 1 } ∗ z \in\{0,1\}^{*} z ∈ { 0 , 1 } ∗ such that
Pr A ; x ∼ U n ( ∣ z ∣ ) [ A ( z , f z ( x ) ) ∈ f z − 1 ( f z ( x ) ) ] < δ ( ∣ z ∣ ) . \Pr_{A; x \sim U_{n(|z|)}}\left[A(z,f_z(x)) \in f_z^{-1}(f_z(x))\right] < \delta(|z|). A ; x ∼ U n ( ∣ z ∣ ) Pr [ A ( z , f z ( x )) ∈ f z − 1 ( f z ( x )) ] < δ ( ∣ z ∣ ) .
Impagliazzo and Luby [95 ] proved that, if all candidate one-way functions can be inverted in the sense of finding some pre-image of a given output, then they can be inverted in the stronger sense of finding nearly uniformly random pre-images. Thus, the existence of one-way functions is equivalent to the existence of distributional one-way functions , which are secure against adversaries finding nearly uniformly random pre-images. More specifically, for a uniformly random input x x x and a poly-time computable function f f f , no adversary A A A on input f ( x ) f(x) f ( x ) returns x ′ x' x ′ such that ( x ′ , f ( x ) ) (x',f(x)) ( x ′ , f ( x )) is close in statistical distance to ( x , f ( x ) ) (x,f(x)) ( x , f ( x )) . Below, the auxiliary-input generalization is stated.
Definition 2.13 (Distributional Auxiliary-Input One-Way Function). A distributional auxiliary-input one-way function , denoted distAIOWF, is a polynomial-time computable auxiliary-input function family f = { f z : { 0 , 1 } n ( ∣ z ∣ ) → { 0 , 1 } ℓ ( ∣ z ∣ ) } z ∈ { 0 , 1 } ∗ f = \{f_z : \{0,1\}^{n(|z|)} \to\{0,1\}^{\ell(|z|)}\}_{z\in\{0,1\}^*} f = { f z : { 0 , 1 } n ( ∣ z ∣ ) → { 0 , 1 } ℓ ( ∣ z ∣ ) } z ∈ { 0 , 1 } ∗ such that, for some inverse polynomial δ \delta δ , for every PPT machine A A A , there exist infinitely many z ∈ { 0 , 1 } ∗ z \in\{0,1\}^* z ∈ { 0 , 1 } ∗ such that
Δ ( ( A ( z , f z ( x ) ) , f z ( x ) ) , ( x , f z ( x ) ) ) > δ ( ∣ z ∣ ) , \Delta\left((A(z,f_z(x)),f_z(x)),(x,f_z(x))\right)>\delta(|z|), Δ ( ( A ( z , f z ( x )) , f z ( x )) , ( x , f z ( x )) ) > δ ( ∣ z ∣ ) , where x ∼ U n ( ∣ z ∣ ) x \sim\mathcal{U}_{n(|z|)} x ∼ U n ( ∣ z ∣ ) , and Δ \Delta Δ denotes statistical (total variation) distance.
A pseudorandom generator is a deterministic machine that maps a short uniformly random seed to a longer output string such that the distribution on outputs is indistinguishable from uniformly random to efficient observers.
Definition 2.14 (Auxiliary-Input Pseudorandom Generator). An auxiliary-input pseudorandom generator , denoted AIPRG, is a polynomial-time computable auxiliary-input function family G = { G z : { 0 , 1 } n ( ∣ z ∣ ) → { 0 , 1 } ℓ ( ∣ z ∣ ) } z ∈ { 0 , 1 } ∗ G = \{G_z : \{0,1\}^{n(|z|)} \to\{0,1\}^{\ell(|z|)}\}_{z\in\{0,1\}^*} G = { G z : { 0 , 1 } n ( ∣ z ∣ ) → { 0 , 1 } ℓ ( ∣ z ∣ ) } z ∈ { 0 , 1 } ∗ such that ℓ ( ∣ z ∣ ) > n ( ∣ z ∣ ) \ell(|z|)>n(|z|) ℓ ( ∣ z ∣ ) > n ( ∣ z ∣ ) , and for any inverse polynomial δ \delta δ and PPT machine A A A , there exist infinitely many z ∈ { 0 , 1 } ∗ z \in\{0,1\}^* z ∈ { 0 , 1 } ∗ such that
∣ Pr A ; v ∼ U n ( ∣ z ∣ ) [ A ( z , G z ( v ) ) = 1 ] − Pr A ; u ∼ U ℓ ( ∣ z ∣ ) [ A ( z , u ) = 1 ] ∣ ≤ δ ( ∣ z ∣ ) . \left|\Pr_{A;\,v\sim\mathcal{U}_{n(|z|)}}[A(z,G_z(v))=1]-\Pr_{A;\,u\sim\mathcal{U}_{\ell(|z|)}}[A(z,u)=1]\right|\leq\delta(|z|). A ; v ∼ U n ( ∣ z ∣ ) Pr [ A ( z , G z ( v )) = 1 ] − A ; u ∼ U ℓ ( ∣ z ∣ ) Pr [ A ( z , u ) = 1 ] ≤ δ ( ∣ z ∣ ) . We use the statement ∃ A I P R G \exists\ \mathit{AIPRG} ∃ AIPRG to denote that the above exists for any choice of ℓ ( ∣ z ∣ ) = n ( ∣ z ∣ ) O ( 1 ) \ell(|z|)=n(|z|)^{O(1)} ℓ ( ∣ z ∣ ) = n ( ∣ z ∣ ) O ( 1 ) .
Definition 2.15 (Auxiliary-Input Pseudorandom Function). An auxiliary-input pseudorandom function , denoted AIPRF, is a polynomial-time computable auxiliary-input function family f = { f z : { 0 , 1 } n ( ∣ z ∣ ) × { 0 , 1 } n ( ∣ z ∣ ) → { 0 , 1 } } z ∈ { 0 , 1 } ∗ f=\{f_z:\{0,1\}^{n(|z|)}\times\{0,1\}^{n(|z|)}\to\{0,1\}\}_{z\in\{0,1\}^*} f = { f z : { 0 , 1 } n ( ∣ z ∣ ) × { 0 , 1 } n ( ∣ z ∣ ) → { 0 , 1 } } z ∈ { 0 , 1 } ∗ such that, for any inverse polynomial δ \delta δ and PPT machine A A A , there exist infinitely many z ∈ { 0 , 1 } ∗ z\in\{0,1\}^* z ∈ { 0 , 1 } ∗ such that
∣ Pr A ; u ∼ { 0 , 1 } n ( ∣ z ∣ ) [ A f z ( u , − ) ( z ) = 1 ] − Pr A ; R ∣ z ∣ [ A R ∣ z ∣ ( − ) ( z ) = 1 ] ∣ < δ ( ∣ z ∣ ) , \left|\Pr_{A;\,u\sim\{0,1\}^{n(|z|)}}[A^{f_z(u,\mathord{-})}(z)=1]-\Pr_{A;\,R_{|z|}}[A^{R_{|z|}(\mathord{-})}(z)=1]\right|<\delta(|z|), A ; u ∼ { 0 , 1 } n ( ∣ z ∣ ) Pr [ A f z ( u , − ) ( z ) = 1 ] − A ; R ∣ z ∣ Pr [ A R ∣ z ∣ ( − ) ( z ) = 1 ] < δ ( ∣ z ∣ ) , where R ∣ z ∣ : { 0 , 1 } n ( ∣ z ∣ ) → { 0 , 1 } R_{|z|}:\{0,1\}^{n(|z|)}\to\{0,1\} R ∣ z ∣ : { 0 , 1 } n ( ∣ z ∣ ) → { 0 , 1 } is a uniformly random function over the set of all functions with these parameters.
The next statement results from auxiliary-input analogues of standard transformations between one-way functions, distributional one-way functions, pseudorandom generators, and pseudorandom functions [95 , 68 , 55 ] . See, e.g., [ABX08] for a discussion.
Lemma 2.16. The following statements are equivalent.
∃ d i s t A I O W F \exists\ \mathit{distAIOWF} ∃ distAIOWF ;
∃ A I P R G \exists\ \mathit{AIPRG} ∃ AIPRG ;
∃ A I P R F \exists\ \mathit{AIPRF} ∃ AIPRF ;
For more information about one-way functions, pseudorandom generators, and pseudorandom functions, see [63 , 109 ] .
Kolmogorov Complexity
Kolmogorov complexity can be viewed as a universal measure of compression: it quantifies how concisely an individual object can be described by an effective procedure. Any particular compression scheme provides a way to encode certain objects succinctly, while a universal programming language can simulate every such scheme with only a fixed additional overhead. Consequently, Kolmogorov complexity captures, up to an additive constant, the best compression achievable by any computable method. Similarly, time-bounded Kolmogorov complexity captures the best compression achievable when decompression is required to run within a prescribed time bound.2
Formally, we fix a time-efficient universal machine U U U , and define time-bounded Kolmogorov complexity with respect to U U U (see [132 ] for the required background in Kolmogorov complexity). In the context of Kolmogorov complexity, whenever we say that a program M M M running on input y y y outputs x x x in t t t steps, formally, this means that U ( M , y , 1 t ) = x U(M,y,1^t)=x U ( M , y , 1 t ) = x .
Definition 2.17 (K t K^t K t Complexity). For x , y ∈ { 0 , 1 } ∗ x,y\in\{0,1\}^* x , y ∈ { 0 , 1 } ∗ and t ∈ N t\in\mathbb{N} t ∈ N , the t t t -time-bounded Kolmogorov complexity of x x x conditioned on y y y is defined as
K t ( x ∣ y ) ≜ min M ∈ { 0 , 1 } ∗ { ∣ M ∣ ∣ U ( M , y , 1 t ) outputs x } . K^t(x\mid y)\triangleq\min_{M\in\{0,1\}^*}\{|M|\mid U(M,y,1^t)\text{ outputs }x\}. K t ( x ∣ y ) ≜ M ∈ { 0 , 1 } ∗ min { ∣ M ∣ ∣ U ( M , y , 1 t ) outputs x } . We define K t ( x ) K^t(x) K t ( x ) as K t ( x ∣ ϵ ) K^t(x\mid\epsilon) K t ( x ∣ ϵ ) .
The definition of K t K^t K t requires us to fix the time bound in advance. On the other hand, Levin’s notion of time-bounded Kolmogorov complexity simultaneously considers description length and running time.
Definition 2.18 (Levin’s Kt Complexity [120 ] ). For x , y ∈ { 0 , 1 } ∗ x,y\in\{0,1\}^* x , y ∈ { 0 , 1 } ∗ , the Levin complexity of x x x conditioned on y y y is defined as
Kt ( x ∣ y ) ≜ min t ∈ N , M ∈ { 0 , 1 } ∗ { ∣ M ∣ + ⌈ log t ⌉ ∣ U ( M , y , 1 t ) outputs x } . \operatorname{Kt}(x\mid y)\triangleq\min_{\substack{t\in\mathbb{N},\,M\in\{0,1\}^*}}\{|M|+\lceil\log t\rceil\mid U(M,y,1^t)\text{ outputs }x\}. Kt ( x ∣ y ) ≜ t ∈ N , M ∈ { 0 , 1 } ∗ min { ∣ M ∣ + ⌈ log t ⌉ ∣ U ( M , y , 1 t ) outputs x } . We define Kt ( x ) \operatorname{Kt}(x) Kt ( x ) as Kt ( x ∣ ϵ ) \operatorname{Kt}(x\mid\epsilon) Kt ( x ∣ ϵ ) .
When no time bound is considered, we simply write K ( x ) K(x) K ( x ) to denote the (classical time-unbounded) Kolmogorov complexity of the string x x x .
We also consider randomized notions of time-bounded Kolmogorov complexity, in which the universal machine is given an additional random string as input. These complexity measures are particularly suitable in computational contexts where computations can be randomized, as is often the case with learning algorithms. Note that these measures include an additional parameter λ ∈ [ 0 , 1 ] \lambda\in[0,1] λ ∈ [ 0 , 1 ] to denote the probability with which the machine outputs the string in question. If λ \lambda λ is omitted, we take λ = 2 / 3 \lambda=2/3 λ = 2/3 .
Definition 2.19 (r K λ t \mathrm{rK}^{t}_{\lambda} rK λ t ). For x , y ∈ { 0 , 1 } ∗ x,y \in\{0,1\}^{*} x , y ∈ { 0 , 1 } ∗ , λ ∈ [ 0 , 1 ] \lambda\in[0,1] λ ∈ [ 0 , 1 ] , t ∈ N t \in\mathbb{N} t ∈ N , the randomized t t t -time-bounded Kolmogorov complexity of x x x conditioned on y y y is defined as
r K λ t ( x ∣ y ) ≜ min M ∈ { 0 , 1 } ∗ { ∣ M ∣ | Pr r ∼ { 0 , 1 } t [ U ( M , y , r , 1 t ) outputs x ] ≥ λ } . \mathrm{rK}^{t}_{\lambda}(x \mid y) \triangleq\min_{M\in\{0,1\}^{*}}\left\{|M| \;\middle|\; \Pr_{r\sim\{0,1\}^{t}}\left[U(M,y,r,1^{t})\text{ outputs }x\right]\geq\lambda\right\}. rK λ t ( x ∣ y ) ≜ M ∈ { 0 , 1 } ∗ min { ∣ M ∣ r ∼ { 0 , 1 } t Pr [ U ( M , y , r , 1 t ) outputs x ] ≥ λ } . We define r K t ( x ) \mathrm{rK}^{t}(x) rK t ( x ) as r K t ( x ∣ ϵ ) \mathrm{rK}^{t}(x\mid\epsilon) rK t ( x ∣ ϵ ) .
Note that in r K t \mathrm{rK}^{t} rK t , the string still has a deterministic, standard shorter description encoding a program; it is the program’s execution that is randomized, so the natural decoding procedure uses randomness to recover the string. Randomization can provide significant savings in description length in some concrete settings [37 ] . Nevertheless, under derandomization assumptions from complexity theory, it follows that K poly ( t ) ( x ) \mathrm{K}^{\operatorname{poly}(t)}(x) K poly ( t ) ( x ) and r K poly ( t ) ( x ) \mathrm{rK}^{\operatorname{poly}(t)}(x) rK poly ( t ) ( x ) are related up to an additive logarithmic term for every large enough string x x x (see, e.g., [61 Appendix A.2] ).
In recent years, another variant of time-bounded Kolmogorov complexity has been particularly useful due to its coding properties [126 ] and connections to pseudorandomness.
Definition 2.20 (p K t \mathrm{pK}^{t} pK t [61 ] ). For x , y ∈ { 0 , 1 } ∗ x,y \in\{0,1\}^{*} x , y ∈ { 0 , 1 } ∗ , λ ∈ [ 0 , 1 ] \lambda\in[0,1] λ ∈ [ 0 , 1 ] , t ∈ N t \in\mathbb{N} t ∈ N , the probabilistic t t t -time-bounded Kolmogorov complexity of x x x conditioned on y y y is defined as
p K λ t ( x ∣ y ) ≜ min { k | Pr r ∼ { 0 , 1 } t [ ∃ M ∈ { 0 , 1 } ≤ k such that U ( M , y , r , 1 t ) outputs x ] ≥ λ } . \mathrm{pK}^{t}_{\lambda}(x \mid y) \triangleq\min\left\{k \;\middle|\; \Pr_{r\sim\{0,1\}^{t}}\left[\exists M\in\{0,1\}^{\leq k}\text{ such that }U(M,y,r,1^{t})\text{ outputs }x\right]\geq\lambda\right\}. pK λ t ( x ∣ y ) ≜ min { k r ∼ { 0 , 1 } t Pr [ ∃ M ∈ { 0 , 1 } ≤ k such that U ( M , y , r , 1 t ) outputs x ] ≥ λ } . We define p K t ( x ) \mathrm{pK}^{t}(x) pK t ( x ) as p K t ( x ∣ ϵ ) \mathrm{pK}^{t}(x\mid\epsilon) pK t ( x ∣ ϵ ) .
Equivalently, p K t ( x ) ≤ k \mathrm{pK}^{t}(x)\leq k pK t ( x ) ≤ k if Pr r [ K t ( x ∣ r ) ≤ k ] ≥ 2 / 3 \Pr_{r}[\mathrm{K}^{t}(x\mid r)\leq k]\geq2/3 Pr r [ K t ( x ∣ r ) ≤ k ] ≥ 2/3 . As a consequence, a string x x x has bounded p K t \mathrm{pK}^{t} pK t complexity if for most choices of r r r it admits a small description given access to r r r . Note that here the description of x x x depends on r r r . This captures the setting where both encoder and decoder share access to a random string r r r . In contrast, in r K t \mathrm{rK}^{t} rK t there is a fixed randomised machine that produces x x x with high probability over its internal randomness.3
We will also consider a randomized variant of Levin’s Kt complexity that admits particularly useful coding properties (see [81 ] and references therein for additional context).
Definition 2.21 (r K t λ \mathrm{rKt}_{\lambda} rKt λ [142 ] ). For x , y ∈ { 0 , 1 } ∗ x,y \in\{0,1\}^{*} x , y ∈ { 0 , 1 } ∗ , λ ∈ [ 0 , 1 ] \lambda\in[0,1] λ ∈ [ 0 , 1 ] , the randomized Levin complexity of x x x conditioned on y y y is defined as
r K t λ ( x ∣ y ) ≜ min t ∈ N , M ∈ { 0 , 1 } ∗ { ∣ M ∣ + ⌈ log t ⌉ | Pr r ∼ { 0 , 1 } t [ U ( M , y , r , 1 t ) outputs x ] ≥ λ } . \mathrm{rKt}_{\lambda}(x\mid y)\triangleq\min_{t\in\mathbb{N},\,M\in\{0,1\}^{*}}\left\{|M|+\lceil\log t\rceil\;\middle|\; \Pr_{r\sim\{0,1\}^{t}}\left[U(M,y,r,1^{t})\text{ outputs }x\right]\geq\lambda\right\}. rKt λ ( x ∣ y ) ≜ t ∈ N , M ∈ { 0 , 1 } ∗ min { ∣ M ∣ + ⌈ log t ⌉ r ∼ { 0 , 1 } t Pr [ U ( M , y , r , 1 t ) outputs x ] ≥ λ } . We define r K t ( x ) \mathrm{rKt}(x) rKt ( x ) as r K t ( x ∣ ϵ ) \mathrm{rKt}(x\mid\epsilon) rKt ( x ∣ ϵ ) .
For completeness, we mention that one can also consider a “probabilistic” variant of Kt called p K t \mathrm{pKt} pKt [80 ] , which is similar to the extension of K t \mathrm{K}^{t} K t to p K t \mathrm{pK}^{t} pK t . While we will not employ p K t \mathrm{pKt} pKt in the survey, we refer to [146 ] for a recent application of a related notion in the context of machine learning.
A choice of universal machine U U U gives rise to a certain universal distribution that may be sampled by returning the output of U U U on a uniformly random input. In the case of time-unbounded Kolmogorov complexity, for any string x x x , K ( x ) K(x) K ( x ) is approximately equal to the logarithm of the inverse of the probability of x x x under this distribution.
Analogously, one may define a time-bounded universal distribution for a given time bound t ∈ N t \in\mathbb{N} t ∈ N . Namely, for a fixed universal machine U U U , [96 ] define Q t Q^t Q t as the distribution of the output of U ( r , 1 t ) U(r,1^t) U ( r , 1 t ) for a uniformly random string r ∼ { 0 , 1 } ∗ r \sim\{0,1\}^* r ∼ { 0 , 1 } ∗ . For any auxiliary string y ∈ { 0 , 1 } ∗ y \in\{0,1\}^* y ∈ { 0 , 1 } ∗ , let Q t , y Q^{t,y} Q t , y be the distribution with the same definition as Q t Q^t Q t , except the universal machine U U U is additionally given access to y y y .
The following is the complexity measure corresponding to this family of distributions.
Definition 2.22 (q t q^t q t [87 ] ). For x , y ∈ { 0 , 1 } ∗ x,y \in\{0,1\}^* x , y ∈ { 0 , 1 } ∗ and t ∈ N t \in\mathbb{N} t ∈ N , the q t q^t q t -complexity of x x x conditioned on y y y is defined as
q t ( x ∣ y ) ≜ log ( 1 Pr [ Q t , y = x ] ) . q^t(x \mid y) \mathrel{\mathop{\triangleq}} \log\left(\frac{1}{\Pr[Q^{t,y}=x]}\right). q t ( x ∣ y ) ≜ log ( Pr [ Q t , y = x ] 1 ) .
We define q t ( x ) q^t(x) q t ( x ) as q t ( x ∣ ϵ ) q^t(x \mid\epsilon) q t ( x ∣ ϵ ) ; that is, log ( 1 / Pr [ Q t = x ] ) \log(1/\Pr[Q^t=x]) log ( 1/ Pr [ Q t = x ]) .
We refer to the textbooks [132 , 167 ] for a comprehensive treatment of Kolmogorov complexity. For a modern perspective on time-bounded Kolmogorov complexity, see [125 ] .
Circuit Complexity
A boolean circuit is a finite directed acyclic graph with one or more source nodes, one sink node, and each internal node corresponding to some boolean function g : { 0 , 1 } ∗ → { 0 , 1 } g:\{0,1\}^* \to\{0,1\} g : { 0 , 1 } ∗ → { 0 , 1 } from a fixed set G G G , called a basis . A standard choice of G G G is the set { A N D , O R , N O T } \{\mathrm{AND},\mathrm{OR},\mathrm{NOT}\} { AND , OR , NOT } . Each node of a boolean circuit is called a gate , with source nodes being called input gates and the sink node being called the output gate .4 A boolean circuit C C C with n n n input nodes induces a boolean function f : { 0 , 1 } n → { 0 , 1 } f:\{0,1\}^n \to\{0,1\} f : { 0 , 1 } n → { 0 , 1 } , computed by associating each bit of a given input string x ∈ { 0 , 1 } n x \in\{0,1\}^n x ∈ { 0 , 1 } n with the corresponding input gate of C C C , performing the computation specified by the structure of C C C and the functions of the internal gates, and taking f ( x ) ∈ { 0 , 1 } f(x) \in\{0,1\} f ( x ) ∈ { 0 , 1 } to be the value resulting at the output gate.
Since a single boolean circuit has a fixed number of input gates, it computes a function on inputs of only one length. To capture a boolean function f : { 0 , 1 } ∗ → { 0 , 1 } f:\{0,1\}^* \to\{0,1\} f : { 0 , 1 } ∗ → { 0 , 1 } defined on all input lengths, we consider a circuit family C = { C n } n ∈ N C=\{C_n\}_{n\in\mathbb{N}} C = { C n } n ∈ N , where each C n C_n C n has n n n input gates and computes the restriction of f f f to { 0 , 1 } n \{0,1\}^n { 0 , 1 } n . Two measures of the cost of a circuit are its size , i.e. the number of gates it contains, and its depth , i.e. the length of the longest path from an input gate to the output gate.
We use the term fan-in to refer to the number of inputs to a gate. For unrestricted boolean circuits, we adopt the convention that the fan-in of each gate is at most two. For bounded-depth circuit classes, we allow the fan-in to be unbounded unless stated otherwise. Note that NOT gates always have fan-in equal to 1.
From the perspective of compression, the truth table of a Boolean function f f f can be seen as a long string of length N = 2 n N=2^n N = 2 n . A small circuit C C C that computes f f f can then be interpreted as a compressed representation with a local decoder: given an index i ∈ [ N ] i \in[N] i ∈ [ N ] , C ( i ) C(i) C ( i ) outputs the i i i -th bit of f f f .
Next, we define several classes of boolean functions, which may all be specified according to a class of boolean circuit families.
Definition 2.23 (P/poly). P/poly is the class of boolean functions computable by a circuit family { C n } \{C_n\} { C n } over the basis { A N D , O R , N O T } \{\mathrm{AND},\mathrm{OR},\mathrm{NOT}\} { AND , OR , NOT } , where for some constant d ∈ N d \in\mathbb{N} d ∈ N , each C n C_n C n has size at most n d n^d n d .
Definition 2.24 (AC0 ^{0} 0 ). AC0 ^{0} 0 is the class of boolean functions computable by a circuit family { C n } \{C_n\} { C n } over the basis { A N D , O R , N O T } \{\mathrm{AND}, \mathrm{OR}, \mathrm{NOT}\} { AND , OR , NOT } , where for some constants c , d ∈ N c,d \in\mathbb{N} c , d ∈ N , each C n C_n C n has size at most n c n^c n c and depth at most d d d .
Definition 2.25 (TC0 ^{0} 0 ). The class TC0 ^{0} 0 has the same definition as AC0 ^{0} 0 , except circuits are over the larger basis { A N D , O R , N O T , T H R } \{\mathrm{AND}, \mathrm{OR}, \mathrm{NOT}, \mathrm{THR}\} { AND , OR , NOT , THR } , where THR is a threshold gate (also known as a weighted majority), outputting 1 iff ∑ i w i ⋅ z i ≥ t \sum_i w_i \cdot z_i \ge t ∑ i w i ⋅ z i ≥ t , where w i , t ∈ R w_i,t \in\mathbb{R} w i , t ∈ R . 5
TC0 ^{0} 0 circuits, also known as threshold circuits, can be interpreted as a discrete analogue of neural networks. We recall that a current frontier in complexity theory is to establish super-polynomial circuit size lower bounds against depth-2 threshold circuits for an explicit function (see [118 , 39 ] for partial progress and related discussion). We refer to Figure 2 for a diagram representation of this circuit class.
Figure 2. A depth-2 threshold circuit C C C . The top threshold gate receives the outputs taking values in { 0 , 1 } \{0,1\} { 0 , 1 } from the threshold gates in the bottom layer, each of which is connected to the input variables x 1 , … , x n x_1,\ldots,x_n x 1 , … , x n .
Definition 2.26 (AC0 ^{0} 0 with MODm _m m gates). For a modulus m ≥ 2 m \ge2 m ≥ 2 , let MODm _m m output 1 iff the number of its inputs equal to 1 is divisible by m m m . AC0 [ m ] ^{0}[m] 0 [ m ] has the same definition as AC0 ^{0} 0 , except circuits are over the basis { A N D , O R , N O T , M O D m } \{\mathrm{AND},\mathrm{OR},\mathrm{NOT},\mathrm{MOD}_m\} { AND , OR , NOT , MOD m } . The case of m = 2 m=2 m = 2 gives the parity gate, sometimes written AC0 [ ⊕ ] ^{0}[\oplus] 0 [ ⊕ ] . ACC0 ^{0} 0 is the class defined as ⋃ m ≥ 2 A C 0 [ m ] \bigcup_{m\ge2}\mathrm{AC}^{0}[m] ⋃ m ≥ 2 AC 0 [ m ] .
The following inclusion of circuit classes hold:
A C 0 ⊆ A C 0 [ ⊕ ] ⊆ A C C 0 ⊆ T C 0 ⊆ P / p o l y . \mathrm{AC}^{0} \subseteq\mathrm{AC}^{0}[\oplus] \subseteq\mathrm{ACC}^{0} \subseteq\mathrm{TC}^{0} \subseteq\mathrm{P/poly}. AC 0 ⊆ AC 0 [ ⊕ ] ⊆ ACC 0 ⊆ TC 0 ⊆ P/poly .
For standard background on Boolean circuits, nonuniform computation, and circuit classes, see [1 , 102 ] .
Meta-Complexity
Broadly speaking, problems in meta-complexity ask about the complexity of a given object. One may restrict these problems to different kinds of object (for example, the input may simply be a string, or it may be understood to represent a partly or fully specified truth-table), and one may ask about different measures of complexity (for example, one may ask about the circuit complexity or the Kolmogorov complexity of the input).
We begin with the Minimum Circuit Size Problem [105 ] , a prototypical example of a problem in meta-complexity.
Definition 2.27 (MCSP). The Minimum Circuit Size Problem , denoted MCSP, is the problem defined as follows. The input consists of a truth-table T T T , represented as a string, along with a size threshold s ∈ N s \in\mathbb{N} s ∈ N . ( T , s ) (T,s) ( T , s ) is a yes-instance of MCSP if and only if there exists a boolean circuit of size at most s s s computing the function with truth-table T T T .
Definition 2.28 (Partial-MCSP). Partial-MCSP is the problem defined as follows. For some n , m ∈ N n,m \in\mathbb{N} n , m ∈ N , the input consists of a collection of input/output pairs ( ( x i , b i ) ) i ∈ [ m ] ((x_i,b_i))_{i\in[m]} (( x i , b i ) ) i ∈ [ m ] , where x i ∈ { 0 , 1 } n x_i \in\{0,1\}^n x i ∈ { 0 , 1 } n and b i ∈ { 0 , 1 } b_i \in\{0,1\} b i ∈ { 0 , 1 } for each i ∈ [ m ] i \in[m] i ∈ [ m ] , and a threshold parameter s ∈ N s \in\mathbb{N} s ∈ N . ( ( x i , b i ) i ∈ [ m ] , s ) ((x_i,b_i)_{i\in[m]},s) (( x i , b i ) i ∈ [ m ] , s ) is a yes-instance of Partial-MCSP iff there exists a boolean circuit C C C of size at most s s s such that C ( x i ) = b i C(x_i)=b_i C ( x i ) = b i for all i ∈ [ m ] i \in[m] i ∈ [ m ] .
Next, we will consider computational problems related to the task of estimating the time-bounded Kolmogorov complexity of an input string (see [161 ] for further context and resources).
Definition 2.29 (MINKT). Inputs to the problem MINKT consist of a string x x x along with a size threshold s ∈ N s \in\mathbb{N} s ∈ N and time parameter t ∈ N t \in\mathbb{N} t ∈ N . ( x , 1 s , 1 t ) (x,1^s,1^t) ( x , 1 s , 1 t ) is a yes-instance of MINKT if and only if K t ( x ) ≤ s K^t(x) \le s K t ( x ) ≤ s .
Observe that MINKT is in NP. It is not in P under the existence of cryptographically secure one-way functions [105 ] . Interestingly, while believed to be intractable, MINKT is not known to be NP-complete (see [82 ] and references therein).
For the connections to learning and cryptography discussed in § 4.3 , the complexity of certain robust variants of MINKT is more relevant. We will informally refer to Gap-MINKT as the task of estimating the K t K^t K t complexity of an input string x x x of length n n n up to an additive term O ( log n ) O(\log n) O ( log n ) .6 We say that “Gap-MINKT ∈ \in ∈ P” if there is a polynomial-time algorithm that solves this problem on every input. We refer to [72 ] for the relevant formal definition. We say that “Gap-MINKT ∈ \in ∈ HeurP” if there is a polynomial-time algorithm that is heuristically correct, i.e., it solves the problem on most inputs (but might output an incorrect estimate on a small fraction of inputs). We refer to [128 ] for the relevant formal definition.
It is known that the task of estimating the K t K^t K t complexity of an input string is essentially equivalent (under polynomial-time reductions) to the following problem [72 ] .
Definition 2.30 (The GapK t K^t K t -vs-K Problem). We say that GapK t K^t K t -vs-K ∈ \in ∈ pr-BPP if there is a randomized polynomial-time algorithm A A A such that for every input x ∈ { 0 , 1 } ∗ x \in\{0,1\}^* x ∈ { 0 , 1 } ∗ of length n n n and every time bound t ∈ N t \in\mathbb{N} t ∈ N ,
Pr A [ K ( x ) ≤ A ( x , 1 t ) ≤ K t ( x ) + O ( log n ) ] ≥ 2 / 3. \Pr_A\left[K(x) \le A(x,1^t) \le K^t(x)+O(\log n)\right] \ge2/3. A Pr [ K ( x ) ≤ A ( x , 1 t ) ≤ K t ( x ) + O ( log n ) ] ≥ 2/3.
Similarly, we consider the complexity of computing Levin’s Kt complexity. In the MKtP problem, we are given as input a tuple ( x , 1 s ) (x,1^s) ( x , 1 s ) , and the task is to decide if Kt ( x ) ≤ s \operatorname{Kt}(x) \le s Kt ( x ) ≤ s . This problem is in the complexity class EXP, i.e., deterministic exponential time.
While the statement MINKT ∉ \notin ∈ / P immediately implies that NP ⊈ \not\subseteq ⊆ P, a proof that MKtP ∉ \notin ∈ / P merely implies that EXP ⊈ \not\subseteq ⊆ P, which is already known by the time hierarchy theorem. Still, it remains a longstanding open problem to establish this lower bound for MKtP [2 ] . We will revisit this question in § 7.3 .
We refer to some general surveys of meta-complexity for broader context [8 , 9 , 73 , 137 ] .
Natural Properties
In an influential work, [154 ] showed that many combinatorial circuit size lower bound arguments implicitly provide an efficient algorithm that distinguishes “structured” functions from “random” functions. As explained later in the survey, this provides a fruitful connection between complexity lower bounds and algorithmic upper bounds.
Let C \mathcal{C} C be a Boolean circuit class, and for a size parameter s : N → N s:\mathbb{N}\to\mathbb{N} s : N → N , let C [ s ] \mathcal{C}[s] C [ s ] denote the set of Boolean functions f : { 0 , 1 } n → { 0 , 1 } f:\{0,1\}^{n}\to\{0,1\} f : { 0 , 1 } n → { 0 , 1 } computed by a C \mathcal{C} C -circuit of size at most s ( n ) s(n) s ( n ) . We write C n [ s ( n ) ] \mathcal{C}_{n}[s(n)] C n [ s ( n )] when we restrict the class to Boolean functions on n n n input bits.
A function f : { 0 , 1 } n → { 0 , 1 } f:\{0,1\}^{n}\to\{0,1\} f : { 0 , 1 } n → { 0 , 1 } can be represented by a string tt ( f ) ∈ { 0 , 1 } N \operatorname{tt}(f)\in\{0,1\}^{N} tt ( f ) ∈ { 0 , 1 } N of length N = 2 n N=2^{n} N = 2 n that describes the truthtable of f f f . Similarly, given a string w ∈ { 0 , 1 } N w\in\{0,1\}^{N} w ∈ { 0 , 1 } N , we write fnc w : { 0 , 1 } n → { 0 , 1 } \operatorname{fnc}_{w}:\{0,1\}^{n}\to\{0,1\} fnc w : { 0 , 1 } n → { 0 , 1 } to denote the corresponding Boolean function.
In the discussion below, we will consider algorithms that receive as input the description of a Boolean function as an N N N -bit string. Roughly speaking, a natural property is an efficient algorithm that rejects every function in C [ s ] \mathcal{C}[s] C [ s ] but accepts a large set of functions. In other words, it provides an efficient test to reject functions of low complexity while at the same time accepting a large collection of “random” functions.
Definition 2.31 (Natural Properties [154 ] ). We say that there is a prBPP-natural property against a circuit class C [ s ] \mathcal{C}[s] C [ s ] if there is a probabilistic polynomial-time algorithm A A A operating over input strings of length N = 2 n N=2^{n} N = 2 n for which the following conditions hold:
Constructive: A A A runs in time polynomial in its input length N N N .
Largeness: For every n n n and N = 2 n N=2^{n} N = 2 n , there is a set F n ⊆ { 0 , 1 } N \mathcal{F}_{n}\subseteq\{0,1\}^{N} F n ⊆ { 0 , 1 } N with Pr w ∼ U N [ w ∈ F n ] ≥ 1 / 2 \Pr_{w\sim U_{N}}[w\in\mathcal{F}_{n}]\ge1/2 Pr w ∼ U N [ w ∈ F n ] ≥ 1/2 such that for every w ∈ F n w\in\mathcal{F}_{n} w ∈ F n , we have Pr A [ A ( w ) = 1 ] ≥ 2 / 3 \Pr_{A}[A(w)=1]\ge2/3 Pr A [ A ( w ) = 1 ] ≥ 2/3 .
C [ s ] \mathcal{C}[s] C [ s ] -usefulness: For every n n n and f : { 0 , 1 } n → { 0 , 1 } f:\{0,1\}^{n}\to\{0,1\} f : { 0 , 1 } n → { 0 , 1 } such that f ∈ C n [ s ( n ) ] f\in\mathcal{C}_{n}[s(n)] f ∈ C n [ s ( n )] , we have Pr A [ A ( tt ( f ) ) = 1 ] ≤ 1 / 3 \Pr_{A}[A(\operatorname{tt}(f))=1]\le1/3 Pr A [ A ( tt ( f )) = 1 ] ≤ 1/3 .
In the definition above, we use prBPP instead of BPP because the randomized procedure A A A might accept some strings with probability close to 1 / 2 1/2 1/2 . In the terminology of complexity theory, it might define a promise problem as opposed to a language. We refer to Figure 3 for a pictorial description of a natural property.
Figure 3. A diagram representation of a natural property (Definition 2.31). The outer rectangle is the ground set of all N N N -bit strings. The small region represents the “structured” strings corresponding to functions in the low complexity class C n [ s ( n ) ] \mathcal{C}_n[s(n)] C n [ s ( n )] . The large region represents the “random” strings in F n ⊆ { 0 , 1 } N \mathcal{F}_n \subseteq\{0,1\}^N F n ⊆ { 0 , 1 } N . Its relative size illustrates the largeness condition, while F n ∩ C n [ s ( n ) ] = ∅ \mathcal{F}_n \cap\mathcal{C}_n[s(n)] = \varnothing F n ∩ C n [ s ( n )] = ∅ illustrates usefulness against C n [ s ( n ) ] \mathcal{C}_n[s(n)] C n [ s ( n )] . A natural property is constructive : it postulates the existence of an efficient algorithm that distinguishes these two sets, thereby separating the structured strings in C n [ s ( n ) ] \mathcal{C}_n[s(n)] C n [ s ( n )] from the random strings in F n \mathcal{F}_n F n .
For broader background on circuit lower bounds and the natural proofs barrier, see [1 , 102 ] .
Pseudorandomness
A pseudorandom generator with seed length n n n and output length m > n m>n m > n is a deterministic map
G : { 0 , 1 } n → { 0 , 1 } m . G:\{0,1\}^{n}\to\{0,1\}^{m}. G : { 0 , 1 } n → { 0 , 1 } m .
For a uniform seed s ∼ U n s\sim U_{n} s ∼ U n , we write G ( U n ) G(U_{n}) G ( U n ) for the distribution of G ( s ) G(s) G ( s ) . The quantity m − n m-n m − n is called the stretch of G G G . More generally, one considers families { G n } n ∈ N \{G_{n}\}_{n\in\mathbb{N}} { G n } n ∈ N whose output length m = m ( n ) m=m(n) m = m ( n ) grows with the seed length.
Definition 2.32 (Distinguishers and Pseudorandomness). A distinguisher is a Boolean function, or more generally a randomized procedure, D : { 0 , 1 } m → { 0 , 1 } D : \{0,1\}^m \to\{0,1\} D : { 0 , 1 } m → { 0 , 1 } . Its distinguishing advantage against G G G is
Adv G ( D ) ≜ ∣ Pr s ∼ U n [ D ( G ( s ) ) = 1 ] − Pr y ∼ U m [ D ( y ) = 1 ] ∣ \operatorname{Adv}_G(D) \triangleq\left| \Pr_{s \sim U_n}[D(G(s)) = 1] - \Pr_{y \sim U_m}[D(y) = 1] \right| Adv G ( D ) ≜ s ∼ U n Pr [ D ( G ( s )) = 1 ] − y ∼ U m Pr [ D ( y ) = 1 ] where the probabilities also include the internal randomness of D D D , if any. We say that D D D ε \varepsilon ε -distinguishes the output of G G G from the uniform distribution if Adv G ( D ) > ε \operatorname{Adv}_G(D) > \varepsilon Adv G ( D ) > ε . Given a class C \mathcal{C} C of distinguishers, we say that G G G fools C \mathcal{C} C with error ε \varepsilon ε if Adv G ( D ) ≤ ε \operatorname{Adv}_G(D) \leq\varepsilon Adv G ( D ) ≤ ε for every D ∈ C D \in\mathcal{C} D ∈ C . Equivalently, G G G is ε \varepsilon ε -pseudorandom against C \mathcal{C} C .
Pseudorandom generators commonly appear in two regimes. In the cryptographic regime , G G G is efficient and must fool distinguishers whose running time may be substantially larger than the time needed for one evaluation of G G G . The existence of cryptographic pseudorandom generators is equivalent, under polynomial-time reductions, to the existence of one-way functions and pseudorandom functions. These primitives are often used to establish conditional hardness results for learning.
In the complexity-theoretic regime , the generator may use more time than the distinguishers it fools. Here a generator is often accompanied by a reconstruction procedure that converts a distinguisher into useful computational structure. Such generators and reconstruction procedures will later be used to construct learning algorithms.
The survey will use several variants of these notions. We record the basic definitions here as a guide for the reader and refer to Vadhan’s monograph [170 ] for a comprehensive treatment.
Classical Connections Between Learning and Compression
We start off with two classical connections between learning and compression. They allow us to link learnability, a statistical notion, with compressibility, a combinatorial one. In many contexts, this offers a particularly fruitful perspective for the design of learning algorithms.
Model Compression
We start with one of the most basic connections between learning and compression. In the (realizable) PAC learning setting, a labelled sample may contain many examples, but a learner can summarize the information they exhibit by a comparatively short hypothesis (“model”) that agrees with every observed label. We refer to this operation as model compression .7
Why should a compressed model generalize well, i.e., remain accurate on fresh examples that are not part of the training data? The answer is the principle commonly known as Occam’s Razor : among explanations that fit the observations, a simple explanation is less likely to fit merely by accident [14 ] . The informal justification is easy to understand: any fixed substantially incorrect hypothesis is unlikely to agree with many independent examples, and a short model description leaves few candidate hypotheses over which this unlikely event must be union bounded. Thus compression of the model controls generalization.
We now formalize this intuition. Let C \mathcal{C} C be a concept class and H \mathcal{H} H a hypothesis class, where H \mathcal{H} H need not be equal to C \mathcal{C} C . For a distribution D n D_n D n over { 0 , 1 } n \{0,1\}^n { 0 , 1 } n , define
err D n ( h , c ) ≜ Pr x ∼ D n [ h ( x ) ≠ c ( x ) ] . \operatorname{err}_{D_n}(h,c) \triangleq\Pr_{x\sim D_n}[h(x) \ne c(x)]. err D n ( h , c ) ≜ x ∼ D n Pr [ h ( x ) = c ( x )] .
Definition 3.1 (Consistent Hypothesis Finder). A consistent hypothesis finder for C \mathcal{C} C using H \mathcal{H} H is a procedure A A A with the following property. For every n , m ≥ 1 n,m \ge1 n , m ≥ 1 , every c ∈ C n c \in\mathcal{C}_n c ∈ C n , and every labelled sample
S = { ( x 1 , c ( x 1 ) ) , … , ( x m , c ( x m ) ) } , S = \{(x_1,c(x_1)),\ldots,(x_m,c(x_m))\}, S = {( x 1 , c ( x 1 )) , … , ( x m , c ( x m ))} , A ( S ) A(S) A ( S ) outputs a hypothesis h ∈ H n h \in\mathcal{H}_n h ∈ H n such that h ( x i ) = c ( x i ) h(x_i)=c(x_i) h ( x i ) = c ( x i ) for every i ∈ [ m ] i \in[m] i ∈ [ m ] .
Thus a consistent hypothesis finder solves a search problem with no explicit reference to a distribution or to the PAC parameters ε \varepsilon ε and δ \delta δ . Note that the hypothesis class H \mathcal{H} H records the set of possible models, and it may differ from the target class C \mathcal{C} C . The next result shows that consistency implies generalization whenever the range of possible output models is sufficiently small and the number of samples is large enough.
Theorem 3.2 (PAC Learning by Finding a Consistent Hypothesis [14 ] ). Let C \mathcal{C} C be a concept class, H \mathcal{H} H be a hypothesis class, and suppose that A A A is a consistent hypothesis finder for C \mathcal{C} C using H \mathcal{H} H . Fix n ≥ 1 n \ge1 n ≥ 1 and assume that H n \mathcal{H}_n H n is finite. Let D n D_n D n be any distribution over { 0 , 1 } n \{0,1\}^n { 0 , 1 } n , let c ∈ C n c \in\mathcal{C}_n c ∈ C n , and let ε , δ ∈ ( 0 , 1 ) \varepsilon,\delta\in(0,1) ε , δ ∈ ( 0 , 1 ) . If A A A is run on m m m independent examples from EX ( c , D n ) \operatorname{EX}(c,D_n) EX ( c , D n ) , where
m ≥ 1 ε ( ln ∣ H n ∣ + ln 1 δ ) , m \ge\frac{1}{\varepsilon}\left(\ln|\mathcal{H}_n|+\ln\frac{1}{\delta}\right), m ≥ ε 1 ( ln ∣ H n ∣ + ln δ 1 ) , then, with probability at least 1 − δ 1-\delta 1 − δ over the sample, its output hypothesis h h h satisfies err D n ( h , c ) ≤ ε \operatorname{err}_{D_n}(h,c)\le\varepsilon err D n ( h , c ) ≤ ε .
Proof. Let c c c be the unknown target concept, and let B ⊆ H n \mathcal{B} \subseteq\mathcal{H}_n B ⊆ H n be the set of bad hypotheses h h h satisfying err D n ( h , c ) > ε \operatorname{err}_{D_n}(h,c) > \varepsilon err D n ( h , c ) > ε . Fix h ∈ B h \in\mathcal{B} h ∈ B . A single example ( x , c ( x ) ) (x,c(x)) ( x , c ( x )) drawn from EX ( c , D n ) \operatorname{EX}(c,D_n) EX ( c , D n ) is consistent with h h h with probability 1 − err D n ( h , c ) < 1 − ε 1-\operatorname{err}_{D_n}(h,c) < 1-\varepsilon 1 − err D n ( h , c ) < 1 − ε . Since the m m m examples are independent, the probability that h h h is consistent with the entire sample is at most
( 1 − ε ) m ≤ e − ε m . (1-\varepsilon)^m \leq e^{-\varepsilon m}. ( 1 − ε ) m ≤ e − ε m .
If the consistent hypothesis finder outputs a bad hypothesis, then the sample must be consistent with at least one member of B \mathcal{B} B . Consequently, a union bound gives
Pr [ err D n ( A ( S ) , c ) > ε ] ≤ Pr [ ∃ h ∈ B consistent with S ] ≤ ∑ h ∈ B Pr [ h is consistent with S ] ≤ ∣ H n ∣ e − ε m ≤ δ , \begin{aligned}
\Pr[\operatorname{err}_{D_n}(A(S),c)>\varepsilon] &\leq\Pr[\exists h\in\mathcal{B}\text{ consistent with }S] \\
&\leq\sum_{h\in\mathcal{B}}\Pr[h\text{ is consistent with }S] \\
&\leq|\mathcal{H}_n|e^{-\varepsilon m} \\
&\leq\delta,
\end{aligned} Pr [ err D n ( A ( S ) , c ) > ε ] ≤ Pr [ ∃ h ∈ B consistent with S ] ≤ h ∈ B ∑ Pr [ h is consistent with S ] ≤ ∣ H n ∣ e − ε m ≤ δ ,
where the final inequality follows from the assumed lower bound on m m m .
The role of model compression can now be made explicit. Suppose every h ∈ H n h \in\mathcal{H}_n h ∈ H n can be encoded using ℓ ( n ) \ell(n) ℓ ( n ) bits. Then ln ∣ H n ∣ ≤ ℓ ( n ) ln 2 \ln|\mathcal{H}_n| \leq\ell(n)\ln2 ln ∣ H n ∣ ≤ ℓ ( n ) ln 2 and it is therefore enough to take
m ≥ 1 ε ( ℓ ( n ) ln 2 + ln 1 δ ) . m \geq\frac{1}{\varepsilon}\left(\ell(n)\ln2+\ln\frac{1}{\delta}\right). m ≥ ε 1 ( ℓ ( n ) ln 2 + ln δ 1 ) .
Thus the number of examples required for generalization is controlled by the description length of the output model. The training sample is described by m ( n + 1 ) m(n+1) m ( n + 1 ) bits, while the explanation extracted from it uses only ℓ ( n ) \ell(n) ℓ ( n ) bits. If the consistent hypothesis finder runs in polynomial time, ℓ ( n ) = poly ( n ) \ell(n)=\operatorname{poly}(n) ℓ ( n ) = poly ( n ) , and its output hypotheses are efficiently evaluatable under the encoding, then this construction gives an efficient PAC learner.
To sum up, compressing the observations into a short model prevents overfitting because there are too few short models for a substantially incorrect one to agree with all the data, except with small probability.
A Classical Example: Learning Through Polynomial Threshold Representations. An important example of the preceding model compression perspective is the class of linear threshold functions (LTFs), also known as halfspaces or perceptrons. Such a function has the form h ( x ) = sign ( w 0 + ⟨ w , x ⟩ ) h(x)=\operatorname{sign}(w_0+\langle w,x\rangle) h ( x ) = sign ( w 0 + ⟨ w , x ⟩) . Given a labelled sample realizable by a linear threshold function, consistency can be expressed as a linear program. After encoding the labels as elements of { ± 1 } \{\pm1\} { ± 1 } , one seeks w 0 , w w_0,w w 0 , w satisfying y i ( w 0 + ⟨ w , x i ⟩ ) ≥ 1 y_i(w_0+\langle w,x_i\rangle)\geq1 y i ( w 0 + ⟨ w , x i ⟩) ≥ 1 for every sample point ( x i , y i ) (x_i,y_i) ( x i , y i ) . Realizability guarantees feasibility after a suitable rescaling, and linear programming finds rational weights of polynomial description length in polynomial time. Thus linear programming provides an efficient consistent hypothesis finder. Moreover, there are only 2 O ( n 2 ) 2^{O(n^2)} 2 O ( n 2 ) distinct linear threshold functions on { 0 , 1 } n \{0,1\}^n { 0 , 1 } n , so the preceding Theorem 3.2 shows that the resulting hypothesis generalizes from polynomially many examples. This yields a distribution-independent PAC learner for linear threshold functions.
Feature expansion extends this observation to polynomial threshold functions (PTFs), the natural extension of LTFs to higher degree. Let Φ d ( x ) \Phi_d(x) Φ d ( x ) be the vector whose coordinates are all multilinear monomials ∏ i ∈ T x i \prod_{i\in T}x_i ∏ i ∈ T x i with ∣ T ∣ ≤ d |T|\leq d ∣ T ∣ ≤ d . Its dimension is N = ∑ j = 0 d ( n j ) ≤ ( e n / d ) d N=\sum_{j=0}^{d}\binom{n}{j}\leq(en/d)^d N = ∑ j = 0 d ( j n ) ≤ ( e n / d ) d , and every degree-d d d polynomial threshold function becomes a linear threshold function over the expanded representation Φ d ( x ) \Phi_d(x) Φ d ( x ) . Mapping each example through Φ d \Phi_d Φ d and applying the preceding linear programming algorithm therefore gives a PAC learner with running time poly ( n d , 1 / ε , log ( 1 / δ ) ) \operatorname{poly}(n^d,1/\varepsilon,\log(1/\delta)) poly ( n d , 1/ ε , log ( 1/ δ )) . Consequently, proving that a concept class has polynomial threshold degree at most d d d immediately gives a learning algorithm with this running time. The learner need not know a representation of the target, since the linear program searches for any consistent polynomial threshold function.
This approach yields learning algorithms with provable guarantees for rich concept classes such as decision trees, DNF formulas, bounded-depth Boolean formulas, and more. We refer to the survey [92 ] for a comprehensive discussion of this technique and its applications.
The Occam principle and closely related ideas appear in the literature under several names. It admits several generalizations. For instance, infinite hypothesis classes can be treated using the theory of VC dimension (e.g., LTFs over R n \mathbb{R}^n R n ), while exact consistency can be relaxed by allowing the hypothesis finder to output an h h h that agrees with most examples in the sample. For further background, we refer to standard textbooks such as [116 SSBD14] .
Sample Compression
The preceding subsection compressed a labelled sample into a short model. Sample compression takes a different approach: it retains only a few of the observed examples, together with a small amount of side information, and reconstructs a hypothesis from this summary. The reconstructed hypothesis need not itself have a short standalone description. What matters is that, relative to the original sample, it is determined by very few examples.
Fix an input length n n n . A sample compression scheme for a concept class C n \mathcal{C}_n C n with parameters ( k , ℓ ) (k,\ell) ( k , ℓ ) consists of a compression map Comp and a reconstruction map Rec with the following guarantee. Given any labelled sample sequence
S = ( ( x 1 , c ( x 1 ) ) , … , ( x m , c ( x m ) ) ) S=((x_1,c(x_1)),\ldots,(x_m,c(x_m))) S = (( x 1 , c ( x 1 )) , … , ( x m , c ( x m )))
consistent with some unknown c ∈ C n c \in\mathcal{C}_n c ∈ C n , the map Comp outputs a pair ( S ∣ I , σ ) (S|_I,\sigma) ( S ∣ I , σ ) , where I ⊆ [ m ] I \subseteq[m] I ⊆ [ m ] has size at most k k k and σ ∈ { 0 , 1 } ℓ \sigma\in\{0,1\}^{\ell} σ ∈ { 0 , 1 } ℓ . Here S ∣ I S|_I S ∣ I denotes the subsequence of S S S indexed by I I I , listed in increasing order of indices. The reconstruction map uses only this pair to produce a hypothesis
h = Rec ( S ∣ I , σ ) h=\operatorname{Rec}(S|_I,\sigma) h = Rec ( S ∣ I , σ )
that is consistent with the entire original sample S S S . As usual, strings shorter than ℓ \ell ℓ can be padded, and the reconstructed hypothesis may be improper. We call k + ℓ k+\ell k + ℓ the size of the scheme.
A Classical Example: Rectangles in the Plane. Although we stated the definition over the Boolean cube, sample compression applies without change to arbitrary (possibly infinite) instance domains. Consider the class of axis-aligned rectangles in R 2 \mathbb{R}^2 R 2 , where an example is labelled positive precisely when it belongs to an unknown target rectangle R ⋆ R^\star R ⋆ . Given a realizable sample containing at least one positive example, Comp retains a leftmost, a rightmost, a lowest, and a highest positive example, breaking ties according to their order in the sample and retaining only distinct examples. The reconstruction map Rec outputs the smallest axis-aligned rectangle R S R_S R S containing these points. (If there are no positive examples, the compression is empty and Rec returns the empty hypothesis.) Every positive example lies in R S R_S R S by the choice of the four extreme points. On the other hand, R S ⊆ R ⋆ R_S \subseteq R^\star R S ⊆ R ⋆ , since it is the bounding rectangle of points belonging to the axis-aligned rectangle R ⋆ R^\star R ⋆ . Therefore every negative example lies outside R S R_S R S , and the reconstructed rectangle is consistent with the entire sample. This gives a sample compression scheme with parameters ( k = 4 , ℓ = 0 ) (k = 4, \ell= 0) ( k = 4 , ℓ = 0 ) . We refer to Figure 4 for a pictorial description.
Figure 4. A sample compression scheme for axis-aligned rectangles in the plane. The four extreme positive examples determine the reconstructed rectangle R S R_S R S . Since R S ⊆ R ⋆ R_S \subseteq R^\star R S ⊆ R ⋆ , where R ⋆ R^\star R ⋆ denotes the unknown target rectangle, R S R_S R S contains every positive sample point and no negative sample point. All labels in the original sample can be reconstructed from the four extreme positive points.
Next, we explain why any such compression scheme yields a PAC learner.
Theorem 3.3 (PAC Learning from Sample Compression [133 ] ). Suppose that C n \mathcal{C}_n C n has a sample compression scheme with parameters ( k , ℓ ) (k,\ell) ( k , ℓ ) . Let D n D_n D n be any distribution over { 0 , 1 } n \{0,1\}^n { 0 , 1 } n , let c ∈ C n c \in\mathcal{C}_n c ∈ C n , and let ε , δ ∈ ( 0 , 1 ) \varepsilon,\delta\in(0,1) ε , δ ∈ ( 0 , 1 ) . Draw m m m independent examples from EX ( c , D n ) \operatorname{EX}(c,D_n) EX ( c , D n ) , apply the compression map, and output the reconstructed hypothesis h h h . Then
Pr [ err D n ( h , c ) > ε ] ≤ 2 ℓ ∑ i = 0 k ( m i ) e − ε ( m − i ) . \Pr[\operatorname{err}_{D_n}(h,c)>\varepsilon]\leq2^\ell\sum_{i=0}^{k}\binom{m}{i}e^{-\varepsilon(m-i)}. Pr [ err D n ( h , c ) > ε ] ≤ 2 ℓ i = 0 ∑ k ( i m ) e − ε ( m − i ) . In particular, it suffices to take
m = O ( k log ( 2 / ε ) + ℓ + log ( 1 / δ ) ε ) m=O\left(\frac{k\log(2/\varepsilon)+\ell+\log(1/\delta)}{\varepsilon}\right) m = O ( ε k log ( 2/ ε ) + ℓ + log ( 1/ δ ) ) to obtain error at most ε \varepsilon ε with probability at least 1 − δ 1-\delta 1 − δ .
Proof Sketch. The subtlety compared with the model compression argument is that the reconstructed hypothesis depends on the retained examples, which are themselves random. We therefore cannot fix the hypothesis before drawing the sample and charge it for agreeing with all m m m examples.
Instead, fix a set of indices I ⊆ [ m ] I \subseteq[m] I ⊆ [ m ] of size at most k k k and a message σ ∈ { 0 , 1 } ℓ \sigma\in\{0,1\}^{\ell} σ ∈ { 0 , 1 } ℓ , and condition on the examples indexed by I I I . The reconstructed hypothesis h I , σ = Rec ( S ∣ I , σ ) h_{I,\sigma}=\operatorname{Rec}(S|_I,\sigma) h I , σ = Rec ( S ∣ I , σ ) is now fixed, while the remaining m − ∣ I ∣ m-|I| m − ∣ I ∣ examples are still independent of it. If err D n ( h I , σ , c ) > ε \operatorname{err}_{D_n}(h_{I,\sigma},c)>\varepsilon err D n ( h I , σ , c ) > ε , the probability that it agrees with all these remaining examples is therefore at most
( 1 − ε ) m − ∣ I ∣ ≤ e − ε ( m − ∣ I ∣ ) . (1-\varepsilon)^{m-|I|}\leq e^{-\varepsilon(m-|I|)}. ( 1 − ε ) m − ∣ I ∣ ≤ e − ε ( m − ∣ I ∣ ) .
Although the compression map may choose ( I , σ ) (I,\sigma) ( I , σ ) adaptively after seeing the entire sample, if the scheme outputs a bad hypothesis then this event occurs for its selected pair. A union bound over the at most 2 i ( m i ) 2^i\binom{m}{i} 2 i ( i m ) choices with ∣ I ∣ = i |I|=i ∣ I ∣ = i , for every 0 ≤ i ≤ k 0 \le i \le k 0 ≤ i ≤ k , therefore gives the claimed probability bound. The standard estimate ∑ i = 0 k ( m i ) ≤ ( e m / k ) k \sum_{i=0}^{k}\binom{m}{i} \le(em/k)^k ∑ i = 0 k ( i m ) ≤ ( e m / k ) k , together with the stated choice of m m m , makes this bound at most δ \delta δ .
Thus a bounded sample compression scheme yields a PAC learner. If compression, reconstruction, and evaluation of the reconstructed hypothesis are efficient, then the resulting learner is efficient as well. Without these requirements, the conclusion is information-theoretic only, providing an upper bound on the sample complexity of learning C n \mathcal{C}_n C n .
Remarkably, the converse also holds at the qualitative level in the information-theoretic setting. A (possibly infinite) binary concept class is PAC learnable exactly when it has finite VC dimension, and Moran and Yehudayoff [138 ] proved that every class of VC dimension d d d has a sample compression scheme of size 2 O ( d ) 2^{O(d)} 2 O ( d ) . Consequently, for binary concept classes, the existence of a bounded sample compression scheme characterizes PAC learnability, even though the known quantitative relationship is far from tight.
Problem 3.4 (Sample Compression Conjecture). Does every binary concept class of VC dimension d d d admit a sample compression scheme of size O ( d ) O(d) O ( d ) ?
Closing the existing exponential gap would show that the amount of information one needs to retain from a sample is governed, up to constant factors, by the same parameter that controls PAC sample complexity.
Complexity-Theoretic Foundations of Learning and Compression
Learning Paradises
We consider five possible learning scenarios, ordered from a strong unsupervised setting to a far weaker supervised setting in which only weak heuristic learnability is assumed. Still, even the weakest of these assumptions asks for learning power over unrestricted Boolean circuits, a capability well beyond current theoretical results and practical algorithms (see § 4.3 for more details). We therefore call each scenario a learning paradise.
P.I: Efficient Extrapolation. There are polynomials p 1 ( ⋅ ) p_1(\cdot) p 1 ( ⋅ ) , p 2 ( ⋅ ) p_2(\cdot) p 2 ( ⋅ ) and a randomized algorithm L L L running in time p 1 ( n , m , s , t , 1 / ε , 1 / δ ) p_1(n,m,s,t,1/\varepsilon,1/\delta) p 1 ( n , m , s , t , 1/ ε , 1/ δ ) that solves the ( m , n , s , t , ε , δ ) (m,n,s,t,\varepsilon,\delta) ( m , n , s , t , ε , δ ) -extrapolation task whenever m ≥ p 2 ( s , 1 / ε , 1 / δ ) m \ge p_2(s,1/\varepsilon,1/\delta) m ≥ p 2 ( s , 1/ ε , 1/ δ ) .
P.II: Efficient Distribution Learning. There is a polynomial p ( ⋅ ) p(\cdot) p ( ⋅ ) and a randomized algorithm A A A running in time p ( n , s , t , 1 / ε , 1 / δ ) p(n,s,t,1/\varepsilon,1/\delta) p ( n , s , t , 1/ ε , 1/ δ ) that ε \varepsilon ε -learns every distribution D ∈ D n s , t D \in\mathcal{D}^{s,t}_n D ∈ D n s , t with probability at least 1 − δ 1-\delta 1 − δ .
P.III: Efficient Agnostic Learning (Under Feasible Example Distributions). There is a polynomial p ( ⋅ ) p(\cdot) p ( ⋅ ) and a randomized algorithm A A A running in time p ( n , 1 / ε , log ( 1 / δ ) , s , t , a ) p(n,1/\varepsilon,\log(1/\delta),s,t,a) p ( n , 1/ ε , log ( 1/ δ ) , s , t , a ) that agnostically learns SIZE [ s ] \operatorname{SIZE}[s] SIZE [ s ] over D a , t \mathcal{D}^{a,t} D a , t .
P.IV: Efficient PAC Learning (with MQs and Under Feasible Example Distributions). There is a polynomial p ( ⋅ ) p(\cdot) p ( ⋅ ) and a randomized algorithm A A A running in time p ( n , 1 / ε , log ( 1 / δ ) , s , t , a ) p(n,1/\varepsilon,\log(1/\delta),s,t,a) p ( n , 1/ ε , log ( 1/ δ ) , s , t , a ) that PAC learns SIZE [ s ] \operatorname{SIZE}[s] SIZE [ s ] over D a , t \mathcal{D}^{a,t} D a , t with membership queries.
P.V: Efficient Heuristic Learning (without MQs). For any polynomials s ( ⋅ ) s(\cdot) s ( ⋅ ) , t 1 ( ⋅ ) t_1(\cdot) t 1 ( ⋅ ) , t 2 ( ⋅ ) t_2(\cdot) t 2 ( ⋅ ) and distribution families P ∈ SAMP [ t 1 ] P \in\operatorname{SAMP}[t_1] P ∈ SAMP [ t 1 ] and D ∈ SAMP [ t 2 ] D \in\operatorname{SAMP}[t_2] D ∈ SAMP [ t 2 ] , there is a polynomial p ( ⋅ ) p(\cdot) p ( ⋅ ) and a randomized algorithm A A A running in time p ( n , s , t 1 , t 2 ) p(n,s,t_1,t_2) p ( n , s , t 1 , t 2 ) that weakly predicts SIZE [ s ] \operatorname{SIZE}[s] SIZE [ s ] on average over P P P and $D.
There are many natural variants of assumption P.IV. For example, one can vary whether the learner is allowed to make membership queries, whether the examples come from the uniform distribution or from arbitrary distributions, and whether the learner is proper. To keep the presentation simple and to avoid the overly pessimistic distribution-free model, we adopt the membership query PAC model over feasible distributions as a representative supervised learning scenario.
Learning under feasible distributions is a natural restriction in complexity theoretic and cryptographic applications. There are two distributions to keep track of. In PAC Learning (P.IV), the feasible distribution is over input examples x x x , while the target concept f f f is an arbitrary function from the class. In Heuristic Learning (P.V), there is also a feasible distribution over the concepts themselves. Cryptographic reductions often have both kinds of efficient sampling: the target concept is generated by an efficient setup or key generation experiment, while the inputs are generated by an efficient challenge or encryption experiment. In particular, attacks on public-key encryption can often be phrased as learning a polynomial-size predicate, with the concept sampled by key generation and the examples sampled by encryption. We refer to § 8 for additional discussion.
Basic Relations
We now explain the basic ordering among the five learning paradises:
P . I ⟹ P . I I ⟹ P . I I I ⟹ P . I V ⟹ P . V . \mathrm{P.I}\ \Longrightarrow\ \mathrm{P.II}\ \Longrightarrow\ \mathrm{P.III}\ \Longrightarrow\ \mathrm{P.IV}\ \Longrightarrow\ \mathrm{P.V}. P.I ⟹ P.II ⟹ P.III ⟹ P.IV ⟹ P.V .
Throughout the proof sketches below, parameters are rescaled by fixed polynomials. We suppress these routine changes in notation.
Lemma 4.1 (P.I ⟹ \Longrightarrow ⟹ P.II). If Efficient Extrapolation is possible, then Efficient Distribution Learning is possible.
Proof Sketch. Fix a distribution D ∈ D n s , t D \in\mathcal{D}^{s,t}_{n} D ∈ D n s , t , and let M M M be a randomized machine of description length at most s s s and running time at most t t t that samples D D D . We reduce learning D D D from samples to extrapolating a sequence whose coordinates are independent samples from D D D .
Choose a sequence length m m m large enough for the extrapolation guarantee, with accuracy and confidence parameters η \eta η and γ \gamma γ to be fixed below. Let M ⊗ m M^{\otimes m} M ⊗ m be the randomized machine that runs M M M independently m m m times and outputs the resulting sequence ( X 1 , … , X m ) (X_1,\ldots,X_m) ( X 1 , … , X m ) . Its description length is s ′ = s + O ( log m ) s' = s + O(\log m) s ′ = s + O ( log m ) and its running time is t ′ = O ( m ( t + n ) ) t' = O(m(t+n)) t ′ = O ( m ( t + n )) . Since m m m only needs to dominate a polynomial in the relevant parameters, we may choose it polynomially large so that the assumption P.I applies to ( m , n , s ′ , t ′ , η , γ ) (m,n,s',t',\eta,\gamma) ( m , n , s ′ , t ′ , η , γ ) .
For this product source, the conditional distribution of the next block is always the original distribution:
( X i ∣ X < i = x < i ) ≡ D (X_i \mid X_{<i} = x_{<i}) \equiv D ( X i ∣ X < i = x < i ) ≡ D for every i i i and every prefix x < i x_{<i} x < i in the support. Given sample access to D D D , the distribution learner draws samples x 1 , … , x m x_1,\ldots,x_m x 1 , … , x m , chooses I ∼ [ m ] I \sim[m] I ∼ [ m ] , and forms the prefix y = x < I y = x_{<I} y = x < I . It outputs the sampler C y C_y C y that has y y y hardwired and, on fresh random coins, runs the extrapolation algorithm L L L on input y y y .
The distribution of ( I , y ) (I,y) ( I , y ) in this procedure is exactly the distribution of ( i , X < i ) (i,X_{<i}) ( i , X < i ) in the extrapolation experiment for M ⊗ m M^{\otimes m} M ⊗ m . Therefore, by assumption P.I,
Pr I , y [ Δ T V ( C y , D ) ≤ η ] ≥ 1 − γ . \Pr_{I,y}\left[\Delta_{\mathrm{TV}}(C_y,D) \leq\eta\right] \geq1-\gamma. I , y Pr [ Δ TV ( C y , D ) ≤ η ] ≥ 1 − γ . Taking η = ε \eta= \varepsilon η = ε and γ = δ \gamma= \delta γ = δ gives a distribution learner for D D D . The returned sampler is efficient because it only simulates the polynomial-time extrapolator with a polynomial-length prefix hardwired.
Lemma 4.2 (P.II ⟹ \Longrightarrow ⟹ P.III; [180 ] ). If Efficient Distribution Learning is possible, then Efficient Agnostic Learning is possible.
Proof Sketch. Fix an agnostic learning instance consisting of a joint example distribution E n ∈ D n + 1 a , t E_n \in\mathcal{D}^{a,t}_{n+1} E n ∈ D n + 1 a , t . Since E n E_n E n is feasibly samplable, it belongs to the distribution class handled by P.II, with polynomially related parameters.
Simulating the distribution learner on samples obtained from EX ( E n ) \operatorname{EX}(E_n) EX ( E n ) gives, with high probability, an explicit sampler S = ( S ( 0 ) , S ( 1 ) ) S = (S^{(0)},S^{(1)}) S = ( S ( 0 ) , S ( 1 ) ) for a distribution E ^ \widehat{E} E satisfying Δ T V ( E ^ , E n ) ≤ η \Delta_{\mathrm{TV}}(\widehat{E},E_n) \leq\eta Δ TV ( E , E n ) ≤ η . If we could sample from the conditional distribution of S ( 1 ) S^{(1)} S ( 1 ) given S ( 0 ) = x S^{(0)} = x S ( 0 ) = x , then we would obtain labels that are close to the true labels according to E n E_n E n . The only obstacle is that S S S is an explicit (i.e., white-box) sampler for pairs, not an explicit conditional sampler.
Interestingly, distribution learning also supplies the ingredient needed to remove this obstacle. By Lemma 4.8, P.II rules out AIPFs; by Lemma 2.16, this rules out AIOWFs; and by Lemma 4.11, the nonexistence of AIOWFs allows one to produce a randomized hypothesis h h h such that ( x , h ( x ) ) (x,h(x)) ( x , h ( x )) , with x x x drawn from the marginal S ( 0 ) S^{(0)} S ( 0 ) , is close to E ^ \widehat{E} E .
By the triangle inequality, the joint distribution ( x , h ( x ) ) (x,h(x)) ( x , h ( x )) is close to E n E_n E n . Then, as in Lemma 4.12, by sampling many choices of internal randomness for h h h and taking the majority hypothesis, one obtains, with high probability, a deterministic hypothesis H H H such that
Pr ( x , b ) ∼ E n [ H ( x ) = b ] ≥ opt n ( F a l l , E n ) − ε ′ ≥ opt n ( C , E n ) − ε ′ , \Pr_{(x,b)\sim E_n}[H(x)=b] \geq\operatorname{opt}_{n}(\mathcal{F}_{\mathrm{all}},E_n)-\varepsilon' \geq\operatorname{opt}_{n}(\mathcal{C},E_n)-\varepsilon', ( x , b ) ∼ E n Pr [ H ( x ) = b ] ≥ opt n ( F all , E n ) − ε ′ ≥ opt n ( C , E n ) − ε ′ ,
where F a l l \mathcal{F}_{all} F a l l denotes the set of all boolean functions f : { 0 , 1 } n → { 0 , 1 } f:\{0,1\}^{n}\to\{0,1\} f : { 0 , 1 } n → { 0 , 1 } , C ⊆ F a l l \mathcal{C}\subseteq\mathcal{F}_{all} C ⊆ F a l l is any desired concept class, and ε ′ \varepsilon' ε ′ depends on the closeness of E n E_n E n and ( x , h ( x ) ) (x,h(x)) ( x , h ( x )) . Choosing η \eta η and all failure probabilities as small enough polynomial fractions of ε \varepsilon ε and δ \delta δ yields the desired agnostic learning guarantee. More details about this approach can be found in § 4.5 .
Lemma 4.3 (P.III ⟹ \Longrightarrow ⟹ P.IV). If Efficient Agnostic Learning is possible, then Efficient PAC Learning is possible.
Proof. This implication is immediate from the definitions. More specifically, observe that PAC learning a target function f ∈ S I Z E [ s ] f\in\mathrm{SIZE}[s] f ∈ SIZE [ s ] over a distribution D n ∈ D n a , t D_n\in\mathcal{D}^{a,t}_n D n ∈ D n a , t is equivalent to agnostically learning S I Z E [ s ] \mathrm{SIZE}[s] SIZE [ s ] over the distribution E n ∈ D n + 1 poly ( a , s ) , poly ( t , s ) E_n\in\mathcal{D}^{\operatorname{poly}(a,s),\operatorname{poly}(t,s)}_{n+1} E n ∈ D n + 1 poly ( a , s ) , poly ( t , s ) that samples x ∼ D n x\sim D_n x ∼ D n and outputs ( x , f ( x ) ) (x,f(x)) ( x , f ( x )) . Since
opt n ( S I Z E [ s ] , E ) = 1 , \operatorname{opt}_{n}(\mathrm{SIZE}[s],E)=1, opt n ( SIZE [ s ] , E ) = 1 ,
the definition of an agnostic learner A A A guarantees that, with probability at least 1 − δ 1-\delta 1 − δ , A ( 1 n , 1 ε − 1 , δ − 1 ) A(1^n,1^{\varepsilon^{-1}},\delta^{-1}) A ( 1 n , 1 ε − 1 , δ − 1 ) with oracle access to EX ( f , D n ) = EX ( E n ) \operatorname{EX}(f,D_n)=\operatorname{EX}(E_n) EX ( f , D n ) = EX ( E n ) outputs h h h such that Pr x ∼ D n [ h ( x ) = f ( x ) ] ≥ 1 − ε \Pr_{x\sim D_n}[h(x)=f(x)]\ge1-\varepsilon Pr x ∼ D n [ h ( x ) = f ( x )] ≥ 1 − ε . This satisfies the requirement of a PAC learner.
Lemma 4.4 (P.IV ⟹ \Longrightarrow ⟹ P.V). If Efficient PAC Learning is possible, then Efficient Heuristic Learning is possible.
Proof Sketch. Note that, under our definitions, the PAC learning algorithm (P.IV) is allowed to make membership queries, while the heuristic learner (P.V) is not. This means in particular that we cannot simply simulate the PAC learner when designing the heuristic learner from random examples.
The first step is to show that P.IV rules out auxiliary-input pseudorandom functions. Given a candidate AIPRF F z F_z F z , fix an auxiliary string z z z and a random key u u u , and view g ( x ) = F z ( u , x ) g(x)=F_z(u,x) g ( x ) = F z ( u , x ) as a polynomial size circuit. The PAC learner can be run under the uniform distribution, with both its random examples and its membership queries answered by the oracle being tested. If the oracle is F z ( u , ⋅ ) F_z(u,\cdot) F z ( u , ⋅ ) , the learner outputs a hypothesis with high agreement with the oracle on a fresh uniform input. If the oracle is a truly random function, then after only polynomially many queries its value on a fresh input is independent of the learner’s hypothesis except with negligible collision probability. Testing agreement on fresh inputs therefore distinguishes the AIPRF from a random function, contradicting security. (We refer the reader to Lemma 4.6 for a more detailed argument.)
In turn, by Lemma 2.16 , the failure of AIPRFs gives the failure of AIOWFs, and in particular rules out infinitely-often one-way functions and pseudorandom generators. We can then apply the framework of Blum, Furst, Kearns, and Lipton [15 ] , discussed in § 5.1 . Their argument starts from the fact that every candidate generator can be distinguished at every large enough input length, applies a hybrid argument to obtain a next-bit predictor for the direct-product generator associated with a random target function, and interprets that predictor as a learner from random examples. We refer to § 5.1 for more details.
Consequently, for every feasible distribution P P P over polynomial-size target circuits and every feasible example distribution D D D , there is an efficient learner that predicts f ( y ) f(y) f ( y ) with advantage 1 / poly ( n ) 1/\operatorname{poly}(n) 1/ poly ( n ) , where f ∼ P f\sim P f ∼ P , the learner receives examples from EX ( f , D ) \operatorname{EX}(f,D) EX ( f , D ) , and y ∼ D y\sim D y ∼ D . This is exactly weak heuristic learning as in P.V.
Impagliazzo’s Worlds and Meta-Complexity
In an influential paper, Impagliazzo [98 ] introduced five potential computational worlds connected to the complexity of NP problems and the possibility of secure cryptography. The point was not only to ask whether P = N P P = NP P = N P , but to distinguish several possible realities according to whether hard problems remain hard on typical inputs and whether such hardness can support secure cryptography. The two relevant worlds in the context of our discussion are Heuristica and Pessiland.
In Heuristica, NP is hard in the worst case, but this hardness disappears on average: every NP problem has an efficient algorithm that is correct on almost all inputs. In the notation of the diagram in Figure 5 , this corresponds to a world where P ≠ N P P \ne NP P = N P but D i s t N P ⊆ A v g P \mathrm{DistNP} \subseteq\mathrm{AvgP} DistNP ⊆ AvgP .
Figure 5. Learning paradises P.I – P.V (§ 4.1 ) between Impagliazzo’s worlds [98 ] Heuristica and Pessiland, including their relationship to compression and meta-complexity via the computational task of estimating time-bounded Kolmogorov complexity.
In Pessiland, hardness exists on average, but the hard problems are not structured enough to yield secure cryptography. The relevant feature of Pessiland is the failure of one-way functions, equivalently the existence of efficient inverters for every candidate one-way function.
We refer to [30 ] for a detailed discussion of Heuristica, Pessiland, and their connections to cryptography and average-case complexity theory.
The learning paradises from § 4.1 sit between these two worlds, as summarized in Figure 5 . The left side of the diagram starts from the average-case easiness of NP promised by Heuristica and passes to meta-complexity via “Gap-MINKT ∈ P \in P ∈ P ”, i.e., the worst-case easiness of estimating time-bounded Kolmogorov complexity.8 This leads to extrapolation and then, by the reductions in § 4.1 , to progressively weaker learning paradises. The right side records that the weakest of these paradises is already tied to the nonexistence of one-way functions and to average-case algorithms for estimating time-bounded Kolmogorov complexity. Thus the feasibility of different learning tasks is closely tied to meta-complexity, i.e., the complexity of estimating time-bounded Kolmogorov complexity.
Another consequence is that secure cryptography excludes all five learning paradises. Indeed, P.V rules out one-way functions by Lemma 4.6 . Consequently, in a cryptographic world, unrestricted Boolean circuits cannot be provably learned efficiently even with the weak guarantees of P.V: any such theorem would also refute standard cryptographic assumptions.9
A precise characterization of the learning power associated with both Heuristica and Pessiland is possible, although in a different learning setting [89 ] . It would be very interesting to obtain an equally precise understanding of how the learning paradises P.I through P.V relate to standard complexity and cryptographic statements.
While the preceding discussion has focused on the relationship between learning and compression, and on its connections to cryptography and average-case complexity, the broader role of compression problems in complexity theory remains far from fully understood. A central open question is whether efficient algorithms for estimating time-bounded Kolmogorov complexity would yield efficient algorithms for NP-complete problems. This is open even in an average-case sense: we do not know whether Gap-MINKT ∈ P \in P ∈ P implies that NP is easy on average. Informally, such a result would say that the ability to perform compression, or to recognize strings admitting short efficient descriptions, is powerful enough to solve broad classes of computational search and optimization tasks. From the perspective of learning, this would elevate the role of compression beyond efficient prediction: it would show in a certain sense that compression also underlies efficient planning and decision-making. For recent papers on the computational complexity of compression, see [74 , 82 ] and references therein.
Problem 4.5 (Computational Complexity of Compression). What is the hardness of the task of computing/estimating the time-bounded Kolmogorov complexity of an input string? Formally, the following central problems from meta-complexity remain open:
Does Gap-MINKT ∈ \in ∈ P imply that DistNP ⊆ \subseteq ⊆ AvgP? In other words, does the easiness of estimating complexity imply that NP is easy on average?
Does MINKT ∈ \in ∈ P imply that NP ⊆ \subseteq ⊆ P? In other words, does the easiness of (exactly) computing complexity imply that NP is easy in the worst case?
Auxiliary Results
We collect here some lemmas needed in results mentioned in the preceding sections.
Lemma 4.6. If Efficient Heuristic Learning is possible, then ioPRFs do not exist. It follows that (infinitely-often) one-way functions and pseudorandom generators do not exist.
Proof. Let f = { f : { 0 , 1 } n × { 0 , 1 } n → { 0 , 1 } } n ∈ N f = \{f : \{0,1\}^{n} \times\{0,1\}^{n} \to\{0,1\}\}_{n \in\mathbb{N}} f = { f : { 0 , 1 } n × { 0 , 1 } n → { 0 , 1 } } n ∈ N be an ioPRF, and let n ∈ N n \in\mathbb{N} n ∈ N be a sufficiently large input length at which it is secure. Define a distribution P n P_n P n over target functions as follows: sample u ∼ { 0 , 1 } n u \sim\{0,1\}^{n} u ∼ { 0 , 1 } n uniformly at random and output a description of the circuit f u : { 0 , 1 } n → { 0 , 1 } f_u : \{0,1\}^{n} \to\{0,1\} f u : { 0 , 1 } n → { 0 , 1 } defined by f u ( x ) = f ( u , x ) f_u(x) = f(u,x) f u ( x ) = f ( u , x ) (with u u u hardcoded). Since u u u is sampled uniformly and f f f is polynomial-time computable, P n ∈ P S A M P P_n \in\mathrm{PSAMP} P n ∈ PSAMP . Let D n = U n ∈ P S A M P D_n = \mathcal{U}_n \in\mathrm{PSAMP} D n = U n ∈ PSAMP .
By assumption, Boolean circuits are heuristically learnable over PSAMP. Hence there exists an efficient machine A A A and a polynomial q ′ q' q ′ such that for all sufficiently large n n n ,
Pr u ∼ U n ; x ′ ∼ U n EX ( f u , U n ) [ A EX ( f u , U n ) ( x ′ ) = f u ( x ′ ) ] ≥ 1 2 + 1 q ′ ( n ) . (2) \Pr_{\substack{u \sim\mathcal{U}_n;\\ x' \sim\mathcal{U}_n\\ \operatorname{EX}(f_u,\mathcal{U}_n)}}\left[A^{\operatorname{EX}(f_u,\mathcal{U}_n)}(x') = f_u(x')\right] \ge\frac{1}{2} + \frac{1}{q'(n)}. \tag*{(2)} u ∼ U n ; x ′ ∼ U n EX ( f u , U n ) Pr [ A EX ( f u , U n ) ( x ′ ) = f u ( x ′ ) ] ≥ 2 1 + q ′ ( n ) 1 . (2) We now construct an efficient distinguisher D D D for f f f as follows.
Given oracle access to some function O O O , which is either f ( u , ⋅ ) f(u,\cdot) f ( u , ⋅ ) for a random u ∼ { 0 , 1 } n u \sim\{0,1\}^{n} u ∼ { 0 , 1 } n or a truly random function R n : { 0 , 1 } n → { 0 , 1 } R_n : \{0,1\}^{n} \to\{0,1\} R n : { 0 , 1 } n → { 0 , 1 } , D D D draws x ′ ∼ U n x' \sim\mathcal{U}_n x ′ ∼ U n , queries O O O to obtain b b b , and outputs 1 if and only if A EX ( O , U n ) ( x ′ ) = b A^{\operatorname{EX}(O,\mathcal{U}_n)}(x') = b A EX ( O , U n ) ( x ′ ) = b , where the oracle EX ( O , U n ) \operatorname{EX}(O,\mathcal{U}_n) EX ( O , U n ) may be simulated by sampling x ∼ U n x \sim\mathcal{U}_n x ∼ U n and querying O ( x ) O(x) O ( x ) to get the label.
When the oracle O O O is f ( u , ⋅ ) f(u,\cdot) f ( u , ⋅ ) for u ∼ { 0 , 1 } n u \sim\{0,1\}^{n} u ∼ { 0 , 1 } n , the learner A A A is run in a setting exactly matching the setting of Equation (2) , so D D D outputs 1 with probability at least ( 1 / 2 ) + ( 1 / q ′ ( n ) ) (1/2) + (1/q'(n)) ( 1/2 ) + ( 1/ q ′ ( n )) .
When the oracle O O O is R n R_n R n , b = R n ( x ′ ) b = R_n(x') b = R n ( x ′ ) is uniformly random and independent of the output of A A A on any input not previously inspected by A A A . Since A A A inspects at most polynomially many inputs, D D D outputs 1 with probability exponentially close to 1 / 2 1/2 1/2 .
Therefore,
∣ Pr u ∼ { 0 , 1 } n [ D f ( u , ⋅ ) ( 1 n ) = 1 ] − Pr R n [ D R n ( ⋅ ) ( 1 n ) = 1 ] ∣ = Ω ( 1 q ′ ( n ) ) . \left|\Pr_{u \sim\{0,1\}^{n}}\left[D^{f(u,\cdot)}(1^{n}) = 1\right] - \Pr_{R_n}\left[D^{R_n(\cdot)}(1^{n}) = 1\right]\right| = \Omega\left(\frac{1}{q'(n)}\right). u ∼ { 0 , 1 } n Pr [ D f ( u , ⋅ ) ( 1 n ) = 1 ] − R n Pr [ D R n ( ⋅ ) ( 1 n ) = 1 ] = Ω ( q ′ ( n ) 1 ) . contradicting the assumption that f f f is an ioPRF. Thus, ioPRFs do not exist. This implies that standard PRFs likewise do not exist. The non-existence of both infinitely-often and standard OWFs and PRGs follows by well-known reductions among these primitives [68 , 55 ] . □
Using a very similar argument, we can rule out auxiliary input PRFs assuming easiness of PAC learning, even when membership queries are allowed.
Lemma 4.7. If Efficient PAC Learning is possible, then AIPRFs do not exist.
Proof Sketch. The proof is very similar to that of Lemma 4.6 . Let f z : { 0 , 1 } n ( ∣ z ∣ ) × { 0 , 1 } n ( ∣ z ∣ ) → { 0 , 1 } f_z : \{0,1\}^{n(|z|)} \times\{0,1\}^{n(|z|)} \to\{0,1\} f z : { 0 , 1 } n ( ∣ z ∣ ) × { 0 , 1 } n ( ∣ z ∣ ) → { 0 , 1 } be a purported AIPRF. The key idea is that, for every choice of z ∈ { 0 , 1 } ∗ z \in\{0,1\}^{*} z ∈ { 0 , 1 } ∗ and u ∈ { 0 , 1 } n ( ∣ z ∣ ) u \in\{0,1\}^{n(|z|)} u ∈ { 0 , 1 } n ( ∣ z ∣ ) , f z ( u , − ) ∈ S I Z E [ p ] f_z(u,\mathord{-}) \in\mathrm{SIZE}[p] f z ( u , − ) ∈ SIZE [ p ] for some fixed polynomial p p p . We are guaranteed that the learner A A A will succeed (with high probability) on every such target function. Another difference is that A A A is allowed to make membership queries to the target function, which the distinguisher D D D may simulate by querying O O O . □
Finally, the same consequence holds assuming easiness of distributional learning. This lemma is a key ingredient in the proof that distribution learning is at least as strong as agnostic learning.
Lemma 4.8 ([111 , 180 ] ). If Efficient Distribution Learning is possible, then AIPRFs do not exist.
Proof Sketch. Let f = { f z } f = \{f_z\} f = { f z } be a purported AIPRF, and let A A A be the distribution learner promised by P.II. Fix z ∈ { 0 , 1 } ∗ z \in\{0,1\}^* z ∈ { 0 , 1 } ∗ , write n = n ( ∣ z ∣ ) n = n(|z|) n = n ( ∣ z ∣ ) , and for an oracle O : { 0 , 1 } n → { 0 , 1 } \mathcal{O}: \{0,1\}^n \to\{0,1\} O : { 0 , 1 } n → { 0 , 1 } define the graph distribution
G O ≡ ( X , O ( X ) ) where X ∼ U n . G_{\mathcal{O}} \equiv(X,\mathcal{O}(X)) \qquad\text{where } X \sim U_n. G O ≡ ( X , O ( X )) where X ∼ U n . If O = f z ( u , ⋅ ) \mathcal{O} = f_z(u,\cdot) O = f z ( u , ⋅ ) , then G O G_{\mathcal{O}} G O is sampled by the efficient sampler that has ( z , u ) (z,u) ( z , u ) hardwired, chooses X ∼ U n X \sim U_n X ∼ U n , and outputs ( X , f z ( u , X ) ) (X,f_z(u,X)) ( X , f z ( u , X )) . Thus, for every z z z and u u u , P.II applies to G f z ( u , ⋅ ) G_{f_z(u,\cdot)} G f z ( u , ⋅ ) with polynomially related size and time parameters.
We construct an oracle distinguisher D D D . Given z z z and oracle access to O \mathcal{O} O , it simulates sample access to G O G_{\mathcal{O}} G O by drawing X ∼ U n X \sim U_n X ∼ U n and querying O ( X ) \mathcal{O}(X) O ( X ) . It runs A A A with a small constant accuracy parameter η \eta η and confidence parameter η \eta η , obtaining a sampler C C C over pairs ( x , b ) ∈ { 0 , 1 } n × { 0 , 1 } (x,b) \in\{0,1\}^n \times\{0,1\} ( x , b ) ∈ { 0 , 1 } n × { 0 , 1 } . It then validates C C C as follows. Letting Q Q Q be the set of inputs x ∈ { 0 , 1 } n x \in\{0,1\}^n x ∈ { 0 , 1 } n queried to O \mathcal{O} O during the training phase, take one fresh sample ( x ′ , b ′ ) ∼ C (x',b') \sim C ( x ′ , b ′ ) ∼ C , and accept if and only if x ′ ∉ Q x' \notin Q x ′ ∈ / Q and b ′ = O ( x ′ ) b' = \mathcal{O}(x') b ′ = O ( x ′ ) .
On the pseudorandom side, A A A is being run on samples from a distribution in the class handled by P.II. Hence, with probability at least 1 − η 1-\eta 1 − η , the output sampler C C C satisfies Δ T V ( C ( U ) , G f z ( u , ⋅ ) ) ≤ η \Delta_{\mathrm{TV}}(C(U),G_{f_z(u,\cdot)}) \le\eta Δ TV ( C ( U ) , G f z ( u , ⋅ ) ) ≤ η . Total variation closeness implies that C C C is supported almost entirely on the graph of f z ( u , ⋅ ) f_z(u,\cdot) f z ( u , ⋅ ) (so b ′ = O ( x ′ ) b' = \mathcal{O}(x') b ′ = O ( x ′ ) with high probability) and that its first marginal is close to U n U_n U n (so x ′ ∉ Q x' \notin Q x ′ ∈ / Q with high probability). Therefore the validation test accepts with probability 1 − O ( η ) 1-O(\eta) 1 − O ( η ) .
On the random side, let O = R \mathcal{O} = R O = R be a uniformly random function. After conditioning on the polynomially many graph points revealed while simulating the samples for A A A , the values of R R R at fresh points are still independent fair bits. The “x ′ ∉ Q x' \notin Q x ′ ∈ / Q ” test rules out the only simple way for the sampler C C C to pass the graph consistency test, namely putting noticeable mass on the already revealed inputs. Since C C C depends only on the coins of A A A and R ∣ Q R|_Q R ∣ Q , R ( x ′ ) R(x') R ( x ′ ) is uniform and independent of C C C for x ′ ∉ Q x' \notin Q x ′ ∈ / Q . Consequently, the output of any polynomial-time learner passes the “b ′ = O ( x ′ ) b' = \mathcal{O}(x') b ′ = O ( x ′ ) ” test with probability bounded away from the pseudorandom case, after fixing η \eta η sufficiently small.
Thus D D D distinguishes f z ( u , ⋅ ) f_z(u,\cdot) f z ( u , ⋅ ) for u ∼ U n u \sim U_n u ∼ U n from a truly random function with inverse polynomial advantage for all sufficiently large relevant input lengths. This contradicts the auxiliary input pseudorandomness condition. Therefore AIPRFs do not exist.
White-Box Learning and One-Way Functions
In this section, we explore connections between white-box learning , in which a labelled example distribution is given explicitly as a sampling circuit, and the existence of (auxiliary-input) one-way functions. These connections are useful as tools to establish the ordering among the learning paradises of § 4.1 , particularly that P.II (Efficient Distribution Learning) implies P.III (Efficient Agnostic Learning), and may also be of interest in their own right.
White-Box Learning Frameworks
The model of white-box learning we consider is the same as Agnostic Learning (P.III), except that the learner is additionally provided an explicit description of a sampler for the example distribution in question. For this reason, we restrict ourselves here to distribution families E = { E n } n ∈ N E = \{E_n\}_{n \in\mathbb{N}} E = { E n } n ∈ N samplable by polynomial-size circuits.
More specifically, consider a joint labelled example distribution E n ∈ P S A M P / p o l y E_n \in\mathrm{PSAMP}/\mathrm{poly} E n ∈ PSAMP / poly supported over { 0 , 1 } n × { 0 , 1 } \{0,1\}^n \times\{0,1\} { 0 , 1 } n × { 0 , 1 } , where for ( x , b ) ∼ E n (x,b) \sim E_n ( x , b ) ∼ E n , x ∈ { 0 , 1 } n x \in\{0,1\}^n x ∈ { 0 , 1 } n is called the “example string” and b ∈ { 0 , 1 } b \in\{0,1\} b ∈ { 0 , 1 } is called the “label”. We let E n ( 0 ) E_n^{(0)} E n ( 0 ) denote the marginal distribution over example strings and E n ( 1 ) E_n^{(1)} E n ( 1 ) that over the labels.
As mentioned above, the learner is provided a sampling circuit S n S_n S n for E n E_n E n . Of course, this could potentially make the task of learning much easier. However, note that the learning task is still non-trivial: even though we can easily sample input/output pairs for the function in question, it may still be hard to compute the function on a desired input.
As in the setting of agnostic learning, we consider optimality with respect to a fixed concept class, C \mathcal{C} C . That is, define
opt n ( C , E ) ≜ max c ∈ C n Pr ( x , b ) ∼ E n [ c ( x ) = b ] . \operatorname{opt}_n(\mathcal{C},E) \triangleq\max_{c \in\mathcal{C}_n} \Pr_{(x,b)\sim E_n}[c(x)=b]. opt n ( C , E ) ≜ c ∈ C n max ( x , b ) ∼ E n Pr [ c ( x ) = b ] .
Since a white-box learner has the sampler S n S_n S n available, it can simulate this circuit on random inputs to obtain labelled examples distributed according to E n E_n E n . For this reason, it does not require oracle access to EX ( E n ) \operatorname{EX}(E_n) EX ( E n ) .
White-box learning is defined as follows.
Definition 4.9 (White-Box Learning [ABX08, Xia09]). Let E ⊆ P S A M P / p o l y \mathcal{E} \subseteq\mathrm{PSAMP}/\mathrm{poly} E ⊆ PSAMP / poly be a class of joint distributions. An algorithm A A A white-box learns C \mathcal{C} C over E \mathcal{E} E if, for every E = { E n } n ∈ N ∈ E E = \{E_n\}_{n\in\mathbb{N}} \in\mathcal{E} E = { E n } n ∈ N ∈ E and sequence S = { S n } n ∈ N S = \{S_n\}_{n\in\mathbb{N}} S = { S n } n ∈ N with S n S_n S n being a sampling circuit for E n E_n E n , for all sufficiently large n ∈ N n \in\mathbb{N} n ∈ N , for all δ , ϵ ∈ ( 0 , 1 ) \delta,\epsilon\in(0,1) δ , ϵ ∈ ( 0 , 1 ) ,
Pr A [ A ( 1 n , 1 ϵ − 1 , δ − 1 , S n ) outputs h such that Pr ( x , b ) ∼ E n [ h ( x ) = b ] ≥ opt n ( C , E ) − ϵ ] ≥ 1 − δ . \Pr_A\left[A(1^n,1^{\epsilon^{-1}},\delta^{-1},S_n)\text{ outputs }h\text{ such that }\Pr_{(x,b)\sim E_n}[h(x)=b]\geq\operatorname{opt}_n(\mathcal{C},E)-\epsilon\right]\geq1-\delta. A Pr [ A ( 1 n , 1 ϵ − 1 , δ − 1 , S n ) outputs h such that ( x , b ) ∼ E n Pr [ h ( x ) = b ] ≥ opt n ( C , E ) − ϵ ] ≥ 1 − δ .
We will primarily be interested in White-Box Learning for the following choices of concept class C \mathcal{C} C : C = S I Z E [ s ] \mathcal{C}=\mathrm{SIZE}[s] C = SIZE [ s ] for a fixed function s : N → N s:\mathbb{N}\to\mathbb{N} s : N → N , and C = F a l l \mathcal{C}=\mathcal{F}_{\mathrm{all}} C = F all , where ( F a l l ) n (\mathcal{F}_{\mathrm{all}})_n ( F all ) n denotes the set of all boolean functions f : { 0 , 1 } n → { 0 , 1 } f:\{0,1\}^n\to\{0,1\} f : { 0 , 1 } n → { 0 , 1 } . In particular, in the latter case, the learner aims to approximate the Bayes-optimal predictor for E \mathcal{E} E .
White-Box Learning and Breaking Auxiliary-Input One-Way Functions
In this section, we establish the following:
¬ ∃ A I O W F ⟺ White-Box Learning F a l l . \neg\exists\mathrm{AIOWF}\quad\Longleftrightarrow\quad\text{White-Box Learning }\mathcal{F}_{\mathrm{all}}. ¬∃ AIOWF ⟺ White-Box Learning F all .
The implication from ¬ ∃ A I O W F \neg\exists\mathrm{AIOWF} ¬∃ AIOWF to the easiness of White-Box Learning F a l l \mathcal{F}_{\mathrm{all}} F all was proved in [179 ] and implicit in [ABX08].
Also note that, since White-Box Learning F a l l \mathcal{F}_{\mathrm{all}} F all implies White-Box Learning C \mathcal{C} C for any desired concept class C ⊆ F a l l \mathcal{C}\subseteq\mathcal{F}_{\mathrm{all}} C ⊆ F all , the above implies that
¬ ∃ A I O W F ⟹ White-Box Learning S I Z E [ s ] \neg\exists\mathrm{AIOWF}\quad\Longrightarrow\quad\text{White-Box Learning }\mathrm{SIZE}[s] ¬∃ AIOWF ⟹ White-Box Learning SIZE [ s ]
for any s : N → N s:\mathbb{N}\to\mathbb{N} s : N → N . The latter may be used in a proof that P.II (Efficient Distribution Learning) ⟹ \Longrightarrow ⟹ P.III (Efficient Agnostic Learning), as in Lemma 4.2 .
[179 ] leaves as an open question whether White-Box Learning S I Z E [ s ] \mathrm{SIZE}[s] SIZE [ s ] , for a fixed polynomial s s s , implies that AIOWFs can be broken. Note that a positive answer would show the equivalence of White-Box Learning with respect to S I Z E [ s ] \mathrm{SIZE}[s] SIZE [ s ] and F a l l \mathcal{F}_{\mathrm{all}} F all over distributions samplable in P S A M P / p o l y \mathrm{PSAMP}/\mathrm{poly} PSAMP / poly .
Problem 4.10 (White-Box Learning and AIOWF). Does White-Box Learning S I Z E [ s ] \mathrm{SIZE}[s] SIZE [ s ] imply the non-existence of AIOWF? Alternatively, is there evidence to the contrary?
We begin with the following auxiliary lemma.
Lemma 4.11. Assume ¬ ∃ A I O W F \neg\exists\mathsf{AIOWF} ¬∃ AIOWF . Let E E E be a family of labelled example distributions with sampling circuits S S S , as in Definition 4.9 . There exists a polynomial-time algorithm that, for all sufficiently large n ∈ N n \in\mathbb{N} n ∈ N , on input ( 1 n , ( 1 / ε ′ ) − 1 , S n ) (1^n, (1/\varepsilon')^{-1}, S_n) ( 1 n , ( 1/ ε ′ ) − 1 , S n ) , outputs a randomized hypothesis h h h such that Δ ( ( x , h ( x ) ) , E n ) ≤ ε ′ ( n ) \Delta((x,h(x)), E_n) \le\varepsilon'(n) Δ (( x , h ( x )) , E n ) ≤ ε ′ ( n ) , where x ∼ E n ( 0 ) x \sim E_n^{(0)} x ∼ E n ( 0 ) .
Proof. Let { E n = ( E n ( 0 ) , E n ( 1 ) ) } n ∈ N \{E_n = (E_n^{(0)}, E_n^{(1)})\}_{n \in\mathbb{N}} { E n = ( E n ( 0 ) , E n ( 1 ) ) } n ∈ N , with each E n E_n E n supported over { 0 , 1 } n × { 0 , 1 } m ( n ) \{0,1\}^n \times\{0,1\}^{m(n)} { 0 , 1 } n × { 0 , 1 } m ( n ) , be a labelled example distribution samplable by poly-size circuits { S n = ( S n ( 0 ) , S n ( 1 ) ) } n ∈ N \{S_n = (S_n^{(0)}, S_n^{(1)})\}_{n \in\mathbb{N}} { S n = ( S n ( 0 ) , S n ( 1 ) ) } n ∈ N , each taking randomness of length ρ ( n ) = poly ( n ) \rho(n) = \operatorname{poly}(n) ρ ( n ) = poly ( n ) as input. Define a poly-time computable auxiliary input function f f f as follows.
f S n ( 0 ) ( r ) = S n ( 0 ) ( r ) . f_{S_n}^{(0)}(r) = S_n^{(0)}(r). f S n ( 0 ) ( r ) = S n ( 0 ) ( r ) .
That is, f f f has the sampler S n ( 0 ) S_n^{(0)} S n ( 0 ) hard-coded as an auxiliary input. Its input is a choice of randomness r r r , and its output is the output of S n ( 0 ) S_n^{(0)} S n ( 0 ) run on r r r .
Assuming ¬ ∃ A I O W F \neg\exists\mathsf{AIOWF} ¬∃ AIOWF , by Lemma 2.16 , ¬ ∃ d i s t A I O W F \neg\exists\mathsf{distAIOWF} ¬∃ distAIOWF . For any desired inverse polynomial ε ′ \varepsilon' ε ′ , let I I I be a PPT ε ′ \varepsilon' ε ′ -distributional inverter for f f f . That is, for any sufficiently large n ∈ N n \in\mathbb{N} n ∈ N ,
Δ ( ( f S n ( 0 ) ( r ) , I ( S n ( 0 ) , f S n ( 0 ) ( r ) ) ) , ( f S n ( 0 ) ( r ) , r ) ) ≤ ε ′ ( n ) , (3) \Delta\left(\left(f_{S_n}^{(0)}(r), I(S_n^{(0)}, f_{S_n}^{(0)}(r))\right), \left(f_{S_n}^{(0)}(r), r\right)\right) \le\varepsilon'(n), \tag*{(3)} Δ ( ( f S n ( 0 ) ( r ) , I ( S n ( 0 ) , f S n ( 0 ) ( r )) ) , ( f S n ( 0 ) ( r ) , r ) ) ≤ ε ′ ( n ) , (3)
where r ∼ U ρ ( n ) r \sim\mathcal{U}_{\rho(n)} r ∼ U ρ ( n ) .
The desired algorithm will output the following randomized hypothesis h h h :
On input x ∈ { 0 , 1 } n x \in\{0,1\}^n x ∈ { 0 , 1 } n , h h h invokes I I I on x x x with auxiliary input S n ( 0 ) S_n^{(0)} S n ( 0 ) to produce a pre-image r r r ; then, h h h outputs S n ( 1 ) ( r ) S_n^{(1)}(r) S n ( 1 ) ( r ) .
Observe that for r ∼ U ρ ( n ) r \sim\mathcal{U}_{\rho(n)} r ∼ U ρ ( n ) and x = S n ( 0 ) ( r ) x = S_n^{(0)}(r) x = S n ( 0 ) ( r ) (that is, x ∼ E n ( 0 ) x \sim E_n^{(0)} x ∼ E n ( 0 ) ),
Δ ( ( x , h ( x ) ) , E n ) = Δ ( ( x , S n ( 1 ) ( I ( S n ( 0 ) , x ) ) ) , ( x , S n ( 1 ) ( r ) ) ) \Delta((x,h(x)), E_n) = \Delta((x,S_n^{(1)}(I(S_n^{(0)},x))), (x,S_n^{(1)}(r))) Δ (( x , h ( x )) , E n ) = Δ (( x , S n ( 1 ) ( I ( S n ( 0 ) , x ))) , ( x , S n ( 1 ) ( r )))
(definition of h h h )
≤ Δ ( ( x , I ( S n ( 0 ) , x ) ) , ( x , r ) ) = Δ ( ( f S n ( 0 ) ( r ) , I ( S n ( 0 ) , x ) ) , ( f S n ( 0 ) ( r ) , r ) ) \begin{aligned}
\le\Delta((x,I(S_n^{(0)},x)), (x,r)) \\
&= \Delta\left(\left(f_{S_n}^{(0)}(r), I(S_n^{(0)},x)\right), \left(f_{S_n}^{(0)}(r),r\right)\right)
\end{aligned} ≤ Δ (( x , I ( S n ( 0 ) , x )) , ( x , r )) = Δ ( ( f S n ( 0 ) ( r ) , I ( S n ( 0 ) , x ) ) , ( f S n ( 0 ) ( r ) , r ) )
(definition of f f f )
≤ ε ′ ( n ) . (4) \le\varepsilon'(n). \tag*{(4)} ≤ ε ′ ( n ) . (4)
This completes the proof.
The next two lemmas establish an equivalence between ¬ ∃ A I O W F \neg\exists\mathsf{AIOWF} ¬∃ AIOWF and the easiness of White-Box Learning F a l l \mathcal{F}_{\mathrm{all}} F all .
Lemma 4.12. [ABX08, Xia09] If ¬ ∃ A I O W F \neg\exists\mathsf{AIOWF} ¬∃ AIOWF , then White-Box Learning F a l l \mathcal{F}_{\mathrm{all}} F all over PSAMP/poly is easy.
Proof. The desired white-box learner, given a sampler S n S_n S n for E n E_n E n and parameters ε \varepsilon ε and δ \delta δ , will construct h h h from S n S_n S n as in Lemma 4.11 with parameter ε ′ = ε 4 \varepsilon' = \varepsilon^4 ε ′ = ε 4 . It will then sample m ≜ 8 ε − 4 ⋅ n ⋅ log ( 1 / δ ) m \triangleq8\varepsilon^{-4} \cdot n \cdot\log(1/\delta) m ≜ 8 ε − 4 ⋅ n ⋅ log ( 1/ δ ) choices of randomness r 1 , … , r m r_1,\ldots,r_m r 1 , … , r m for h h h , and output the deterministic hypothesis H H H that, on input x x x , outputs maj i ∈ [ m ] { h ( x ; r i ) } \operatorname{maj}_{i \in[m]}\{h(x;r_i)\} maj i ∈ [ m ] { h ( x ; r i )} . We now argue for the correctness of this white-box learner. Recall that h h h is such that Δ ( ( x , h ( x ) ) , E n ) ≤ ε ′ \Delta((x,h(x)),E_n) \le\varepsilon' Δ (( x , h ( x )) , E n ) ≤ ε ′ , where x ∼ E n ( 0 ) x \sim E_n^{(0)} x ∼ E n ( 0 ) . Let f o p t : { 0 , 1 } n → { 0 , 1 } f_{\mathrm{opt}}:\{0,1\}^n \to\{0,1\} f opt : { 0 , 1 } n → { 0 , 1 } be the function that maximises Pr ( x , b ) ∼ E n [ f o p t ( x ) = b ] \Pr_{(x,b)\sim E_n}[f_{\mathrm{opt}}(x)=b] Pr ( x , b ) ∼ E n [ f opt ( x ) = b ] , and, for x ∈ { 0 , 1 } n x \in\{0,1\}^n x ∈ { 0 , 1 } n , let B x B_x B x denote the conditional distribution of E n ( 1 ) E_n^{(1)} E n ( 1 ) given E n ( 0 ) = x E_n^{(0)}=x E n ( 0 ) = x . Define
α ( x ) = max b ∈ { 0 , 1 } { Pr [ B x = b ] } . \alpha(x)=\max_{b\in\{0,1\}}\{\Pr[B_x=b]\}. α ( x ) = b ∈ { 0 , 1 } max { Pr [ B x = b ]} .
Note that f o p t ( x ) = arg max b ∈ { 0 , 1 } { Pr [ B x = b ] } f_{\mathrm{opt}}(x)=\arg\max_{b\in\{0,1\}}\{\Pr[B_x=b]\} f opt ( x ) = arg max b ∈ { 0 , 1 } { Pr [ B x = b ]} , so Pr [ f o p t ( x ) = B x ] = α ( x ) \Pr[f_{\mathrm{opt}}(x)=B_x]=\alpha(x) Pr [ f opt ( x ) = B x ] = α ( x ) .
By Markov’s inequality, the set X b a d = { x : Δ ( h ( x ) , B x ) > ε 2 } \mathcal{X}_{\mathrm{bad}}=\{x:\Delta(h(x),B_x)>\varepsilon^2\} X bad = { x : Δ ( h ( x ) , B x ) > ε 2 } satisfies Pr x ∼ E n ( 0 ) [ x ∈ X b a d ] ≤ ε 2 \Pr_{x\sim E_n^{(0)}}[x\in\mathcal{X}_{\mathrm{bad}}]\le\varepsilon^2 Pr x ∼ E n ( 0 ) [ x ∈ X bad ] ≤ ε 2 .
For all x ∉ X b a d x\notin\mathcal{X}_{\mathrm{bad}} x ∈ / X bad , we have ∣ Pr [ h ( x ) = b ] − Pr [ B x = b ] ∣ ≤ ε 2 |\Pr[h(x)=b]-\Pr[B_x=b]|\le\varepsilon^2 ∣ Pr [ h ( x ) = b ] − Pr [ B x = b ] ∣ ≤ ε 2 for every b ∈ { 0 , 1 } b\in\{0,1\} b ∈ { 0 , 1 } .
For x ∉ X b a d x\notin\mathcal{X}_{\mathrm{bad}} x ∈ / X bad , we consider two cases.
Case I: α ( x ) > 1 / 2 + 2 ε 2 \alpha(x)>1/2+2\varepsilon^2 α ( x ) > 1/2 + 2 ε 2 . Note that
Pr r i [ h ( x ; r i ) = f o p t ( x ) ] ≥ α ( x ) − ε 2 > 1 2 + ε 2 . \begin{aligned}
\Pr_{r_i}[h(x;r_i)=f_{\mathrm{opt}}(x)]\ge\alpha(x)-\varepsilon^2 \\
&> \frac{1}{2}+\varepsilon^2.
\end{aligned} r i Pr [ h ( x ; r i ) = f opt ( x )] ≥ α ( x ) − ε 2 > 2 1 + ε 2 .
Then, by a Chernoff bound,
Pr r 1 , … , r m [ H ( x ) = f o p t ( x ) ] ≥ 1 − δ ⋅ 2 − n . \Pr_{r_1,\ldots,r_m}[H(x)=f_{\mathrm{opt}}(x)]\ge1-\delta\cdot2^{-n}. r 1 , … , r m Pr [ H ( x ) = f opt ( x )] ≥ 1 − δ ⋅ 2 − n .
Case II: α ( x ) ≤ 1 / 2 + 2 ε 2 \alpha(x)\le1/2+2\varepsilon^2 α ( x ) ≤ 1/2 + 2 ε 2 . Note that α ( x ) ≥ 1 / 2 \alpha(x)\ge1/2 α ( x ) ≥ 1/2 also holds in this case, by definition of α ( x ) \alpha(x) α ( x ) . Consider any fixed H H H . If H ( x ) = f o p t ( x ) H(x)=f_{\mathrm{opt}}(x) H ( x ) = f opt ( x ) , then Pr [ H ( x ) = B x ] ≥ 1 / 2 \Pr[H(x)=B_x]\ge1/2 Pr [ H ( x ) = B x ] ≥ 1/2 . On the other hand, if H ( x ) = 1 − f o p t ( x ) H(x)=1-f_{\mathrm{opt}}(x) H ( x ) = 1 − f opt ( x ) , then Pr [ H ( x ) = B x ] ≥ 1 − Pr [ f o p t ( x ) = B x ] ≥ 1 / 2 − 2 ε 2 \Pr[H(x)=B_x]\ge1-\Pr[f_{\mathrm{opt}}(x)=B_x]\ge1/2-2\varepsilon^2 Pr [ H ( x ) = B x ] ≥ 1 − Pr [ f opt ( x ) = B x ] ≥ 1/2 − 2 ε 2 . It follows that
Pr [ f o p t = B x ] − Pr [ H ( x ) = B x ] ≤ 1 2 + 2 ε 2 − ( 1 2 − 2 ε 2 ) = 4 ε 2 . \Pr[f_{\mathrm{opt}}=B_x]-\Pr[H(x)=B_x]\le\frac{1}{2}+2\varepsilon^2-\left(\frac{1}{2}-2\varepsilon^2\right)=4\varepsilon^2. Pr [ f opt = B x ] − Pr [ H ( x ) = B x ] ≤ 2 1 + 2 ε 2 − ( 2 1 − 2 ε 2 ) = 4 ε 2 .
By a union bound, with probability 1 − δ 1-\delta 1 − δ over the choice of r 1 , … , r m r_1,\ldots,r_m r 1 , … , r m , all x x x satisfying Case I satisfy H ( x ) = f o p t ( x ) H(x)=f_{\mathrm{opt}}(x) H ( x ) = f opt ( x ) . Then, with probability 1 − δ 1-\delta 1 − δ , for all x x x satisfying either case,
Pr [ f o p t = B x ] − Pr [ H ( x ) = B x ] ≤ 4 ε 2 . \Pr[f_{\mathrm{opt}}=B_x]-\Pr[H(x)=B_x]\le4\varepsilon^2. Pr [ f opt = B x ] − Pr [ H ( x ) = B x ] ≤ 4 ε 2 .
Overall, with probability at least 1 − δ 1-\delta 1 − δ over the randomness of the white-box learner, it outputs a hypothesis H H H such that
Pr ( x , b ) ∼ E n [ H ( x ) = b ] ≥ opt n ( F a l l , E ) − 4 ε 2 − ε 2 ≥ opt n ( F a l l , E ) − ε , \Pr_{(x,b)\sim E_n}[H(x)=b]\ge\operatorname{opt}_n(\mathcal{F}_{\mathrm{all}},E)-4\varepsilon^2-\varepsilon^2\ge\operatorname{opt}_n(\mathcal{F}_{\mathrm{all}},E)-\varepsilon, ( x , b ) ∼ E n Pr [ H ( x ) = b ] ≥ opt n ( F all , E ) − 4 ε 2 − ε 2 ≥ opt n ( F all , E ) − ε ,
assuming ε < 1 / 5 \varepsilon<1/5 ε < 1/5 without loss of generality.
This completes the proof.
Lemma 4.13. If White-Box Learning F a l l \mathcal{F}_{\mathrm{all}} F all over PSAMP/poly is easy, then ¬ ∃ \neg\exists ¬∃ AIOWF.
Proof. Toward a contradiction, suppose there exists AIOWF. By Lemma 2.16 , there likewise exists an AIPRG, G z : { 0 , 1 } n → { 0 , 1 } 2 n G_z:\{0,1\}^n \to\{0,1\}^{2n} G z : { 0 , 1 } n → { 0 , 1 } 2 n . By an exhaustive search running in time exponential in n n n , it is possible to distinguish outputs of G z G_z G z from truly random strings. Let D D D be this inefficient distinguisher. In particular, for any given z z z ,
∣ Pr v ∼ U n [ D ( z , G z ( v ) ) = 1 ] − Pr u ∼ U 2 n [ D ( z , u ) = 1 ] ∣ ≥ 1 − o ( 1 ) . \left|\Pr_{v\sim U_n}[D(z,G_z(v))=1]-\Pr_{u\sim U_{2n}}[D(z,u)=1]\right|\ge1-o(1). v ∼ U n Pr [ D ( z , G z ( v )) = 1 ] − u ∼ U 2 n Pr [ D ( z , u ) = 1 ] ≥ 1 − o ( 1 ) .
By Yao’s hybrid argument (see § 5.1.1 ), there exists an inefficient next-bit predictor P D P^D P D such that, for any z z z ,
Pr i ∼ [ 2 n ] v ∼ U n [ P D ( z , G z ( v ) < i ) = G z ( v ) i ] > 1 2 + 1 8 n . \Pr_{\substack{i\sim[2n]\\v\sim U_n}}\left[P^D(z,G_z(v)_{<i})=G_z(v)_i\right]>\frac{1}{2}+\frac{1}{8n}. i ∼ [ 2 n ] v ∼ U n Pr [ P D ( z , G z ( v ) < i ) = G z ( v ) i ] > 2 1 + 8 n 1 .
where y j y_j y j denotes the j j j th bit of a string y y y , and y < j y_{<j} y < j denotes the prefix of y y y up to and including position j − 1 j-1 j − 1 .
Now, consider the distribution E z E_z E z , which samples a random index i ∼ [ 2 n ] i\sim[2n] i ∼ [ 2 n ] and a random seed v ∼ U n v\sim U_n v ∼ U n , and then outputs
( z , i , G z ( v ) < i , 0 2 n − i + 1 ; G z ( v ) i ) . (z,i,G_z(v)_{<i},0^{2n-i+1};G_z(v)_i). ( z , i , G z ( v ) < i , 0 2 n − i + 1 ; G z ( v ) i ) .
It is easy to check that E z E_z E z is samplable by a polynomial-size circuit, which can be constructed in polynomial time given z z z . Moreover, by the existence of P D P^D P D , we have that
opt N ( F a l l , E z ) ≥ 1 2 + 1 8 n , \operatorname{opt}_{N}(\mathcal{F}_{\mathrm{all}},E_z)\ge\frac{1}{2}+\frac{1}{8n}, opt N ( F all , E z ) ≥ 2 1 + 8 n 1 ,
where N = ∣ z ∣ + 2 n + O ( log n ) N=|z|+2n+O(\log n) N = ∣ z ∣ + 2 n + O ( log n ) is the length of an example string from E z E_z E z . Going forward, we omit the trailing 0s used for padding.
We claim that a white-box learner for E z E_z E z may be used to break G z G_z G z . Let A ′ A' A ′ be a white-box learner with respect to F a l l \mathcal{F}_{\mathrm{all}} F all . Consider the following adversary A A A :
On input ( z , y ) (z,y) ( z , y ) , construct a sampler S z S_z S z for E z E_z E z , and simulate A ′ ( S z ) A'(S_z) A ′ ( S z ) with accuracy parameter ε = n − 2 \varepsilon=n^{-2} ε = n − 2 and confidence δ = 2 − n \delta=2^{-n} δ = 2 − n to obtain a hypothesis h h h . Sample a random j ∼ [ 2 n ] j\sim[2n] j ∼ [ 2 n ] , and accept iff h ( z , j , y < j ) = y j h(z,j,y_{<j})=y_j h ( z , j , y < j ) = y j .
First consider the case that y ∼ G z ( U n ) y\sim G_z(U_n) y ∼ G z ( U n ) . In this case,
Pr A , y [ A ( z , y ) = 1 ] = Pr A ′ , y , j [ h ( z , y < j ) = y j ] = Pr A ′ , ( x , b ) ∼ E z [ h ( x ) = b ] ≥ 1 2 + 1 8 n − 1 n 2 − 1 2 n > 1 2 + 1 10 n . \begin{aligned}
\Pr_{A,y}[A(z,y)=1]
&=\Pr_{A',y,j}[h(z,y_{<j})=y_j]\\
&=\Pr_{A',(x,b)\sim E_z}[h(x)=b]\\
&\ge\frac{1}{2}+\frac{1}{8n}-\frac{1}{n^2}-\frac{1}{2^n}\\
&>\frac{1}{2}+\frac{1}{10n}.
\end{aligned} A , y Pr [ A ( z , y ) = 1 ] = A ′ , y , j Pr [ h ( z , y < j ) = y j ] = A ′ , ( x , b ) ∼ E z Pr [ h ( x ) = b ] ≥ 2 1 + 8 n 1 − n 2 1 − 2 n 1 > 2 1 + 10 n 1 .
Next, in the case that y ∼ U 2 n y\sim U_{2n} y ∼ U 2 n , y j y_j y j is a uniformly random bit independent of ( z , y < j ) (z,y_{<j}) ( z , y < j ) , so
Pr A , y [ A ( z , y ) = 1 ] = 1 2 . \Pr_{A,y}[A(z,y)=1]=\frac{1}{2}. A , y Pr [ A ( z , y ) = 1 ] = 2 1 .
We conclude that A A A breaks G z G_z G z , as desired. □ \square □
Learning via Meta-Complexity and Algorithmic Information Theory
Detecting Structure: Supervised Learning via Distinguishers
Valiant introduced his framework of PAC learning in 1984 [172 ] ; in the same paper, he already recognized a tension between the possibility of efficient learning and the possibility of cryptography. He points out in particular that if PAC learning is easy, then it would be easy to break a pseudorandom function. Though the converse of this specific statement remains unknown, the connection also goes in the other direction, where algorithms for “detecting structure from randomness” may be used to carry out learning tasks.
In this section, we describe a general framework for establishing relationships in the latter direction. In this framework, algorithms for meta-complexity (namely, deciding whether a given object is of “high” or “low” complexity) are used to break cryptographic and complexity-theoretic pseudorandom generators, yielding learning algorithms by applying reconstruction properties of those generators. We consider two different styles of generator, which we refer to as the Direct Product Generator and the Nisan-Wigderson Generator, respectively.
The Direct Product Generator takes the form
G D P f ( x ˉ ) = ( x 1 , … , x m ; b 1 , … , b m ) , G_{DP}^{f}(\bar{x}) = (x_1,\ldots,x_m; b_1,\ldots,b_m), G D P f ( x ˉ ) = ( x 1 , … , x m ; b 1 , … , b m ) ,
where x ˉ = ( x 1 , … , x m ) ∈ ( { 0 , 1 } n ) m \bar{x}=(x_1,\ldots,x_m)\in(\{0,1\}^{n})^m x ˉ = ( x 1 , … , x m ) ∈ ({ 0 , 1 } n ) m are input examples, and ( b 1 , … , b m ) ∈ { 0 , 1 } m (b_1,\ldots,b_m)\in\{0,1\}^{m} ( b 1 , … , b m ) ∈ { 0 , 1 } m are some labels associated with a target function f : { 0 , 1 } n → { 0 , 1 } f:\{0,1\}^{n}\to\{0,1\} f : { 0 , 1 } n → { 0 , 1 } .
The Nisan-Wigderson Generator takes the form
G N W f ( z ) = ( f ( z ∣ S 1 ) , … , f ( z ∣ S m ) ) , G_{NW}^{f}(z) = (f(z|_{S_1}),\ldots,f(z|_{S_m})), G N W f ( z ) = ( f ( z ∣ S 1 ) , … , f ( z ∣ S m )) ,
where z ∈ { 0 , 1 } O ( n 2 ) z\in\{0,1\}^{O(n^2)} z ∈ { 0 , 1 } O ( n 2 ) is an input specifying some examples, f : { 0 , 1 } n → { 0 , 1 } f:\{0,1\}^{n}\to\{0,1\} f : { 0 , 1 } n → { 0 , 1 } is a target function, and S 1 , … , S m S_1,\ldots,S_m S 1 , … , S m are NW-designs . An NW-design is a collection of m m m subsets (where m m m is the desired output length) chosen from a small ground set of size ℓ \ell ℓ . They are constructed to have bounded intersections: for instance, any two distinct subsets S i , S j S_i,S_j S i , S j might overlap in at most log m \log m log m elements. Roughly speaking, because the subsets intersect very little, the inputs fed into a “hard” function f f f producing the output bits remain mostly independent.
In the results we survey below, we will see various instantiations of these generators, which may be broken under various assumptions about the easiness of meta-complexity. We mention in advance that learners obtained by breaking the Direct Product Generator can work from random examples , whereas learners obtained by breaking the Nisan-Wigderson Generator require membership queries . In cases where the corresponding assumption from meta-complexity is known to hold, the approach has led to unconditional learning algorithms.
From Distinguishers to Predictors
The central technique driving all the results in this section is Yao’s hybrid argument, which converts a distinguisher into a next-bit predictor [181 ] . First, we explain what it means for an algorithm to be a distinguisher. Consider an arbitrary joint distribution ( X , Y ) (X,Y) ( X , Y ) , where X X X is supported over { 0 , 1 } m \{0,1\}^{m} { 0 , 1 } m and Y Y Y over { 0 , 1 } ℓ \{0,1\}^{\ell} { 0 , 1 } ℓ . Let A A A be a function (which we will typically identify with an algorithm) mapping m + ℓ m+\ell m + ℓ input bits to one output bit. We consider the case that A A A distinguishes ( X , Y ) (X,Y) ( X , Y ) from ( X , U ℓ ) (X,\mathcal{U}_{\ell}) ( X , U ℓ ) with advantage ε > 0 \varepsilon>0 ε > 0 , where U ℓ \mathcal{U}_{\ell} U ℓ denotes the uniform distribution over { 0 , 1 } ℓ \{0,1\}^{\ell} { 0 , 1 } ℓ . Namely,
∣ Pr A [ A ( X , Y ) = 1 ] − Pr A [ A ( X , U ℓ ) = 1 ] ∣ ≥ ε . \left|\Pr_{A}[A(X,Y)=1]-\Pr_{A}[A(X,\mathcal{U}_{\ell})=1]\right|\geq\varepsilon. A Pr [ A ( X , Y ) = 1 ] − A Pr [ A ( X , U ℓ ) = 1 ] ≥ ε .
Yao showed that, from any such A A A , one can construct another algorithm P A : { 0 , 1 } m × { 0 , 1 } ≤ ℓ → { 0 , 1 } P_A : \{0,1\}^{m} \times\{0,1\}^{\leq\ell} \to\{0,1\} P A : { 0 , 1 } m × { 0 , 1 } ≤ ℓ → { 0 , 1 } taking an output of X X X together with some prefix of an output of Y Y Y and producing the next unseen bit of Y Y Y with better-than-trivial success probability. In particular,
Pr P A , i ∼ [ ℓ ] [ P A ( X , Y 1 , … , Y i − 1 ) = Y i ] ≥ 1 2 + ε 2 ℓ . \Pr_{P_A,i\sim[\ell]}\left[P_A(X,Y_1,\ldots,Y_{i-1})=Y_i\right] \geq\frac{1}{2}+\frac{\varepsilon}{2\ell}. P A , i ∼ [ ℓ ] Pr [ P A ( X , Y 1 , … , Y i − 1 ) = Y i ] ≥ 2 1 + 2 ℓ ε .
We refer to such an algorithm P A P_A P A as a next-bit predictor .
To prove this statement, Yao employs a hybrid argument. Roughly, one defines “hybrid” distributions
H j = ( X , Y 1 , … , Y j , U ℓ − j ) H_j=(X,Y_1,\ldots,Y_j,U_{\ell-j}) H j = ( X , Y 1 , … , Y j , U ℓ − j )
for j ∈ { 0 , … , ℓ } j \in\{0,\ldots,\ell\} j ∈ { 0 , … , ℓ } , so H 0 = ( X , U ℓ ) H_0=(X,U_\ell) H 0 = ( X , U ℓ ) and H ℓ = ( X , Y ) H_\ell=(X,Y) H ℓ = ( X , Y ) . Observe that
Pr [ A ( H 0 ) = 1 ] − Pr [ A ( H ℓ ) = 1 ] = ∑ j ∈ { 0 , … , ℓ − 1 } Pr [ A ( H j ) = 1 ] − Pr [ A ( H j + 1 ) = 1 ] . \Pr[A(H_0)=1]-\Pr[A(H_\ell)=1]=\sum_{j\in\{0,\ldots,\ell-1\}}\Pr[A(H_j)=1]-\Pr[A(H_{j+1})=1]. Pr [ A ( H 0 ) = 1 ] − Pr [ A ( H ℓ ) = 1 ] = j ∈ { 0 , … , ℓ − 1 } ∑ Pr [ A ( H j ) = 1 ] − Pr [ A ( H j + 1 ) = 1 ] .
Supposing that Pr [ A ( X , U ℓ ) = 1 ] − Pr [ A ( X , Y ) = 1 ] ≥ ε \Pr[A(X,U_\ell)=1]-\Pr[A(X,Y)=1]\geq\varepsilon Pr [ A ( X , U ℓ ) = 1 ] − Pr [ A ( X , Y ) = 1 ] ≥ ε , so the above is at least ε \varepsilon ε , it holds that the difference Pr [ A ( H j ) = 1 ] − Pr [ A ( H j + 1 ) = 1 ] \Pr[A(H_j)=1]-\Pr[A(H_{j+1})=1] Pr [ A ( H j ) = 1 ] − Pr [ A ( H j + 1 ) = 1 ] is at least ε / ℓ \varepsilon/\ell ε / ℓ in expectation over the choice of j j j . 10 This expected advantage of A A A at the j th j^{\text{th}} j th bit of Y Y Y can then be leveraged to obtain a next-bit predictor at the corresponding position: when given a random bit u ∼ U u\sim U u ∼ U at position j + 1 j+1 j + 1 , A A A is slightly less likely to output 1 1 1 when u = Y j + 1 u=Y_{j+1} u = Y j + 1 than when u ≠ Y j + 1 u\neq Y_{j+1} u = Y j + 1 . We refer the reader to [170 ] for further detail.
Direct Product and Random Examples
From PRG Distinguishers to Learning Random Target Functions. An early instantiation of the framework described above can be seen in the work of Blum et al. [15 ] , where the authors show that breaking a cryptographic pseudorandom generator yields a learner working in a certain average-case setting. In more detail, from a successful distinguisher against a candidate PRG construction, one obtains a learner succeeding with high probability over randomly sampled target functions (see Definition 2.10 ).
The starting point is the assumption that for every candidate PRG G : { 0 , 1 } n → { 0 , 1 } ℓ ( n ) G : \{0,1\}^{n}\to\{0,1\}^{\ell(n)} G : { 0 , 1 } n → { 0 , 1 } ℓ ( n ) there exists an efficient algorithm A : { 0 , 1 } ℓ ( n ) → { 0 , 1 } A : \{0,1\}^{\ell(n)}\to\{0,1\} A : { 0 , 1 } ℓ ( n ) → { 0 , 1 } distinguishing outputs of G G G from uniformly random strings. That is, for some polynomial p p p , for all sufficiently large n n n ,
∣ Pr [ A ( G ( U n ) ) = 1 ] − Pr [ A ( U ℓ ( n ) ) = 1 ] ∣ ≥ 1 p ( n ) . \left|\Pr[A(G(U_n))=1]-\Pr[A(U_{\ell(n)})=1]\right|\geq\frac{1}{p(n)}. Pr [ A ( G ( U n )) = 1 ] − Pr [ A ( U ℓ ( n ) ) = 1 ] ≥ p ( n ) 1 .
Let P = { P n } n ≥ 1 P=\{P_n\}_{n\geq1} P = { P n } n ≥ 1 be a collection of distributions over target functions. For the sake of this exposition, we will discuss the case of weak prediction over example strings drawn from the uniform distribution.11 We define a candidate PRG G G G as follows, where m = m ( n ) m=m(n) m = m ( n ) is a sufficiently large parameter.
On input ( r P , x 1 , … , x m ) (r_P,x_1,\ldots,x_m) ( r P , x 1 , … , x m ) , with r P ∈ { 0 , 1 } poly ( n ) r_P\in\{0,1\}^{\operatorname{poly}(n)} r P ∈ { 0 , 1 } poly ( n ) and each x i ∈ { 0 , 1 } n x_i\in\{0,1\}^{n} x i ∈ { 0 , 1 } n , G G G samples σ f ∼ P n \sigma_f\sim P_n σ f ∼ P n using randomness r P r_P r P , where σ f \sigma_f σ f is the representation of a function f f f . For each i ∈ [ m ] i\in[m] i ∈ [ m ] , it then computes b i ≜ f ( x i ) b_i\triangleq f(x_i) b i ≜ f ( x i ) . G G G outputs ( x 1 , … , x m , b 1 , … , b m ) (x_1,\ldots,x_m,b_1,\ldots,b_m) ( x 1 , … , x m , b 1 , … , b m ) .
The goal is then to transform a distinguisher A A A for G G G into a learner for P n P_n P n over U n U_n U n in the sense of Definition 2.10 . By definitions of G G G and A A A , we have
Pr σ f ∼ P n ; x 1 , … , x m ∼ U n [ ∣ Pr [ A ( x 1 , … , x m , f ( x 1 ) , … , f ( x m ) ) = 1 ] − Pr [ A ( U m ⋅ n + m ) = 1 ] ∣ ≥ 1 p ( n ) ] . \Pr_{\substack{\sigma_f \sim P_n;\\ x_1,\ldots,x_m\sim U_n}}\left[\left| \Pr[A(x_1,\ldots,x_m,f(x_1),\ldots,f(x_m))=1]-\Pr[A(U_{m\cdot n+m})=1]\right|\ge\frac{1}{p(n)}\right]. σ f ∼ P n ; x 1 , … , x m ∼ U n Pr [ ∣ Pr [ A ( x 1 , … , x m , f ( x 1 ) , … , f ( x m )) = 1 ] − Pr [ A ( U m ⋅ n + m ) = 1 ] ∣ ≥ p ( n ) 1 ] .
By Yao’s hybrid argument, for some PPT machine A ′ A' A ′ built from A A A ,
Pr σ f ∼ P n ; A ′ ; i ∼ [ m ] ; x 1 , … , x m ∼ U n [ A ′ ( x 1 , … , x m , f ( x 1 ) , … , f ( x i − 1 ) ) = f ( x i ) ] ≥ 1 2 + 1 2 m ⋅ p ( n ) . \Pr_{\substack{\sigma_f\sim P_n; A';\,i\sim[m];\\ x_1,\ldots,x_m\sim U_n}}\left[A'(x_1,\ldots,x_m,f(x_1),\ldots,f(x_{i-1}))=f(x_i)\right]\ge\frac{1}{2}+\frac{1}{2m\cdot p(n)}. σ f ∼ P n ; A ′ ; i ∼ [ m ] ; x 1 , … , x m ∼ U n Pr [ A ′ ( x 1 , … , x m , f ( x 1 ) , … , f ( x i − 1 )) = f ( x i ) ] ≥ 2 1 + 2 m ⋅ p ( n ) 1 .
We may then define a learner A ′ ′ A'' A ′′ as follows.
On input ( ( x 1 , f ( x 1 ) ) , … , ( x m , f ( x m ) ) ; x ′ ) ((x_1,f(x_1)),\ldots,(x_m,f(x_m));x') (( x 1 , f ( x 1 )) , … , ( x m , f ( x m )) ; x ′ ) , sample i ∼ [ m ] i\sim[m] i ∼ [ m ] , and output A ′ ( x 1 , … , x i − 1 , x ′ , x i + 1 , … , x m , f ( x 1 ) , … , f ( x i − 1 ) ) A'(x_1,\ldots,x_{i-1},x',x_{i+1},\ldots,x_m,f(x_1),\ldots,f(x_{i-1})) A ′ ( x 1 , … , x i − 1 , x ′ , x i + 1 , … , x m , f ( x 1 ) , … , f ( x i − 1 )) .
By the definitions of A ′ A' A ′ and A ′ ′ A'' A ′′ , we have that
Pr σ f ∼ P n ; ( x i , f ( x i ) ) i ∈ [ m ( n ) ] ∼ EX ( f , U n ) m ( n ) ; x ′ ∼ U n [ A ′ ′ ( ( x 1 , f ( x 1 ) ) , … , ( x m ( n ) , f ( x m ( n ) ) , x ′ ) = f ( x ′ ) ] ≥ 1 2 + 1 2 m ⋅ p ( n ) . \Pr_{\substack{\sigma_f\sim P_n;\\ (x_i,f(x_i))_{i\in[m(n)]}\sim\operatorname{EX}(f,U_n)^{m(n)};\\ x'\sim U_n}}\left[A''((x_1,f(x_1)),\ldots,(x_{m(n)},f(x_{m(n)}),x')=f(x')\right]\ge\frac{1}{2}+\frac{1}{2m\cdot p(n)}. σ f ∼ P n ; ( x i , f ( x i ) ) i ∈ [ m ( n )] ∼ EX ( f , U n ) m ( n ) ; x ′ ∼ U n Pr [ A ′′ (( x 1 , f ( x 1 )) , … , ( x m ( n ) , f ( x m ( n ) ) , x ′ ) = f ( x ′ ) ] ≥ 2 1 + 2 m ⋅ p ( n ) 1 .
Thus, A ′ ′ A'' A ′′ satisfies the requirement of weak prediction.
From RRHS Refutation to PAC Learning over Arbitrary Distributions. Since the insight of [15 ] , several papers continued to employ distinguishers to obtain learners. In an elegant example of such work, Vadhan [171 ] formalises a distinguishing task to capture worst-case PAC learning over arbitrary example distributions. Specifically, for a concept class P P P and its dual class P ∗ = Q P^*=Q P ∗ = Q (where for an evaluation function Eval : { 0 , 1 } s × { 0 , 1 } t → { 0 , 1 } \operatorname{Eval}:\{0,1\}^{s}\times\{0,1\}^{t}\to\{0,1\} Eval : { 0 , 1 } s × { 0 , 1 } t → { 0 , 1 } , p y ( x ) = q x ( y ) = Eval ( y , x ) p_y(x)=q_x(y)=\operatorname{Eval}(y,x) p y ( x ) = q x ( y ) = Eval ( y , x ) ), Vadhan defines the Random Right-Hand Side (RRHS) Refutation problem for Q Q Q , where the task is to distinguish
( x 1 , b 1 ) , … , ( x m , b m ) (x_1,b_1),\ldots,(x_m,b_m) ( x 1 , b 1 ) , … , ( x m , b m ) , for independently random bits b i ∼ U b_i\sim U b i ∼ U , from
( x 1 , b 1 ) , … , ( x m , b m ) (x_1,b_1),\ldots,(x_m,b_m) ( x 1 , b 1 ) , … , ( x m , b m ) , where b i = q x i ( y ) = p y ( x i ) b_i=q_{x_i}(y)=p_y(x_i) b i = q x i ( y ) = p y ( x i ) for a fixed concept f = p y ∈ P f=p_y\in P f = p y ∈ P .
Observe that this is precisely the task of distinguishing the output of the Direct Product Generator
G D P f ( x 1 , … , x m ) = ( x 1 , … , x m , f ( x 1 ) , … , f ( x m ) ) G_{DP}^{f}(x_1,\ldots,x_m)=(x_1,\ldots,x_m,f(x_1),\ldots,f(x_m)) G D P f ( x 1 , … , x m ) = ( x 1 , … , x m , f ( x 1 ) , … , f ( x m ))
from
( x 1 , … , x m , U m ) , (x_1,\ldots,x_m,U_m), ( x 1 , … , x m , U m ) ,
for arbitrary strings x 1 , … , x m x_1,\ldots,x_m x 1 , … , x m .
We are interested here in the reduction from PAC learning to RRHS Refutation. Let A A A be an RRHS Refuter for some concept class C C C : that is, for any f ∈ C f\in C f ∈ C and any choice of x 1 , … , x m x_1,\ldots,x_m x 1 , … , x m , A A A distinguishes the two distributions above. As in the work of [15 ] , Yao’s hybrid argument yields the existence of a machine A ′ A' A ′ such that
Pr r ∼ U poly ( n ) ; i ∼ [ m ] [ A ′ ( x 1 , … , x m , f ( x 1 ) , … , f ( x i − 1 ) ; r ) = f ( x i ) ] ≥ 1 2 + 1 poly ( n ) . \Pr_{\substack{r\sim U_{\operatorname{poly}(n)};\,i\sim[m]}}\left[A'(x_1,\ldots,x_m,f(x_1),\ldots,f(x_{i-1});r)=f(x_i)\right]\ge\frac{1}{2}+\frac{1}{\operatorname{poly}(n)}. r ∼ U poly ( n ) ; i ∼ [ m ] Pr [ A ′ ( x 1 , … , x m , f ( x 1 ) , … , f ( x i − 1 ) ; r ) = f ( x i ) ] ≥ 2 1 + poly ( n ) 1 .
Letting D n D_n D n be an arbitrary example distribution, an averaging argument implies that for some polynomial p p p , with probability at least 1 / p ( n ) 1/p(n) 1/ p ( n ) over the choice of r r r , i i i , and x 1 , … , x i − 1 , x i + 1 , … , x m ∼ D n m − 1 x_1,\ldots,x_{i-1},x_{i+1},\ldots,x_m \sim D_n^{m-1} x 1 , … , x i − 1 , x i + 1 , … , x m ∼ D n m − 1 ,
Pr x i ∼ D n [ A ′ ( x 1 , … , x m , f ( x 1 ) , … , f ( x i − 1 ) ; r ) = f ( x i ) ] ≥ 1 2 + 1 p ( n ) . \Pr_{x_i\sim D_n}\left[A'(x_1,\ldots,x_m,f(x_1),\ldots,f(x_{i-1});r)=f(x_i)\right]\geq\frac{1}{2}+\frac{1}{p(n)}. x i ∼ D n Pr [ A ′ ( x 1 , … , x m , f ( x 1 ) , … , f ( x i − 1 ) ; r ) = f ( x i ) ] ≥ 2 1 + p ( n ) 1 .
Now, let B B B be the algorithm that takes m m m examples ( x 1 , f ( x 1 ) ) , … , ( x m , f ( x m ) ) (x_1,f(x_1)),\ldots,(x_m,f(x_m)) ( x 1 , f ( x 1 )) , … , ( x m , f ( x m )) from its oracle EX ( f , D n ) \operatorname{EX}(f,D_n) EX ( f , D n ) , chooses a random i ∼ [ m ] i\sim[m] i ∼ [ m ] and randomness r r r for A ′ A' A ′ , and then outputs the hypothesis
h ( x ) ≜ A ′ ( x 1 , … , x i − 1 , x , x i + 1 , … , x m , f ( x 1 ) , … , f ( x i − 1 ) ; r ) . h(x)\triangleq A'(x_1,\ldots,x_{i-1},x,x_{i+1},\ldots,x_m,f(x_1),\ldots,f(x_{i-1});r). h ( x ) ≜ A ′ ( x 1 , … , x i − 1 , x , x i + 1 , … , x m , f ( x 1 ) , … , f ( x i − 1 ) ; r ) .
By the above,
Pr B ; EX ( f , D n ) [ B EX ( f , D n ) outputs h such that Pr x ∼ D n [ h ( x ) = f ( x ) ] ≥ 1 2 + 1 p ( n ) ] ≥ 1 p ( n ) . \Pr_{B;\operatorname{EX}(f,D_n)}\left[B^{\operatorname{EX}(f,D_n)}\text{ outputs }h\text{ such that }\Pr_{x\sim D_n}[h(x)=f(x)]\geq\frac{1}{2}+\frac{1}{p(n)}\right]\geq\frac{1}{p(n)}. B ; EX ( f , D n ) Pr [ B EX ( f , D n ) outputs h such that x ∼ D n Pr [ h ( x ) = f ( x )] ≥ 2 1 + p ( n ) 1 ] ≥ p ( n ) 1 .
Note that the confidence parameter δ = 1 − p ( n ) − 1 \delta=1-p(n)^{-1} δ = 1 − p ( n ) − 1 can be boosted by parallel repetition, using empirical estimation to determine the best hypothesis produced.
In this way, the easiness of RRHS Refutation yields a weak PAC learner. A classic result of Schapire shows that such a learner can be boosted to obtain a (strong) PAC learner [156 ] .
Correlative RRHS Refutation and Agnostic Learning. In work independent of [171 ] , Kothari and Livni [110 ] give a related refutation problem, denoted correlative RRHS Refutation , to characterise the harder task of agnostic learning . Recall that in the setting of agnostic learning, examples from the oracle EX \operatorname{EX} EX are not guaranteed to correspond exactly to any fixed target function from the relevant concept class; the learner is only asked to produce a hypothesis that is “almost” as accurate as the most accurate function from the concept class [115 , 66 ] .
One difference compared to the RRHS Refutation task of [171 ] is that correlative RRHS Refutation is defined in a distribution-specific setting. Then, the task of correlative RRHS Refutation over some particular example distribution characterises that of agnostic learning over the same distribution, thanks to the existence of distribution-specific boosting algorithms for agnostic learners [106 , 48 ] . This is unlike the setting of [171 ] , which requires an RRHS refuter working on every distribution to obtain a learner working on every distribution.
As in the works discussed above, a weak learner in [110 ] arises from a hybrid argument. More specifically, suppose we have a correlative RRHS refuter that is capable of detecting samples with correlation δ \delta δ with circuits in SIZE [ s ] \operatorname{SIZE}[s] SIZE [ s ] . Namely, let E \mathcal{E} E be a joint example distribution satisfying
max c ∈ SIZE [ s ( n ) ] { Pr ( x , b ) ∼ E n [ c ( x ) = b ] } ≥ 1 2 + δ , \max_{c\in\operatorname{SIZE}[s(n)]}\left\{\Pr_{(x,b)\sim\mathcal{E}_n}[c(x)=b]\right\}\geq\frac{1}{2}+\delta, c ∈ SIZE [ s ( n )] max { ( x , b ) ∼ E n Pr [ c ( x ) = b ] } ≥ 2 1 + δ ,
and suppose we have an algorithm A A A that Ω ( 1 ) \Omega(1) Ω ( 1 ) -distinguishes
( x 1 , b 1 ) , … , ( x m , b m ) (x_1,b_1),\ldots,(x_m,b_m) ( x 1 , b 1 ) , … , ( x m , b m ) , for independently random ( x i , − ) ∼ E n (x_i,-)\sim\mathcal{E}_n ( x i , − ) ∼ E n and b i ∼ U b_i\sim\mathcal{U} b i ∼ U , from
( x 1 , b 1 ) , … , ( x m , b m ) (x_1,b_1),\ldots,(x_m,b_m) ( x 1 , b 1 ) , … , ( x m , b m ) , where ( x i , b i ) ∼ E n (x_i,b_i)\sim\mathcal{E}_n ( x i , b i ) ∼ E n independently.
Then, by a hybrid argument, given m m m random examples from E n \mathcal{E}_n E n , A A A yields a construction of a hypothesis h h h such that
Pr ( x , b ) ∼ E n [ h ( x ) = b ] ≥ 1 2 + 1 O ( m ) . \Pr_{(x,b)\sim\mathcal{E}_n}[h(x)=b]\geq\frac{1}{2}+\frac{1}{O(m)}. ( x , b ) ∼ E n Pr [ h ( x ) = b ] ≥ 2 1 + O ( m ) 1 .
This is sufficient to apply known boosting algorithms [106 , 48 ] to obtain a (strong) agnostic learner over D \mathcal{D} D .
From Average Case Easiness of NP to Agnostic Learning. Hirahara and Nanashima [86 ] build on [110 ] to prove that efficient agnostic learning of P/poly over distributions in PSAMP/poly is possible under the assumption that DistNP ⊆ \subseteq ⊆ AvgP. The paper also builds on an earlier line of work due to Hirahara, which proved that several promise problems in meta-complexity exhibit worst-case to average-case reductions (e.g. [69 , 70 ] ). In particular, if an appropriate ‘gap’ version of the time-bounded Kolmogorov complexity problem, denoted Gap-MINKT, can be solved in deterministic poly-time on average over the uniform distribution, then it is likewise easy in the worst case.
The key contribution of [86 ] consists in reducing correlative RRHS Refutation to Gap-MINKT. The intuition is that samples drawn according to the ‘random’ case are of high complexity with high probability, whereas the K t K^{t} K t complexity of samples from the ‘correlative’ case can be bounded. For simplicity, consider the setting of realizable PAC learning, so the examples in the latter case are actually consistent with some function in SIZE[ s ] [s] [ s ] for a polynomial s s s .
In the ‘random’ case, by Symmetry of Information for Kolmogorov complexity and a counting argument, one can show that for any time-bound t t t , with high probability over x i ∼ D n x_i \sim D_n x i ∼ D n and b i ∼ U b_i \sim U b i ∼ U ,
K t ( x 1 , … , x m , b 1 , … , b m ) ≳ K ( x 1 , … , x m ) + m . K^{t}(x_1,\ldots,x_m,b_1,\ldots,b_m) \gtrsim K(x_1,\ldots,x_m)+m. K t ( x 1 , … , x m , b 1 , … , b m ) ≳ K ( x 1 , … , x m ) + m .
On the other hand, if the labels b i b_i b i are equal to f ( x i ) f(x_i) f ( x i ) for some function f ∈ S I Z E [ s ] f \in\mathrm{SIZE}[s] f ∈ SIZE [ s ] , for a sufficiently large polynomial t ′ t' t ′ , we have
K poly ( t ′ ) ( x 1 , … , x m , b 1 , … , b m ) ≤ K t ′ ( x 1 , … , x m ) + O ( s ( n ) ) + O ( log n ) ≤ K t ′ ( x 1 , … , x m ) + m , \begin{aligned}
K^{\operatorname{poly}(t')}(x_1,\ldots,x_m,b_1,\ldots,b_m) \le K^{t'}(x_1,\ldots,x_m)+O(s(n))+O(\log n) \\
&\le K^{t'}(x_1,\ldots,x_m)+m,
\end{aligned} K poly ( t ′ ) ( x 1 , … , x m , b 1 , … , b m ) ≤ K t ′ ( x 1 , … , x m ) + O ( s ( n )) + O ( log n ) ≤ K t ′ ( x 1 , … , x m ) + m ,
provided that m m m is sufficiently larger than s s s . This follows by encoding a description of an s s s -size circuit for f f f , and computing each b i b_i b i by running this circuit on input x i x_i x i . The idea is then to run an algorithm for Gap-MINKT on the given samples to distinguish “high” complexity from “low” complexity.
At a technical level, several difficulties arise from the differing (finite and infinite) time-bounds involved, and from the fact that one cannot exactly compute K t K^{t} K t complexity for a desired t ∈ N t \in\mathbb{N} t ∈ N under the assumption DistNP ⊆ \subseteq ⊆ AvgP. In fact, the definition of Gap-MINKT is such that one only gets a poly-time algorithm A A A such that A ( 1 t , x ) A(1^{t},x) A ( 1 t , x ) outputs k ∈ N k \in\mathbb{N} k ∈ N such that
K p ( t ) ( x ) − log p ( t ) ≤ k ≤ K t ( x ) K^{p(t)}(x)-\log p(t)\le k\le K^{t}(x) K p ( t ) ( x ) − log p ( t ) ≤ k ≤ K t ( x )
for some polynomial p p p . Roughly speaking, the authors overcome this by proving that, for a sufficiently large time-bound t t t (depending on the running time to sample from a given distribution D n ∈ P S A M P / a ( n ) D_n \in\mathrm{PSAMP}/a(n) D n ∈ PSAMP / a ( n ) ),
K t ( x ‾ ) ≈ K ( x ‾ ) ± a ( n ) K^{t}(\overline{x})\approx K(\overline{x})\pm a(n) K t ( x ) ≈ K ( x ) ± a ( n )
with high probability over strings x ‾ = ( x 1 , … , x m ) \overline{x}=(x_1,\ldots,x_m) x = ( x 1 , … , x m ) sampled from ( D n ) m (D_n)^m ( D n ) m . Thus, the differences between complexity measures with different time-bounds can be made immaterial by taking the number of samples m m m sufficiently larger than a ( n ) a(n) a ( n ) .
The approximate equality above follows from a coding theorem for time-bounded Kolmogorov complexity, which holds under the assumption DistNP ⊆ \subseteq ⊆ AvgP. In particular, for any distribution D n ∈ D_n \in D n ∈ PSAMP/ a ( n ) /a(n) / a ( n ) and any string x x x in the support of D n D_n D n , for sufficiently large t ∈ N t \in\mathbb{N} t ∈ N (depending on the exact complexity of sampling D D D ),
K t ( x ) ≤ log ( 1 / D n ( x ) ) + a ( n ) + O ( log n ) . K^{t}(x)\le\log(1/D_n(x))+a(n)+O(\log n). K t ( x ) ≤ log ( 1/ D n ( x )) + a ( n ) + O ( log n ) .
Since D n ∈ P S A M P / a ( n ) \mathcal{D}_n \in\mathrm{PSAMP}/a(n) D n ∈ PSAMP / a ( n ) implies ( D n ) m ∈ P S A M P / a ( n ) (\mathcal{D}_n)^m \in\mathrm{PSAMP}/a(n) ( D n ) m ∈ PSAMP / a ( n ) when m = poly ( n ) m = \operatorname{poly}(n) m = poly ( n ) , one obtains a similar statement for x ˉ ∈ Support ( ( D n ) m ) \bar{x} \in\operatorname{Support}((\mathcal{D}_n)^m) x ˉ ∈ Support (( D n ) m ) . Given this statement, it holds that
E x ˉ ∼ D n m [ K t ( x ˉ ) − K ( x ˉ ) ] ≤ E x ˉ ∼ D n m [ K t ( x ˉ ) ] − H ( D n m ) + O ( log n ) ≤ E x ˉ ∼ D n m [ log ( 1 / D n m ( x ˉ ) ) ] + a ( n ) + O ( log n ) − H ( D n m ) ≤ a ( n ) + O ( log n ) , \begin{aligned}
\mathop{\mathbb{E}}_{\bar{x}\sim\mathcal{D}_n^m}\left[K^t(\bar{x})-K(\bar{x})\right] \leq\mathop{\mathbb{E}}_{\bar{x}\sim\mathcal{D}_n^m}\left[K^t(\bar{x})\right]-H(\mathcal{D}_n^m)+O(\log n) \\
&\leq\mathop{\mathbb{E}}_{\bar{x}\sim\mathcal{D}_n^m}\left[\log(1/\mathcal{D}_n^m(\bar{x}))\right]+a(n)+O(\log n)-H(\mathcal{D}_n^m) \\
&\leq a(n)+O(\log n),
\end{aligned} E x ˉ ∼ D n m [ K t ( x ˉ ) − K ( x ˉ ) ] ≤ E x ˉ ∼ D n m [ K t ( x ˉ ) ] − H ( D n m ) + O ( log n ) ≤ E x ˉ ∼ D n m [ log ( 1/ D n m ( x ˉ )) ] + a ( n ) + O ( log n ) − H ( D n m ) ≤ a ( n ) + O ( log n ) ,
yielding the desired closeness between time-bounded and -unbounded Kolmogorov complexity in expectation over D n m \mathcal{D}_n^m D n m .
A subsequent work of Goldberg, Kabanets, Lu, and Oliveira [61 ] extends the result from [86 ] , obtaining the same conclusion of efficient agnostic learning from the weaker assumption that D i s t N P ⊆ A v g B P P \mathrm{DistNP} \subseteq\mathrm{AvgBPP} DistNP ⊆ AvgBPP : that is, average-case easiness of NP for randomised algorithms. In this setting, one does not have derandomisation (which is available to [86 ] via [17 ] ), and thus does not have a worst-case to average-case reduction for Gap-MINKT. Instead, the authors obtain worst-case easiness of a notion of time-bounded probabilistic Kolmogorov complexity, p K t \mathrm{pK}^t pK t , which generalizes K t K^t K t and r K t \mathrm{rK}^t rK t . Given this, the rest of the proof proceeds similarly to [86 ] .
Agnostic Learning from Average Case Kolmogorov Complexity. Goldberg and Kabanets [59 ] further weaken the prerequisite assumptions for agnostic learning, exhibiting a direct connection from the average-case easiness of time-bounded (deterministic) Kolmogorov complexity to the existence of agnostic learners. The authors consider average-case easiness of K t K^t K t complexity as well as another complexity measure denoted KT [2 ] , showing that agnostic learners follow from either assumption. KT complexity is known to be polynomially related to boolean circuit size, bringing the assumption close to a ‘natural property’ in the sense of Razborov and Rudich [154 ] , and thus drawing a connection to a line of work obtaining learners from natural properties, discussed further in § 5.1.3 below. For both K t K^t K t and KT, [59 ] assume average-case easiness for randomised algorithms over the uniform distribution.
Compared to the settings of [86 ] and [61 ] , a few additional challenges arise. One difficulty has to do with the task of showing, as in [86 ] , that K t ( x ˉ ) ≈ K ( x ˉ ) K^t(\bar{x}) \approx K(\bar{x}) K t ( x ˉ ) ≈ K ( x ˉ ) with high probability over strings x ˉ ∼ ( D n ) m \bar{x} \sim(\mathcal{D}_n)^m x ˉ ∼ ( D n ) m . As mentioned above, in the prior works, this was proved via coding theorems for time-bounded Kolmogorov complexity. In the case of [86 ] , a coding theorem holds for K t K^t K t under the stronger assumption of average-case easiness of NP. In the case of [61 ] , due to [126 ] , a coding theorem holds unconditionally for p K t \mathrm{pK}^t pK t . In the setting of [59 ] , though a coding theorem is not available, a similar statement can be shown to hold with high probability in the presence of an additional random string r r r . Namely, for sufficiently large t t t ,
Pr r ∼ U t [ K poly ( t ) ( x , r ) ≤ log ( 1 / D n ( x ) ) + a ( n ) + ∣ r ∣ + O ( log n ) ] ≥ 1 − o ( 1 ) . \Pr_{r\sim U_t}\left[\mathrm{K}^{\operatorname{poly}(t)}(x,r)\leq\log(1/\mathcal{D}_n(x))+a(n)+\lvert r\rvert+O(\log n)\right]\geq1-o(1). r ∼ U t Pr [ K poly ( t ) ( x , r ) ≤ log ( 1/ D n ( x )) + a ( n ) + ∣ r ∣ + O ( log n ) ] ≥ 1 − o ( 1 ) .
By incorporating this additional randomness r r r into the algorithm for correlative RRHS refutation, one may obtain an agnostic learner as desired.
Consideration of KT rather than K t K^t K t leads to additional challenges, primarily stemming from the fact that KT complexity does not admit a worst-case to average-case reduction in the regime of a small approximation gap. On the other hand, the assumed average-case easiness of KT is still sufficient to learn over the uniform distribution . Hence, one method to obtain a learner is to reduce the task of learning over arbitrary distributions in P S A M P / poly \mathrm{PSAMP}/\operatorname{poly} PSAMP / poly to the task of learning over the uniform distribution. This can be accomplished by using an average-case algorithm for KT as an inverter for a distributional one-way function; more details about this general approach can be found in the discussion of [13 ] below. However, in the case of non-uniformly sampled target distributions, the learner resulting from this argument needs to know the distribution explicitly.12 [59 ] show that this caveat can be removed by assuming worst-case easiness of computing KT complexity, employing a more complicated amortization argument to bound the KT complexity of many concatenated samples from D n \mathcal{D}_n D n in lieu of a coding theorem (see also [AGvM+18]). It is left open whether the caveat can be removed assuming only average-case easiness of KT.
Nisan-Wigderson and Membership Queries
All the results we have covered so far have employed distinguishers for variants of the Direct Product Generator, G D P f G^f_{DP} G D P f , to construct efficient learners. We now shift attention to learners arising from distinguishers for the Nisan-Wigderson Generator, G N W f G^f_{NW} G N W f .
The NW PRG is very well known for its applications in hardness/randomness tradeoffs [141 , 16 , 99 ] . In that context, one instantiates the PRG with a function f f f known to be hard. The NW PRG then takes the form
G N W f ( z ) = ( f ( z ∣ S 1 ) , f ( z ∣ S 2 ) , … , f ( z ∣ S m ) ) , G^f_{NW}(z) = \left( f(z|_{S_1}), f(z|_{S_2}), \ldots, f(z|_{S_m}) \right), G N W f ( z ) = ( f ( z ∣ S 1 ) , f ( z ∣ S 2 ) , … , f ( z ∣ S m ) ) ,
where f : { 0 , 1 } n → { 0 , 1 } f:\{0,1\}^n \to\{0,1\} f : { 0 , 1 } n → { 0 , 1 } , ∣ z ∣ = d = O ( n 2 ) |z|=d=O(n^2) ∣ z ∣ = d = O ( n 2 ) , m < 2 n m<2^n m < 2 n , and S 1 , … , S m ⊆ [ d ] S_1,\ldots,S_m \subseteq[d] S 1 , … , S m ⊆ [ d ] are “NW designs”, with ∣ S i ∣ = n |S_i|=n ∣ S i ∣ = n and ∣ S i ∩ S j ∣ ≤ log m |S_i \cap S_j| \le\log m ∣ S i ∩ S j ∣ ≤ log m for all i ≠ j ∈ [ m ] i \ne j \in[m] i = j ∈ [ m ] . A key idea is that the generator admits a reconstruction procedure , R R R . Namely, if D D D is an efficient algorithm ( 1 / poly ( m ) ) (1/\operatorname{poly}(m)) ( 1/ poly ( m )) -distinguishing G f G^f G f from uniform, then R f ( D ) R^f(D) R f ( D ) outputs a poly ( m ) \operatorname{poly}(m) poly ( m ) -size circuit approximating f f f with advantage 1 / poly ( m ) 1/\operatorname{poly}(m) 1/ poly ( m ) with high probability. For the purposes of the hardness/randomness paradigm, if we assume in advance that poly ( m ) \operatorname{poly}(m) poly ( m ) -size circuits cannot ( 1 / 2 + poly − 1 ( m ) ) (1/2+\operatorname{poly}^{-1}(m)) ( 1/2 + poly − 1 ( m )) -approximate f f f , then we reach a contradiction, and we conclude that the NW PRG is indeed pseudorandom.
Learning from Natural Properties via NW Reconstruction. Carmosino et al. [33 ] provide the first and most influential example of this approach, showing that a distinguisher for G N W f G^f_{NW} G N W f implies the easiness of PAC learning with membership queries. As in the previous section, for the purposes of learning, [33 ] apply this reconstruction framework in reverse. The starting point is an assumption of the existence of a natural property . Razborov and Rudich introduced the notion of a natural property to pinpoint limitations of existing techniques for proving circuit lower bounds [154 ] . In particular, known proofs of circuit lower bounds were based on natural properties for those circuit classes (including lower bounds for A C 0 \mathrm{AC}^0 AC 0 [53 ] and A C 0 [ p ] \mathrm{AC}^0[p] AC 0 [ p ] for prime p p p [151 , 162 ] ). On the other hand, there is no (say, P/poly-constructive) natural property for general boolean circuits unless cryptographic PRGs do not exist. Very roughly, a natural property for a given circuit class C \mathcal{C} C is equivalent to average-case easiness of the Minimum Circuit Size Problem for C \mathcal{C} C : the existence of a poly-time algorithm accepting all truth-tables of low C \mathcal{C} C -complexity and rejecting a large enough fraction of truth-tables with high C \mathcal{C} C -complexity (see Definition 2.3 for the formal details). The assumption of [33 ] is in this sense an assumption of the easiness of meta-complexity. The assumed natural property algorithm becomes a distinguisher for G N W f G^f_{NW} G N W f , and one applies a hybrid argument to obtain a next-bit predictor as specified by the reconstruction procedure.
There are several differences here compared to the setting of G D P G_{DP} G D P , which arise from how the generator makes use of its input. In the case of G D P G_{DP} G D P , several “input” strings x 1 , … , x m x_1,\ldots,x_m x 1 , … , x m are given explicitly and independently, and each x i x_i x i leads to a distinct label b i b_i b i depending on f f f . In the case of G N W G_{NW} G N W , the input strings to f f f are given implicitly by a single seed z z z ; “extracting” the strings x i x_i x i from z z z requires computing some restrictions based on the designs S i S_i S i . Due to this more “economical” use of the input, G N W G_{NW} G N W can be made to yield a much longer output from a short seed. For this reason, a natural property suffices to distinguish outputs of G N W G_{NW} G N W from uniformly random strings. On the other hand, in the case of G D P G_{DP} G D P , inputs of length n ⋅ m n \cdot m n ⋅ m lead to outputs of length only n ⋅ m + m n \cdot m + m n ⋅ m + m , and it is not clear whether outputs of G D P G_{DP} G D P have circuit complexity less than this.
A drawback of G N W G_{NW} G N W compared to G D P G_{DP} G D P is that the reconstruction procedure requires oracle access to the function f f f . This is due to the fact that a given seed z ∼ U d z \sim U_d z ∼ U d gives rise to dependent input strings x 1 , … , x m = z ∣ S 1 , … , z ∣ S m x_1,\ldots,x_m = z|_{S_1},\ldots,z|_{S_m} x 1 , … , x m = z ∣ S 1 , … , z ∣ S m . Due to the overlap between sets in the NW design, if one wants to know the value of f f f on a particular choice of x x x , this imposes restrictions on the values of the other strings x j x_j x j appearing in the hybrid. The NW reconstruction procedure handles this with a pre-processing stage, making oracle queries to f f f to build a table containing f ( x j ) f(x_j) f ( x j ) for all possible completions of x j x_j x j depending on x x x . Ultimately, this results in a learner requiring membership queries.
Regardless of the limitations of learners resulting from natural properties, the connection to the literature on circuit lower bounds makes their construction worthwhile: by the known natural property for A C 0 [ p ] \mathrm{AC}^{0}[p] AC 0 [ p ] , Carmosino et al. unconditionally obtain a quasi-polynomial time learning algorithm for this circuit class (see Figure 6 ).
Figure 6. The diagram presents the key steps of the A C 0 [ p ] \mathrm{AC}^{0}[p] AC 0 [ p ] learning algorithm of Carmosino, Impagliazzo, Kabanets, and Kolokolova [33 ] , a breakthrough result in computational learning theory. The Razborov and Smolensky circuit lower bounds [151 , 162 ] yield a natural property [154 ] against A C 0 [ p ] \mathrm{AC}^{0}[p] AC 0 [ p ] . For an unknown target f ∈ A C 0 [ p ] f \in\mathrm{AC}^{0}[p] f ∈ AC 0 [ p ] , this property distinguishes the output of the Nisan-Wigderson generator G N W f G_{NW}^{f} G N W f [141 ] from a random truth table. The NW reconstruction procedure converts the distinguisher into a hypothesis using membership query access to f f f . To date, this complexity-theoretic approach remains the only known learning technique for this circuit class.
In a 2017 follow-up, the authors further show that, from so-called tolerant natural properties, one obtains agnostic learners [34 ] . A tolerant natural property is essentially equivalent to easiness of the Minimum Approximate Circuit Size Problem, MACSP, which asks, for a given truth-table T T T and parameters ε \varepsilon ε and δ \delta δ , whether there exists a circuit of size s s s computing T T T on at least a 1 − δ 1-\delta 1 − δ fraction of inputs. Under this framework, the authors generalize the learning algorithm for A C 0 [ p ] AC^0[p] A C 0 [ p ] to target functions with distance 1 / poly ( n ) 1/\operatorname{poly}(n) 1/ poly ( n ) from A C 0 [ p ] AC^0[p] A C 0 [ p ] .
Problem 5.1 (Learning A C 0 [ p ] AC^0[p] A C 0 [ p ] from random examples). Is there a subexponential time algorithm that learns A C 0 [ p ] AC^0[p] A C 0 [ p ] circuits under the uniform distribution using random examples instead of membership queries?
For recent work related to Problem 5.1, we refer to [57 , 35 ] .
The approach of [33 ] as described above only yields a PAC learner working on the uniform distribution. A subsequent work due to Binnendyk et al. [13 ] , following the indirect learning approach of [50 ] , shows that the result of [33 ] can be extended to obtain learners working over any efficiently samplable distribution, provided (1) that the code of the sampler is known to the learner, and (2) that the target function composed with this sampler belongs to the learner’s concept class. Below, we restrict our attention to the case that the concept class as well as the sampler complexity of the target distribution are unrestricted polynomial-size circuits.
It is well-known that a natural property would preclude the existence of a PRG with polynomial stretch: outputs of the generator have bounded circuit complexity, while uniformly random strings almost always have maximum circuit complexity [154 ] . Then, by a sequence of results from cryptography [55 , 68 , 181 , 95 ] , a natural property implies the existence of efficient distributional inverters for every poly-time function. Roughly, when given the output y y y of some function g : { 0 , 1 } n → { 0 , 1 } m ( n ) g : \{0,1\}^{n} \to\{0,1\}^{m(n)} g : { 0 , 1 } n → { 0 , 1 } m ( n ) , such an inverter outputs a nearly uniformly distributed member of { x ∣ g ( x ) = y } \{x \mid g(x) = y\} { x ∣ g ( x ) = y } .
Let A A A be the PAC learner of [33 ] working over the uniform distribution with membership queries. Suppose we would like to learn some target function f f f over a distribution D ∈ P S A M P D \in\mathrm{PSAMP} D ∈ PSAMP . The definition of P S A M P \mathrm{PSAMP} PSAMP means that D D D can be sampled by a polynomial-time machine; i.e. there is a poly-time algorithm S S S such that S ( r ) S(r) S ( r ) is distributed according to D D D when the string r r r is uniformly distributed. Let I I I be a distributional inverter for S S S .
The key idea is to simulate A A A on the target function f ( S ( − ) ) f(S(\mathord{-})) f ( S ( − )) . Clearly, knowing S S S and given membership-query access to f f f , we can simulate membership queries to f ( S ( − ) ) f(S(\mathord{-})) f ( S ( − )) . Then by [33 ] , with high probability, A A A outputs a hypothesis h h h such that
Pr r ∼ U poly ( n ) [ h ( r ) = f ( S ( r ) ) ] ≥ 1 − 1 / poly ( n ) . \Pr_{r \sim U_{\operatorname{poly}(n)}}[h(r) = f(S(r))] \ge1 - 1/\operatorname{poly}(n). r ∼ U poly ( n ) Pr [ h ( r ) = f ( S ( r ))] ≥ 1 − 1/ poly ( n ) .
We output the hypothesis h ′ ( − ) ≜ h ( I ( − ) ) h'(\mathord{-}) \triangleq h(I(\mathord{-})) h ′ ( − ) ≜ h ( I ( − )) .
Intuitively, on input x ∼ D x \sim D x ∼ D , we have h ′ ( x ) = h ( I ( S ( r ) ) ) ≈ h ( r ) h'(x) = h(I(S(r))) \approx h(r) h ′ ( x ) = h ( I ( S ( r ))) ≈ h ( r ) , where r ∼ U poly ( n ) r \sim U_{\operatorname{poly}(n)} r ∼ U poly ( n ) . Since h ( r ) = f ( S ( r ) ) = f ( x ) h(r) = f(S(r)) = f(x) h ( r ) = f ( S ( r )) = f ( x ) with high probability, one can show that the hypothesis h ′ h' h ′ successfully approximates f f f over D D D , as desired.
We refer to [147 ] for additional settings where one can derive learning consequences from complexity lower bound assumptions.
Solomonoff Induction: Unsupervised Learning via Kolmogorov Complexity
In this section, we explain how to efficiently achieve sequence prediction under a meta-complexity assumption about the feasibility of estimating time-bounded Kolmogorov complexity. Formally, we have the following result.
Theorem 5.2 ([88 Theorem 2.1] ). If Gap K t \operatorname{Gap}K^{t} Gap K t -vs-K ∈ p r - B P P K \in\mathrm{pr\text{-}BPP} K ∈ pr - BPP , then ( m , n , s , t , ε , δ ) (m,n,s,t,\varepsilon,\delta) ( m , n , s , t , ε , δ ) -extrapolation can be solved in randomized time poly ( n , m , s , t , 1 / ε , 1 / δ ) \operatorname{poly}(n,m,s,t,1/\varepsilon,1/\delta) poly ( n , m , s , t , 1/ ε , 1/ δ ) for m ≥ O ~ ( n 2 ⋅ s ⋅ ε − 6 ⋅ δ − 5 ) m \ge\widetilde{O}(n^{2}\cdot s\cdot\varepsilon^{-6}\cdot\delta^{-5}) m ≥ O ( n 2 ⋅ s ⋅ ε − 6 ⋅ δ − 5 ) .
First, we review Solomonoff induction, which considers this extrapolation task in the time-unbounded setting.
The Classical Theory
In Solomonoff induction [163 , 164 ] (see [91 ] for a modern introduction), given a prefix x < i = ( x 1 , … , x i − 1 ) x_{<i}=(x_1,\ldots,x_{i-1}) x < i = ( x 1 , … , x i − 1 ) , the extrapolation algorithm predicts the next block x i ∈ { 0 , 1 } n x_i \in\{0,1\}^{n} x i ∈ { 0 , 1 } n by conditioning a certain “universal” distribution on the event that the generated sequence begins with x < i x_{<i} x < i . Equivalently, one gives higher probability weight to continuations that make the full string ( x < i , x i ) (x_{<i},x_i) ( x < i , x i ) have small Kolmogorov complexity.13 Roughly, we predict the next block x i x_i x i given the prefix x < i x_{<i} x < i according to the Solomonoff (semi)measure using
S ( x i ∣ x < i ) ∝ ∑ y 2 − K ( x < i x i y ) . S(x_i \mid x_{<i}) \propto\sum_y 2^{-K(x_{<i}x_i y)}. S ( x i ∣ x < i ) ∝ y ∑ 2 − K ( x < i x i y ) .
where the symbol ∝ \propto ∝ means “proportional to”. This is a form of Occam’s Razor , i.e., short explanations are preferred. It is then possible to show that, for sequences generated by a randomized program of description length s s s , the resulting predictor is accurate on most i ∈ [ m ] i \in[m] i ∈ [ m ] once the number of observations m ≫ s / ε 2 m \gg s/\varepsilon^2 m ≫ s / ε 2 .
To show that this predictor works as claimed above, we combine the following ingredients:
Universality of the Solomonoff measure. If the full sequence x = ( x 1 , … , x m ) x=(x_1,\ldots,x_m) x = ( x 1 , … , x m ) is generated by a randomized program M M M of description length s s s , then the measure S S S dominates the true source μ M \mu_M μ M up to a multiplicative factor 2 − O ( s ) 2^{-O(s)} 2 − O ( s ) , i.e.,
S ( x 1 , … , x m ) ≥ 2 − O ( s ) ⋅ μ M ( x 1 , … , x m ) S(x_1,\ldots,x_m) \ge2^{-O(s)}\cdot\mu_M(x_1,\ldots,x_m) S ( x 1 , … , x m ) ≥ 2 − O ( s ) ⋅ μ M ( x 1 , … , x m )
for every sequence ( x 1 , … , x m ) (x_1,\ldots,x_m) ( x 1 , … , x m ) .
Log-loss bound and average KL-divergence. Taking logarithms and averaging over x = ( x 1 , … , x m ) ∼ μ M x=(x_1,\ldots,x_m)\sim\mu_M x = ( x 1 , … , x m ) ∼ μ M , one obtains the log-loss bound
E x ∼ μ M [ log μ M ( x 1 , … , x m ) S ( x 1 , … , x m ) ] ≤ O ( s ) . \mathbb{E}_{x\sim\mu_M}\left[\log\frac{\mu_M(x_1,\ldots,x_m)}{S(x_1,\ldots,x_m)}\right]\le O(s). E x ∼ μ M [ log S ( x 1 , … , x m ) μ M ( x 1 , … , x m ) ] ≤ O ( s ) .
The key point is that this global bound can be decomposed into one-step prediction errors. In more detail, for every x = ( x 1 , … , x m ) x=(x_1,\ldots,x_m) x = ( x 1 , … , x m ) with μ M ( x ) > 0 \mu_M(x)>0 μ M ( x ) > 0 , we can factor both distributions sequentially:
μ M ( x ) = ∏ i = 1 m μ M ( x i ∣ x < i ) , S ( x ) = ∏ i = 1 m S ( x i ∣ x < i ) . \mu_M(x)=\prod_{i=1}^{m}\mu_M(x_i\mid x_{<i}),\qquad S(x)=\prod_{i=1}^{m}S(x_i\mid x_{<i}). μ M ( x ) = i = 1 ∏ m μ M ( x i ∣ x < i ) , S ( x ) = i = 1 ∏ m S ( x i ∣ x < i ) .
Consequently,
log μ M ( x ) S ( x ) = ∑ i = 1 m log μ M ( x i ∣ x < i ) S ( x i ∣ x < i ) . \log\frac{\mu_M(x)}{S(x)}=\sum_{i=1}^{m}\log\frac{\mu_M(x_i\mid x_{<i})}{S(x_i\mid x_{<i})}. log S ( x ) μ M ( x ) = i = 1 ∑ m log S ( x i ∣ x < i ) μ M ( x i ∣ x < i ) .
Now taking expectation over x ∼ μ M x \sim\mu_M x ∼ μ M and applying linearity of expectation,
E x ∼ μ M [ log μ M ( x ) S ( x ) ] = ∑ i = 1 m E x ≤ i ∼ μ M [ log μ M ( x i ∣ x < i ) S ( x i ∣ x < i ) ] = ∑ i = 1 m E x < i ∼ μ M [ ∑ y ∈ { 0 , 1 } n μ M ( y ∣ x < i ) log μ M ( y ∣ x < i ) S ( y ∣ x < i ) ] . \begin{aligned}
\mathbb{E}_{x\sim\mu_M}\left[\log\frac{\mu_M(x)}{S(x)}\right]
=
\sum_{i=1}^{m}\mathbb{E}_{x_{\leq i}\sim\mu_M}\left[\log\frac{\mu_M(x_i\mid x_{<i})}{S(x_i\mid x_{<i})}\right] \\
&=
\sum_{i=1}^{m}\mathbb{E}_{x_{<i}\sim\mu_M}\left[\sum_{y\in\{0,1\}^n}\mu_M(y\mid x_{<i})\log\frac{\mu_M(y\mid x_{<i})}{S(y\mid x_{<i})}\right].
\end{aligned} E x ∼ μ M [ log S ( x ) μ M ( x ) ] = i = 1 ∑ m E x ≤ i ∼ μ M [ log S ( x i ∣ x < i ) μ M ( x i ∣ x < i ) ] = i = 1 ∑ m E x < i ∼ μ M y ∈ { 0 , 1 } n ∑ μ M ( y ∣ x < i ) log S ( y ∣ x < i ) μ M ( y ∣ x < i ) .
But the inner sum is exactly the KL-divergence from the true conditional distribution of the next block to the Solomonoff posterior. Therefore, combining the equations above,
∑ i = 1 m E x < i ∼ μ M [ KL ( μ M ( ⋅ ∣ x < i ) ∥ S ( ⋅ ∣ x < i ) ) ] ≤ O ( s ) . \sum_{i=1}^{m}\mathbb{E}_{x_{<i}\sim\mu_M}\left[\operatorname{KL}\left(\mu_M(\cdot\mid x_{<i})\mathbin\Vert S(\cdot\mid x_{<i})\right)\right]\leq O(s). i = 1 ∑ m E x < i ∼ μ M [ KL ( μ M ( ⋅ ∣ x < i ) ∥ S ( ⋅ ∣ x < i ) ) ] ≤ O ( s ) .
Passing to statistical distance. Finally, for any large enough m = O ( s ⋅ 1 / ε 2 ⋅ 1 / δ ) m = O(s\cdot1/\varepsilon^2\cdot1/\delta) m = O ( s ⋅ 1/ ε 2 ⋅ 1/ δ ) , using a standard Markov argument and applying Pinsker’s inequality, one obtains that the predicted next-block distribution is ε \varepsilon ε -close in total variation distance to the true conditional distribution produced by M M M except for at most a δ \delta δ -fraction of i ∈ [ m ] i\in[m] i ∈ [ m ] .
Thus, in the time-unbounded setting, Solomonoff induction solves the extrapolation problem once the sequence is sufficiently longer than the description of the underlying generator program.
The Time-Bounded Setting
We consider a simpler setting where δ > 0 \delta> 0 δ > 0 is a small constant, and describe a randomized algorithm that runs in time poly ( n , m , t , 1 / ε ) \operatorname{poly}(n,m,t,1/\varepsilon) poly ( n , m , t , 1/ ε ) and succeeds as long as m = m ( n , s , ε ) m=m(n,s,\varepsilon) m = m ( n , s , ε ) is sufficiently large. The proof of Theorem 5.2 , which provides a polynomial-time procedure when δ = o ( 1 ) \delta=o(1) δ = o ( 1 ) , is significantly more involved. We refer to [88 ] for the details.
To move to the time-bounded world, we replace the universal distribution by the time-bounded universal distribution Q t , z Q_{t,z} Q t , z , where z z z is an auxiliary string.
Definition 5.3 (Time-Bounded Universal Distribution with Advice). Fix t ∈ N t\in\mathbb{N} t ∈ N and an advice string z ∈ { 0 , 1 } ∗ z\in\{0,1\}^* z ∈ { 0 , 1 } ∗ . The t t t -time-bounded universal distribution Q t , z Q_{t,z} Q t , z is the distribution induced by the random variable U r ( w , z , 1 t ) U^r(w,z,1^t) U r ( w , z , 1 t ) , where w ∼ U t w\sim U_t w ∼ U t is chosen uniformly from { 0 , 1 } t \{0,1\}^t { 0 , 1 } t . Equivalently, for every string y ∈ { 0 , 1 } ∗ y\in\{0,1\}^* y ∈ { 0 , 1 } ∗ ,
Q t , z ( y ) ≜ Pr w ∼ U t , U r [ U r ( w , z , 1 t ) = y ] . Q_{t,z}(y)\mathrel{\triangleq}\Pr_{w\sim U_t,U^r}\left[U^r(w,z,1^t)=y\right]. Q t , z ( y ) ≜ w ∼ U t , U r Pr [ U r ( w , z , 1 t ) = y ] . When z = ϵ z=\epsilon z = ϵ , we omit the advice string and write Q t Q_t Q t instead of Q t , z Q_{t,z} Q t , z . For convenience, we also define
q t ( y ∣ z ) ≜ − log Q t , z ( y ) . q^t(y\mid z)\mathrel{\triangleq}-\log Q_{t,z}(y). q t ( y ∣ z ) ≜ − log Q t , z ( y ) .
We also need the following definition.
Definition 5.4 (Universal Extrapolation Distribution). The universal extrapolation distribution
Next n ( y ; Q t , z ) \operatorname{Next}_n(y;Q_{t,z}) Next n ( y ; Q t , z ) is the distribution of the next n n n bits of a Q t , z Q_{t,z} Q t , z -sample, conditioned on extending the prefix y y y .
It is important to distinguish the two roles here: z z z is an advice string in the Kolmogorov complexity sense, while y y y is the observed prefix in the probabilistic conditioning sense. This distinction is a crucial idea from [88 ] to implement Solomonoff’s theory in the time-bounded setting.14 Jumping ahead, what is special in the time-bounded setting is that one splits the given prefix into advice and context strings for efficiency reasons and then proves that this restricted-context extrapolation is still correct.
In more detail, prior work already gave a universal sampling procedure for approximately sampling from Next n ( y ; Q t , z ) \operatorname{Next}_{n}(y; Q_{t,z}) Next n ( y ; Q t , z ) , but its running time is exponential in the computational depth of y y y given z z z [96 , 87 ] .15 In other words, consider the computational depth quantity
cd t ( y ∣ z ) ≜ q t ( y ∣ z ) − K ( y ∣ z ) , \operatorname{cd}_{t}(y \mid z) \triangleq q^{t}(y \mid z) - K(y \mid z), cd t ( y ∣ z ) ≜ q t ( y ∣ z ) − K ( y ∣ z ) ,
where we set cd t ( y ) ≜ cd t ( y ∣ ϵ ) \operatorname{cd}_{t}(y) \triangleq\operatorname{cd}_{t}(y \mid\epsilon) cd t ( y ) ≜ cd t ( y ∣ ϵ ) . If one tries to extrapolate directly from the full prefix by setting y = x < i y = x_{<i} y = x < i and z = ϵ z = \epsilon z = ϵ , the runtime can be exponential in cd t ( x < i ) \operatorname{cd}_{t}(x_{<i}) cd t ( x < i ) . For some sequences generated by an s s s -bit randomized program, this depth can be as large as Ω ( s ) \Omega(s) Ω ( s ) .
As alluded to above, a key idea from [88 ] is to reorganize the observed prefix into an advice part and a context part . For appropriate parameters w , b ∈ N w,b \in\mathbb{N} w , b ∈ N with m = b ⋅ w m=b\cdot w m = b ⋅ w , the sequence ( x 1 , … , x m ) (x_1,\ldots,x_m) ( x 1 , … , x m ) is partitioned into b b b larger blocks, each consisting of w w w of the original n n n -bit symbols. When predicting position j ∈ [ w ] j \in[w] j ∈ [ w ] inside block i ∈ [ b ] i \in[b] i ∈ [ b ] , the learner uses all previous blocks as advice, but keeps only the prefix of the current block up to position j − 1 j-1 j − 1 as context. If we write x ˉ i \bar{x}_i x ˉ i for the i i i -th large block, x ˉ < i \bar{x}_{<i} x ˉ < i for the concatenation of the previous blocks, and x ˉ i < j \bar{x}_i^{<j} x ˉ i < j for the prefix of the current block before position j j j , then the predictor outputs according to
Next n ( x ˉ i < j ; Q t , x ˉ < i ) . \operatorname{Next}_{n}\left(\bar{x}_i^{<j}; Q_{t,\bar{x}_{<i}}\right). Next n ( x ˉ i < j ; Q t , x ˉ < i ) .
In other words, the long-range history is moved into advice , while a short local prefix is kept as context .
Next, we explain in more detail how this approach reduces the running time while maintaining correctness of the corresponding predictor. For a formal presentation, see [88 ] .
I. Bounding the running time. For the runtime analysis, we need two ingredients: the slow growth law and the chain rule for computational depth .
The slow growth law states that if x ∼ μ M = U r ( M , ϵ , 1 t ) x \sim\mu_M = U^{\mathrm{r}}(M,\epsilon,1^t) x ∼ μ M = U r ( M , ϵ , 1 t ) , where M M M is a t t t -time randomized machine of description length s s s , then with high probability
cd poly ( t ) ( x ) ≤ O ( s ) . \operatorname{cd}^{\operatorname{poly}(t)}(x) \le O(s). cd poly ( t ) ( x ) ≤ O ( s ) .
The chain rule states that, for a string x = ( x 1 , … , x m ′ ) x=(x_1,\ldots,x_{m'}) x = ( x 1 , … , x m ′ ) with each ∣ x i ∣ ≤ n ′ |x_i| \le n' ∣ x i ∣ ≤ n ′ , and any large enough t ′ t' t ′ , we have
∑ i = 1 m ′ cd poly ( t ′ ) ( x i ∣ x < i ) ≤ cd t ′ ( x ) + m ′ ⋅ O ( log t ′ ) . \sum_{i=1}^{m'} \operatorname{cd}^{\operatorname{poly}(t')}(x_i \mid x_{<i}) \le\operatorname{cd}^{t'}(x) + m'\cdot O(\log t'). i = 1 ∑ m ′ cd poly ( t ′ ) ( x i ∣ x < i ) ≤ cd t ′ ( x ) + m ′ ⋅ O ( log t ′ ) .
These two results are known to hold under the assumption of Theorem 5.2, as established by [88 ] .
Putting the results above together, we get that the expected value of cd poly ( t ) ( x i ∣ x < i ) \operatorname{cd}^{\operatorname{poly}(t)}(x_i \mid x_{<i}) cd poly ( t ) ( x i ∣ x < i ) over a random position i ∼ [ m ] i \sim[m] i ∼ [ m ] is O ( s / m + log t ) = O ( log t ) O(s/m+\log t)=O(\log t) O ( s / m + log t ) = O ( log t ) . By Markov’s inequality,
Pr i ∼ [ m ] [ cd poly ( t ) ( x i ∣ x < i ) ≥ δ − 1 ⋅ O ( log t ) ] ≤ δ . \Pr_{i\sim[m]}\left[\operatorname{cd}^{\operatorname{poly}(t)}(x_i \mid x_{<i}) \ge\delta^{-1}\cdot O(\log t)\right]\le\delta. i ∼ [ m ] Pr [ cd poly ( t ) ( x i ∣ x < i ) ≥ δ − 1 ⋅ O ( log t ) ] ≤ δ .
In other words, for most choices of i i i and x x x , the time-bounded universal sampling procedure (approximately) samples from Next n ( x i ; Q t , x < i ) \operatorname{Next}_n(x_i; Q_{t,x_{<i}}) Next n ( x i ; Q t , x < i ) in time 2 O ( δ − 1 ⋅ log t ) = poly ( t ) 2^{O(\delta^{-1}\cdot\log t)}=\operatorname{poly}(t) 2 O ( δ − 1 ⋅ l o g t ) = poly ( t ) , for δ = Ω ( 1 ) \delta=\Omega(1) δ = Ω ( 1 ) .^16
One can perform a similar runtime analysis once we break the sequence x = ( x 1 , … , x m ) x=(x_1,\ldots,x_m) x = ( x 1 , … , x m ) into b b b larger blocks, each consisting of w w w of the original n n n -bit symbols x i x_i x i , and use the universal extrapolation procedure to sample instead from Next n ( x ˉ i < j ; Q t , x ˉ < i ) \operatorname{Next}_n(\bar{x}_i^{<j};Q_{t,\bar{x}_{<i}}) Next n ( x ˉ i < j ; Q t , x ˉ < i ) . (In order to guarantee correctness, the proof employs w = O ( ε − 2 ⋅ δ − 1 ⋅ log t ) w=O(\varepsilon^{-2}\cdot\delta^{-1}\cdot\log t) w = O ( ε − 2 ⋅ δ − 1 ⋅ log t ) , as explained below.)
II. Correctness of the time-bounded predictor. Recall that our predictor partitions x = ( x 1 , … , x m ) x=(x_1,\ldots,x_m) x = ( x 1 , … , x m ) into b b b length-w w w blocks. Given an index j ∈ [ w ] j\in[w] j ∈ [ w ] inside block i ∈ [ b ] i\in[b] i ∈ [ b ] , it uses the universal sampling procedure in order to predict according to Next n ( x ˉ i < j ; Q t , x ˉ < i ) \operatorname{Next}_n(\bar{x}_i^{<j};Q_{t,\bar{x}_{<i}}) Next n ( x ˉ i < j ; Q t , x ˉ < i ) . By the analysis explained above, for most blocks the sampler is correct and we (approximately) sample from Next n ( x ˉ i < j ; Q t , x ˉ < i ) \operatorname{Next}_n(\bar{x}_i^{<j};Q_{t,\bar{x}_{<i}}) Next n ( x ˉ i < j ; Q t , x ˉ < i ) . It remains to show that this is close to the true distribution, i.e.,
Pr i , j , ( x ˉ < i , x ˉ i < j ) ∼ μ M [ Δ T V ( X ˉ i j ∣ x ˉ < i x ˉ i < j , Next n ( x ˉ i < j ; Q t , x ˉ < i ) ) ≤ ε ] ≥ 1 − δ . \Pr_{i,j,(\bar{x}_{<i},\bar{x}_i^{<j})\sim\mu_M}\left[\Delta_{\mathrm{TV}}\left(\bar{X}_i^j\mid\bar{x}_{<i}\bar{x}_i^{<j},\operatorname{Next}_n(\bar{x}_i^{<j};Q_{t,\bar{x}_{<i}})\right)\le\varepsilon\right]\ge1-\delta. i , j , ( x ˉ < i , x ˉ i < j ) ∼ μ M Pr [ Δ TV ( X ˉ i j ∣ x ˉ < i x ˉ i < j , Next n ( x ˉ i < j ; Q t , x ˉ < i ) ) ≤ ε ] ≥ 1 − δ .
To prove this, let X ˉ i \bar{X}_i X ˉ i denote the random i i i -th block under μ M \mu_M μ M , and let X ˉ < i \bar{X}_{<i} X ˉ < i denote the concatenation of the previous blocks. Up to replacing t t t by poly ( t ) \operatorname{poly}(t) poly ( t ) (which we suppress in the notation), similarly to the chain rule for computational depth described above, it is possible to show that for every ( x ˉ 1 , … , x ˉ b ) (\bar{x}_1,\ldots,\bar{x}_b) ( x ˉ 1 , … , x ˉ b ) ,
∑ i = 1 b q t ( x ˉ i ∣ x ˉ < i ) ≤ q t ( x ˉ 1 , … , x ˉ b ) + b ⋅ O ( log t ) . \sum_{i=1}^{b}q^t(\bar{x}_i\mid\bar{x}_{<i})\le q^t(\bar{x}_1,\ldots,\bar{x}_b)+b\cdot O(\log t). i = 1 ∑ b q t ( x ˉ i ∣ x ˉ < i ) ≤ q t ( x ˉ 1 , … , x ˉ b ) + b ⋅ O ( log t ) .
On the other hand, the time-bounded universal distribution Q t Q_t Q t dominates every s s s -bit source μ M \mu_M μ M up to a factor 2 − O ( s ) 2^{-O(s)} 2 − O ( s ) . Equivalently,
q t ( x ˉ 1 , … , x ˉ b ) ≤ O ( s ) − log μ M ( x ˉ 1 , … , x ˉ b ) q^t(\bar{x}_1,\ldots,\bar{x}_b)\le O(s)-\log\mu_M(\bar{x}_1,\ldots,\bar{x}_b) q t ( x ˉ 1 , … , x ˉ b ) ≤ O ( s ) − log μ M ( x ˉ 1 , … , x ˉ b )
for every sequence in the support of μ M \mu_M μ M . Combining the two inequalities and expanding the source probability block-by-block,
∑ i = 1 b ( q t ( x ˉ i ∣ x ˉ < i ) + log μ M ( x ˉ i ∣ x ˉ < i ) ) ≤ O ( s ) + b ⋅ O ( log t ) . \sum_{i=1}^{b}\left(q^t(\bar{x}_i\mid\bar{x}_{<i})+\log\mu_M(\bar{x}_i\mid\bar{x}_{<i})\right)\le O(s)+b\cdot O(\log t). i = 1 ∑ b ( q t ( x ˉ i ∣ x ˉ < i ) + log μ M ( x ˉ i ∣ x ˉ < i ) ) ≤ O ( s ) + b ⋅ O ( log t ) .
Next, we average over ( x ˉ 1 , … , x ˉ b ) ∼ μ M (\bar{x}_1,\ldots,\bar{x}_b)\sim\mu_M ( x ˉ 1 , … , x ˉ b ) ∼ μ M . For each i ∈ [ b ] i\in[b] i ∈ [ b ] , we claim that the expectation of the i i i -th summand is exactly
E x ˉ < i ∼ μ M [ KL ( ( X ˉ i ∣ x ˉ < i ) ∥ Q t , x ˉ < i ) ] . \mathbb{E}_{\bar{x}_{<i}\sim\mu_M}\left[\operatorname{KL}\left((\bar{X}_i\mid\bar{x}_{<i})\mathbin{\|}Q_{t,\bar{x}_{<i}}\right)\right]. E x ˉ < i ∼ μ M [ KL ( ( X ˉ i ∣ x ˉ < i ) ∥ Q t , x ˉ < i ) ] .
Indeed, by definition, q t ( y ∣ x ˉ < i ) = − log Q t , x ˉ < i ( y ) q^t(y\mid\bar{x}_{<i})=-\log Q_{t,\bar{x}_{<i}}(y) q t ( y ∣ x ˉ < i ) = − log Q t , x ˉ < i ( y ) , and so
q t ( y ∣ x ˉ < i ) + log μ M ( y ∣ x ˉ < i ) = log μ M ( y ∣ x ˉ < i ) Q t , x ˉ < i ( y ) . q^t(y\mid\bar{x}_{<i})+\log\mu_M(y\mid\bar{x}_{<i})=\log\frac{\mu_M(y\mid\bar{x}_{<i})}{Q_{t,\bar{x}_{<i}}(y)}. q t ( y ∣ x ˉ < i ) + log μ M ( y ∣ x ˉ < i ) = log Q t , x ˉ < i ( y ) μ M ( y ∣ x ˉ < i ) .
Taking expectation over y ∼ ( X ˉ i ∣ x ˉ < i ) y\sim(\bar{X}_i\mid\bar{x}_{<i}) y ∼ ( X ˉ i ∣ x ˉ < i ) yields the desired statement. As a consequence,
E i ∼ [ b ] E x ˉ < i ∼ μ M [ KL ( ( X ˉ i ∣ x ˉ < i ) ∥ Q t , x ˉ < i ) ] ≤ O ( s ) b + O ( log t ) . \mathbb{E}_{i\sim[b]}\mathbb{E}_{\bar{x}_{<i}\sim\mu_M}\left[\operatorname{KL}\left((\bar{X}_i\mid\bar{x}_{<i})\mathbin{\|}Q_{t,\bar{x}_{<i}}\right)\right]\le\frac{O(s)}{b}+O(\log t). E i ∼ [ b ] E x ˉ < i ∼ μ M [ KL ( ( X ˉ i ∣ x ˉ < i ) ∥ Q t , x ˉ < i ) ] ≤ b O ( s ) + O ( log t ) .
In other words, the amortized KL-divergence over the b b b blocks is O ( log t ) O(\log t) O ( log t ) for b = Ω ( s / log t ) b = \Omega(s/\log t) b = Ω ( s / log t ) .
The remaining steps follow from standard arguments. First, we apply the chain rule for KL-divergence to distribute the bound of O ( log t ) O(\log t) O ( log t ) across the w w w positions in a block, yielding an average KL-divergence of O ( log t ) / w O(\log t)/w O ( log t ) / w over positions j ∈ [ w ] j \in[w] j ∈ [ w ] . For w = Ω ( ε − 2 δ − 1 log t ) w = \Omega(\varepsilon^{-2}\delta^{-1}\log t) w = Ω ( ε − 2 δ − 1 log t ) , we obtain a bound of O ( log t ) / w = ε 2 ⋅ δ O(\log t)/w = \varepsilon^2 \cdot\delta O ( log t ) / w = ε 2 ⋅ δ per symbol. Then, from Markov’s inequality, the per-symbol KL-divergence is at most ε 2 \varepsilon^2 ε 2 for a ( 1 − δ ) (1-\delta) ( 1 − δ ) -fraction of positions inside a block. Finally, the desired bound on statistical distance then follows from Pinsker’s inequality.
To sum up, the predictor satisfies the desired guarantees provided that m = b ⋅ w = Ω ( ( s / log t ) ⋅ ( ε − 2 δ − 1 log t ) ) = Ω ( s ⋅ ε − 2 ⋅ δ − 1 ) m = b \cdot w = \Omega((s/\log t) \cdot(\varepsilon^{-2}\delta^{-1}\log t)) = \Omega(s \cdot\varepsilon^{-2}\cdot\delta^{-1}) m = b ⋅ w = Ω (( s / log t ) ⋅ ( ε − 2 δ − 1 log t )) = Ω ( s ⋅ ε − 2 ⋅ δ − 1 ) .
As mentioned above, in order to obtain an efficient predictor when δ = o ( 1 ) \delta= o(1) δ = o ( 1 ) , a more involved argument seems required, and the known lower bound on m m m as a function of ε \varepsilon ε and δ \delta δ is sub-optimal.
Problem 5.5 (Optimal Parameters in Extrapolation from Meta-Complexity). Prove that if G a p K t -vs-K ∈ p r - B P P \mathrm{GapK}^{t}\text{-vs-K} \in\mathrm{pr\text{-}BPP} GapK t -vs-K ∈ pr - BPP , then ( m , n , s , t , ε , δ ) (m,n,s,t,\varepsilon,\delta) ( m , n , s , t , ε , δ ) -extrapolation can be solved in randomized time poly ( n , m , s , t , 1 / ε , 1 / δ ) \operatorname{poly}(n,m,s,t,1/\varepsilon,1/\delta) poly ( n , m , s , t , 1/ ε , 1/ δ ) for m ≥ Ω ~ ( s ⋅ ε − 2 ⋅ δ − 1 ) m \ge\widetilde{\Omega}(s\cdot\varepsilon^{-2}\cdot\delta^{-1}) m ≥ Ω ( s ⋅ ε − 2 ⋅ δ − 1 ) .
Equivalences Between Learning and Meta-Complexity
In § 5.1 we described several settings where one can get efficient learning from suitable distinguishers. In turn, the necessary distinguishers follow from the existence of efficient algorithms for meta-computational problems. The latter allow one to distinguish randomness from structure, or equivalently, input strings that can be compressed from (a large fraction of) incompressible ones.
We now discuss two settings where appropriate relaxations of the meta-computational problems are actually computationally equivalent to the learning task. Let C \mathcal{C} C be a class of functions (e.g., polynomial-size Boolean circuits), and let Γ \Gamma Γ be a learning model (e.g., PAC learning under the uniform distribution from random examples). We present equivalences of the following form:
C \mathcal{C} C admits efficient learning algorithms in model Γ ⟺ \Gamma\Longleftrightarrow Γ ⟺ The meta-computational problem L C , Γ L_{\mathcal{C},\Gamma} L C , Γ is easy
In the equivalence, L C , Γ L_{\mathcal{C},\Gamma} L C , Γ is a suitable computational problem that we associate to the learning model and concept class.
The idea that the design of learning algorithms is equivalent to the search for efficient procedures that detect patterns in data offers a fundamentally new perspective: while learning is inherently a sublinear task , where an algorithm must inspect a small portion of a large object (the unknown function) and produce an approximate representation of it (the output hypothesis), a typical problem from meta-complexity, such as MCSP and its variants, involves deciding if an input string is “random” or “structured”, a standard algorithmic problem where the algorithm has access to the entire input .
Concretely, as explained below, [97 ] shows that a circuit class C \mathcal{C} C can be PAC learned under the uniform distribution from random examples in polynomial time if and only if a variant of MCSP for partial functions and with respect to C \mathcal{C} C -circuit complexity is easy on average. Similarly, [33 ] can be phrased (see [143 ] ) as an equivalence between the efficient learnability of C \mathcal{C} C with membership queries under the uniform distribution and the existence of a promise-BPP natural property against C \mathcal{C} C (see § 2.4.5 ).
Next, we explain in more detail the aforementioned equivalences. For simplicity, we mostly focus on the case where C \mathcal{C} C corresponds to general Boolean circuits, though the equivalences hold more generally under mild assumptions on C \mathcal{C} C related to their closure properties and basic expressive power.
Learning from Random Examples. Ilango, Loff, and Oliveira [97 ] rephrase the ideas developed in [171 ] (see § 5.1.2 ), making more explicit a connection between the easiness of meta-complexity and the possibility of learning. More specifically, the authors show that if a certain problem from meta-complexity, denoted Partial-MCSP, is easy on average, then PAC learning general Boolean circuits on the uniform distribution from random examples is easy. Conversely, a learning algorithm that uses random examples implies the easiness on average of Partial-MCSP.
In [97 ] , Partial-MCSP refers to the following formulation of a circuit minimisation problem on partially defined functions.
An instance of the language Partial-MCSP consists of an integer n ∈ N n \in\mathbb{N} n ∈ N represented in unary, a collection of input/output pairs ( ( x i , b i ) ) i ∈ [ m ] ((x_i,b_i))_{i \in[m]} (( x i , b i ) ) i ∈ [ m ] for some m ∈ N m \in\mathbb{N} m ∈ N , where x i ∈ { 0 , 1 } n x_i \in\{0,1\}^n x i ∈ { 0 , 1 } n and b i ∈ { 0 , 1 } b_i \in\{0,1\} b i ∈ { 0 , 1 } for each i ∈ [ m ] i \in[m] i ∈ [ m ] , and a threshold parameter s ∈ N s \in\mathbb{N} s ∈ N .
( 1 n , ( ( x i , b i ) ) i ∈ [ m ] , s ) (1^n,((x_i,b_i))_{i \in[m]},s) ( 1 n , (( x i , b i ) ) i ∈ [ m ] , s ) is a yes-instance of Partial-MCSP iff there exists a Boolean circuit C C C of size at most s s s such that C ( x i ) = b i C(x_i)=b_i C ( x i ) = b i for all i ∈ [ m ] i \in[m] i ∈ [ m ] .
The authors further consider an average-case notion of Partial-MCSP, in which an algorithm A A A is said to solve Partial-MCSP on average over the uniform distribution with m m m samples, advantage γ \gamma γ , and parameter s s s if for every boolean function f ∈ SIZE [ s ] f \in\operatorname{SIZE}[s] f ∈ SIZE [ s ] ,
∣ Pr x 1 , … , x m ∼ U n m [ A ( x 1 , … , x m ; f ( x 1 ) , … , f ( x m ) ) = 1 ] − Pr x 1 , … , x m ∼ U n m b 1 , … , b m ∼ U 1 [ A ( x 1 , … , x m ; b 1 , … , b m ) = 1 ] ∣ ≥ γ ( n ) . \left|
\Pr_{\substack{x_1,\ldots,x_m \sim\mathcal{U}^m_n}}\left[A(x_1,\ldots,x_m;f(x_1),\ldots,f(x_m))=1\right]
-
\Pr_{\substack{x_1,\ldots,x_m \sim\mathcal{U}^m_n\\ b_1,\ldots,b_m \sim\mathcal{U}_1}}\left[A(x_1,\ldots,x_m;b_1,\ldots,b_m)=1\right]
\right| \ge\gamma(n). x 1 , … , x m ∼ U n m Pr [ A ( x 1 , … , x m ; f ( x 1 ) , … , f ( x m )) = 1 ] − x 1 , … , x m ∼ U n m b 1 , … , b m ∼ U 1 Pr [ A ( x 1 , … , x m ; b 1 , … , b m ) = 1 ] ≥ γ ( n ) .
For large enough m ( n ) = poly ( s ( n ) ) m(n)=\operatorname{poly}(s(n)) m ( n ) = poly ( s ( n )) and small enough γ ( n ) = Ω ( 1 / poly ( n ) ) \gamma(n)=\Omega(1/\operatorname{poly}(n)) γ ( n ) = Ω ( 1/ poly ( n )) , we remark that this is a rather lenient notion of average-case easiness over the uniform distribution: it is enough to distinguish labels consistent with a function from the class from random labels.
Now observe that the task above is precisely the problem of breaking the Direct Product Generator G D P f G_{DP}^{f} G D P f with the input x ⃗ \vec{x} x sampled uniformly at random and the target function f f f belonging to SIZE [ s ] \operatorname{SIZE}[s] SIZE [ s ] . Applying the techniques discussed in the context of [171 ] , such an algorithm may be transformed into a weak learner for SIZE [ s ] \operatorname{SIZE}[s] SIZE [ s ] working on examples drawn from the uniform distribution. To obtain a strong PAC learner for SIZE [ s ] \operatorname{SIZE}[s] SIZE [ s ] over the uniform distribution, the authors apply a result of [21 ] to boost accuracy.
Conversely, it is not difficult to show that an algorithm that learns SIZE [ s ] \operatorname{SIZE}[s] SIZE [ s ] under the uniform distribution from random examples can be used to solve the average-case version of Partial-MCSP introduced above. Given a sequence ( x 1 , … , x m ; ℓ 1 , … , ℓ m ) (x_1,\ldots,x_m;\ell_1,\ldots,\ell_m) ( x 1 , … , x m ; ℓ 1 , … , ℓ m ) , where we assume m ( n ) m(n) m ( n ) is large enough, our task is to decide whether the labels ℓ 1 , … , ℓ m \ell_1,\ldots,\ell_m ℓ 1 , … , ℓ m are consistent with a fixed but unknown f ∈ SIZE [ s ] f \in\operatorname{SIZE}[s] f ∈ SIZE [ s ] or random . We simulate the learner over the sample set { ( x 1 , ℓ 1 ) , … , ( x m − 1 , ℓ m − 1 ) } \{(x_1,\ell_1),\ldots,(x_{m-1},\ell_{m-1})\} {( x 1 , ℓ 1 ) , … , ( x m − 1 , ℓ m − 1 )} . Let h h h be its output hypothesis. If h ( x m ) = ℓ m h(x_m)=\ell_m h ( x m ) = ℓ m , we output 1 (meaning “consistent”); otherwise we output 0 (meaning “random”). On the one hand, if the labels are consistent with some function f ∈ SIZE [ s ] f \in\operatorname{SIZE}[s] f ∈ SIZE [ s ] , h h h is likely to correctly label x m x_m x m by ℓ m \ell_m ℓ m , in which case we output 1. On the other hand, in the random case, no matter the output hypothesis h h h , since the label ℓ m \ell_m ℓ m is an independent random bit we get that h ( x m ) = ℓ m h(x_m)=\ell_m h ( x m ) = ℓ m with probability exactly 1 / 2 1/2 1/2 . Therefore, we distinguish the two cases with noticeable probability, i.e., we solve Partial-MCSP on average.
Learning from Membership Queries. The preceding discussion used the term natural property informally. The precise randomized formulation relevant here is the notion of a pr-BPP-natural property introduced in § 2.4.5 . Such a property is decided by a randomized algorithm running in time polynomial in the truth-table length N = 2 n N = 2^n N = 2 n . It accepts with probability at least 2 / 3 2/3 2/3 every truth table in some dense set, while accepting the truth table of each function in C [ s ] C[s] C [ s ] with probability at most 1 / 3 1/3 1/3 . No guarantee is imposed on the remaining truth tables: on these inputs the acceptance probability may lie between 1 / 3 1/3 1/3 and 2 / 3 2/3 2/3 , which explains the promise in pr-BPP. Informally, the algorithm efficiently recognizes many unstructured functions while rejecting every function of low C C C -complexity. This can be seen as a weak average-case procedure for the MCSP problem for C C C -circuits.
As discussed above, Carmosino, Impagliazzo, Kabanets, and Kolokolova [33 ] turn such a property into a learner for C C C under the uniform distribution: the property distinguishes truth tables produced by the Nisan–Wigderson generator from random truth tables, and the NW reconstruction procedure converts this distinguisher into a hypothesis for the target. The reconstruction uses oracle access to the target, which accounts for the membership queries.
Oliveira and Santhanam [143 ] noted that the reverse implication from learning to natural properties also holds, even if one starts with a barely non-trivial learning algorithm. Concretely, a non-trivial learner is a randomized oracle algorithm A f A^f A f that, for some constant c ≥ 1 c \ge1 c ≥ 1 and every f ∈ C [ s ] f \in C[s] f ∈ C [ s ] , outputs with probability at least 1 − 1 / n 1 - 1/n 1 − 1/ n a hypothesis h h h satisfying
Pr x ∼ U n [ h ( x ) = f ( x ) ] ≥ 1 2 + γ ( n ) , γ ( n ) = 1 n c , \Pr_{x \sim U_n}[h(x) = f(x)] \ge\frac{1}{2} + \gamma(n), \qquad\gamma(n) = \frac{1}{n^c}, x ∼ U n Pr [ h ( x ) = f ( x )] ≥ 2 1 + γ ( n ) , γ ( n ) = n c 1 ,
and runs in time T ( n ) = 2 n / n ω ( 1 ) T(n) = 2^n/n^{\omega(1)} T ( n ) = 2 n / n ω ( 1 ) . The super-polynomial saving in the denominator is a convenient way to make the definition independent of c c c ; a fixed sufficiently large polynomial saving also works.
The idea works as follows. Given w ∈ { 0 , 1 } N w \in\{0,1\}^N w ∈ { 0 , 1 } N , simulate A f A^f A f for f = fnc w f = \operatorname{fnc}^w f = fnc w , answering each membership query directly from w w w . Estimate the agreement of the resulting h h h with f f f to additive error γ / 4 \gamma/4 γ /4 using polynomially many fresh uniform inputs. Reject if the estimate exceeds 1 / 2 + γ / 2 1/2 + \gamma/2 1/2 + γ /2 , and accept otherwise. If f ∈ C [ s ] f \in C[s] f ∈ C [ s ] , the learner succeeds and the test rejects with probability at least 2 / 3 2/3 2/3 .
To see why the test accepts most functions, fix a size bound S ≤ T ( n ) S \le T(n) S ≤ T ( n ) . By a simple counting argument, there are at most 2 O ( S log S ) 2^{O(S \log S)} 2 O ( S l o g S ) Boolean circuits of size S S S . For any fixed circuit h h h and a uniformly random function f f f , the values 1 [ h ( x ) = f ( x ) ] \mathbf{1}[h(x) = f(x)] 1 [ h ( x ) = f ( x )] are independent unbiased bits. A Chernoff bound therefore gives
Pr f [ Pr x [ h ( x ) = f ( x ) ] ≥ 1 2 + γ 4 ] ≤ exp ( − Ω ( γ 2 2 n ) ) . \Pr_f\left[\Pr_x[h(x) = f(x)] \ge\frac{1}{2} + \frac{\gamma}{4}\right] \le\exp(-\Omega(\gamma^2 2^n)). f Pr [ x Pr [ h ( x ) = f ( x )] ≥ 2 1 + 4 γ ] ≤ exp ( − Ω ( γ 2 2 n )) .
Thus the fraction of functions that can be approximated by a fixed hypothesis h h h is at most exp ( − Ω ( γ 2 2 n ) ) \exp(-\Omega(\gamma^2 2^n)) exp ( − Ω ( γ 2 2 n )) . A union bound over all possible h h h (circuits of size at most S S S ) shows that the fraction of functions approximated by any such circuit is at most exp ( O ( S log S ) − Ω ( γ 2 2 n ) ) = o ( 1 ) \exp(O(S \log S) - \Omega(\gamma^2 2^n)) = o(1) exp ( O ( S log S ) − Ω ( γ 2 2 n )) = o ( 1 ) under the non-trivial time bound. Since every hypothesis output by A A A has size at most T ( n ) T(n) T ( n ) , the test accepts almost every truth table with high probability. It runs in time T ( n ) ⋅ poly ( n ) = poly ( N ) T(n) \cdot\operatorname{poly}(n) = \operatorname{poly}(N) T ( n ) ⋅ poly ( n ) = poly ( N ) , so it satisfies constructivity, density, and C [ s ] C[s] C [ s ] -hardness from § 2.4.5 . Truth tables outside the two guaranteed cases may have intermediate acceptance probability, which is precisely why the promise class pr-BPP is appropriate. Together with the learning-from-natural-properties direction, this gives the desired equivalence, up to standard parameter translations.
It would be interesting to further develop the dictionary between meta-complexity and learning.
Problem 5.6 (Equivalences Between Learning and Meta-Complexity). Can we characterize efficient learnability in other learning frameworks via meta-complexity?
Next, we discuss a surprising application of the equivalence between learning and meta-complexity.
Learning Speedups: Reducing the Running Time via Meta-Complexity
A PAC learning algorithm for a class C C C of functions comes with three parameters of interest: the confidence that it succeeds, the error of its output hypothesis, and its running time . While it is not difficult to amplify the confidence of a learning algorithm [116 Chapter 4] , reducing its error is much more subtle. Originally developed to address a question in learning theory, boosting (see [158 ] ) is a key technique in machine learning that allows one to reduce the error of the output hypothesis of a PAC learner. Thus both the confidence and error parameters can be boosted. Could it be the case that the running time of a learning algorithm can also be improved in a generic fashion?
Surprisingly, [143 ] relies on complexity-theoretic techniques [33 ] to show that, in some cases, one can make learning algorithms run much faster! They termed this phenomenon learning speedups : a generic approach to improve the running time of a learning algorithm. How is this possible? Key to the learning speedup compiler is to explore a fourth dimension of learning algorithms: they tend to solve more difficult tasks than the ones we typically apply them to.
To achieve a learning speedup, we explore the complexity of the unknown function f : { 0 , 1 } n → { 0 , 1 } f : \{0,1\}^{n} \to\{0,1\} f : { 0 , 1 } n → { 0 , 1 } in C C C that we are challenged to learn, by reducing this task to the learnability of a more complex function g : { 0 , 1 } m → { 0 , 1 } g : \{0,1\}^{m} \to\{0,1\} g : { 0 , 1 } m → { 0 , 1 } over a smaller number m m m of input bits. The rationale is simple: on an instance of the learning problem of length n n n , if we run the original (slow) learning algorithm on a problem of much smaller dimension m ≪ n m \ll n m ≪ n , we obtain a faster learning algorithm as a function of n n n . For this to succeed, we need to guarantee that g g g , while more complex than f f f , is still in C C C (since the original learner is only promised to learn functions in C C C ), and we must discover a way to implement the reduction between learning problems. To achieve the latter, we implicitly simulate the original learning algorithm on g g g (while only having access to f f f ), and show that a good output hypothesis for g g g can be transformed into a good hypothesis for f f f .17
Here we explain the proof of the following speedup result.
Theorem 5.7 (From Nontrivial Learning to Subexponential Time Learning [143 ] ). Let C C C be a circuit class at least as powerful as bounded-depth circuits with parity gates . Suppose that, for every constant k ≥ 1 k \ge1 k ≥ 1 , C C C -circuits of size n k n^{k} n k can be PAC learned under the uniform distribution with membership queries in time ≤ 2 n / n ω ( 1 ) \le2^{n}/n^{\omega(1)} ≤ 2 n / n ω ( 1 ) . Then, for every k ≥ 1 k \ge1 k ≥ 1 and ε > 0 \varepsilon> 0 ε > 0 , C C C -circuits of size n k n^{k} n k can be PAC learned under the uniform distribution with membership queries in time O ( 2 n ε ) O(2^{n^{\varepsilon}}) O ( 2 n ε ) .
Proof Sketch. Fix k ≥ 1 k \ge1 k ≥ 1 and ε > 0 \varepsilon> 0 ε > 0 . The argument is the composition of the two directions described in § 5.3 . First, the assumed non-trivial learner yields a pr-BPP-natural property (Definition 2.31). Indeed, on the truth table of an m m m -variate function g g g , we simulate the learner using the truth table to answer its membership queries, and then test whether its output hypothesis has noticeable agreement with g g g . The learner succeeds when g g g is computed by a small C C C -circuit, whereas the counting argument from the preceding section shows that almost every function cannot be noticeably approximated by a circuit of size 2 m / m ω ( 1 ) 2^{m}/m^{\omega(1)} 2 m / m ω ( 1 ) . Reversing the output of this test therefore gives, for every constant d d d , a pr-BPP-natural property against C [ m d ] C[m^{d}] C [ m d ] . Its running time is polynomial in the truth-table length 2 m 2^{m} 2 m , and hence is 2 O ( m ) 2^{O(m)} 2 O ( m ) .
We now apply the learning-from-natural-properties construction discussed in § 5.1 . Let f ∈ C [ n k ] f \in C[n^{k}] f ∈ C [ n k ] be the target function, and choose a parameter m = n γ m = n^{\gamma} m = n γ , where γ > 0 \gamma> 0 γ > 0 will be fixed. The black-box Nisan–Wigderson generator associates with f f f a family of auxiliary functions g z : { 0 , 1 } m → { 0 , 1 } g_z : \{0,1\}^{m} \to\{0,1\} g z : { 0 , 1 } m → { 0 , 1 } . Since C C C contains bounded-depth circuits with parity gates and has the standard closure properties, each g z g_z g z is computed by a C \mathcal{C} C -circuit of size m d m^d m d , for some constant d = d ( k , γ ) d=d(k,\gamma) d = d ( k , γ ) . This is the reason the theorem assumes non-trivial learners for C [ n d ] \mathcal{C}[n^d] C [ n d ] for every constant d d d , rather than only for one fixed size bound.
The natural property against C [ m d ] \mathcal{C}[m^d] C [ m d ] rejects every truth table tt ( g z ) \operatorname{tt}(g_z) tt ( g z ) while accepting a dense set of random truth tables. It therefore distinguishes the NW outputs associated with f f f from a uniformly random function on m m m bits. The NW reconstruction procedure converts this distinguisher into a hypothesis that approximates f f f under the uniform distribution. As explained earlier, the reconstruction can form the required truth-table entries of the functions g z g_z g z using oracle access to f f f ; these become the membership queries of the resulting learner.
The natural property and the reconstruction run in time polynomial in 2 m 2^m 2 m , so the total running time is 2 O ( m ) ⋅ poly ( n ) = 2 O ( n γ ) 2^{O(m)} \cdot\operatorname{poly}(n) = 2^{O(n^\gamma)} 2 O ( m ) ⋅ poly ( n ) = 2 O ( n γ ) . Choose γ < ε \gamma< \varepsilon γ < ε small enough to absorb the constant hidden in the exponent. Standard accuracy and confidence amplification then gives a PAC learner running in time O ( 2 n ε ) O(2^{n^\varepsilon}) O ( 2 n ε ) , as desired.
As explained above, the key conceptual insight behind the learning speedup compiler is that to learn a function f ∈ C [ n k ] f \in\mathcal{C}[n^k] f ∈ C [ n k ] in sub-exponential time, we invoke the nontrivial learner on concepts of size m ℓ m^\ell m ℓ , where ℓ \ell ℓ is larger than k k k but the input length m m m is smaller than n n n . Crucially, we save time by using that the original learner is able to succeed on relatively harder learning tasks of smaller instance length. The tradeoff is considerably more general. In particular, a nontrivial learner that learns exponential size concepts can be transformed into a polynomial-time learner for polynomial-size concepts [143 ] .
Despite its obvious relevance and potential for applications, this intriguing phenomenon is currently restricted to PAC learning algorithms that work under the uniform distribution and can make membership queries. It also requires the class C \mathcal{C} C to be reasonably expressive, since this is needed to implement the techniques from [33 ] .
Problem 5.8 (Learning Speedups in Different Learning Frameworks). Systematically investigate learning speedups in different learning models. In particular, is there a generic speedup for learning under the uniform distribution from random examples?
Learning vs Compression via Shannon’s Information Theory
We have seen several connections between learning and compression through the lens of meta-complexity and algorithmic information theory. In this section, we explore connections from the perspective of Shannon’s information theory, taking the theory of source coding as our point of departure. As we will see, the relationship between computational learning and meta-complexity can be understood as a complexity-theoretic counterpart of the classical relationship between learning and universal coding. Our goal is to review several tools for establishing such connections and to explain how notions from meta-complexity fit into this framework. We also briefly discuss how this perspective relates to language modeling, one of the central paradigms of modern machine learning.
Starting from Shannon’s Information Theory
Shannon’s information theory [160 ] provided a precise mathematical framework for quantifying “information” and characterized what can and cannot be achieved in data compression and communication. Originally developed to address problems in communication engineering, the theory laid the foundations for the mathematical study of information and has profoundly influenced theoretical computer science.
One of the central results of Shannon’s theory, and the one most relevant to our discussion, is the noiseless source coding theorem. In the setting of this theorem, a message x x x is drawn from a fixed distribution D \mathcal{D} D over a finite message space X \mathcal{X} X , and D \mathcal{D} D is known to both the encoder and the decoder. The goal is to encode x x x as a short binary string from which x x x can be uniquely recovered. By fixing a canonical binary representation, we may assume without loss of generality that X = { 0 , 1 } n \mathcal{X} = \{0,1\}^{n} X = { 0 , 1 } n for some n n n .
Shannon’s construction begins by ordering the messages in Support ( D ) \operatorname{Support}(\mathcal{D}) Support ( D ) as x 1 , … , x m x_1,\ldots,x_m x 1 , … , x m so that p 1 ≥ p 2 ≥ ⋯ ≥ p m p_1 \ge p_2 \ge\cdots\ge p_m p 1 ≥ p 2 ≥ ⋯ ≥ p m , where p i ≜ D ( x i ) p_i \triangleq\mathcal{D}(x_i) p i ≜ D ( x i ) . For each i i i , let
ℓ i ≜ ⌈ log 1 p i ⌉ and P < i ≜ ∑ j < i p j . \ell_i \triangleq\left\lceil\log\frac{1}{p_i} \right\rceil\qquad\text{and} \qquad P_{<i} \triangleq\sum_{j<i} p_j. ℓ i ≜ ⌈ log p i 1 ⌉ and P < i ≜ j < i ∑ p j .
The encoder Enc \operatorname{Enc} Enc maps x i x_i x i to the first ℓ i \ell_i ℓ i bits after the binary point in the binary expansion of P < i P_{<i} P < i . One can verify that the original message is uniquely determined by its encoding; we omit the argument.18
By construction, the expected codeword length satisfies
E x ∼ D [ ∣ Enc ( x ) ∣ ] = ∑ x ∈ Support ( D ) D ( x ) ⌈ log 1 D ( x ) ⌉ < ∑ x ∈ Support ( D ) D ( x ) ( log 1 D ( x ) + 1 ) = H ( D ) + 1. \begin{aligned}
\mathop{\mathbb{E}}_{x\sim\mathcal{D}}[|\operatorname{Enc}(x)|]
= \sum_{x\in\operatorname{Support}(\mathcal{D})} \mathcal{D}(x) \left\lceil\log\frac{1}{\mathcal{D}(x)} \right\rceil\\
&< \sum_{x\in\operatorname{Support}(\mathcal{D})} \mathcal{D}(x) \left(\log\frac{1}{\mathcal{D}(x)} + 1\right)
= H(\mathcal{D}) + 1.
\end{aligned} E x ∼ D [ ∣ Enc ( x ) ∣ ] = x ∈ Support ( D ) ∑ D ( x ) ⌈ log D ( x ) 1 ⌉ < x ∈ Support ( D ) ∑ D ( x ) ( log D ( x ) 1 + 1 ) = H ( D ) + 1.
Notably, Shannon also established the converse, showing that entropy gives a lower bound on the expected codeword length of any reasonable coding. In particular, every uniquely decodable19 binary encoding C : Support ( D ) → { 0 , 1 } ∗ C:\operatorname{Support}(\mathcal{D})\to\{0,1\}^{*} C : Support ( D ) → { 0 , 1 } ∗ satisfies
E x ∼ D [ ∣ C ( x ) ∣ ] ≥ H ( D ) . \mathop{\mathbb{E}}_{x\sim\mathcal{D}}[|C(x)|] \ge H(\mathcal{D}). E x ∼ D [ ∣ C ( x ) ∣ ] ≥ H ( D ) .
In this sense, Shannon’s information theory solves the compression problem, provided that the source distribution is known to both the encoder and the decoder.
For data arising in the real world, however, the source distribution is rarely given explicitly. For instance, we encounter many different kinds of data in everyday life, including text, music, and images. To apply Shannon’s construction to all such data using a single encoder, we would first have to specify a distribution over the possible inputs. But can we identify a natural distribution that captures the diverse forms of data generated by human activity? Even in a much narrower setting, such as compressing an email written by a professor, the resulting code may differ substantially depending on whether we model the message as drawn from a distribution over all human-written text or from one restricted to academic writing. How, then, should we specify the underlying source distribution? Should a description of the distribution itself be included as part of the encoding?
Universal Coding and Kolmogorov Complexity as Its Ultimate Goal
The problem of compressing strings without knowing the underlying source distribution is known as universal coding and dates back to the early works [112 , 49 , 42 ] . For instance, Lempel–Ziv algorithms are prominent examples [184 , 185 ] . For every stationary ergodic source (roughly, a source whose statistical behaviour is stable over time and can be inferred from a single sufficiently long sample sequence), their amortized code length converges to the entropy rate without requiring an explicit description of the source. Such guarantees are source-universal but do not capture every simple individual sequence. For example, consider the infinite sequence obtained by concatenating the binary representations
0 , 1 , 10 , 11 , 100 , … 0, 1, 10, 11, 100, \ldots 0 , 1 , 10 , 11 , 100 , …
of the nonnegative integers. The sequence has a short generating program, but LZ78 does not asymptotically compress it.
Kolmogorov complexity and its time-bounded variants, which are central notions in meta-complexity, can be seen as the ultimate goal of universal coding. Recall that the Kolmogorov complexity K ( x ) K(x) K ( x ) of a string x x x is the length of the shortest program that outputs x x x and thus measures the length of its shortest algorithmic description without presupposing any source distribution. In this sense, K ( x ) K(x) K ( x ) represents the ideal compression length of x x x in the absence of computational constraints. Its time-bounded variant K t ( x ) K^{t}(x) K t ( x ) additionally requires the program to output x x x within t t t steps and thus provides the corresponding ideal when the decoding time is also constrained.
Universal Coding and Learning
We now relate universal coding to distribution learning. Both problems concern an unknown source distribution: universal coding seeks to compress its outputs without knowing the distribution in advance, whereas distribution learning uses samples to approximate it.
Learning ⇒ \Rightarrow ⇒ Universal Coding. In one direction, suppose that the unknown source distribution is D \mathcal{D} D over { 0 , 1 } ∗ \{0,1\}^{*} { 0 , 1 } ∗ , and that we have a distribution learner for a class containing D \mathcal{D} D .
Let us first consider the case in which the learning guarantee is measured in KL divergence. Given samples from D \mathcal{D} D , suppose that the learner outputs a distribution E \mathcal{E} E satisfying KL ( D ∥ E ) ≤ ϵ \operatorname{KL}(\mathcal{D}\Vert\mathcal{E}) \leq\epsilon KL ( D ∥ E ) ≤ ϵ . We can then use E \mathcal{E} E as the coding distribution in place of D \mathcal{D} D . A Shannon code based on E \mathcal{E} E assigns each string x x x a codeword of length at most log 1 E ( x ) + 1 \log\frac{1}{\mathcal{E}(x)}+1 log E ( x ) 1 + 1 . Ignoring this standard one-bit rounding overhead, the excess expected code length over the entropy of D \mathcal{D} D is exactly the KL divergence:
E x ∼ D [ log 1 E ( x ) ] − H ( D ) = KL ( D ∥ E ) ≤ ϵ . \mathop{\mathbb{E}}_{x\sim\mathcal{D}}\left[\log\frac{1}{\mathcal{E}(x)}\right]-H(\mathcal{D})=\operatorname{KL}(\mathcal{D}\Vert\mathcal{E})\leq\epsilon. E x ∼ D [ log E ( x ) 1 ] − H ( D ) = KL ( D ∥ E ) ≤ ϵ .
Thus, distribution learning in KL divergence immediately yields a code whose expected length is close to the optimal expected length for D \mathcal{D} D .
Now consider the case in which the learning guarantee is measured in total variation distance, as in Definition 2.7 . Suppose that, given samples from D \mathcal{D} D , the learner outputs a distribution E \mathcal{E} E satisfying Δ T V ( D , E ) ≤ ϵ \Delta_{\mathrm{TV}}(\mathcal{D},\mathcal{E})\leq\epsilon Δ TV ( D , E ) ≤ ϵ . Again, we would like to use E \mathcal{E} E in place of D \mathcal{D} D when constructing a Shannon code. However, closeness in total variation distance alone does not imply any bound on KL ( D ∥ E ) \operatorname{KL}(\mathcal{D}\Vert\mathcal{E}) KL ( D ∥ E ) , which is precisely the expected excess ideal code length incurred by using E \mathcal{E} E instead of D \mathcal{D} D . Indeed, the KL divergence can be infinite if E ( x ) = 0 \mathcal{E}(x)=0 E ( x ) = 0 for some x x x satisfying D ( x ) > 0 \mathcal{D}(x)>0 D ( x ) > 0 .
The following proposition provides a substitute for such a KL-divergence bound. Intuitively, it shows that, with high probability over x ∼ D x\sim\mathcal{D} x ∼ D , the ideal code length assigned by E \mathcal{E} E is not much larger than that under the true distribution D \mathcal{D} D . We will use it to derive two consequences: a bound on the expected length of a Shannon code and a comparison with Kolmogorov complexity.
Proposition 6.1. Let D \mathcal{D} D and E \mathcal{E} E be distributions over a finite set satisfying Δ T V ( D , E ) ≤ ϵ \Delta_{\mathrm{TV}}(\mathcal{D},\mathcal{E})\leq\epsilon Δ TV ( D , E ) ≤ ϵ . Then, for every δ ∈ ( 0 , 1 ] \delta\in(0,1] δ ∈ ( 0 , 1 ] ,
Pr x ∼ D [ log 1 E ( x ) ≤ log 1 D ( x ) + log δ − 1 ] ≥ 1 − δ − ϵ . \Pr_{x\sim\mathcal{D}}\left[\log\frac{1}{\mathcal{E}(x)}\leq\log\frac{1}{\mathcal{D}(x)}+\log\delta^{-1}\right]\geq1-\delta-\epsilon. x ∼ D Pr [ log E ( x ) 1 ≤ log D ( x ) 1 + log δ − 1 ] ≥ 1 − δ − ϵ .
Proof. Let
B ≜ { x : E ( x ) < δ D ( x ) } . B\triangleq\{x:\mathcal{E}(x)<\delta\mathcal{D}(x)\}. B ≜ { x : E ( x ) < δ D ( x )} .
By the definition of B B B , we have E ( B ) < δ D ( B ) ≤ δ \mathcal{E}(B)<\delta\mathcal{D}(B)\leq\delta E ( B ) < δ D ( B ) ≤ δ . Since total variation distance bounds the difference in probability assigned to any event,
D ( B ) ≤ E ( B ) + Δ T V ( D , E ) ≤ δ + ϵ . \mathcal{D}(B)\leq\mathcal{E}(B)+\Delta_{\mathrm{TV}}(\mathcal{D},\mathcal{E})\leq\delta+\epsilon. D ( B ) ≤ E ( B ) + Δ TV ( D , E ) ≤ δ + ϵ .
For every x ∈ B ‾ ∩ Support ( D ) x\in\overline{B}\cap\operatorname{Support}(\mathcal{D}) x ∈ B ∩ Support ( D ) , we have E ( x ) ≥ δ D ( x ) ( > 0 ) \mathcal{E}(x)\geq\delta\mathcal{D}(x)(>0) E ( x ) ≥ δ D ( x ) ( > 0 ) , which is equivalent to
log 1 E ( x ) ≤ log 1 D ( x ) + log δ − 1 . \log\frac{1}{\mathcal{E}(x)}\leq\log\frac{1}{\mathcal{D}(x)}+\log\delta^{-1}. log E ( x ) 1 ≤ log D ( x ) 1 + log δ − 1 .
This completes the proof of the proposition.
As a first consequence, we show that the expected length of a code based on E \mathcal{E} E is close to the entropy of D \mathcal{D} D . In constructing the code, we mix E \mathcal{E} E with the uniform distribution to avoid zero probabilities, which could otherwise make the KL divergence infinite.
Corollary 6.2. Let D \mathcal{D} D and E \mathcal{E} E be distributions over { 0 , 1 } n \{0,1\}^{n} { 0 , 1 } n satisfying Δ T V ( D , E ) ≤ ϵ \Delta_{\mathrm{TV}}(\mathcal{D},\mathcal{E})\leq\epsilon Δ TV ( D , E ) ≤ ϵ . Define
E ‾ ≜ 1 2 E + 1 2 u n . \overline{\mathcal{E}}\triangleq\frac{1}{2}\mathcal{E}+\frac{1}{2}u_n. E ≜ 2 1 E + 2 1 u n . Then,
E x ∼ D [ log 1 E ‾ ( x ) ] ≤ H ( D ) + ϵ n + O ( 1 ) , \mathop{\mathbb{E}}_{x\sim\mathcal{D}}\left[\log\frac{1}{\overline{\mathcal{E}}(x)}\right]\leq H(\mathcal{D})+\epsilon n+O(1), E x ∼ D [ log E ( x ) 1 ] ≤ H ( D ) + ϵ n + O ( 1 ) , where O ( 1 ) O(1) O ( 1 ) is a universal constant.
Proof. For each x ∈ Support ( D ) x \in\operatorname{Support}(\mathcal{D}) x ∈ Support ( D ) , let Z ( x ) ≜ log ( 1 / E ˉ ( x ) ) − log ( 1 / D ( x ) ) Z(x) \triangleq\log(1/\bar{\mathcal{E}}(x))-\log(1/\mathcal{D}(x)) Z ( x ) ≜ log ( 1/ E ˉ ( x )) − log ( 1/ D ( x )) and Z + ( x ) ≜ max { Z ( x ) , 0 } Z_{+}(x) \triangleq\max\{Z(x),0\} Z + ( x ) ≜ max { Z ( x ) , 0 } . Since E ˉ ( x ) ≥ 2 − n − 1 \bar{\mathcal{E}}(x) \ge2^{-n-1} E ˉ ( x ) ≥ 2 − n − 1 , we have Z ( x ) ≤ n + 1 Z(x) \le n+1 Z ( x ) ≤ n + 1 . Moreover, since E ˉ ( x ) ≥ E ( x ) / 2 \bar{\mathcal{E}}(x) \ge\mathcal{E}(x)/2 E ˉ ( x ) ≥ E ( x ) /2 , for every integer k ≥ 0 k \ge0 k ≥ 0 ,
Pr x ∼ D [ Z ( x ) > k + 1 ] ≤ Pr x ∼ D [ log 1 E ( x ) > log 1 D ( x ) + k ] ≤ 2 − k + ϵ . \Pr_{x\sim\mathcal{D}}[Z(x)>k+1]\le\Pr_{x\sim\mathcal{D}}\left[\log\frac{1}{\mathcal{E}(x)}>\log\frac{1}{\mathcal{D}(x)}+k\right]\le2^{-k}+\epsilon. x ∼ D Pr [ Z ( x ) > k + 1 ] ≤ x ∼ D Pr [ log E ( x ) 1 > log D ( x ) 1 + k ] ≤ 2 − k + ϵ .
where the last inequality follows from Proposition 6.1 with δ = 2 − k \delta=2^{-k} δ = 2 − k . Summing these tail bounds gives
E x ∼ D [ Z + ( x ) ] ≤ 1 + ∑ k = 0 n ( 2 − k + ϵ ) ≤ ϵ n + O ( 1 ) . \mathbb{E}_{x\sim\mathcal{D}}[Z_{+}(x)]\le1+\sum_{k=0}^{n}(2^{-k}+\epsilon)\le\epsilon n+O(1). E x ∼ D [ Z + ( x )] ≤ 1 + k = 0 ∑ n ( 2 − k + ϵ ) ≤ ϵ n + O ( 1 ) .
Since E x ∼ D [ log ( 1 / E ˉ ( x ) ) ] = H ( D ) + E x ∼ D [ Z ( x ) ] \mathbb{E}_{x\sim\mathcal{D}}[\log(1/\bar{\mathcal{E}}(x))]=H(\mathcal{D})+\mathbb{E}_{x\sim\mathcal{D}}[Z(x)] E x ∼ D [ log ( 1/ E ˉ ( x ))] = H ( D ) + E x ∼ D [ Z ( x )] , the result follows.
As a second consequence, we show that, with high probability, the ideal code length assigned by E \mathcal{E} E is close to the Kolmogorov complexity, i.e., its idealized description length.
Corollary 6.3. Let D \mathcal{D} D and E \mathcal{E} E be distributions over { 0 , 1 } n \{0,1\}^{n} { 0 , 1 } n satisfying Δ T V ( D , E ) ≤ ϵ \Delta_{\mathrm{TV}}(\mathcal{D},\mathcal{E})\le\epsilon Δ TV ( D , E ) ≤ ϵ . Then, for every δ ∈ ( 0 , 1 ] \delta\in(0,1] δ ∈ ( 0 , 1 ] ,
Pr x ∼ D [ log 1 E ( x ) ≤ K ( x ) + O ( log n + log δ − 1 ) ] ≥ 1 − δ − ϵ . \Pr_{x\sim\mathcal{D}}\left[\log\frac{1}{\mathcal{E}(x)}\le K(x)+O(\log n+\log\delta^{-1})\right]\ge1-\delta-\epsilon. x ∼ D Pr [ log E ( x ) 1 ≤ K ( x ) + O ( log n + log δ − 1 ) ] ≥ 1 − δ − ϵ .
Proof. For every s > 0 s>0 s > 0 ,
Pr x ∼ D [ log 1 D ( x ) > K ( x ) + s ] = ∑ x ∈ { 0 , 1 } n : D ( x ) < 2 − K ( x ) − s D ( x ) ≤ 2 − s ∑ x ∈ { 0 , 1 } n 2 − K ( x ) . \Pr_{x\sim\mathcal{D}}\left[\log\frac{1}{\mathcal{D}(x)}>K(x)+s\right]
=\sum_{\substack{x\in\{0,1\}^{n}:\\ \mathcal{D}(x)<2^{-K(x)-s}}}\mathcal{D}(x)
\le2^{-s}\sum_{x\in\{0,1\}^{n}}2^{-K(x)}. x ∼ D Pr [ log D ( x ) 1 > K ( x ) + s ] = x ∈ { 0 , 1 } n : D ( x ) < 2 − K ( x ) − s ∑ D ( x ) ≤ 2 − s x ∈ { 0 , 1 } n ∑ 2 − K ( x ) .
For each k ≥ 0 k\ge0 k ≥ 0 , by counting the number of programs of length k k k , there are at most 2 k 2^{k} 2 k strings of Kolmogorov complexity k k k . Moreover, for any string x x x of length n n n , K ( x ) ≤ n + O ( log n ) K(x)\le n+O(\log n) K ( x ) ≤ n + O ( log n ) . Therefore, the expression above is upper-bounded by
2 − s ⋅ ∑ k = 0 n + O ( log n ) ∑ x ∈ { 0 , 1 } n : K ( x ) = k 2 − k = 2 − s ⋅ ∑ k = 0 n + O ( log n ) O ( 1 ) = 2 − s ⋅ O ( n ) . 2^{-s}\cdot\sum_{k=0}^{n+O(\log n)}\sum_{\substack{x\in\{0,1\}^{n}:\\K(x)=k}}2^{-k}
=2^{-s}\cdot\sum_{k=0}^{n+O(\log n)}O(1)
=2^{-s}\cdot O(n). 2 − s ⋅ k = 0 ∑ n + O ( l o g n ) x ∈ { 0 , 1 } n : K ( x ) = k ∑ 2 − k = 2 − s ⋅ k = 0 ∑ n + O ( l o g n ) O ( 1 ) = 2 − s ⋅ O ( n ) .
Thus, by choosing s = O ( log n + log δ − 1 ) s=O(\log n+\log\delta^{-1}) s = O ( log n + log δ − 1 ) , we obtain log ( 1 / D ( x ) ) ≤ K ( x ) + O ( log n + log δ − 1 ) \log(1/\mathcal{D}(x))\le K(x)+O(\log n+\log\delta^{-1}) log ( 1/ D ( x )) ≤ K ( x ) + O ( log n + log δ − 1 ) except with probability at most δ / 2 \delta/2 δ /2 .
By Proposition 6.1 with parameter δ / 2 \delta/2 δ /2 , we also have
log 1 E ( x ) ≤ log 1 D ( x ) + log 2 δ \log\frac{1}{\mathcal{E}(x)}\le\log\frac{1}{\mathcal{D}(x)}+\log\frac{2}{\delta} log E ( x ) 1 ≤ log D ( x ) 1 + log δ 2
except with probability at most δ / 2 + ϵ \delta/2+\epsilon δ /2 + ϵ . Combining the two inequalities and taking a union bound proves the claim.
In particular, if E \mathcal{E} E admits a short description, then incorporating this description into the code yields, for most x ∼ D x\sim\mathcal{D} x ∼ D , an encoding of x x x whose length is close to optimal.
Universal Coding ⇒ \Rightarrow ⇒ Learning. Conversely, any code C : X → { 0 , 1 } ∗ C:\mathcal{X}\to\{0,1\}^{*} C : X → { 0 , 1 } ∗ for an unknown source distribution D \mathcal{D} D over X \mathcal{X} X , with code-length function c ( x ) ≜ ∣ C ( x ) ∣ c(x)\triangleq|C(x)| c ( x ) ≜ ∣ C ( x ) ∣ , naturally induces a distribution D c \mathcal{D}_c D c by normalizing 2 − c ( x ) 2^{-c(x)} 2 − c ( x ) :
D c ( x ) ≜ 2 − c ( x ) Z c , Z c ≜ ∑ y ∈ X 2 − c ( y ) . (5) \mathcal{D}_c(x)\triangleq\frac{2^{-c(x)}}{Z_c},\qquad Z_c\triangleq\sum_{y\in\mathcal{X}}2^{-c(y)}. \tag*{(5)} D c ( x ) ≜ Z c 2 − c ( x ) , Z c ≜ y ∈ X ∑ 2 − c ( y ) . (5)
This construction is natural since the ideal code length c ( x ) = − log D ( x ) c(x)=-\log\mathcal{D}(x) c ( x ) = − log D ( x ) , with the convention − log 0 = ∞ -\log0=\infty − log 0 = ∞ , yields D c = D \mathcal{D}_c=\mathcal{D} D c = D . It is therefore natural to ask how close D c \mathcal{D}_c D c is to the true distribution D \mathcal{D} D when c ( x ) c(x) c ( x ) only approximates the ideal code length.
The following proposition answers this question. It shows that the KL divergence from D \mathcal{D} D to D c \mathcal{D}_c D c is determined by the excess expected code length over the entropy of D \mathcal{D} D , together with the normalization term log Z c \log Z_c log Z c .
Proposition 6.4. Let D \mathcal{D} D be a distribution over X \mathcal{X} X , and let C : X → { 0 , 1 } ∗ C:\mathcal{X}\to\{0,1\}^{*} C : X → { 0 , 1 } ∗ be a code with code-length function c ( x ) ≜ ∣ C ( x ) ∣ c(x)\triangleq|C(x)| c ( x ) ≜ ∣ C ( x ) ∣ . Then
KL ( D ∥ D c ) = ( E x ∼ D [ c ( x ) ] − H ( D ) ) + log Z c . \operatorname{KL}(\mathcal{D}\Vert\mathcal{D}_c)=\left(\mathop{\mathbb{E}}_{x\sim\mathcal{D}}[c(x)]-H(\mathcal{D})\right)+\log Z_c. KL ( D ∥ D c ) = ( E x ∼ D [ c ( x )] − H ( D ) ) + log Z c . Proof. By the definition of D c \mathcal{D}_c D c , for every x ∈ Support ( D ) x\in\operatorname{Support}(\mathcal{D}) x ∈ Support ( D ) ,
log 1 D c ( x ) = log Z c 2 − c ( x ) = c ( x ) + log Z c . \log\frac{1}{\mathcal{D}_c(x)}=\log\frac{Z_c}{2^{-c(x)}}=c(x)+\log Z_c. log D c ( x ) 1 = log 2 − c ( x ) Z c = c ( x ) + log Z c . Therefore,
KL ( D ∥ D c ) = E x ∼ D [ log D ( x ) D c ( x ) ] = E x ∼ D [ log 1 D c ( x ) ] − H ( D ) = E x ∼ D [ c ( x ) ] − H ( D ) + log Z c . \begin{aligned}
\operatorname{KL}(\mathcal{D}\Vert\mathcal{D}_c)
&=\mathop{\mathbb{E}}_{x\sim\mathcal{D}}\left[\log\frac{\mathcal{D}(x)}{\mathcal{D}_c(x)}\right]\\
&=\mathop{\mathbb{E}}_{x\sim\mathcal{D}}\left[\log\frac{1}{\mathcal{D}_c(x)}\right]-H(\mathcal{D})\\
&=\mathop{\mathbb{E}}_{x\sim\mathcal{D}}[c(x)]-H(\mathcal{D})+\log Z_c.
\end{aligned} KL ( D ∥ D c ) = E x ∼ D [ log D c ( x ) D ( x ) ] = E x ∼ D [ log D c ( x ) 1 ] − H ( D ) = E x ∼ D [ c ( x )] − H ( D ) + log Z c . Consequently, if E x ∼ D [ ∣ C ( x ) ∣ ] ≤ H ( D ) + ϵ \mathop{\mathbb{E}}_{x\sim\mathcal{D}}[|C(x)|]\le H(\mathcal{D})+\epsilon E x ∼ D [ ∣ C ( x ) ∣ ] ≤ H ( D ) + ϵ , then
KL ( D ∥ D c ) ≤ ϵ + log Z c . \operatorname{KL}(\mathcal{D}\Vert\mathcal{D}_c)\le\epsilon+\log Z_c. KL ( D ∥ D c ) ≤ ϵ + log Z c . Moreover, if C C C is a prefix-free code on X \mathcal{X} X , meaning that no codeword is a prefix of another, then Kraft’s inequality gives
Z c = ∑ y ∈ X 2 − ∣ C ( y ) ∣ ≤ 1. Z_c=\sum_{y\in\mathcal{X}}2^{-|C(y)|}\le1. Z c = y ∈ X ∑ 2 − ∣ C ( y ) ∣ ≤ 1. Thus, log Z c ≤ 0 \log Z_c\le0 log Z c ≤ 0 , and hence
KL ( D ∥ D c ) ≤ ϵ . \operatorname{KL}(\mathcal{D}\Vert\mathcal{D}_c)\le\epsilon. KL ( D ∥ D c ) ≤ ϵ . Applying Pinsker’s inequality, we further obtain the total variation bound
Δ T V ( D , D c ) ≤ O ( ϵ ) . \Delta_{\mathrm{TV}}(\mathcal{D},\mathcal{D}_c)\le O(\sqrt{\epsilon}). Δ TV ( D , D c ) ≤ O ( ϵ ) .
Although the preceding proposition gives a direct transformation from universal coding to distribution learning, its hypothesis may appear somewhat stringent. The entropy H ( D ) H(\mathcal{D}) H ( D ) is the minimum expected code length attainable when the source distribution D \mathcal{D} D is known, whereas a universal code must be constructed without knowledge of D \mathcal{D} D . It is therefore natural to ask what can be concluded when c ( ⋅ ) c(\cdot) c ( ⋅ ) instead approximates the Kolmogorov complexity K ( ⋅ ) K(\cdot) K ( ⋅ ) , viewed as an idealized universal code length.
The following proposition answers this question. It gives a similar bound at the cost of an additive term ∣ D ∣ |\mathcal{D}| ∣ D ∣ , where ∣ D ∣ |\mathcal{D}| ∣ D ∣ denotes the length of the shortest description of a probabilistic program that samples exactly from D \mathcal{D} D (with no restriction on its running time).
Proposition 6.5. Let D \mathcal{D} D be a distribution over a finite set X \mathcal{X} X , and let ∣ D ∣ |\mathcal{D}| ∣ D ∣ denote the length of the shortest description of a probabilistic program that samples exactly from D \mathcal{D} D . Let C : X → { 0 , 1 } ∗ C:\mathcal{X}\to\{0,1\}^{*} C : X → { 0 , 1 } ∗ be a code, and let c ( x ) ≜ ∣ C ( x ) ∣ c(x)\triangleq|C(x)| c ( x ) ≜ ∣ C ( x ) ∣ . Then
KL ( D ∥ D c ) ≤ E x ∼ D [ c ( x ) − K ( x ) ] + ∣ D ∣ + log Z c + O ( 1 ) . \operatorname{KL}(\mathcal{D}\Vert\mathcal{D}_c)\leq\mathbb{E}_{x\sim\mathcal{D}}[c(x)-K(x)]+|\mathcal{D}|+\log Z_c+O(1). KL ( D ∥ D c ) ≤ E x ∼ D [ c ( x ) − K ( x )] + ∣ D ∣ + log Z c + O ( 1 ) .
Proof. By the coding theorem,
K ( x ) ≤ ⌈ log 1 D ( x ) ⌉ + ∣ D ∣ + O ( 1 ) K(x)\leq\left\lceil\log\frac{1}{\mathcal{D}(x)}\right\rceil+|\mathcal{D}|+O(1) K ( x ) ≤ ⌈ log D ( x ) 1 ⌉ + ∣ D ∣ + O ( 1 )
for every x ∈ Support ( D ) x\in\operatorname{Support}(\mathcal{D}) x ∈ Support ( D ) . Therefore,
E x ∼ D [ K ( x ) ] ≤ H ( D ) + ∣ D ∣ + O ( 1 ) . \mathbb{E}_{x\sim\mathcal{D}}[K(x)]\leq H(\mathcal{D})+|\mathcal{D}|+O(1). E x ∼ D [ K ( x )] ≤ H ( D ) + ∣ D ∣ + O ( 1 ) .
From Proposition 6.4 , we obtain
KL ( D ∥ D c ) = E x ∼ D [ c ( x ) ] − H ( D ) + log Z c = E x ∼ D [ c ( x ) − K ( x ) ] + E x ∼ D [ K ( x ) ] − H ( D ) + log Z c ≤ E x ∼ D [ c ( x ) − K ( x ) ] + ∣ D ∣ + log Z c + O ( 1 ) . \begin{aligned}
\operatorname{KL}(\mathcal{D}\Vert\mathcal{D}_c)
&=\mathbb{E}_{x\sim\mathcal{D}}[c(x)]-H(\mathcal{D})+\log Z_c\\
&=\mathbb{E}_{x\sim\mathcal{D}}[c(x)-K(x)]+\mathbb{E}_{x\sim\mathcal{D}}[K(x)]-H(\mathcal{D})+\log Z_c\\
&\leq\mathbb{E}_{x\sim\mathcal{D}}[c(x)-K(x)]+|\mathcal{D}|+\log Z_c+O(1).
\end{aligned} KL ( D ∥ D c ) = E x ∼ D [ c ( x )] − H ( D ) + log Z c = E x ∼ D [ c ( x ) − K ( x )] + E x ∼ D [ K ( x )] − H ( D ) + log Z c ≤ E x ∼ D [ c ( x ) − K ( x )] + ∣ D ∣ + log Z c + O ( 1 ) .
Again, if C C C is prefix-free and E x ∼ D [ c ( x ) − K ( x ) ] ≤ ϵ \mathbb{E}_{x\sim\mathcal{D}}[c(x)-K(x)]\leq\epsilon E x ∼ D [ c ( x ) − K ( x )] ≤ ϵ , then
KL ( D ∥ D c ) ≤ ∣ D ∣ + ϵ + O ( 1 ) . \operatorname{KL}(\mathcal{D}\Vert\mathcal{D}_c)\leq|\mathcal{D}|+\epsilon+O(1). KL ( D ∥ D c ) ≤ ∣ D ∣ + ϵ + O ( 1 ) .
However, since ∣ D ∣ ≥ 1 |\mathcal{D}|\geq1 ∣ D ∣ ≥ 1 this bound does not yield a small total variation distance via Pinsker’s inequality.
One might hope to make the contribution of ∣ D ∣ |\mathcal{D}| ∣ D ∣ negligible so that Pinsker’s inequality yields a small total variation distance. This can be achieved by compressing a batch of independent samples and thereby amortizing ∣ D ∣ |\mathcal{D}| ∣ D ∣ over the batch. Suppose that a prefix-free code C m : X m → { 0 , 1 } ∗ C_m:\mathcal{X}^m\to\{0,1\}^{*} C m : X m → { 0 , 1 } ∗ satisfies
E x ˉ ∼ D m [ ∣ C m ( x ˉ ) ∣ − K ( x ˉ ) ] ≤ ϵ m , \mathbb{E}_{\bar{x}\sim\mathcal{D}^m}[|C_m(\bar{x})|-K(\bar{x})]\leq\epsilon_m, E x ˉ ∼ D m [ ∣ C m ( x ˉ ) ∣ − K ( x ˉ )] ≤ ϵ m ,
and let D c m \mathcal{D}_{c_m} D c m be the distribution induced by the length function c m ( x ˉ ) ≜ ∣ C m ( x ˉ ) ∣ c_m(\bar{x})\triangleq|C_m(\bar{x})| c m ( x ˉ ) ≜ ∣ C m ( x ˉ ) ∣ .
An exact sampler for D m \mathcal{D}^m D m simply runs an exact sampler for D \mathcal{D} D independently m m m times. It therefore has description length
∣ D m ∣ ≤ ∣ D ∣ + O ( log m ) . |\mathcal{D}^m|\leq|\mathcal{D}|+O(\log m). ∣ D m ∣ ≤ ∣ D ∣ + O ( log m ) .
Consequently, Proposition 6.5 gives
KL ( D m ∥ D c m ) ≤ ∣ D ∣ + ϵ m + O ( log m ) . \operatorname{KL}(\mathcal{D}^m\Vert\mathcal{D}_{c_m})\leq|\mathcal{D}|+\epsilon_m+O(\log m). KL ( D m ∥ D c m ) ≤ ∣ D ∣ + ϵ m + O ( log m ) .
To turn this approximation of D m \mathcal{D}^{m} D m into an approximation of D \mathcal{D} D , choose I I I uniformly at random from [ m ] [m] [ m ] , draw X < I ∼ D I − 1 X_{<I} \sim\mathcal{D}^{I-1} X < I ∼ D I − 1 , and let D ^ \widehat{\mathcal{D}} D be the conditional distribution of the I I I -th coordinate under D C m \mathcal{D}_{C_m} D C m , conditioned on I − 1 I-1 I − 1 independent samples from D \mathcal{D} D .
By the chain rule for KL divergence (Lemma 2.4 ),
E I , X < I [ KL ( D ∥ D ^ ) ] ≤ ∣ D ∣ + ϵ m + O ( log m ) m . \mathbb{E}_{I,X_{<I}}\left[\operatorname{KL}(\mathcal{D}\Vert\widehat{\mathcal{D}})\right] \le\frac{|\mathcal{D}|+\epsilon_m+O(\log m)}{m}. E I , X < I [ KL ( D ∥ D ) ] ≤ m ∣ D ∣ + ϵ m + O ( log m ) .
Here, the expectation is taken over both the uniformly random index I I I and the prefix X < I ∼ D I − 1 X_{<I} \sim\mathcal{D}^{I-1} X < I ∼ D I − 1 . Thus, provided that ϵ m = o ( m ) \epsilon_m=o(m) ϵ m = o ( m ) , the expected KL divergence tends to zero as m → ∞ m \to\infty m → ∞ . Pinsker’s inequality and Jensen’s inequality then imply
E I , X < I [ Δ T V ( D , D ^ ) ] ≤ 1 2 E I , X < I [ KL ( D ∥ D ^ ) ] ≤ 1 2 ⋅ ∣ D ∣ + ϵ m + O ( log m ) m → m → ∞ 0. \begin{aligned}
\mathbb{E}_{I,X_{<I}}\left[\Delta_{\mathrm{TV}}(\mathcal{D},\widehat{\mathcal{D}})\right] \le\sqrt{\frac{1}{2}\mathbb{E}_{I,X_{<I}}\left[\operatorname{KL}(\mathcal{D}\Vert\widehat{\mathcal{D}})\right]} \\
&\le\sqrt{\frac{1}{2}\cdot\frac{|\mathcal{D}|+\epsilon_m+O(\log m)}{m}} \xrightarrow[m\to\infty]{} 0.
\end{aligned} E I , X < I [ Δ TV ( D , D ) ] ≤ 2 1 E I , X < I [ KL ( D ∥ D ) ] ≤ 2 1 ⋅ m ∣ D ∣ + ϵ m + O ( log m ) m → ∞ 0.
Conclusion. Taken together, these elementary arguments give information-theoretic transformations in both directions. A distribution learner yields a code whose expected length is close to the source entropy, while a code approximating Kolmogorov complexity can be converted into a learner for distributions having short sampler descriptions. These transformations do not, however, address computational efficiency. Kolmogorov complexity is uncomputable, and evaluating or sampling from the conditional distribution D ^ \widehat{\mathcal{D}} D need not be efficient. This leads to the corresponding complexity-theoretic question: for efficiently samplable distributions, how is efficient learning related to efficient compression near time-bounded Kolmogorov complexity? Efficient learning belongs to computational learning theory, whereas efficiently approximating time-bounded Kolmogorov complexity is a central problem in meta-complexity.
Computational Learning and Meta-Complexity
As we saw in § 6.1 , distribution learning is closely related to compression, particularly universal coding, at the information-theoretic level. The relationship between efficient distribution learning and meta-complexity can be viewed as a complexity-theoretic counterpart of this connection. The natural question is how much of this connection survives when the transformations between learning and compression must be efficient and code lengths are measured against polynomial-time-bounded Kolmogorov complexity.
More specifically, we consider both directions of this question. Can an efficient learner be converted into an efficient encoder that produces short time-bounded descriptions of samples from the target distribution? Conversely, can the ability to find short time-bounded descriptions be converted into an efficient learner? The first direction requires turning an efficiently samplable distribution into a code, whereas the reverse direction requires turning description lengths into a probability distribution that can be efficiently sampled from and, in some settings, conditioned. The purpose of this section is to survey how these two transformations are connected to meta-complexity.
For simplicity, we informally use K p o l y K^{\mathrm{poly}} K poly to denote K t K^{t} K t for an unspecified polynomial time bound t t t , and use r K p o l y rK^{\mathrm{poly}} r K poly and q p o l y q^{\mathrm{poly}} q poly analogously. We leave the particular polynomials implicit and do not track polynomial overheads in the time bounds.
Learning to Compression via Arithmetic Coding
In the learning-to-compression transformation from § 6.1.2 , the learner produces a hypothesis distribution E \mathcal{E} E . Applying Shannon coding to the smoothed distribution E ‾ \overline{\mathcal{E}} E from Corollary 6.2 yields an expected description length close to the entropy of the source. This argument, however, is information-theoretic. The Shannon code described in § 6.1 first orders all messages and then encodes each message using the cumulative probabilities of the preceding messages. For the message space { 0 , 1 } n \{0,1\}^{n} { 0 , 1 } n , carrying out this construction directly may require examining exponentially many strings. Moreover, a distribution learner may output only a sampler for E \mathcal{E} E , rather than an algorithm that evaluates E ( x ) \mathcal{E}(x) E ( x ) . Given a sampling circuit for E \mathcal{E} E , computing E ( x ) \mathcal{E}(x) E ( x ) amounts to counting the random seeds on which the circuit outputs x x x , and a brute-force computation may take exponential time. Thus, the information-theoretic argument alone does not yield a polynomial-time encoder and decoder. Indeed, this computational gap is inherent for general efficiently samplable sources: under the plausible assumption that SZK ≠ BPP \operatorname{SZK} \ne\operatorname{BPP} SZK = BPP , some such sources cannot be compressed close to their entropy by any polynomial-time encoder [168 ] .
One way to avoid this global enumeration is to require the learner to output a next-bit predictor , rather than merely a sampler, and then apply arithmetic coding . For a distribution D \mathcal{D} D over { 0 , 1 } n \{0,1\}^{n} { 0 , 1 } n , write
D ( b ∣ x < i ) ≔ Pr X ∼ D [ X i = b ∣ X < i = x < i ] . \mathcal{D}(b \mid x_{<i}) \coloneqq\Pr_{X \sim\mathcal{D}}[X_i=b \mid X_{<i}=x_{<i}]. D ( b ∣ x < i ) : = X ∼ D Pr [ X i = b ∣ X < i = x < i ] .
A next-bit predictor approximates these conditional probabilities to inverse-polynomial additive accuracy. This requirement is a quantitative strengthening of Yao’s next-bit prediction criterion, which asks only for a non-negligible advantage over random guessing in predicting the next bit at a uniformly random position from the preceding prefix (see § 5.1.1 ). Given a next-bit predictor satisfying this stronger quantitative guarantee, arithmetic coding accesses the learned distribution one bit at a time and constructs the desired encoder and decoder without enumerating its support.
We briefly review how arithmetic coding works. At a high level, it reconstructs the cumulative-probability interval associated with a message using only next-bit conditional probabilities. The procedure can be viewed as repeatedly zooming in on the probability interval [ 0 , 1 ) [0,1) [ 0 , 1 ) . Initially, the encoder sets s = 0 s=0 s = 0 and t = 1 t=1 t = 1 , so that the current interval is [ s , t ) = [ 0 , 1 ) [s,t)=[0,1) [ s , t ) = [ 0 , 1 ) . After reading a prefix x < i x_{<i} x < i , it computes the splitting point
u ≔ s + ( t − s ) D ( 0 ∣ x < i ) . u \coloneqq s+(t-s)\mathcal{D}(0 \mid x_{<i}). u : = s + ( t − s ) D ( 0 ∣ x < i ) .
The encoder then reads the next bit x i x_i x i . If x i = 0 x_i=0 x i = 0 , it updates t ← u t \leftarrow u t ← u and retains the interval [ s , u ) [s,u) [ s , u ) . If x i = 1 x_i=1 x i = 1 , it updates s ← u s \leftarrow u s ← u and retains the interval [ u , t ) [u,t) [ u , t ) . In either case, the length of the current interval is multiplied by D ( x i ∣ x < i ) \mathcal{D}(x_i \mid x_{<i}) D ( x i ∣ x < i ) . Consequently, after reading the last bit, the retained interval has length
∏ i = 1 n D ( x i ∣ x < i ) = D ( x ) . \prod_{i=1}^{n}\mathcal{D}(x_i \mid x_{<i})=\mathcal{D}(x). i = 1 ∏ n D ( x i ∣ x < i ) = D ( x ) .
The encoder then chooses a binary prefix whose corresponding dyadic interval is contained in the final interval. Such a prefix can be chosen to have length
log 1 D ( x ) + O ( 1 ) . \log\frac{1}{\mathcal{D}(x)}+O(1). log D ( x ) 1 + O ( 1 ) .
The decoder reverses this procedure. Given the codeword and access to the same next-bit predictor, it interprets the codeword as specifying a dyadic interval. At each step, it partitions the current interval according to the predicted conditional probability and determines which of the two resulting subintervals contains the dyadic interval, thereby recovering the next bit.
Thus, encoding and decoding require only the n n n conditional probabilities along the path determined by x x x , rather than an enumeration of the entire support. They can therefore be performed in polynomial time whenever the next-bit predictor is efficient. Moreover, decoding remains correct as long as the encoder and decoder obtain the same conditional probabilities on every query; the accuracy of these probabilities affects only the resulting code length.
If the next-bit predictor is randomized, its random coins must be fixed in advance and shared by the encoder and decoder so that they obtain identical answers to the same queries. Thus, if the learner outputs the hypothesis distribution E \mathcal{E} E in the form of a randomized next-bit predictor, then, given shared access to this predictor, the construction yields a p K p o l y \mathrm{pK}^{\mathrm{poly}} pK poly -type compressor (namely, the resulting program may depend on the shared random string) whose description length is close to log ( 1 / E ( x ) ) \log(1/\mathcal{E}(x)) log ( 1/ E ( x )) , up to the loss incurred by approximating the conditional probabilities.
One may ask how much stronger it is to require a next-bit predictor rather than merely a sampler. In general, there is a gap if AIOWFs exist: if G z G_z G z is an AIPRG constructed from an AIOWF and U \mathcal{U} U is uniform, then ( G z ( U ) , U ) (G_z(\mathcal{U}),\mathcal{U}) ( G z ( U ) , U ) is efficiently samplable but admits no efficient next-bit predictor. Conversely, if AIOWFs do not exist (as is implied by efficient distribution learning for P/poly-samplable distributions; see Lemma 4.8), the distributional-inversion argument of Impagliazzo and Luby [95 ] can be used to construct an efficient next-bit predictor from an explicit description of any efficient sampler. Essentially the same argument appears in our discussion of white-box learning in § 4.5.2 .
Application: A Coding Theorem for r K p o l y \mathrm{rK}^{\mathrm{poly}} rK poly . The arithmetic-coding construction above has an application in meta-complexity: a coding theorem for randomized time-bounded Kolmogorov complexity. Recall that r K p o l y ( x ) \mathrm{rK}^{\mathrm{poly}}(x) rK poly ( x ) is the minimum length of a randomized program that outputs x x x in polynomial time with probability at least 2 / 3 2/3 2/3 . Although this is a natural way to incorporate randomness into time-bounded Kolmogorov complexity, no optimal coding theorem is known for r K p o l y \mathrm{rK}^{\mathrm{poly}} rK poly over all efficiently samplable distributions, in contrast to p K p o l y \mathrm{pK}^{\mathrm{poly}} pK poly . Hirahara, Lu, and Nanashima [79 ] showed that every next-bits-predictable distribution (i.e., every distribution with a randomized next-bit predictor) admits an efficient coding theorem for r K p o l y \mathrm{rK}^{\mathrm{poly}} rK poly , with arithmetic coding as a central ingredient.
The main obstacle to obtaining r K p o l y \mathrm{rK}^{\mathrm{poly}} rK poly -type compression is ensuring that the encoder and decoder reconstruct exactly the same arithmetic-coding intervals. In the rK setting, however, they cannot share random coins, because the encoder must fix the description before the decoder’s random coins are drawn. Independent executions of the randomized next-bit predictor may produce slightly different estimates of the same conditional probability, and even a small discrepancy can lead the encoder and decoder to use different interval boundaries, causing decoding to fail. To prevent this, the construction uses the “add noise and round” technique of Goldberg and Sipser [64 ] and Trevisan, Vadhan, and Zuckerman [168 ] , which adds a small random shift to each estimate and rounds the result to a sufficiently coarse grid. With high probability over the shift, independent accurate executions of the predictor produce the same rounded estimates. Thus, only a logarithmic-length description of the shift, rather than the entire randomness of the predictor, needs to be included in the code. Consequently, if D = { D n } \mathcal{D} = \{\mathcal{D}_n\} D = { D n } is next-bits predictable, then, for every constant ε > 0 \varepsilon> 0 ε > 0 , there is a polynomial time bound for which
r K p o l y ( x ) ≤ ( 1 + ε ) log 1 D n ( x ) + O ( log n ) \mathrm{rK}^{\mathrm{poly}}(x) \leq(1+\varepsilon)\log\frac{1}{\mathcal{D}_n(x)} + O(\log n) rK poly ( x ) ≤ ( 1 + ε ) log D n ( x ) 1 + O ( log n )
for every x ∈ Support ( D n ) x \in\operatorname{Support}(\mathcal{D}_n) x ∈ Support ( D n ) .
Here, the factor 1 + ε 1 + \varepsilon 1 + ε arises from next bits having very small conditional probabilities. For such a bit, the rounding error may be too large relative to its true probability, so the construction records the bit and its position explicitly rather than encoding it through the estimated probability. The cost of these explicit records accounts for the multiplicative loss in the worst-case bound. For a sample x ∼ D n x \sim\mathcal{D}_n x ∼ D n , however, such low-probability next bits occur only with correspondingly small probability. Their contribution can therefore be absorbed into the additive overhead on average, removing the multiplicative 1 + ε 1 + \varepsilon 1 + ε loss. Consequently, for every polynomial q q q , there exists a polynomial p p p such that
Pr x ∼ D n [ rK p ( n ) ( x ) ≤ log 1 D n ( x ) + log p ( n ) ] ≥ 1 − 1 q ( n ) . \Pr_{x \sim\mathcal{D}_n}\left[\operatorname{rK}^{p(n)}(x) \le\log\frac{1}{\mathcal{D}_n(x)} + \log p(n)\right] \ge1 - \frac{1}{q(n)}. x ∼ D n Pr [ rK p ( n ) ( x ) ≤ log D n ( x ) 1 + log p ( n ) ] ≥ 1 − q ( n ) 1 .
The construction also gives efficient encoding and decoding algorithms whose expected encoding length is at most H ( D n ) + O ( log n ) \mathrm{H}(\mathcal{D}_n) + O(\log n) H ( D n ) + O ( log n ) .
Combining this average-case theorem with the distributional-inversion argument mentioned above yields an average-case coding theorem for rK p o l y \operatorname{rK}^{\mathrm{poly}} rK poly over arbitrary efficiently samplable distributions under the nonexistence of one-way functions. Such coding theorems relate rK p o l y ( x ) \operatorname{rK}^{\mathrm{poly}}(x) rK poly ( x ) to both the statistical information content log ( 1 / D n ( x ) ) \log(1/\mathcal{D}_n(x)) log ( 1/ D n ( x )) and the unbounded Kolmogorov complexity K ( x ) \mathrm{K}(x) K ( x ) . This connection allows characterizations of one-way functions previously formulated using pK p o l y \operatorname{pK}^{\mathrm{poly}} pK poly to be extended to rK p o l y \operatorname{rK}^{\mathrm{poly}} rK poly .
Compression to Learning over Polynomially Many Messages
We now turn to the reverse direction: transforming an efficient compressor, ideally one whose code lengths approximate time-bounded Kolmogorov complexity, into an efficient learner. Recall that in § 6.1.2 , any code-length function c c c was converted into a distribution D c \mathcal{D}_c D c whose probability mass at each string x x x is proportional to 2 − c ( x ) 2^{-c(x)} 2 − c ( x ) .
Observe that the KL-divergence bound in Proposition 6.5 uses no particular property of K ( ⋅ ) \mathrm{K}(\cdot) K ( ⋅ ) beyond its coding theorem: for a source distribution D \mathcal{D} D ,
K ( x ) ≲ log 1 D ( x ) . \mathrm{K}(x) \lesssim\log\frac{1}{\mathcal{D}(x)}. K ( x ) ≲ log D ( x ) 1 .
Consequently, the same argument applies when c ( ⋅ ) c(\cdot) c ( ⋅ ) approximates a complexity measure other than time-bounded Kolmogorov complexity, provided that the measure satisfies an analogous coding theorem for the source distributions under consideration. In particular, when D \mathcal{D} D is efficiently samplable and c ( x ) ≈ pK p o l y ( x ) c(x) \approx\operatorname{pK}^{\mathrm{poly}}(x) c ( x ) ≈ pK poly ( x ) , the coding theorem for pK p o l y \operatorname{pK}^{\mathrm{poly}} pK poly yields the same KL-divergence bound for the induced distribution D c \mathcal{D}_c D c . Thus, if we disregard the efficiency of constructing and sampling from D c \mathcal{D}_c D c , a compressor approximating pK p o l y \operatorname{pK}^{\mathrm{poly}} pK poly already gives an information-theoretic transformation into a distribution learner for efficiently samplable distributions. The remaining question is whether this transformation itself can be implemented efficiently.
From a complexity-theoretic perspective, the immediate obstacle is efficient sampling. Even if each value c ( u ) c(u) c ( u ) can be evaluated efficiently, computing the normalization constant and sampling from D c \mathcal{D}_c D c may require enumerating exponentially many possible values of u u u . Indeed, overcoming this sampling problem is one of the central obstacles to deriving efficient learners from meta-complexity assumptions.
One simple way to set aside this obstacle is to consider the case in which each outcome has logarithmic length, so that the sample space has polynomial size. In this case, both the normalization constant and a sampler for D c \mathcal{D}_c D c can be computed by direct enumeration. We therefore begin with this setting. Taken by itself, however, this setting is not particularly interesting from the perspective of distribution learning, since an arbitrary distribution over a polynomial-size domain can already be learned efficiently by estimating the probability of every possible outcome from samples.
Nevertheless, generating an output from a polynomial-size alphabet becomes a nontrivial and well-motivated learning problem in the conditional setting. Suppose that the learner receives i.i.d. samples from a joint distribution D \mathcal{D} D over pairs ( X , Y ) (X,Y) ( X , Y ) , where X X X is an observed input or context and Y Y Y is the output to be predicted. We allow X X X to have length n n n , whereas Y Y Y has length O ( log n ) O(\log n) O ( log n ) , so its range Y \mathcal{Y} Y has polynomial size. This setting is well motivated. Rather than generating an entire pair consisting of an image and its label, we may wish to estimate the probability of each possible label for a given image. Similarly, we may wish to generate an answer conditioned on a given question, rather than generating a pair consisting of a question and an answer. In addition, an output of arbitrary length can be divided into logarithmic-length blocks and generated sequentially. We return to this idea in § 6.2.3 .
Accordingly, in the remainder of this subsection, we focus on the following conditional learning task. Given i.i.d. samples from D \mathcal{D} D and a new input x x x , the learner aims to construct a hypothesis distribution approximating D ( ⋅ ∣ x ) \mathcal{D}(\cdot\mid x) D ( ⋅ ∣ x ) , where
D ( y ∣ x ) ≜ Pr ( X , Y ) ∼ D [ Y = y ∣ X = x ] . \mathcal{D}(y \mid x) \triangleq\Pr_{(X,Y)\sim\mathcal{D}}[Y=y \mid X=x]. D ( y ∣ x ) ≜ ( X , Y ) ∼ D Pr [ Y = y ∣ X = x ] .
Since the range of X X X may be exponentially large, this task does not reduce to estimating the probability of every pair ( x , y ) (x,y) ( x , y ) . By contrast, since Y \mathcal{Y} Y has polynomial size, for any fixed x x x , once a weight can be evaluated efficiently for every y ∈ Y y \in\mathcal{Y} y ∈ Y , the learner can normalize these weights and sample from them by direct enumeration. The remaining question is which description length should be used to define these conditional weights. Below, we discuss two natural candidates.
The first is the conditional description length c ( y ∣ x ) c(y \mid x) c ( y ∣ x ) , where x x x is treated as auxiliary input available to both the encoder and the decoder. This gives the hypothesis distribution
D ^ c c o n d ( y ∣ x ) ≜ 2 − c ( y ∣ x ) ∑ z ∈ Y 2 − c ( z ∣ x ) . \widehat{\mathcal{D}}^{\mathrm{cond}}_c(y \mid x) \triangleq\frac{2^{-c(y\mid x)}}{\sum_{z\in\mathcal{Y}}2^{-c(z\mid x)}}. D c cond ( y ∣ x ) ≜ ∑ z ∈ Y 2 − c ( z ∣ x ) 2 − c ( y ∣ x ) .
This construction requires access to a good conditional compressor, which can be substantially more demanding than unconditional compression. Even in the idealized setting, it is currently unclear whether efficient computation of K p o l y ( ⋅ ) K^{\mathrm{poly}}(\cdot) K poly ( ⋅ ) implies efficient computation of K p o l y ( ⋅ ∣ ⋅ ) K^{\mathrm{poly}}(\cdot\mid\cdot) K poly ( ⋅ ∣ ⋅ ) , whereas the converse is immediate by taking the auxiliary input to be the empty string. Thus, even given an efficient unconditional compressor that closely approximates K p o l y ( ⋅ ) K^{\mathrm{poly}}(\cdot) K poly ( ⋅ ) , this construction itself does not yield an efficiently computable conditional hypothesis distribution.
The second candidate requires only an unconditional description-length measure. It uses the increase in description length caused by appending y y y to x x x :
D ^ c i n c ( y ∣ x ) ≜ 2 − ( c ( x y ) − c ( x ) ) ∑ z ∈ Y 2 − ( c ( x z ) − c ( x ) ) = 2 − c ( x y ) ∑ z ∈ Y 2 − c ( x z ) . \widehat{\mathcal{D}}^{\mathrm{inc}}_c(y \mid x) \triangleq\frac{2^{-(c(xy)-c(x))}}{\sum_{z\in\mathcal{Y}}2^{-(c(xz)-c(x))}} = \frac{2^{-c(xy)}}{\sum_{z\in\mathcal{Y}}2^{-c(xz)}}. D c inc ( y ∣ x ) ≜ ∑ z ∈ Y 2 − ( c ( x z ) − c ( x )) 2 − ( c ( x y ) − c ( x )) = ∑ z ∈ Y 2 − c ( x z ) 2 − c ( x y ) .
This construction has a direct interpretation in terms of the distribution D c \mathcal{D}_c D c defined in Equation (5) :
D ^ c i n c ( y ∣ x ) = D c ( y ∣ x ) . \widehat{\mathcal{D}}^{\mathrm{inc}}_c(y \mid x)=\mathcal{D}_c(y \mid x). D c inc ( y ∣ x ) = D c ( y ∣ x ) .
Thus, whenever D c \mathcal{D}_c D c is close to D \mathcal{D} D in KL divergence, the chain rule for KL divergence (Lemma 2.4 ) implies that D ^ c i n c ( ⋅ ∣ x ) \widehat{\mathcal{D}}_{c}^{\mathrm{inc}}(\cdot\mid x) D c inc ( ⋅ ∣ x ) is close to D ( ⋅ ∣ x ) \mathcal{D}(\cdot\mid x) D ( ⋅ ∣ x ) in KL divergence on average over x ∼ D X x \sim\mathcal{D}_{X} x ∼ D X :
E x ∼ D X [ KL ( D ( ⋅ ∣ x ) ∥ D ^ c i n c ( ⋅ ∣ x ) ) ] = E x ∼ D X [ KL ( D ( ⋅ ∣ x ) ∥ D c ( ⋅ ∣ x ) ) ] = KL ( D ∥ D c ) − KL ( D X ∥ ( D c ) X ) ≤ KL ( D ∥ D c ) , \mathbb{E}_{x\sim\mathcal{D}_{X}}\left[\operatorname{KL}\left(\mathcal{D}(\cdot\mid x)\middle\|\widehat{\mathcal{D}}_{c}^{\mathrm{inc}}(\cdot\mid x)\right)\right]
= \mathbb{E}_{x\sim\mathcal{D}_{X}}\left[\operatorname{KL}\left(\mathcal{D}(\cdot\mid x)\middle\|\mathcal{D}_{c}(\cdot\mid x)\right)\right]
= \operatorname{KL}(\mathcal{D}\|\mathcal{D}_{c})-\operatorname{KL}(\mathcal{D}_{X}\|(\mathcal{D}_{c})_{X})
\leq\operatorname{KL}(\mathcal{D}\|\mathcal{D}_{c}), E x ∼ D X [ KL ( D ( ⋅ ∣ x ) D c inc ( ⋅ ∣ x ) ) ] = E x ∼ D X [ KL ( D ( ⋅ ∣ x ) ∥ D c ( ⋅ ∣ x ) ) ] = KL ( D ∥ D c ) − KL ( D X ∥ ( D c ) X ) ≤ KL ( D ∥ D c ) ,
where D X \mathcal{D}_{X} D X and ( D c ) X (\mathcal{D}_{c})_{X} ( D c ) X denote the respective marginals of D \mathcal{D} D and D c \mathcal{D}_{c} D c on X \mathcal{X} X . Since Y \mathcal{Y} Y has polynomial size, if c ( ⋅ ) c(\cdot) c ( ⋅ ) is efficiently computable and polynomially bounded, then D ^ c i n c ( ⋅ ∣ x ) \widehat{\mathcal{D}}_{c}^{\mathrm{inc}}(\cdot\mid x) D c inc ( ⋅ ∣ x ) can be efficiently computed and sampled from by enumerating all y ∈ Y y \in\mathcal{Y} y ∈ Y .
The preceding argument is sufficient when the induced joint distribution D c \mathcal{D}_{c} D c is close to D \mathcal{D} D . However, requiring a good approximation to the entire joint distribution can be stronger than necessary for conditional learning, which aims only to approximate D ( ⋅ ∣ x ) \mathcal{D}(\cdot\mid x) D ( ⋅ ∣ x ) and need not model the marginal distribution of X X X . It is therefore natural to ask whether the desired conditional guarantee can be obtained directly, without first approximating the entire joint distribution. Deriving such a conditional learner from meta-complexity assumptions without implicitly learning the marginal distribution of the conditioning variable remains a challenging problem. In meta-complexity, this question is closely connected to two notions, conditional coding and symmetry of information , which we discuss at a conceptual level below.
Conditional coding is the conditional counterpart of the coding theorem discussed above. Informally, it asks whether a sample y y y drawn from D ( ⋅ ∣ x ) \mathcal{D}(\cdot\mid x) D ( ⋅ ∣ x ) admits a K p o l y K^{\mathrm{poly}} K poly -description of length close to the conditional information content log ( 1 / D ( y ∣ x ) ) \log(1/\mathcal{D}(y \mid x)) log ( 1/ D ( y ∣ x )) , with x x x available as an auxiliary input. More generally, the same question can be formulated for any conditional description-length measure. For the learning application, an average-case guarantee is sufficient, since the learner is evaluated on a fresh pair ( x , y ) ∼ D (x,y)\sim\mathcal{D} ( x , y ) ∼ D . If such a guarantee is available for an efficiently computable conditional description-length measure, the same argument as Proposition 6.5 can be applied conditionally to analyze D ^ c c o n d \widehat{\mathcal{D}}_{c}^{\mathrm{cond}} D c cond . For time-unbounded Kolmogorov complexity K K K , conditional coding follows immediately from the ordinary coding theorem, since the conditional distribution of a samplable joint distribution is itself samplable when no running-time bound is imposed. By contrast, the validity of its time-bounded analogues is closely connected to complexity-theoretic and cryptographic assumptions. Consequently, conditional coding and the complexity of time-bounded conditional descriptions have received considerable attention in meta-complexity [67 , 131 , 79 , 82 , 84 ] .
Symmetry of information connects the second construction, which uses only unconditional description lengths, to the first, which describes y y y with x x x available as auxiliary input. Roughly speaking, it asks whether K p o l y ( x y ) K^{\mathrm{poly}}(xy) K poly ( x y ) can be decomposed as K p o l y ( x ) + K p o l y ( y ∣ x ) K^{\mathrm{poly}}(x)+K^{\mathrm{poly}}(y\mid x) K poly ( x ) + K poly ( y ∣ x ) up to a small additive loss. The analogous question can also be posed for other description-length measures. If such a decomposition holds, the incremental description length K p o l y ( x y ) − K p o l y ( x ) K^{\mathrm{poly}}(xy)-K^{\mathrm{poly}}(x) K poly ( x y ) − K poly ( x ) behaves like the conditional description length K p o l y ( y ∣ x ) K^{\mathrm{poly}}(y\mid x) K poly ( y ∣ x ) . For time-unbounded Kolmogorov complexity K K K , symmetry of information holds unconditionally, up to the logarithmic additive loss [183 ] . By contrast, whether its time-bounded analogues hold is closely connected to central questions in complexity theory and cryptography, including the P versus NP problem and the existence of one-way functions [121 LM93, 134 ] . Accordingly, time-bounded forms of symmetry of information, their connections to one-way functions and average-case complexity, and unconditional failures in certain formulations have been studied extensively in the meta-complexity literature [130 , 72 , 129 , 61 , 58 , 75 , 67 , 80 , 79 , 82 , 56 , 84 ] .
We have seen why conditional coding and symmetry of information are natural tools for analyzing the two constructions above. To the best of our knowledge, however, existing results do not directly convert an unconditional compression guarantee over the target distribution into a conditional KL guarantee for the distribution obtained by normalizing the incremental weights 2 − ( c ( x y ) − c ( x ) ) 2^{-(c(xy)-c(x))} 2 − ( c ( x y ) − c ( x )) , except in settings where the assumptions under consideration already imply that the context x x x is also compressed nearly optimally on average under the corresponding marginal distribution. Namely, it remains open whether conditional coding and symmetry of information can instead yield direct conditional-learning guarantees beyond those obtained by approximating the entire joint distribution. In particular, it would be of great interest to establish such a transformation for a restricted class of distributions without relying on implausible assumptions that rule out standard cryptography.
Another closely related result is the KL-sampling characterization of conditional pseudoentropy due to Vadhan and Zheng [VZ12]. For polynomial-size output alphabets, their result characterizes conditional pseudo-Shannon entropy in terms of the minimum average conditional KL divergence achievable by an efficient sampler. This provides another complexity-theoretic link between conditional information and efficient conditional sampling, although it is formulated in terms of pseudoentropy rather than description-length scores. Recent work has revisited and generalized this characterization using multicalibration and weight-restricted calibration [CDV24, HV25].
Compression to Learning over General Messages
For polynomial-length messages, the output space may be exponentially large, making it infeasible to evaluate the score of every possible y y y and normalize the resulting weights as in § 6.2.2 . We discuss two approaches to this setting. It is worth keeping in mind, however, that the connection between distribution learning and meta-complexity in this time-bounded regime remains largely open.
Universal Extrapolation. The first approach is to use universal extrapolation. Recall that q t ( x ) ≜ − log Q t ( x ) q^{t}(x) \triangleq-\log Q^{t}(x) q t ( x ) ≜ − log Q t ( x ) , where Q t Q^{t} Q t is the time-bounded universal distribution. Thus, for the code-length function c ( x ) = q t ( x ) c(x) = q^{t}(x) c ( x ) = q t ( x ) , the distribution D c \mathcal{D}_{c} D c defined in Equation (5) coincides exactly with Q t Q^{t} Q t . The universal distribution satisfies the following domination property. For every distribution D \mathcal{D} D samplable in time t t t by a sampler of description length ∣ D ∣ \lvert\mathcal{D}\rvert ∣ D ∣ , and every x ∈ Support ( D ) x \in\operatorname{Support}(\mathcal{D}) x ∈ Support ( D ) ,
Q poly ( t ) ( x ) ≥ 2 − O ( ∣ D ∣ ) ⋅ D ( x ) Q^{\operatorname{poly}(t)}(x) \ge2^{-O(\lvert\mathcal{D}\rvert)} \cdot\mathcal{D}(x) Q poly ( t ) ( x ) ≥ 2 − O (∣ D ∣) ⋅ D ( x )
Indeed, the universal sampler can use an initial portion of its random input to specify the sampler for D \mathcal{D} D and use the remaining bits as its random seed. The probability of selecting this sampler is at least 2 − O ( ∣ D ∣ ) 2^{-O(\lvert\mathcal{D}\rvert)} 2 − O (∣ D ∣) , and, conditioned on doing so, the output distribution is exactly D \mathcal{D} D . This bounds the KL divergence from an unknown samplable distribution D \mathcal{D} D to Q t = 2 − q t Q^{t} = 2^{-q^{t}} Q t = 2 − q t in terms of the description length of a sampler for D \mathcal{D} D , since the domination property immediately implies the following coding-theorem type bound:
q t ( x ) = − log Q t ( x ) ≤ log 1 D ( x ) + O ( ∣ D ∣ ) . q^{t}(x) = -\log Q^{t}(x) \le\log\frac{1}{\mathcal{D}(x)} + O(\lvert\mathcal{D}\rvert). q t ( x ) = − log Q t ( x ) ≤ log D ( x ) 1 + O (∣ D ∣) .
The claimed KL-divergence bound then follows by the same argument as in Proposition 6.5 . To obtain the total variation bound, recall the batch-amortization argument following Proposition 6.5 , in which the description-length term is amortized by conditioning a uniformly random coordinate on the preceding independent samples. Implementing this argument here requires sampling from the time-bounded universal distribution conditioned on an observed prefix of the batch. This conditional-sampling task is exactly what is called universal extrapolation in [87 ] , which is equivalent to the task described by Definition 5.4 together with the procedure that follows it, specialized here to the case where no additional advice is given, as required for distribution learning.
Under the nonexistence of infinitely-often one-way functions, universal extrapolation (with no advice) can be performed in time polynomial in the number of bits to be extrapolated, the time bound, the inverse accuracy, and 2 q t ( x ) − K ( x ) 2^{q^{t}(x)-K(x)} 2 q t ( x ) − K ( x ) [96 , 87 ] . Its running time is therefore exponential in the computational depth q t ( x ) − K ( x ) q^{t}(x)-K(x) q t ( x ) − K ( x ) of the conditioning prefix x x x . The slow-growth law for computational depth (see § 5.2.2 ) states that efficient randomized computation increases computational depth by at most a logarithmic amount with high probability. Consequently, if the description of a sampler has low computational depth, then the conditioning prefixes generated by that sampler also have low computational depth with high probability. One concrete example is a sampler that is secretly selected by a uniform efficient randomized algorithm. Although the selected sampler may itself be a nonuniform object of polynomial length, its computational depth is logarithmic with high probability. For samplers of logarithmic computational depth, universal extrapolation therefore runs in polynomial time and, combined with the batch-amortization argument following Proposition 6.5 , yields the following result without any restriction on the size of the message space.
Theorem 6.6 ([87 ] ). If infinitely-often one-way functions do not exist, then every efficiently samplable distribution represented by a sampler of logarithmic computational depth is distribution learnable in polynomial time (with respect to total variation distance, as defined in Definition 2.7 ).
A limitation of this approach is that it requires ruling out one-way functions. Known constructions of universal extrapolation rely on consequences of the nonexistence of one-way functions, such as distributional inversion, and this dependence is unavoidable for general distribution classes because efficient universal extrapolation itself implies the nonexistence of one-way functions. Consequently, even for a restricted class of distributions that might be efficiently learnable unconditionally, this approach still invokes the seemingly implausible assumption that one-way functions do not exist. Thus, universal extrapolation reveals strong connections among learning, cryptography, and meta-complexity, but it remains unclear whether it can yield unconditional learning results for restricted distribution classes that exclude cryptographically hard sources.
Another major open question concerns the complexity of universal extrapolation itself. Existing techniques based on distributional inversion require time exponential in the computational depth of the conditioning prefix. They therefore do not give efficient conditional generation when the prefix has large computational depth.
Problem 6.7. What is the weakest assumption under which universal extrapolation can be performed efficiently for every conditioning prefix? In particular, is there a meta-complexity assumption that characterizes this worst-case form of universal extrapolation?
Sequential Generation. The second approach is to divide a polynomial-length message into polynomially many short blocks and generate them autoregressively. Write a message as x = x 1 ⋯ x m x=x_1\cdots x_m x = x 1 ⋯ x m , where each block x i x_i x i has length O ( log n ) O(\log n) O ( log n ) . After generating the preceding blocks x < i x_{<i} x < i , the learner constructs a conditional distribution over the possible values of x i x_i x i and samples the next block from this distribution. Since each block has only polynomially many possible values, the required normalization can be performed by direct enumeration, as in § 6.2.2 .
Which compression guarantee is sufficient to construct such a sequential generator? To formulate this question, first observe the easy converse direction: the same conditional distributions can be used to compress the message block by block. Once x < i x_{<i} x < i has been decoded, the conditional distribution associated with this prefix determines a code for x i x_i x i through the arithmetic-coding construction reviewed in § 6.2.1 . This form of sequential blockwise coding is known as prequential compression . A prequential compressor processes x 1 , … , x m x_1,\ldots,x_m x 1 , … , x m online, encoding each block x i x_i x i with the preceding blocks x < i x_{<i} x < i available as auxiliary input. Ideally, its total conditional description length should be comparable to a one-shot time-bounded description of the entire message x x x , such as K p o l y ( x ) K^{\mathrm{poly}}(x) K poly ( x ) or one of its variants that admits optimal coding, up to an additive m ⋅ O ( log n ) m \cdot O(\log n) m ⋅ O ( log n ) overhead for encoding the blocks separately.
This objective is formalized by an algorithmic chain rule , as studied in [107 , 88 ] . For q p o l y q^{\mathrm{poly}} q poly , suppressing polynomial changes in the time bounds, such a chain rule takes the form
∑ i = 1 m q p o l y ( x i ∣ x < i ) ≤ q p o l y ( x 1 ⋯ x m ) + m ⋅ O ( log n ) . \sum_{i=1}^{m} q^{\mathrm{poly}}(x_i \mid x_{<i}) \le q^{\mathrm{poly}}(x_1 \cdots x_m) + m \cdot O(\log n). i = 1 ∑ m q poly ( x i ∣ x < i ) ≤ q poly ( x 1 ⋯ x m ) + m ⋅ O ( log n ) .
For a source distribution D \mathcal{D} D , we define the corresponding average-case notion by requiring the expected sum of conditional description lengths to be close to the source entropy, up to the same accumulated blockwise overhead20 . Namely, average-case prequential q p o l y q^{\mathrm{poly}} q poly -compression requires the following bound
E X ∼ D [ ∑ i = 1 m q p o l y ( X i ∣ X < i ) ] ≤ H ( D ) + ∣ D ∣ + m ⋅ O ( log n ) , \mathop{\mathbb{E}}_{X \sim\mathcal{D}}\left[\sum_{i=1}^{m} q^{\mathrm{poly}}(X_i \mid X_{<i})\right] \le H(\mathcal{D}) + |\mathcal{D}| + m \cdot O(\log n), E X ∼ D [ i = 1 ∑ m q poly ( X i ∣ X < i ) ] ≤ H ( D ) + ∣ D ∣ + m ⋅ O ( log n ) ,
where the constant in the “O ( log n ) O(\log n) O ( log n ) ” term is fixed independently of the block length. Here, ∣ D ∣ |\mathcal{D}| ∣ D ∣ denotes the description length of a sampler for D \mathcal{D} D and is absorbed into the final term whenever m ≥ ∣ D ∣ m \ge|\mathcal{D}| m ≥ ∣ D ∣ . We emphasize that this is purely a statement about the source distribution D \mathcal{D} D ; we do not assume the existence of an explicit efficient encoder that realizes the conditional description lengths q p o l y ( ⋅ ∣ ⋅ ) q^{\mathrm{poly}}(\cdot\mid\cdot) q poly ( ⋅ ∣ ⋅ ) . Replacing q p o l y q^{\mathrm{poly}} q poly with rk p o l y \operatorname{rk}^{\mathrm{poly}} rk poly gives the corresponding average-case notion of prequential rk p o l y \operatorname{rk}^{\mathrm{poly}} rk poly -compression.
Hirahara and Nanashima [88 ] use this viewpoint to give an unconditional, distribution-by-distribution characterization. Here, it is important to distinguish the elementary symbols to be predicted from the longer blocks used for compression. Let Z = ( Z 1 , … , Z N ) ∼ D Z = (Z_1, \ldots, Z_N) \sim\mathcal{D} Z = ( Z 1 , … , Z N ) ∼ D , where each Z i Z_i Z i is a bit or, more generally, a symbol of constant length. We group consecutive symbols into blocks X 1 , … , X m X_1, \ldots, X_m X 1 , … , X m , each consisting of b = O ( log n ) b = O(\log n) b = O ( log n ) symbols. This grouping is used for prequential compression, while the sequential generator still predicts one elementary symbol Z i Z_i Z i at a time.
Let A ( Z < i ) \mathcal{A}(Z_{<i}) A ( Z < i ) denote the output distribution of a sequential generator after observing Z < i Z_{<i} Z < i . For accuracy ϵ > 0 \epsilon> 0 ϵ > 0 and confidence error δ > 0 \delta> 0 δ > 0 , the desired guarantee is
Pr Z ∼ D I ∼ [ N ] [ Δ T V ( A ( Z < I ) , ( Z I ∣ Z < I ) ) ≤ ϵ ] ≥ 1 − δ . \Pr_{\substack{Z \sim\mathcal{D}\\ I \sim[N]}}\left[\Delta_{\mathrm{TV}}\left(\mathcal{A}(Z_{<I}), (Z_I \mid Z_{<I})\right) \le\epsilon\right] \ge1 - \delta. Z ∼ D I ∼ [ N ] Pr [ Δ TV ( A ( Z < I ) , ( Z I ∣ Z < I ) ) ≤ ϵ ] ≥ 1 − δ .
where I I I is uniform over [ N ] [N] [ N ] . The authors show that, in the constant-accuracy and constant-confidence regime, the existence of an efficient sequential generator satisfying this guarantee is equivalent to average-case prequential q p o l y q^{\mathrm{poly}} q poly -compression of the block sequence X 1 , … , X m X_1, \ldots, X_m X 1 , … , X m and, equivalently, to average-case prequential rk p o l y \operatorname{rk}^{\mathrm{poly}} rk poly -compression.
Although this does not yield the total variation guarantee required in Definition 2.7 , it does yield the following Yao-style next-bit learning guarantee, with no restriction on the support size of the target distribution. This follows from an averaging argument over prefixes and a standard application of Markov’s inequality.
Theorem 6.8. For every ϵ , δ ∈ ( 0 , 1 ] \epsilon,\delta\in(0,1] ϵ , δ ∈ ( 0 , 1 ] , there exist a constant C C C and a polynomial-time learner L L L such that the following holds. Let D \mathcal{D} D be any P/poly-samplable distribution over { 0 , 1 } n \{0,1\}^{n} { 0 , 1 } n . Suppose that, for every batch size m m m , the sequence obtained by concatenating m m m independent samples from D \mathcal{D} D and partitioning the resulting string into consecutive blocks of length C log n C\log n C log n admits average-case prequential q p o l y \mathrm{q}^{\mathrm{poly}} q poly -compression or average-case prequential r K p o l y \mathrm{rK}^{\mathrm{poly}} rK poly -compression.
Then, given sample access to D \mathcal{D} D , the learner L L L outputs a polynomial-time randomized next-bit predictor h h h satisfying
Pr h ← L D [ E i ∼ [ n ] [ Δ T V ( h ( x < i ) , ( D i ∣ D < i = x < i ) ) ] ≤ ϵ ] ≥ 1 − δ . \Pr_{h\gets L^{\mathcal{D}}}\left[\mathop{\mathbb{E}}_{i\sim[n]}\left[\Delta_{\mathrm{TV}}\left(h(x_{<i}),\left(\mathcal{D}_{i}\mid\mathcal{D}_{<i}=x_{<i}\right)\right)\right]\leq\epsilon\right]\geq1-\delta. h ← L D Pr [ E i ∼ [ n ] [ Δ TV ( h ( x < i ) , ( D i ∣ D < i = x < i ) ) ] ≤ ϵ ] ≥ 1 − δ .
The transformation from prequential q p o l y \mathrm{q}^{\mathrm{poly}} q poly -compression to sequential generation applies the advised universal extrapolation procedure discussed in § 5.2.2 . As reviewed there, the completed blocks X < j X_{<j} X < j are treated as advice. The algorithmic chain rule for prequential compression incurs an additional O ( log n ) O(\log n) O ( log n ) KL loss per block. To obtain the total variation bound stated above, this loss must once again be amortized through conditional sampling. Rejection sampling provides the required conditioning. When generating Z i Z_i Z i in the current block X j X_j X j , rejection sampling is used only to condition on the previously generated symbols in X j X_j X j , since the completed blocks X < j X_{<j} X < j are already available as advice. Since the current block contains only b = O ( log n ) b=O(\log n) b = O ( log n ) symbols, every such conditioning prefix has length O ( log n ) O(\log n) O ( log n ) . The corresponding conditioning event therefore has inverse-polynomial probability, and rejection sampling runs in polynomial time. Unlike the universal-extrapolation approach discussed above, this transformation does not require distributional inversion or any assumption ruling out one-way functions.
Accordingly, the result does not claim that every efficiently samplable distribution can be learned, which would be incompatible with cryptographic hardness. Instead, it gives a distribution-by-distribution characterization: a distribution family admits efficient sequential generation precisely when it satisfies the corresponding prequential-compression condition.
The short-block construction balances coding overhead against the running time of rejection sampling. To reduce an additive O ( log n ) O(\log n) O ( log n ) overhead per block to an ϵ \epsilon ϵ fraction of the block length, the block length must be Ω ( ϵ − 1 log n ) \Omega(\epsilon^{-1}\log n) Ω ( ϵ − 1 log n ) . Rejection sampling on such a block takes time 2 O ( ϵ − 1 log n ) = n O ( 1 / ϵ ) 2^{O(\epsilon^{-1}\log n)}=n^{O(1/\epsilon)} 2 O ( ϵ − 1 l o g n ) = n O ( 1/ ϵ ) .21 This is polynomial in n n n for every constant ϵ \epsilon ϵ , but it is not polynomial jointly in n n n and ϵ − 1 \epsilon^{-1} ϵ − 1 . The current characterization is therefore limited to constant accuracy and confidence, and extending it to general parameters remains open.
Problem 6.9. Does the equivalence between efficient sequential generation, prequential q p o l y \mathrm{q}^{\mathrm{poly}} q poly -compression, and prequential r K p o l y \mathrm{rK}^{\mathrm{poly}} rK poly -compression extend to arbitrary polynomial-length blocks and arbitrary accuracy and confidence parameters, with running time polynomial in the message length, the block length, ϵ − 1 \epsilon^{-1} ϵ − 1 , and δ − 1 \delta^{-1} δ − 1 ?
In particular, it is important that ϵ \epsilon ϵ can be made inverse-polynomially small in n n n , as this allows the next-bit prediction guarantee in Theorem 6.8 to be converted into the standard total variation guarantee via the triangle inequality.
Language Modeling
The framework developed above appears directly in modern language modeling. A token is a symbol from a finite vocabulary, such as a byte or a fragment of a word. An autoregressive language model E \mathcal{E} E assigns, to every prefix x < i x_{<i} x < i , a distribution E ( ⋅ ∣ x < i ) \mathcal{E}(\cdot\mid x_{<i}) E ( ⋅ ∣ x < i ) over the next token. It generates a message by repeatedly sampling the next token from this distribution. Thus, with each token viewed as a short block, language modeling is precisely the sequential conditional-generation setting considered in § 6.2.3 .
The standard objective for training an autoregressive language model is the next-token log loss [e.g., [155 , 26 ] ]:
L E ( x ) ≜ ∑ i = 1 N log 1 E ( x i ∣ x < i ) = log 1 E ( x ) . L_{\mathcal{E}}(x) \triangleq\sum_{i=1}^{N} \log\frac{1}{\mathcal{E}(x_i \mid x_{<i})} = \log\frac{1}{\mathcal{E}(x)}. L E ( x ) ≜ i = 1 ∑ N log E ( x i ∣ x < i ) 1 = log E ( x ) 1 .
As reviewed in § 6.2.1 , arithmetic coding uses the same conditional probabilities to encode x x x in L E ( x ) + O ( 1 ) L_{\mathcal{E}}(x) + O(1) L E ( x ) + O ( 1 ) bits. Hence, minimizing log loss is equivalent to minimizing the length of the corresponding lossless encoding. In this sense, a language model is also a compressor, provided that the model is available to both the encoder and the decoder.
The reverse connection uses the normalized incremental weights discussed in § 6.2.2 , assigning each possible continuation y y y the weight 2 − ( c ( x y ) − c ( x ) ) 2^{-(c(xy)-c(x))} 2 − ( c ( x y ) − c ( x )) . For each prefix x x x , normalizing these weights defines a distribution over the next token, and iterating this construction turns a compressor into an autoregressive generator. A good overall compression rate, however, does not in general guarantee that the resulting conditional distributions are accurate.
An early neural implementation of this connection predates modern language models. Schmidhuber and Heil [159 ] trained a feedforward network to estimate conditional next character probabilities and coupled its outputs with Huffman or arithmetic coding for lossless text compression; in their offline scheme, the trained predictor was shared by the encoder and decoder.
Delétang et al. [46 ] investigate both directions of this correspondence experimentally. They combine the next-token probabilities produced by large language models with arithmetic coding to obtain lossless compressors for text, images, and audio. Conversely, they normalize incremental code lengths produced by compressors such as gzip and use the resulting conditional distributions for autoregressive generation. Related experiments use prequential code length to evaluate neural predictors trained sequentially on previously revealed examples [e.g., [27 , 23 ] ]. Together, these recent developments place the relationship between sequential prediction and compression directly within modern machine learning.
The complexity-theoretic results discussed above provide an idealized time-bounded formulation of the same prediction–compression principle, with K p o l y \mathrm{K}^{\mathrm{poly}} K poly and related measures such as r K p o l y \mathrm{rK}^{\mathrm{poly}} rK poly and q p o l y \mathrm{q}^{\mathrm{poly}} q poly serving as ideal universal benchmarks for the shortest descriptions that can be decoded in polynomial time. The existing correspondences thus describe the relationship between prediction and compression at this idealized time-bounded level, but do not yet yield guarantees for concrete large language models. This raises a natural question: can meta-complexity shed light on concrete language models, for instance, by providing new methods that transfer compression guarantees to sequential-generation guarantees without quantitative loss while preserving computational efficiency? Developing a connection between the idealized time-bounded theory and modern language models remains an important direction for future research.
Meta-Complexity and Computational Hardness from Learning
Ideas from complexity have long informed the design of new learning algorithms (see, e.g., [123 ] ); conversely, ideas from learning have yielded insights in complexity (see, e.g., [100 ] ). More recently, there have been indications of deep and far-reaching connections between the two fields that go well beyond these results. They are part of an emerging theory that shows useful links between proving complexity lower bounds and designing new algorithms . The learning algorithm of [33 ] and the complexity lower bound of [177 ] are examples of breakthroughs achieved in this way.
Learning algorithms in different models are known for several important classes of Boolean functions, including DNFs [101 ] , constant-depth circuits with AND, OR, and NOT gates [123 ] , and constant-depth circuits extended with MODp _p p gates, where p p p is prime [33 ] . However, despite major efforts, a learning algorithm for the class T C 2 0 \mathrm{TC}^0_2 TC 2 0 , i.e., two layers of polynomially many threshold gates, is unknown and corresponds to a central problem in computational learning theory. Note that every reasonable concept class can be learned in time 2 n ⋅ poly ( n ) 2^n \cdot\operatorname{poly}(n) 2 n ⋅ poly ( n ) , simply by querying the unknown function f : { 0 , 1 } n → { 0 , 1 } f : \{0,1\}^n \to\{0,1\} f : { 0 , 1 } n → { 0 , 1 } on all input strings. In contrast, even if we allow the learning algorithm to run in quantum time slightly below 2 n 2^n 2 n and make quantum membership queries , there is currently no known algorithm for learning T C 2 0 \mathrm{TC}^0_2 TC 2 0 .
In a seminal work, [51 ] demonstrated that the existence of polynomial-time learning algorithms implies complexity lower bounds. Subsequent results strengthened this connection by showing that even learning in time slightly below 2 n 2^n 2 n suffices to derive lower bounds. Put differently, any “non-trivial” learning algorithm can be transformed into a source of hard functions. Hardness can be extracted from non-trivial deterministic learning algorithms [108 ] , randomised PAC learning algorithms [143 ] , and quantum PAC learning algorithms [5 ] . In general, the existence of any non-trivial learning algorithm for a class C \mathcal{C} C of functions (such as T C 2 0 \mathrm{TC}^0_2 TC 2 0 ) implies that there are explicit problems that cannot be computed in C \mathcal{C} C . 22 These results shed some light on the difficulty of designing provably correct learning algorithms for classes such as T C 2 0 \mathrm{TC}^0_2 TC 2 0 , for which super-polynomial size complexity lower bounds remain unknown.
In the next sections, we survey results of this kind and present a concrete example illustrating how learning algorithms can be used to prove lower bounds in meta-complexity.
Deterministic Learners
Below we consider typical circuit classes C \mathcal{C} C that are closed under restrictions and complementation,23 and contain the identically constant functions.24
As discussed above, any class C \mathcal{C} C can be learned in time 2 n ⋅ poly ( n ) 2^n \cdot\operatorname{poly}(n) 2 n ⋅ poly ( n ) . For this reason, we say that a learning algorithm is nontrivial if its running time is of the form 2 n / n ω ( 1 ) 2^n/n^{\omega(1)} 2 n / n ω ( 1 ) , i.e., if it admits an arbitrarily large polynomial speed-up over the trivial time bound. Our next result shows that the existence of nontrivial deterministic learning algorithms has significant complexity-theoretic consequences.
Recall that in MKtP (Minimum Kt Problem), we are given a string x ∈ { 0 , 1 } n x \in\{0,1\}^n x ∈ { 0 , 1 } n and a parameter s ∈ N s \in\mathbb{N} s ∈ N , and the goal is to decide if Kt ( x ) ≤ s \operatorname{Kt}(x) \le s Kt ( x ) ≤ s . Here Kt ( x ) \operatorname{Kt}(x) Kt ( x ) denotes the Levin time-bounded Kolmogorov complexity of x x x [120 ] , which is defined as
Kt ( x ) ≜ min Π ∈ { 0 , 1 } ∗ t ∈ N { ∣ Π ∣ + ⌈ log t ⌉ ∣ program Π outputs x within t steps } . \operatorname{Kt}(x) \triangleq\min_{\substack{\Pi\in\{0,1\}^{*}\\ t \in\mathbb{N}}} \{|\Pi| + \lceil\log t \rceil\mid\text{program } \Pi\text{ outputs } x \text{ within } t \text{ steps}\}. Kt ( x ) ≜ Π ∈ { 0 , 1 } ∗ t ∈ N min { ∣Π∣ + ⌈ log t ⌉ ∣ program Π outputs x within t steps } .
We can also think of MKtP as a language contained in { 0 , 1 } ∗ \{0,1\}^{*} { 0 , 1 } ∗ by fixing the threshold parameter s s s to a large bound such as s ( n ) = n − log n s(n)=n-\log n s ( n ) = n − log n . Showing that MKtP ∉ \notin ∈ / P is a longstanding open problem in meta-complexity [2 ] .
Theorem 7.1 (MKtP Lower Bounds from Deterministic Learning). The following results hold:
(i) Non-Uniform Hardness for MKtP from Subexponential Time Deterministic Learning: Suppose that a typical circuit class C = { C n } n ≥ 1 \mathcal{C}=\{C_n\}_{n\geq1} C = { C n } n ≥ 1 can be PAC-learned to error ε ≤ 0.499 \varepsilon\leq0.499 ε ≤ 0.499 under the uniform distribution using membership queries in deterministic time 2 n / 2 / n ω ( 1 ) 2^{n/2}/n^{\omega(1)} 2 n /2 / n ω ( 1 ) . Then MKtP ∉ C \notin\mathcal{C} ∈ / C .
(ii) Uniform Hardness for MKtP from Nontrivial Deterministic Learning: Suppose that, for every k ≥ 1 k\geq1 k ≥ 1 , Boolean circuits of size n k n^k n k can be PAC-learned to error ε ≤ 0.499 \varepsilon\leq0.499 ε ≤ 0.499 under the uniform distribution using membership queries in deterministic time 2 n / n ω ( 1 ) 2^n/n^{\omega(1)} 2 n / n ω ( 1 ) . Then MKtP ∉ \notin ∈ / P.
Proof Sketch. To prove the first item, let A M Q ( ⋅ ) ( 1 n ) A^{\mathrm{MQ}(\cdot)}(1^n) A MQ ( ⋅ ) ( 1 n ) be a deterministic algorithm running in time T ( n ) T(n) T ( n ) that learns every f ∈ C n f\in C_n f ∈ C n to error ε \varepsilon ε . Let 0 ‾ : { 0 , 1 } n → { 0 , 1 } \overline{0}\colon\{0,1\}^n\to\{0,1\} 0 : { 0 , 1 } n → { 0 , 1 } be the constant zero function. Suppose towards a contradiction that MKtP ∈ C \in\mathcal{C} ∈ C . Consider the Boolean function f n : { 0 , 1 } n → { 0 , 1 } f_n\colon\{0,1\}^n\to\{0,1\} f n : { 0 , 1 } n → { 0 , 1 } such that f n ( x ) = 1 f_n(x)=1 f n ( x ) = 1 if and only if Kt ( x ) ≥ n − log n \operatorname{Kt}(x)\geq n-\log n Kt ( x ) ≥ n − log n . Then { f n } n ≥ 1 ∈ C \{f_n\}_{n\geq1}\in\mathcal{C} { f n } n ≥ 1 ∈ C under the assumption that MKtP ∈ C \in\mathcal{C} ∈ C , since f n f_n f n is the complement of a restriction of the language MKtP.
Next, consider the execution of A M Q ( ⋅ ) ( 1 n ) A^{\mathrm{MQ}(\cdot)}(1^n) A MQ ( ⋅ ) ( 1 n ) on 0 ‾ \overline{0} 0 , and let h 0 ‾ h_{\overline{0}} h 0 be its output hypothesis. Similarly, let h f n h_{f_n} h f n be the output hypothesis produced on f n f_n f n . Then
dist ( h 0 ‾ , 0 ‾ ) ≤ ε and dist ( h f n , f n ) ≤ ε . \operatorname{dist}(h_{\overline{0}},\overline{0})\leq\varepsilon
\qquad\text{and}\qquad
\operatorname{dist}(h_{f_n},f_n)\leq\varepsilon. dist ( h 0 , 0 ) ≤ ε and dist ( h f n , f n ) ≤ ε .
We claim that if T ( n ) = 2 n / 2 / n ω ( 1 ) T(n)=2^{n/2}/n^{\omega(1)} T ( n ) = 2 n /2 / n ω ( 1 ) and n n n is large enough, then h 0 ‾ ≡ h f n h_{\overline{0}}\equiv h_{f_n} h 0 ≡ h f n , i.e., they compute the same function. It is enough to argue that A M Q ( 0 ‾ ) ( 1 n ) A^{\mathrm{MQ}(\overline{0})}(1^n) A MQ ( 0 ) ( 1 n ) and A M Q ( f n ) ( 1 n ) A^{\mathrm{MQ}(f_n)}(1^n) A MQ ( f n ) ( 1 n ) have the same computation transcript, and therefore produce the same hypotheses. To see this, we argue that every membership query to MQ ( f n ) \operatorname{MQ}(f_n) MQ ( f n ) produces 0 0 0 (as in MQ ( 0 ‾ ) \operatorname{MQ}(\overline{0}) MQ ( 0 ) ). Indeed, it is not hard to prove by induction on i i i that if q i ∈ { 0 , 1 } n q_i\in\{0,1\}^n q i ∈ { 0 , 1 } n is the i i i -th query, where i ≤ T ( n ) i\leq T(n) i ≤ T ( n ) , then Kt ( q i ) < n − log n \operatorname{Kt}(q_i)<n-\log n Kt ( q i ) < n − log n . This is because we can describe q i q_i q i by knowing the code of A A A , n n n , and i i i , and by simulating A A A on input 1 n 1^n 1 n for at most T ( n ) T(n) T ( n ) steps. Consequently,
Kt ( q i ) ≤ ( ∣ A ∣ + log n + log i ) + log ( T ( n ) ⋅ poly ( n ) ) ≤ O ( log n ) + 2 log T ( n ) ≤ n − ω ( log n ) < n − log n . \operatorname{Kt}(q_i)\leq(|A|+\log n+\log i)+\log(T(n)\cdot\operatorname{poly}(n))\leq O(\log n)+2\log T(n)\leq n-\omega(\log n)<n-\log n. Kt ( q i ) ≤ ( ∣ A ∣ + log n + log i ) + log ( T ( n ) ⋅ poly ( n )) ≤ O ( log n ) + 2 log T ( n ) ≤ n − ω ( log n ) < n − log n .
where we used that T ( n ) = 2 n / 2 / n ω ( 1 ) T(n)=2^{n/2}/n^{\omega(1)} T ( n ) = 2 n /2 / n ω ( 1 ) . Consequently,
dist ( h 0 ‾ , h f n ) = 0. \operatorname{dist}(h_{\overline{0}},h_{f_n})=0. dist ( h 0 , h f n ) = 0.
Applying the triangle inequality, we obtain that
dist ( 0 ‾ , f n ) ≤ 2 ε . \operatorname{dist}(\overline{0},f_n)\leq2\varepsilon. dist ( 0 , f n ) ≤ 2 ε .
In contrast, since a random n n n -bit string has Kt complexity ≥ n − log n \geq n-\log n ≥ n − log n with probability 1 − o ( 1 ) 1-o(1) 1 − o ( 1 ) , we have
dist ( 0 ‾ , f n ) ≥ 1 − o ( 1 ) . \operatorname{dist}(\overline{0},f_n)\geq1-o(1). dist ( 0 , f n ) ≥ 1 − o ( 1 ) .
This contradicts our choice of ε ≤ 0.499 \varepsilon\le0.499 ε ≤ 0.499 .
For the proof of the second item, an additional idea is used. Assume now that T ( n ) = 2 n / n ω ( 1 ) T(n)=2^n/n^{\omega(1)} T ( n ) = 2 n / n ω ( 1 ) and MKtP ∈ \in ∈ P. For each k k k , let C k C^k C k be the class of circuits of size n k n^k n k . Adapting the proof of the first item, we argue below that MKtP ∉ C k \notin C^k ∈ / C k . Since this holds for all k k k , it implies in particular that MKtP ∉ \notin ∈ / P, which is a contradiction.
Fix k ∈ N k \in\mathbb{N} k ∈ N . Note that, in the argument above, we had to assume a lower running time for the learning algorithm because of the additional log T ( n ) \log T(n) log T ( n ) contribution coming from the encoding of i ∈ [ T ( n ) ] i \in[T(n)] i ∈ [ T ( n )] , the index of the query. We avoid the extra term coming from the encoding of the index. We will use that MKtP ∈ \in ∈ P to show that Kt ( q i ) < n − log n \operatorname{Kt}(q_i)<n-\log n Kt ( q i ) < n − log n for every query q i ∈ { 0 , 1 } n q_i \in\{0,1\}^n q i ∈ { 0 , 1 } n made by the learner. In more detail, towards a contradiction, suppose that for some i i i we have Kt ( q i ) ≥ n − log n \operatorname{Kt}(q_i)\ge n-\log n Kt ( q i ) ≥ n − log n , and let i i i be the first such index. Then, we can describe q i q_i q i as follows: q i q_i q i is the first query made by A ( 1 n ) A(1^n) A ( 1 n ) during the simulation such that Kt ( q i ) ≥ n − log n \operatorname{Kt}(q_i)\ge n-\log n Kt ( q i ) ≥ n − log n . Since the latter condition can be checked in polynomial time under the assumption that MKtP ∈ \in ∈ P, it is not hard to see that
Kt ( q i ) ≤ O ( 1 ) + log n + log ( T ( n ) ⋅ poly ( n ) ) < n − log n , \operatorname{Kt}(q_i) \le O(1)+\log n+\log(T(n)\cdot\operatorname{poly}(n))<n-\log n, Kt ( q i ) ≤ O ( 1 ) + log n + log ( T ( n ) ⋅ poly ( n )) < n − log n ,
for large enough n n n . This contradiction completes the proof.
Complementing this result, we mention that separations against C C C (i.e., non-uniform lower bounds) for some problem in E = DTIME [ 2 O ( n ) ] =\operatorname{DTIME}[2^{O(n)}] = DTIME [ 2 O ( n ) ] (instead of MKtP ∈ \in ∈ E) also follow from deterministic learners running in time T ( n ) = 2 n / n ω ( 1 ) T(n)=2^n/n^{\omega(1)} T ( n ) = 2 n / n ω ( 1 ) . For more details, see the results and techniques in [108 ] .
Randomized and Quantum Learners
As we consider more powerful learning algorithms, the task of constructing a computationally hard function from them becomes more elusive. For instance, in the proof of Theorem 7.1 , we used in a crucial way that the set of queries produced by the learner is uniquely determined once we fix the function f ∈ C n f \in C_n f ∈ C n for the learning task. If the learning algorithm is randomized , this property no longer holds, and the strategy described above simply does not work.
Nevertheless, using more sophisticated arguments that rely on the theory of computational pseudorandomness, it is possible to extract complexity lower bounds from any non-trivial learning algorithm. Let BPE ≜ BPTIME [ 2 O ( n ) ] \triangleq\operatorname{BPTIME}[2^{O(n)}] ≜ BPTIME [ 2 O ( n ) ] denote randomized exponential time, i.e., the randomized analogue of E.
Theorem 7.2 (Lower Bounds from Nontrivial Randomized Learning [143 ] ). Let C C C be a typical circuit class. If polynomial-size C C C -circuits can be learned using membership queries with error ε < 0.499 \varepsilon<0.499 ε < 0.499 under the uniform distribution in randomized time 2 n / n ω ( 1 ) 2^n/n^{\omega(1)} 2 n / n ω ( 1 ) , then BPE ⊈ C ( p o l y ) \not\subseteq C(\mathrm{poly}) ⊆ C ( poly ) .
It is also possible to consider a more expressive class of quantum learning algorithms (see [4 ] for more on quantum learning theory). Let BQE ≜ BQTIME [ 2 O ( n ) ] \triangleq\operatorname{BQTIME}[2^{O(n)}] ≜ BQTIME [ 2 O ( n ) ] denote quantum exponential time.
Theorem 7.3 (Lower Bounds from Nontrivial Quantum Learning [ACG+21]). Let C C C be a typical circuit class. If polynomial-size C C C -circuits can be learned using quantum membership queries with error ε < 0.499 \varepsilon<0.499 ε < 0.499 under the uniform distribution in quantum time 2 n / n ω ( 1 ) 2^n/n^{\omega(1)} 2 n / n ω ( 1 ) , then BQE ⊈ C ( p o l y ) \not\subseteq C(\mathrm{poly}) ⊆ C ( poly ) .
In particular, it follows that if there is a randomized (or even quantum) learning algorithm for the class of depth-2 threshold circuits (T C 2 0 \mathrm{TC}_2^0 TC 2 0 ) that runs in time 2 n / n Ω ( 1 ) 2^n/n^{\Omega(1)} 2 n / n Ω ( 1 ) , then a new complexity lower bound would follow (see Figure 7 for a pictorial representation and a related discussion). We refer to [12 ] and references therein for progress on the learnability of subclasses of depth-2 threshold circuits.
Figure 7. Two closely related questions about a typical circuit class C \mathcal{C} C , illustrated by the class T C 2 0 \mathrm{TC}^{0}_{2} TC 2 0 of depth-2 threshold circuits (see § 2.4.3 ). By Theorem 7.2 and Theorem 7.3 , a nontrivial classical or quantum learner for C \mathcal{C} C yields a new circuit size lower bound against C \mathcal{C} C for an explicit function. Conversely, a combinatorial lower bound that naturalises yields a constructive property that can be converted into a learning algorithm for C \mathcal{C} C , as discussed in § 5.1 . A recurring pattern across circuit classes at the frontier is that the two questions have the same status: either learners and lower bounds are known, or both remain open. In particular, for T C 2 0 \mathrm{TC}^{0}_{2} TC 2 0 , neither a nontrivial learner nor a superpolynomial circuit size lower bound for an explicit function is known.
The original proof of Theorem 7.2 [143 ] makes use of the learning speedups discussed in § 5.4 , which reduces the result to a proof that subexponential time learning in time 2 n o ( 1 ) 2^{n^{o(1)}} 2 n o ( 1 ) implies complexity lower bounds. On the other hand, [5 ] explores a more direct perspective that can be used to derive both Theorem 7.2 and Theorem 7.3 . We refer to [143 , 5 ] for more information about these theorems and their proofs.
While the results discussed in this section apply to a significantly larger class of learning algorithms, they come with a technical caveat: the hard function extracted from the learning assumption is hard only on infinitely many input lengths n n n . In contrast, it can be checked that the lower bound arguments in Theorem 7.1 establish hardness for every sufficiently large input length n n n . This caveat is a consequence of the more indirect nature of their proofs. It would be interesting to introduce techniques to close this gap.
Problem 7.4 (Almost-Everywhere Hardness from Learning). Show that if a typical circuit class C \mathcal{C} C admits nontrivial randomized learning algorithms, then there is a language in B P E \mathrm{BPE} BPE that is not in C ( p o l y ) \mathcal{C}(\mathrm{poly}) C ( poly ) on every large enough input length.
We refer to [174 ] for additional settings where one can derive complexity-theoretic consequences from learning algorithms.
Unconditional Meta-Complexity Lower Bounds via Learning
Nontrivial learning algorithms have been designed for a large number of circuit classes [166 , 104 ] . However, in all existing results, lower bounds are already known against the corresponding circuit class. A concrete class for which both lower bounds and learning remain elusive is the class of Boolean functions that can be approximated by low-degree Torus polynomials (see [18 ] ).25
Problem 7.5 (Nontrivial Learnability of Torus Polynomials). Is there a nontrivial randomized or quantum learning algorithm for the class of Boolean functions that can be 1 / n 1/n 1/ n -approximated by poly ( log n ) \operatorname{poly}(\log n) poly ( log n ) -degree Torus polynomials?
Since any function in the circuit class A C C 0 \mathrm{ACC}^{0} ACC 0 admits such approximating polynomials [18 ] , a positive answer to Problem 7.5 leads to a new lower bound against A C C 0 \mathrm{ACC}^{0} ACC 0 via Theorem 7.3 .26 The latter would be a breakthrough result in complexity theory. We refer to [177 ] for more information on A C C 0 \mathrm{ACC}^{0} ACC 0 .
A closely related problem is that of learning the class of Boolean circuits f : { 0 , 1 } n → { 0 , 1 } f:\{0,1\}^{n}\to\{0,1\} f : { 0 , 1 } n → { 0 , 1 } that can be written as a disjoint union (DOR) of quasi-polynomially many MAJ-ANDt _{t} t circuits, where the bottom AND gate has fan-in t = poly ( log n ) t=\operatorname{poly}(\log n) t = poly ( log n ) .27
Problem 7.6 (Nontrivial Learnability of DOR-MAJ-AND Circuits). Is there a nontrivial randomized or quantum learning algorithm for the class of quasi-polynomial size DOR-MAJ-AND circuits of polylogarithmic bottom fan-in?
It is not hard to prove that a positive solution to this problem also implies lower bounds against A C C 0 \mathrm{ACC}^{0} ACC 0 , by combining Theorem 7.3 with the simulation A C C 0 ⊆ S Y M + ⊆ D O R k - M A J - A N D t \mathrm{ACC}^{0}\subseteq\mathrm{SYM}^{+}\subseteq\mathrm{DOR}_{k}\text{-}\mathrm{MAJ}\text{-}\mathrm{AND}_{t} ACC 0 ⊆ SYM + ⊆ DOR k - MAJ - AND t for k = exp ( poly ( log n ) ) k=\exp(\operatorname{poly}(\log n)) k = exp ( poly ( log n )) and t = poly ( log n ) t=\operatorname{poly}(\log n) t = poly ( log n ) [29 ] .
Complexity Lower Bounds from Learning. While Theorem 7.2 and Theorem 7.3 have not yet led to new complexity lower bounds in a direct way, it is possible to use these results in an indirect way to establish unconditional complexity lower bounds. We describe next a general template:
Easiness Assumption → ( i ) Learning Algorithm → ( i i ) Computational Hardness \text{Easiness Assumption} \xrightarrow{(i)} \text{Learning Algorithm} \xrightarrow{(ii)} \text{Computational Hardness} Easiness Assumption ( i ) Learning Algorithm ( ii ) Computational Hardness
In more detail, we proceed as follows:
First, from a suitable Easiness Assumption, we show that nontrivial learning is possible.
Next, we invoke a result such as Theorem 7.2 to derive some form of Computational Hardness.
To obtain an unconditional lower bound, we carefully balance the initial Easiness Assumption with the resulting Computational Hardness consequence, with the goal of achieving a contradiction between the two.
If we are able to implement this plan, it follows that the original Easiness Assumption is false , i.e., a corresponding complexity lower bound follows.
Hardness of Estimating Complexity. This approach has borne fruit in the form of an unconditional complexity lower bound in Meta-Complexity. In [142 ] , we considered the Minimum rKt Problem (MrKtP): given a string w ∈ { 0 , 1 } n w \in\{0,1\}^{n} w ∈ { 0 , 1 } n , estimate its rKt complexity, a measure of the compressibility, or regularity, of w w w .28 This is a randomised analogue of a fundamental measure introduced by L. Levin in 1984 [120 ] called Kt complexity. While the complexity of estimating the Kt complexity of an input string (MKtP) remains open, we were able to show that MrKtP ∉ \notin ∈ / BPP, i.e., the rKt complexity of a string cannot be computed in probabilistic polynomial time.
This can be shown by analysing the following Easiness Assumption: MrKtP ∈ \in ∈ BPP. From this and the technique of [33 ] described in § 5.1 , it follows that polynomial-size Boolean circuits can be learned in randomised polynomial time. This is Item (i) in the template presented above.
On the other hand, the existence of such a learning algorithm implies by Theorem 7.2 that some problem in BPE (randomised exponential time) cannot be computed by polynomial size Boolean circuits. This corresponds to Item (ii) in the aforementioned template.
Finally, since every problem in BPE can be reduced using polynomial-size Boolean circuits to MrKtP, it must be the case that MrKtP ∉ \notin ∈ / BPP. This contradicts the original Easiness Assumption.
In other words, it follows unconditionally that MrKtP ∉ \notin ∈ / BPP. Note that our original problem, MrKtP, makes no reference to learning algorithms!
Recall that it is a longstanding open problem to show the analogous result for MKtP, i.e., to prove that MKtP ∉ \notin ∈ / P. In light of the above discussion and Theorem 7.1 , it is not hard to see that to obtain this result it would be sufficient to show that if MKtP ∈ \in ∈ P then nontrivial deterministic learning of polynomial-size Boolean circuits is possible. In turn, this would be feasible if we had a deterministic analogue of the techniques from § 5.1 .
Problem 7.7 (Deterministic Learning from Meta-Complexity). Is there a way to obtain deterministic learning algorithms assuming the easiness of meta-computational problems such as MKtP?
This is closely related to the problem of derandomizing learning algorithms. For more about this line of work, we refer the reader to [144 ] .
To conclude this section, we note that we have only discussed lower bounds that can be extracted from PAC learning algorithms. In principle, it should be possible to obtain stronger complexity-theoretic consequences from the existence of algorithms for more expressive learning tasks (see § 4 ). We leave this as an interesting direction for further research.
Problem 7.8 (Complexity-Theoretic Consequences of Learning). Derive stronger complexity-theoretic consequences from the existence of algorithms for learning tasks that are more expressive than PAC learning under the uniform distribution, such as distribution learning and sequence extrapolation.
Related Work
Here we highlight some related lines of work that are not covered in the preceding sections, following roughly the order of the survey. We also provide pointers to some references that cover more practical aspects of learning and its connections to compression.
Search vs Decision in Meta-Complexity. The mismatch between recognising the existence of a short description and producing one is highlighted in § 1 . The learning constructions surveyed in § 5 often circumvent this mismatch by converting a decision procedure into a predictor through a reconstruction argument. Search-to-decision reductions for time-bounded Kolmogorov complexity address the issue directly, asking when a decision procedure suffices to recover a short program. We refer to [136 , 78 , 79 ] for recent work on this direction and related open problems.
Compression in Supervised Learning. The term model compression (§ 3 ) has a different meaning in modern machine learning, where one starts with a trained model and seeks a smaller approximation. Representative approaches include transferring the predictive behaviour of a large model or ensemble to a smaller network through knowledge distillation [94 ] , compressing an explicitly stored network through pruning, quantization, and entropy coding [83 ] , and training stochastic network parameters subject to an explicit information-theoretic coding budget [90 ] . Dataset distillation moves the compression to the data side, replacing a large training set by a small collection of synthetic examples from which a prescribed training procedure recovers comparable performance [178 ] .
§ 3 also develops the basic connection between sample compression and generalisation, mentions the qualitative equivalence with finite VC dimension, and states the sample compression conjecture. The classical binary sample compression framework was introduced by Littlestone and Warmuth [133 ] and developed further by Floyd and Warmuth [54 ] . Subsequent work extends or refines this perspective in several directions, including multiclass and general loss learning [45 ] , stable compression schemes [77 ] , list compression and its limitations [85 ] , and reductions from compression problems in other learning models to classical binary compression [7 ] .
Distributional Restrictions and the Complexity of Learning. Departing from the pessimistic distribution-free definition of PAC learning, the learning paradises of § 4.1 deliberately restrict the example distributions to feasible ones. This choice can change the computational complexity of the learning task substantially. Blanc et al. [19 ] show that requiring success only on samplable distributions can enlarge the power of efficient learning, even at the level of sample complexity. Blanc, Lange, Strassle, and Tan [25 ] instead ask when a learner for a restricted family of example distributions can be lifted to arbitrary example distributions. The latter result is governed by the complexity of expressing the new distribution as a mixture of distributions from the original family. This is distinct from the distributional inversion argument in § 5 , which moves between example distributions by inverting their samplers.
Practical Analogues of the Learning Paradises. The assumptions P.I through P.V from § 4.1 are much stronger than anything currently achieved in practice, but the tasks they formalize have recognizable counterparts in modern machine learning. These analogies concern the form of each learning task, not the strength of its guarantee. Practical methods exploit regularities in natural data and address restricted families of instances, whereas the paradises require uniform guarantees over broad families of sources, example distributions, or circuits.
P.I is closest to predicting the continuation of a sequence from an observed context, as in models for text, video, or dynamical systems. For instance, Deletang et al. [DRD^{+}24] study the practical connection between prediction and compression in this setting, while Grau-Moya et al. [GMGH^{+}24] investigate neural predictors trained to approximate universal prediction.
P.II resembles generative modeling, where independent examples are used to learn a procedure for producing new samples. The denoising diffusion model of Ho, Jain, and Abbeel [76 ] is a prominent example. Generative models can also serve as compressors. Yang, Mandt, and Theis [182 ] survey this area, while Kingma et al. [114 ] turn a variational diffusion model into a lossless compressor whose rate is close to its variational coding bound. From the perspective of this survey, these systems also expose resources not captured by code length, notably encoding and decoding time and the size of the shared learned model. We note that practical systems are generally evaluated by prediction loss, sample quality, or application performance, rather than by guarantees that hold uniformly over all efficiently samplable distributions, as P.I and P.II require.
P.III is closest to learning when labels may be noisy and the target need not belong to the chosen hypothesis class. Haussler [66 ] extends the PAC model to general loss minimization, while Kearns, Schapire, and Sellie [115 ] formulate the agnostic model, in which performance is compared with that of the best predictor in a class. Tractable results for noisy labels generally assume additional structure. For example, Natarajan et al. [140 ] study loss correction when the probability of a label error depends only on the true label. This is one example from a vast theoretical and empirical literature, which we do not attempt to survey here.
P.IV considers learning through chosen queries. Angluin [10 ] provides a foundational framework for query learning. Practical counterparts arise when a learner can choose which inputs are labelled, as in active learning [32 ] , or can experiment with an implemented system, as in black box checking [149 ] and model extraction [TZJ^{+}16]. Membership queries provide stronger access than the common pool-based model of active learning, since they allow the learner to query any input rather than only examples from a fixed unlabelled sample.
P.V has a broader practical analogue. A heuristic learning algorithm may succeed on concepts that arise naturally in an application even if it fails on adversarial or otherwise atypical concepts from the same representation class. This is precisely the relaxation captured by P.V.
The empirical success of modern machine learning remains compatible with the hardness results discussed above. As explained before, the learning paradigms concern uniform guarantees over broad families of efficient sources, distributions, or circuits, which can be far more general than success on the structured instances encountered in practice. These stronger theoretical guarantees enable the connections to cryptography and average-case complexity, which in turn yield hardness of learning results.
Cryptographic Hardness of Learning. The cryptographic literature approaches learning from the opposite direction to much of this survey, using cryptographic assumptions to prove that particular concept classes are hard to learn. Classical examples include the reductions of Pitt and Valiant [148 ] and of Kearns and Valiant [117 ] , followed by other representative examples such as Klívans and Sherstov [113 ] and Daniely et al. [44 ] (see also [11 ] and subsequent work [41 , 47 ] ). There is an extensive literature on the hardness of learning tasks under a variety of cryptographic conjectures, and reviewing these results is beyond the scope of this section.
A related line of work investigates whether weaker complexity-theoretic assumptions are sufficient to rule out efficient learning. Applebaum, Barak, and Xiao identify barriers to basing such results on standard worst-case assumptions [ABX08]. Goldberg and Kabanets [60 ] show that certain formulations of NPhardness of learning characterize witness encryption, while Blanc et al. [20 ] derive computational and statistical tradeoffs from NP hardness.
The discussion of white-box learning from § 4.5 concentrates on one-way functions. Liu, Mazor, and Pass [124 ] obtain a corresponding characterization of public-key encryption through a richer white-box learning problem. The existence of secure key-agreement protocols has also been characterized via notions from Kolmogorov complexity and meta-complexity [24 ] .
Description Length in Statistical Inference and Prediction. The treatment in § 6 uses coding as a bridge between probabilistic prediction and compression, with particular attention to computational efficiency. Minimum Message Length (MML), originating in the work of Wallace and Boulton [176 ] , and Minimum Description Length (MDL), introduced by Rissanen [152 ] , instead use description length as a criterion for statistical inference and model selection. Barron, Rissanen, and Yu [28 ] give a standard account of the connections among MDL, universal coding, and statistical inference, while Vitányi and Li [173 ] relate MDL and MML to Bayesian inference and Kolmogorov complexity.
Dawid [43 ] formulated the prequential (“predictive and sequential”) approach, which evaluates a statistical method through the predictions it issues sequentially; under log loss, these predictions themselves define a code. Rissanen [153 ] connects universal coding with prediction and estimation, while Feder, Merhav, and Gutman [52 ] study universal prediction of individual sequences. Cesa-Bianchi and Lugosi [36 ] give a standard treatment of sequential prediction and regret. These traditions are close to the coding interpretation developed above, but they generally concern statistical performance rather than the efficient computational transformations that are central here.
Building on Kolmogorov’s earlier ideas about separating structure from randomness, Gács, Tromp, and Vitányi [65 ] develop algorithmic statistics, asking how much of an individual string’s shortest description should be regarded as an explanatory model and how much as unexplained randomness. This is related to the use of algorithmic information theory for extrapolation in § 5.2 , but its primary object is the structure of a given string rather than prediction from a sequence.
Similarity via Compression. A different use of compression in machine learning, not covered in the survey, treats the lengths produced by a compressor as a measure of similarity between individual objects. Li et al. [119 ] introduce normalized information distance and demonstrate practical approximations using standard compressors, while Cilibrasi and Vitányi develop normalized compression distance into a general clustering method [40 ] . More recently, Jiang et al. [103 ] illustrate the same idea in text classification by combining gzip with a nearest neighbor rule. This perspective is complementary to the connections between learning and compression discussed in the survey: compression is used directly as a data analysis primitive, without learning an explicit model.