Summary
This paper introduces a theoretical framework for analyzing autoregressive learners. At its core is a formal definition of autoregressive learnability (AR Learnability), analogous to PAC Learnability.
AR Learnability is defined with respect to distributions over strings over a finite set of tokens $\mathbb{D}$. More specifically, these are distributions $\mathcal{D}$ over contexts $\mathcal{X} = \mathbb{D}^n$ and continuations $\mathcal{Z} = \mathbb{D}^T$ for some integers $n$ and $T$.
Briefly stated, a hypothesis class $\mathcal{H}$ is AR Learnable if there is an algorithm that, for any realizable distribution $\mathcal{D}$, takes as input samples from $\mathcal{D}$ and outputs (w.h.p.) a hypothesis $h \in \mathcal{H}$ such that $h(x,z_{\<t}) = z_t$ for most $t \leq T$. That is, a hypothesis that can (mostly) correctly generate the continuation of the context $x$ as in the distribution $\mathcal{D}$.
This definition is rigorously analyzed. The first batch of theoretical findings (theorems) are concerned with the universality of AR learners:
1. The product of $T$ PAC-learnable hypothesis classes AR-learable [Theorem 3].
2. A generalization of AR-learability to the setting of computing/approximating functions; AR-learnable classes are approximable [Theorem 5]
3. Linear AR models ($\mathcal{H}^{\mathrm{lin}}$) can approximate any $f \in \mathrm{TIME}(T(n))$ w.r.t any distribution $\mathcal{D}$ given access to a dataset of $\mathrm{poly}(\mathrm{T(n)})$-length strings [Corollary 8].
The last item above is particularly significant because, in the supervised (i.e., "standard") setting, the analogous class to $\mathcal{H}^{\mathrm{lin}}$ are known to be so weak that they cannot learn the XOR function. To my understanding, Corollary 8 is proven by representing the function $f$ as a linear threshold circuit $C_f$; the dataset is populated by sampling an $x \gets \mathcal{D}$ and adding a row that represents the outputs of intermediate gates of $C_f(x)$.
Considering the above proof, it is perhaps not surprising that AR learners are universal learners; the "heavy-lifting" is done by the dataset, which verbosely represents the computed function. Thus, the authors define and analyze a new complexity measure for AR learners, called the _length complexity_: For a given hypothesis class $\mathcal{H}$ and a target function class $\mathcal{F}$, the length complexity is the [minimal? see Weaknesses] number of autoregressive steps $T$ such that each $f \in \mathcal{F}$ can be computed by some $h \in \mathcal{H}$ within $T$ autoregressive steps. Intuitively, length complexity should capture the length of a chain-of-thought used when training the model.
Finally, the authors show that parities over $n$ bits can be computed by $\mathcal{H}^{\mathrm{lin}}$ with length complexity $O(\log n)$. Additionally, they prove a theorem depicting a trade-off between the richness of the hypothesis class and the length complexity, by showing that parities over $n$ bits can be learned by $k$-order parities over $\geq n$ bits, with length complexity $\Theta(n / k)$.
The authors supplement the theoretical framework and findings with experimental evaluation. First, they show that an adaptation of $\mathcal{H}^{\mathrm{lin}}$ with 162M parameters exhibits non-trivial learning on TinyStories; it is often able to generate coherent text. Second, they show that a 4-layer MLP with 775M parameters can learn to multiply 4 digit numbers as well as Goat 7B, provided sufficiently long chain-of-thought (i.e., length complexity) and a custom tokenization scheme.
Strengths
- This paper provides a theoretical foundation for an increasingly important topic, namely, understanding the emergent abilities of autoregressive learners.
- Several theoretical works have already tackled the questions of autoregressive learning. However, to my knowledge, this is the first paper to propose a generic defintion analogous to PAC-learning. This is significant because it may inspire learning theorists to search for analogous results to what is known in the rich literature of PAC. For example, as the authors suggest, it would be interesting to find an intrinsic dimension of hypothesis classes that governs AR-learnability (cf. VC-dimension).
- The theoretical framework presented in this paper is an appropriate operationalization of autoregressive learning: the definitions stay close to autoregressive learning as it is implemented in practice (at least conceptually).
- I find the framework itself appealing. It is not easy to come up with a clean definition based on an existing phenomenon, as they real world is often "messy". The definitions strike a good balance between intuitiveness/simplicitly, to being non-trivial ("mysterious") enough to invite further analysis.
- Overall, the paper is clearly written. Reading it was an enjoyable experience!
- I particularly appreciate how well-organized this paper is. It first presents a fairly intuitive definition, and then provides a sequence of theorems and refinements of this definition to interesting settings. That is to say, the paper "tells a convincing story" about autoregressive learning.
- This "story" that the theory suggests is then supported by experimental results fairly adequetly. While the experimental setup is somewhat simplistic as compared to more empirical works, I do not think that a grander setup is needed for this type of paper.
- While I did not verify the proofs of all theorems, I have read some of them (especially Theorem 7) and they seem correct. I would also like to emphasize that the simplicity of the proofs should not be viewed as a weakness of this paper. Coming up with the right definition (from which intuitive theorems are easy to prove) is a challenging part of many theoretical works; in this case, the authors did well in carefully designing their framework.
Weaknesses
Listed in decreasing order of significance.
## TinyStories experiment is anecdotal, compares to wrong model?
I am not sure what are the actual results being reported with the TinyStories experiment: What I found is a footnote on a 1.2 difference in perplexity between the linear predictor and GPT-2 Small---but I'm not sure what to make of this quantity. And there is a statement that the linear predictor "often does produce coherent text". But how often? And how do you measure coherence? While I lack the expertise to suggest a concrete experiment, I expect a higher level of rigour for a paper at ICLR. Perhaps the authors could refer to the TinyStories paper and reproduce some of the experiments there with their model.
Relatedly, it seems that in the TinyStories paper there is a 28M-parameter model that achieves performance comparable to GPT2-XL. Therefore, the comparison of the linear predictor to GPT2-Small seems inappropriate---much better performance can be attained with 5x less parameters. Perhaps the authors should compare the linear predictor to [that model](https://huggingface.co/papers/2305.07759) instead. Discovering that a linear predictor requires significantly more parameters than a (good) transformer model to achieve comparable performance would undermine the main message of the paper (that the power of LLMs can be attributed to AR rather than architecture). Please correct me if you disagree that comparing to the TinyStories transformer is a more fair comparison towards this end.
## Linear Decoders should be defined more slowly
- Given the significance of linear ARs (linear decoders) throughout the paper, I suggest defining them more slowly and in their own Definition environment---rather than presenting them as an "Example". A Definition environment is more easy to refer back to, and encourages more formal writing.
- A figure depicting the construction would be welcome: I had to work it out with pen and paper on the margin.
- "Under some margin conditions and using a convex surrogate loss function, this class is in fact learnable using SGD." This sentence must be supported by either a citation or a proof. As it is currently phrased it is too vague and not well-enough argued for to be used as a true statement (the current level of rigour is more appropriate for a tangential side-note).
- Observe that this class is learnable in polynomial time: Say PAC-learnable, becuase this paper uses multiple notions of learnability.
## Length complexity is not well-defined
As length complexity is currently defined in Definition 9, a class $\mathcal{H}$ has infinitely many length complexities for computing a given $\mathcal{F}$. This is because if $T$ is a length complexity of $\mathcal{H}$ for computing $\mathcal{F}$, then so is any $T' \geq T$. Instead, you should define the length complexity of $\mathcal{H}$ computing $\mathcal{F}$ to be _the minimal $T$ for which the conditions stated in the definition hold.
On that note, it would be illuminating (and add to the cohesion of the paper) if the authors spell-out the length complexity of the construction from Theorem 7.
## Missing citations
- Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective by Feng et al. (2023): This work gives a complexity-theoretic explanation to the success of chain-of-thought, especially in mathematical reasoning. The techniques seem entirely different, and it is focused on transformer architectures (rather than focusing on the autoregressive aspect of LLMs, as in the paper currently under review). Still, it clearly fits in three of the four topics covered by the related work (all save for "Beyond Transfomers").
- Fast Learning Requires Good Memory: A Time-Space Lower Bound for Parity Learning by Raz (2016): This prominent result (FOCS best paper, JACM) should probably be mentioned in the first paragraph of Section 2.3.1 that discusses hardness results for parities.
## Other minor writing comments
- Page 4 above Definition 2: "...for all **sub-sequences** $z_{<t}$" should be **prefixes** (sub-sequences is correct but less accurate).
- Definition 2: Should say "for every $\epsilon, \delta \in (0,1)".
- Definition 2: Should say "If there exists $m \colon (0,1)^2 \to \mathbb{N}$" such that... Otherwise, the order of quantifiers / role of $m$ is unclear.
- Definition 2: Should say "returns w.p. $\geq 1-\delta$ a function $h \in \mathcal{H}$. Also, the first use of w.p. should be explicitly defined ("with probability (w.p.)") so that the paper is accessible to a broad audience.
- Theorem 3: It would be nice to write "then \mathcal{H} = \mathcal{H}_1 \times \dots \times \mathcal{H}_T". Ideally, theorem statmenets should be as self-contained as possible as they are often used for quick reference.
- Definition 4: I would say that "$h$ computes $f$ w.r.t \mathcal{D}". That is, explicitly include $\mathcal{D}$ in the definition, since it is crucial. Likewise for the definition of _approximates_.
- Theorem 5: If the previous comment is accepted, this statement should be updated.
- Theorem 6: If my understanding of the proof is correct (see Summary of this review, above), it is worth adding a sentence explaining what the dataset is to the body of the paper---rather than just saying the main fact the proof relies on, explain how it is used.
- Theorem 7 and Corollary 8: use the notation $\mathcal{H}^{\mathrm{lin}}$ here when referring to linear AR functions/models. Otherwise, the notation surprisingly re-appears on the next page.
- Section 2.3.1: This is a matter of taste, but I would find it more informative to use $\mathcal{P}_n$ to denote the class of parities on $n$ bits. This is because $\mathcal{F}$ was previously used to refer to a generic class of functions.
- Section 2.3.1, second paragraph after Theorem 10: when defining $\mathcal{F}_{n,k}$, it should be $A \in \binom{[n]}{\leq k}$. Note the square brackets around $n$.
- Section 2.3.1, above Theorem 11: It would be much better to avoid using $\approx$ notation in favor of notation with more well-defined meaning, such as $O(\cdot)$.
- Section 2.3.1, above Theorem 11: Should be "and a sample complexity of $\approx k \log n$" (not "the sample complexity").
Questions
Many of the suggestions/qualms I listen in Weaknesses above can be rephrased as a question. I am open to discussing any of these, and would consider updating my score based on these being addressed in a revision. My only remaining question is whether the authors intend to release the code used for their experiments so that the reader may reproduce them.
Rating
8: accept, good paper
Confidence
3: You are fairly confident in your assessment. It is possible that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.