Sutskever Ties AI Generalization to Data Compression Limits

An Observation on Generalization — Simons Institute for the Theory of Computing

Simons Institute for the Theory of Computing

Unsupervised pre-training succeeds because next-step prediction forces neural networks to execute bounded program searches that extract shared algorithmic structure from data.

AI-assisted summary of An Observation on Generalization — original source. Check the original for full context.

Source published:

Key ideas

  • Supervised learning provides ironclad generalization guarantees via simple three-line union bounds, while unsupervised learning theoretically remains mysterious due to the persistent mismatch between surrogate pre-training objectives and downstream evaluation tasks. (2:01)
  • Unsupervised pre-training can be rigorously understood through joint data compression: optimizing models on concatenated datasets uncovers algorithmic mutual information, formally explaining how pre-training on general data directly boosts downstream supervised transfer. (14:48)
  • Stochastic gradient descent operates as a practical, continuous micro-program search over neural circuits, approximating theoretical non-computable Kolmogorov complexity under fixed parameter and execution budgets. (20:40)
  • OpenAI's 2020 Image GPT experiment proved that autoregressive next-step prediction alone extracts high-level semantic representations without specialized inductive biases, achieving 99% accuracy on CIFAR-10 via linear probing. (31:51)

Detailed notes

## Background Published on YouTube by the Simons Institute for the Theory of Computing on August 14, 2023, this lecture features Ilya Sutskever of OpenAI speaking on fundamental perspectives regarding generalization. According to the page description and talk details, the session covers large language models and transformers within the context of theoretical computer science.

## TL;DR Ilya Sutskever contrasts the mathematically sound guarantees of supervised learning with the persistent theoretical mystery behind why unsupervised learning succeeds. He proposes viewing unsupervised pre-training through algorithmic information theory and joint data compression, where predictive modeling acts as a compressor and success is framed through regret minimization against optimal shared-structure extraction. Sutskever characterizes neural network training with stochastic gradient descent as a continuous, bounded approximation of Kolmogorov program search, citing OpenAI's Image GPT results as empirical proof that next-step likelihood maximization inherently produces rich semantic representations. In an extended Q&A, he explores why autoregressive prediction yields superior linear representations over masked models, acknowledges how pure compression theory ignores real-world compute costs, and explains why smooth optimization landscapes diminish the need for curriculum learning.

## Atmosphere & style The presentation carries an intimate, cerebral, and refreshingly candid atmosphere, marked by Sutskever’s low-key delivery and self-deprecating humor regarding OpenAI's corporate secrecy. Rather than presenting a slick corporate keynote, he treats the audience of theoreticians to an exploratory, whiteboard-style reflection on first principles, playfully welcoming audience callouts when a typo is spotted on his slide. The subsequent discussion feels like a spirited seminar among intellectual peers, with audience members cordially defending classical learning theory while Sutskever offers grounded, pragmatic insights into modern deep learning.

## Bulletin - [02:01](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=121s) Supervised learning provides ironclad generalization guarantees via simple three-line union bounds, while unsupervised learning theoretically remains mysterious due to the persistent mismatch between surrogate pre-training objectives and downstream evaluation tasks. - [14:48](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=888s) Unsupervised pre-training can be rigorously understood through joint data compression: optimizing models on concatenated datasets uncovers algorithmic mutual information, formally explaining how pre-training on general data directly boosts downstream supervised transfer. - [20:40](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1240s) Stochastic gradient descent operates as a practical, continuous micro-program search over neural circuits, approximating theoretical non-computable Kolmogorov complexity under fixed parameter and execution budgets. - [31:51](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1911s) OpenAI's 2020 Image GPT experiment proved that autoregressive next-step prediction alone extracts high-level semantic representations without specialized inductive biases, achieving 99% accuracy on CIFAR-10 via linear probing.

## Key takeaways - [02:01](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=121s) Supervised learning rests on a complete theoretical foundation where bounded degrees of freedom and identical train/test distributions mathematically guarantee generalization. - [05:51](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=351s) Vapnik–Chervonenkis (VC) dimension is largely an artifact of assuming infinite precision parameters; finite-precision digital computation allows generalization bounds to reduce directly to counting arguments and concentration bounds. - [07:16](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=436s) The core mystery of unsupervised learning is the objective gap: optimizing an arbitrary proxy loss like next-token prediction should not mathematically guarantee performance on distinct downstream capabilities. - [12:14](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=734s) High-dimensional distribution matching offers theoretical guarantees for unsupervised alignment without paired data, but remains too artificial to explain modern representation learning. - [14:48](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=888s) Compression and prediction are mathematically equivalent, and joint compression of concatenated datasets exposes shared structure through algorithmic mutual information. - [18:27](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1107s) A low-regret unsupervised algorithm guarantees extracting all possible utility from an auxiliary dataset, ensuring optimal performance whether the data is highly structured or pure noise. - [20:40](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1240s) Kolmogorov complexity serves as the ultimate idealized low-regret compressor, and training neural networks with SGD acts as an empirical micro-Kolmogorov bounded program search. - [24:59](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1499s) Architectural modifications often yield marginal benefits because baseline networks easily simulate them, whereas breakthroughs occur when intrinsic bottlenecks are broken, such as transitioning from RNNs to Transformers. - [29:26](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1766s) Evaluating accumulated negative log probabilities across independent training samples directly measures the dataset's total compression size in bits. - [31:51](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1911s) Image GPT (iGPT) validated the compression theory across modalities by demonstrating that next-pixel prediction on flattened images naturally yields linearly separable semantic features. - [36:20](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2180s) Autoregressive next-step prediction forces models to resolve hard, long-range dependencies, producing superior linear representations compared to masked models like BERT that rely on local interpolation. - [38:27](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2307s) The analogy between neural network training and Kolmogorov complexity breaks down primarily at the search procedure, as SGD is a path-dependent, local heuristic rather than an exhaustive search. - [45:03](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2703s) Compression theory predicts the emergence of strong fine-tuning capability rather than strictly requiring linear representation manifolds. - [48:01](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2881s) Pure compression theory ignores computational costs, treating autoregressive models, diffusion models, and Universal Transformers as interchangeable despite massive differences in practical engineering efficiency. - [49:46](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2986s) In the regime of an infinite or arbitrarily large test distribution, the byte size of the compressor's parameters becomes negligible relative to the total evaluated data volume. - [52:52](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=3172s) Curriculum learning matters significantly for fragile, heterogeneous architectures like Neural Turing Machines, but becomes largely unnecessary when the loss landscape and optimizer are well-behaved.

## Detailed walkthrough ### [00:00](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=0s) Introduction and Revisiting Old Insights from OpenAI

Yejin Choi introduces Ilya Sutskever, highlighting his massive academic impact with a citation count spanning six digits—surpassing 139,000 citations—and expresses excitement to hear his perspective on large language models and the future. Stepping up to the podium amid applause, Sutskever begins with an candid, humorous admission about the constraints around his talk. When Umesh Vazirani invited him to speak at the Simons Institute, Sutskever looked at the impressive speaker lineup and eagerly planned to present recent developments. However, he quickly encountered a familiar dilemma: “And then I ran into a problem, which is that a lot of the technical work that we're doing at OpenAI, I actually can't talk about.”

He explains that his entire research focus had recently shifted to AI alignment. Although that work is yielding very compelling results, the findings are not quite ready for public disclosure and will have to wait for a future talk. Searching for a suitable topic, Sutskever decided to turn back the clock to fundamental foundational concepts: “I'll tell you about some very old results that we had at OpenAI many years ago, back in 2016 even, which really affected the way I think about unsupervised learning.” Acknowledging that the audience of theoreticians and researchers might find some points obvious today, he sets expectations modestly, hoping to share an intuitive yet rigorous framework for how a mathematical theory of unsupervised learning can actually exist.

[02:01](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=121s) The Mathematical Elegance of Supervised Learning

Before dissecting unsupervised learning, Sutskever steps back to an even more fundamental inquiry: what is learning itself, and why should computers be able to do it at all? Practitioners have grown so accustomed to the empirical success of deep learning that they simply take for granted that neural networks learn, yet there is no a priori reason why natural data must exhibit regularities that algorithms can capture. The conceptual foundation that demystified this question decades ago was the formalization of supervised learning through PAC (Probably Approximately Correct) learning and statistical learning theory.

```mermaid flowchart TD accTitle: Supervised Learning Generalization Guarantee accDescr: Diagram showing how training data matching test distribution under bounded function capacity guarantees generalization.

subgraph Assumptions["Core Conditions"] D["Train Distribution == Test Distribution"] C["Degrees of Freedom < Training Set Size"] end

subgraph Optimization["Empirical Risk Minimization"] L["Find Function with Low Training Error"] end

subgraph Guarantee["Mathematical Guarantee"] G["Low Test Error Guaranteed"] end

Assumptions --> Optimization Optimization --> Guarantee ```

The beauty of supervised learning lies in providing an exact mathematical condition guaranteeing success. If a learning algorithm draws training samples from a distribution, identifies a function in its hypothesis class that achieves low empirical training error, and the model's degrees of freedom remain smaller than the dataset size, low generalization error on the test distribution is mathematically assured. Sutskever highlights how this entire foundation can be proved in roughly three lines of union-bound mathematics: “So three lines of math can prove all of supervised learning.” With identical training and testing distributions, supervised learning transforms seemingly complex real-world tasks—such as speech recognition or image categorization—into conceptually solved, mathematically sound problems where simply scaling up datasets guarantees improved performance.

[05:51](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=351s) A Note on VC Dimension vs. Finite Precision

Sutskever digresses briefly with an aside directed at audience members who care about statistical learning theory mechanics, offering that anyone uninterested could safely zone out for thirty seconds. He observes that textbooks and research papers routinely place immense emphasis on Vapnik–Chervonenkis (VC) dimension as the central pillar of generalization theory. However, Sutskever argues that VC dimension is largely a mathematical workaround for idealized real numbers: “The VC dimension was invented to handle precision parameters with infinite precision.”

In theoretical models like infinite-precision linear classifiers, parameters can hold arbitrary real values, necessitating combinatorial measures like shattering coefficients. In physical computation, however, every parameter is represented as a finite-precision floating-point number, and modern machine learning tends toward ever-shrinking bit precisions. Because digital computers can only express a finite set of discrete functions, generalization bounds reduce straightforwardly to discrete counting arguments and simple concentration bounds. Sutskever finds this finite perspective far cleaner and more appealing because it bypasses technical measure-theoretic machinery and establishes tight bounds in just a few lines of proof.

[07:16](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=436s) The Paradox and Mystery of Unsupervised Learning

Shifting to unsupervised learning, Sutskever underscores a glaring theoretical void: unlike supervised learning, there is no widely accepted mathematical condition that explains why unsupervised learning works. Historically, unsupervised learning carried an ambitious dream—dating back to Boltzmann machines in the 1980s, denoising autoencoders, and early language models—that exposing a network to raw images or unannotated text would force it to uncover the latent physical and semantic structures of reality. While contemporary large language models and diffusion models have fulfilled this ambition empirically, Sutskever maintains that our mathematical understanding remains deeply unsatisfying.

The core conceptual paradox stems from a profound objective mismatch: - **Optimization Target:** You optimize a proxy objective on unlabeled data, such as reconstruction loss, denoising error, or self-supervised next-token prediction. - **Evaluation Target:** You evaluate the model on an entirely different downstream downstream capability, such as classification, reasoning, or representation quality. - **The Mystery:** Why should minimizing one arbitrary surrogate loss guarantee success on an entirely different task?

As Sutskever puts it: “You optimize one objective, but you care about another objective. And yet it helps. How can that be? Magic.” Furthermore, unsupervised learning offers zero benefit if the input data is drawn from a featureless uniform distribution. Because real data must possess specific non-trivial structure for unsupervised learning to aid downstream tasks, any coherent theory cannot rely solely on empirical optimism; it must establish what assumptions are necessary to guarantee that unsupervised representations transfer.

[11:24](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=684s) Distribution Matching: An Unsupervised Method Guaranteed to Work

To cut through this mystery, Sutskever introduces an alternative formulation of unsupervised learning that, while never becoming the dominant practical approach, possesses the rare property of being provably guaranteed to work: distribution matching.

Instead of relying on heuristic surrogate losses and hoping for downstream transfer, distribution matching operates across two distinct, unaligned data domains, $X$ and $Y$. Crucially, there are no paired examples, correspondence maps, or supervised labels bridging them—only independent samples drawn from their respective distributions. Sutskever poses distribution matching as a rigorous unsupervised learning paradigm that mirrors the mathematical guarantees of supervised learning, setting the stage to explore how mapping one distribution onto another can unlock provable unsupervised alignment.

[12:14](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=734s) Distribution Matching and Its Limitations

Ilya Sutskever examines the problem of unsupervised alignment where there is no explicit pairing between two domains—such as language one and language two, or text and speech. The learning criterion is to find a function $f$ such that the transformed distribution of inputs, $f(X)$, matches the target distribution $Y$. When the inputs and outputs live in a sufficiently high-dimensional space, matching these distributions imposes a massive system of constraints on $f$. In settings like machine translation, speech recognition, or simple substitution ciphers, this condition can be restrictive enough that matching the marginal distribution of translated English sentences to French sentences allows one to almost completely recover the underlying mapping function $f$.

```mermaid flowchart LR accTitle: Distribution Matching Framework accDescr: Unpaired distribution X is transformed via function f to match distribution Y under high-dimensional constraints. subgraph InputSpace ["Source Domain"] X["Unpaired Data X<br/>(e.g., English text)"] end subgraph Mapping ["Transformation"] F["Function f"] end subgraph TargetSpace ["Target Domain"] Y["Target Data Y<br/>(e.g., French text)"] Match{"Distribution Matching<br/>dist(f(X)) ≈ dist(Y)"} end X --> F F --> Match Y --> Match ```

Reflecting on his own intellectual journey, Sutskever shares that he independently arrived at this distribution-matching formulation in 2015 and was initially enthralled by it, believing it might provide a rigorous mathematical foundation for unsupervised learning with theoretical guarantees analogous to supervised learning. However, he came to realize that the setup remains somewhat artificial and does not reflect how machine learning actually operates in practice, nor how researchers intuitively conceptualize unsupervised representation learning.

> “If the dimensionality of X and the dimensionality of Y is high enough, that's going to give you a lot of constraints.” — Ilya Sutskever

- Distribution matching establishes guarantees by requiring that applying $f$ across an entire high-dimensional dataset yields an output distribution indistinguishable from the target domain. - While mathematically solvable for settings like substitution ciphers and machine translation, the framing fails to capture the true versatility and mechanics of modern unsupervised deep learning.

---

[14:48](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=888s) Compression Is Prediction: The Joint Compression Thought Experiment

To place unsupervised learning on an equal footing with supervised learning, Sutskever pivots to the principle that compression and prediction are fundamentally identical. While it is well-established that every predictor corresponds to a compressor and vice versa, Sutskever argues that framing the problem through the lens of data compression provides far sharper intuition. He introduces what he calls the central thought experiment of his talk: imagine having two separate files on a giant hard drive, a dataset $X$ and a dataset $Y$, and running a high-grade compression algorithm $C$ on their concatenation.

```mermaid flowchart TD accTitle: Joint Compression and Mutual Information accDescr: Concatenating dataset X and dataset Y through compressor C exposes shared algorithmic structure. subgraph Data ["Data Inputs"] X["Unsupervised Data (X)"] Y["Supervised Data (Y)"] end subgraph JointCompression ["Concatenation & Compression"] Concat["Concatenation (X + Y)"] Comp["Compressor C"] end subgraph Output ["Information Metrics"] Size["Compressed Size C(XY)"] Bound["C(XY) ≤ C(X) + C(Y)"] Gap["Shared Structure / Algorithmic Mutual Information"] end X --> Concat Y --> Concat Concat --> Comp Comp --> Size Size --> Bound Bound --> Gap ```

A sufficiently powerful compressor operating on the concatenated string $XY$ will instinctively leverage regularities, patterns, and structure discovered in $X$ to reduce the file size of $Y$, and vice versa. For any competent compressor, compressing the concatenated files jointly will yield a representation that is no worse than the sum of compressing each file independently ($C(XY) \le C(X) + C(Y)$). The compression gap between separate and joint compression represents the shared structure discovered across both domains—the algorithmic mutual information. When $Y$ represents a supervised downstream task and $X$ represents an unlabeled unsupervised corpus, joint compression provides a concrete mathematical justification for why unlabeled patterns directly aid downstream supervised performance, naturally subsuming distribution matching when an invertible mapping $f$ exists.

> “So any additional compression that was gained by concatenation is some kind of shared structure that your compressor noticed.” — Ilya Sutskever

- There is a strict one-to-one correspondence between predictive statistical models and lossless data compressors. - Jointly compressing concatenated files uncovers algorithmic mutual information, formally explaining how pre-training on general data ($X$) accelerates or enhances learning on a target task ($Y$).

---

[18:27](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1107s) Formalizing Unsupervised Learning via Regret

Building on the joint compression paradigm, Sutskever addresses how to formalize the evaluation of an unsupervised machine learning algorithm. Suppose an algorithm $A$ is tasked with compressing a target file $Y$ while being granted arbitrary read access to an unlabeled reference file $X$. The benchmark of success is framed as minimizing regret: evaluating how much predictive or compressive performance algorithm $A$ left on the table compared to the best possible compressor that could have processed that same unlabeled dataset.

Sutskever emphasizes the practical comfort of a low-regret algorithm: in real-world scenarios, a practitioner cannot know in advance whether an unlabeled dataset $X$ contains rich, task-relevant representations or consists entirely of uninformative noise, such as samples from a uniform distribution. A low-regret unsupervised learning algorithm guarantees that regardless of data quality, it extracts the maximum possible utility. If the data contains crucial insights for task $Y$, the algorithm exploits them fully; if the data is useless, it suffers no competitive disadvantage compared to any alternative method.

> “Being low regret means that I've gotten all the help that I can possibly get from this unlabeled data.” — Ilya Sutskever

- Regret measures the performance gap between a given learning algorithm and the theoretical optimum achievable when leveraging auxiliary unlabeled data $X$ to predict $Y$. - A zero-regret or low-regret unsupervised algorithm guarantees optimal sample efficiency from unlabeled corpora, granting practitioners confidence that no better extractor could extract more value from the available data.

---

[20:40](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1240s) Kolmogorov Complexity and SGD as Program Search

Sutskever shifts into theoretical territory, identifying Kolmogorov complexity as the ultimate, idealized low-regret compressor. By definition, the Kolmogorov complexity of a string is the length of the shortest computer program that outputs that string. When an audience member spots an error on the slide—pointing out that the definition displays $Y$ where it should say $X$—Sutskever playfully acknowledges the catch: “Yes, that is correct. You got me.” He outlines the simulation argument proving why Kolmogorov complexity acts as an upper bound on compression efficiency: if an engineer presents any compression algorithm $C$, that compressor can simply be encoded as an executable program and fed into the universal Turing machine, costing only the original compressed data length plus a constant overhead representing the code length of $C$.

Because the Kolmogorov compressor effectively evaluates all possible computer programs, it is fundamentally undecidable and non-computable. However, Sutskever draws an explicit connection between this theoretical ideal and modern deep learning. When stochastic gradient descent (SGD) optimizes the parameters of a 100-layer neural network, it is effectively executing a continuous, bounded program search over a physical computing circuit possessing a fixed memory footprint and execution budget. Sutskever describes training deep neural networks as a form of “micro-Kolmogorov” program search, marveling that the empirical success of deep learning rests upon the remarkable fact that gradient descent can reliably navigate this computational search space.

> “And all of deep learning hinges on top of the SGD miracle that we can actually train these computers with SGD.” — Ilya Sutskever

- Kolmogorov complexity represents the theoretical limit of compression, satisfying $K(X) \le C(X) + O(1)$ for any computable compressor $C$ via the simulation argument. - Although non-computable in the Turing sense, deep neural networks act as circuits (programs), and optimizing them with SGD represents an empirical approximation of bounded program search.

[24:59](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1499s) From Formal Kolmogorov Complexity to Neural Networks

Moving from theoretical foundations to empirical deep learning, the circuits that approximate theoretical programs are found directly from data via optimization. Sutskever notes that this perspective explains why designing fundamentally superior neural network architectures is notoriously difficult: an architectural variation such as adding a specialized connection or modifying layers usually provides minimal benefit because the existing architecture can easily simulate the new one.

The notable exception occurs when an old architecture faces an intrinsic bottleneck that prevents straightforward simulation. A canonical example is transitioning from recurrent neural networks (RNNs) to Transformers: the RNN relies on a fixed-size hidden state that bottlenecks its capacity, rendering it incapable of efficiently simulating a Transformer's global attention mechanism. Sutskever muses that if engineers had discovered a technique to scale an RNN's hidden state to massive dimensions, it might have remained competitive with Transformers. Through this lens, empirical deep learning maps directly onto algorithmic information theory, moving from abstract proofs into actionable engineering.

```mermaid flowchart TD accTitle: Architectural Simulation and Kolmogorov Approximation accDescr: Diagram illustrating how neural network search mirrors Kolmogorov complexity and why architecture modifications often fail due to simulation arguments.

subgraph Theory["Algorithmic Information Theory"] KP["Shortest Program Search<br/>(Kolmogorov Compressor)"] NoRegret["Theoretical Ideal:<br/>Zero Regret Predictor"] end

subgraph DeepLearning["Empirical Deep Learning"] SGD["Stochastic Gradient Descent (SGD)"] NN["Large Neural Networks"] Bottleneck{"Architectural<br/>Bottleneck?"} SimOld["Easily simulated by baseline<br/>(Marginal improvement)"] Breakthrough["Fundamental breakthrough<br/>(e.g., RNN &rarr; Transformer)"] end

Theory -.->|"Squinting / Analogous mapping"| DeepLearning SGD --> NN NN --> Bottleneck Bottleneck -- "No" --> SimOld Bottleneck -- "Yes" --> Breakthrough NN -.->|"Approximates closer as scale grows"| KP Breakthrough -.-> NoRegret ```

[26:12](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1572s) Conditional Complexity and the Joint Compression Shortcut

Sutskever extends the theoretical framing to conditional Kolmogorov complexity, denoted as $K(Y \mid X)$, which formalizes the length of the shortest computer program that outputs a target distribution or dataset $Y$ given the ability to probe an input dataset $X$. In this formulation, $X$ and $Y$ represent entire datasets rather than isolated individual examples. This construction mathematically extracts every drop of predictive utility from $X$ for predicting $Y$.

> “If you use that, you can sleep very, very safely at night—soundly at night, knowing that no one does unsupervised learning better than you.”

However, conditioning on massive training sets remains practically unwieldy in standard machine learning pipelines: models can easily fit huge collections of data, but dynamically conditioning on them remains largely unfeasible. Sutskever resolves this with a theoretical shortcut: rather than executing explicit conditional compression, an engineer can simply concatenate all data files into a single master sequence and apply a standard, unconditional Kolmogorov compressor to the combined input. Compressing the joint concatenation $X$ and $Y$ achieves the exact same predictive performance on downstream supervised targets.

- Conditional Kolmogorov complexity $K(Y \mid X)$ defines the algorithmic minimum code length to produce dataset $Y$ with access to dataset $X$. - Conditioning across massive corpora remains an open operational hurdle in machine learning workflows. - Unconditional compression on concatenated datasets mathematically matches conditional compression for downstream tasks. - Maximizing the joint data likelihood under parameter constraints aligns with standard machine learning training without overfitting.

[29:26](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1766s) SGD as Kolmogorov Program Search and the Limits of Text GPTs

Joint data compression translates directly into maximum likelihood estimation under the condition that a model avoids overfitting. The sum of the data negative log-likelihoods evaluated under the model parameters constitutes the compression cost of the dataset, balanced against the bit cost of storing the parameters themselves. Scaling up training simply requires appending more data points to the loss sum, making concatenation the most natural operation in deep learning.

Viewing gradient optimization through this prism suggests that running stochastic gradient descent (SGD) over giant neural networks functions as an empirical program search algorithm. Larger models approximate the theoretical Kolmogorov compressor more accurately, providing a crisp foundational justification for why scaling model parameters consistently improves generalization.

Sutskever points out an epistemological limitation when applying this hypothesis exclusively to Large Language Models (LLMs). The few-shot learning phenomena observed in autoregressive language models can be explained away without appealing to deep compression theories: - Natural text on the internet already consists of repeated patterns and prompts. - Autoregressive modeling naturally continues repeated sequences by conditioning on local context. - Because language behavior can be dismissed as surface-level text statistics, direct empirical validation required exploring an entirely different data modality.

[31:51](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1911s) Validating Compression on Pixels: The Image GPT (iGPT) Experiment

To rigorously validate whether next-step prediction inherently extracts semantic representations via compression, Sutskever highlights OpenAI's 2020 experiment, Image GPT (iGPT). Rather than treating vision with specialized convolutional architectures, iGPT flattened raw images into simple sequences of discrete pixel intensities and trained a standard autoregressive Transformer strictly on next-pixel prediction.

```mermaid flowchart LR accTitle: Image GPT (iGPT) Pipeline accDescr: Block diagram showing the process of turning raw images into pixels, autoregressive next-pixel prediction, and linear probing.

subgraph DataPrep["Data Preprocessing"] Img["Raw Image<br/>(64x64 resolution)"] --> Pixels["1D Sequence of<br/>Discrete Pixels"] end

subgraph Pretraining["Unsupervised Pretraining"] Pixels --> GPT["Autoregressive Transformer<br/>(Next-Pixel Prediction)"] GPT --> Comp["Maximizes Likelihood<br/>(Joint Compression)"] end

subgraph Evaluation["Linear Probe"] Comp --> Feat["Extract Hidden Features<br/>(Best Intermediate Layer)"] Feat --> Probe["Linear Classifier<br/>(ImageNet / CIFAR-10)"] end ```

Despite lacking inductive visual biases and using low-resolution $64 \times 64$ images, the model achieved remarkable representation learning. When fitting a basic linear probe atop frozen intermediate layers, classification accuracy scaled monotonically with next-pixel prediction accuracy. The model reached 99% accuracy on CIFAR-10 and nearly closed the performance gap with the top unsupervised vision techniques of 2020 on ImageNet using a 6-billion-parameter network. The result validated that generic next-step likelihood maximization inherently extracts high-level semantics from raw sensory input.

- **Data Representation:** Images serialized as discrete intensity pixel tokens fed sequentially into a standard Transformer architecture. - **Model Scale:** Up to 6 billion parameters, which Sutskever characterizes as "giant for the day" though "tiny by today's standards." - **CIFAR-10 Performance:** Linear probing on learned representations reached approximately 99% accuracy. - **ImageNet Linear Probing:** Competitive with contemporary state-of-the-art self-supervised vision methods despite the compute handicap of training on $64 \times 64$ inputs.

[34:50](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2090s) The Mystery of Linearly Separable Representations and Autoregression vs. BERT

Sutskever concludes his presentation by reflecting on the persistent puzzle of linear representations. While compression theory explains why optimization extracts predictive information, it fails to explain why that information should emerge in the form of linearly separable manifolds within neural activations.

> “The thing—I like the compression theory, because I feel like it just bothered me for a long time that you couldn't think rigorously about unsupervised learning. I claim now you can, at least to some partial degree.”

Empirical evaluations show that causal autoregressive architectures—like next-pixel or next-word prediction—consistently produce superior linear representations compared to masked bidirectional models like BERT. After wrapping up his prepared slides to applause, an audience member immediately asks him to share his speculation on why autoregressive next-step models yield such robust linear feature spaces. Sutskever begins addressing the question by focusing on the unique mechanistic pressures imposed by causal next-step prediction.

[36:20](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2180s) Next-Pixel Prediction vs. BERT and Diffusion Models

Ilya Sutskever contrasts autoregressive next-pixel prediction with bidirectional masked prediction methods like BERT. When predicting the next pixel sequentially from all preceding pixels, the network is forced to uncover and model long-range structure across the entire visual field. In a masked framework such as BERT, if roughly 25% of the tokens or pixels are omitted, a network can fill in most blanks simply by interpolating between nearby context—looking just slightly into the past and slightly into the future. By doing so, “you remove all the hard prediction tasks, or you make them much easier.” Consequently, the most challenging prediction tasks in next-pixel prediction are fundamentally far more demanding than the hardest tasks posed by masked prediction.

```mermaid flowchart TD accTitle: Autoregressive vs Masked Image Prediction accDescr: Comparison of next-pixel autoregression requiring global structure versus local interpolation in masked token modeling.

subgraph AR["Next-Pixel Prediction (Autoregressive)"] A1["Prior Context"] -->|"Requires global structure"| A2["Next Pixel"] end

subgraph Masked["BERT / Masked Autoencoding"] B1["Past Context"] --> B2["Masked Target (25%)"] B3["Future Context"] --> B2 B2 ---|"Local interpolation suffices"| B4["Easier Prediction Task"] end ```

When an audience member asks if a more robust two-dimensional formulation exists for next-pixel prediction, Sutskever clarifies that broadly speaking, any architecture that turns a neural network into a probabilistic model assigning normalized probabilities to inputs accomplishes this. He brings up diffusion models as the other prominent formulation for generative modeling. While high-performance image generators in practice optimize objectives other than pure data likelihood, the foundational formulation of diffusion is maximum likelihood. Sutskever points out that diffusion models serve as an intriguing counterargument or parallel: he claims diffusion models should form worse linear representations than autoregressive next-token models for the very same reason BERT does, which “further, in my mind, increases the mystery of what caused leads to linear representations to form.”

[38:27](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2307s) The Limits of the Kolmogorov Complexity Analogy

An audience member raises an objection regarding the analogy between neural network training and Kolmogorov complexity. In classic algorithmic information theory, compressing via Kolmogorov complexity searches over computer programs where the ordering of the data does not matter. Neural networks, by contrast, possess non-trivial training dynamics: simple heuristics and features are learned early on and persist, making training sensitive to data ordering and trajectory.

Sutskever fully acknowledges that the analogy breaks down precisely around the optimization and search mechanisms. A theoretical Kolmogorov compressor utilizes an infinitely expensive search procedure that enumerates and tests all possible programs from scratch each time, whereas practical deep learning relies on gradient descent. As Sutskever explains: “The place where that analogy breaks down the most is in the search procedure.” Because stochastic gradient descent (SGD) is a comparatively weak, path-dependent search heuristic, “caution should be used with this particular analogy.” Nevertheless, he maintains that the conceptual frame of compression provides indispensable intuition for understanding why unsupervised pre-training yields powerful representations.

- Kolmogorov complexity relies on an exhaustive brute-force search over all Turing machines from scratch. - Neural networks rely on stochastic gradient descent (SGD), a local and comparatively weak search procedure where data ordering and training dynamics matter. - Despite this optimization gap, viewing pre-training through the lens of compression explains the empirical transfer from unsupervised learning to downstream tasks.

[40:17](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2417s) Cryptographic Distinguishability and Energy-Based Models

Another participant draws a connection to 1980s cryptography and computational complexity theory, where next-bit predictability, compression, and polynomial-time distribution indistinguishability are proven to be equivalent. In cryptographic settings, the premise is that pseudorandom outputs cannot be compressed because no efficient distinguisher can tell them apart from uniform noise; the audience member asks how this equivalence might map back to learning representations in natural data.

Sutskever notes that while he is not an expert on that specific cryptographic literature, a related concept in machine learning is energy-based models (EBMs). EBMs provide an alternative mechanism for turning unnormalized neural network outputs into valid probability distributions: the network assigns a scalar "energy" score to an arbitrary configuration of vectors reflecting how typical or plausible it is, followed by normalizing across the entire space. In this regime, the ratio of two probabilities translates directly to the difference between their respective energy states, creating a structural link to distinguishing between data distributions.

[42:50](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2570s) A Defense of VC Dimension and Empirical Compression Bounds

An audience member interjects with a lighthearted defense of classical statistical learning theory: “Ilya, maybe I'll just put in a tiny word to defend the honor of VC dimension.” The speaker recounts a 2007 result regarding PAC learning of quantum states, pointing out that even when discretizing the state space without assuming infinite precision, the Vapnik–Chervonenkis (VC) dimension or fat-shattering dimension can be exponentially smaller than the logarithm of the hypothesis class size. Sutskever smiles and concedes, “That is a cool example.”

```mermaid flowchart LR accTitle: Dataset Compression via Summed Log Probabilities accDescr: Pipeline showing individual log probabilities summed across training samples to yield the total dataset compression cost in bits.

subgraph LossEval["Log Loss Evaluation"] D["Dataset X = {x_1,..., x_N}"] --> NN["Neural Net Probability Model"] NN --> LP["Individual Log Probabilities: log P(x_i)"] end

subgraph TotalBits["Negative Log Likelihood"] LP --> Sum["Sum across all cases"] Sum --> Bits["Negative Log Probability = Total Bits"] end ```

The discussion turns back to Sutskever's formal notation, where $X$ denotes a sampled dataset and the model assigns probabilities to each example. A questioner asks whether treating SGD-trained Transformers as compressors is compromised because the model processes samples sequentially rather than taking in the whole dataset at once. Sutskever clarifies that evaluating the total training loss across all independent samples corresponds directly to computing the aggregate log probability assigned to the full dataset: “And that gives you your negative log probability, literally the number of bits you need to compress this data set using this neural network as a compressor.” Even though per-sample processing prevents the network from learning patterns across the temporal order of the samples, the summed negative log-likelihood remains an exact measure of dataset compression length.

[45:03](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2703s) Linear Representations, Fine-Tuning, and Function Classes

A participant asks whether compression can serve as an objective justification for unsupervised learning in domains where linear representations do not spontaneously appear. In language, unsupervised learning can look superficially like supervised prediction because any NLP task can be cast as next-word prediction. In vision tasks like Image GPT, next-pixel prediction does not mirror typical tasks, yet linear probe performance on intermediate features demonstrated unsupervised transfer. If certain effective compressors fail to generate linearly separable representations, what justifies compression as the foundational objective?

Sutskever responds that the emergence of linearly accessible representations is simply an added bonus rather than a requirement of the theoretical framework. The underlying theory instead predicts that good fine-tuning capability will emerge: “At no point does this argument say, and therefore linear representation should emerge. However, I would argue that the theory does say that good fine-tuning should emerge, because joint compression is kind of like hacky approximate fine-tuning using the bad search algorithm, which is SGD.” He notes that just as BERT underperforms next-pixel prediction on linear visual feature probes, diffusion models likely exhibit similar trade-offs, raising the question of how fine-tuned diffusion models would compare empirically.

When asked what lessons from unsupervised compression can be transferred back to supervised learning, Sutskever points to architectural guidance on hypothesis classes: - Depth is essential because stacking many layers gives the neural network the computational steps required to do more expressive processing. - Width allows models to capture larger parameter spaces and complex interactions, matching the empirical shift toward scaled-up models. - The compression perspective provides theoretical grounding for why massively overparameterized networks generalize well on supervised tasks without requiring sample sizes proportional to parameter counts.

[48:01](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2881s) Theoretical Blind Spots: Compute Costs and Architecture Agnosticism

Responding to an audience question about parameter counts, Ilya Sutskever points out an inherent limitation in viewing deep learning strictly through the lens of information-theoretic compression: it completely disregards computational efficiency. “So the weakness of this theory—by the way, this theory has a huge practical weakness, which is it ignores compute cost,” Sutskever explains. “It only focuses on information.” To illustrate the issue, he points to the Universal Transformer, an architecture where the same network weights are reused across every successive layer. On paper, it is an elegant, parameter-efficient design, but if one wants to scale up parameter capacity or effective depth, it comes at an immense compute penalty that practitioners simply refuse to pay in practice.

```mermaid flowchart TD accTitle: Information Theory vs Practical Deep Learning accDescr: Diagram contrasting pure information-theoretic compression with real-world compute-constrained models. subgraph InfoTheory["Pure Information / Compression Theory"] A["Focuses purely on bits & data"] B["Ignores computational budget"] C["Architectures look equivalent"] end subgraph Practical["Practical Engineering Reality"] D["Autoregressive Transformers: simple & compute-efficient"] E["Diffusion / EBMs: require 10x-15x more compute"] F["Universal Transformers: tied weights penalize compute"] end InfoTheory -.->|"Omits constant factors"| Practical ```

An audience member asks about the specific importance of autoregressive modeling over probability distributions, pointing out that masked models like BERT can also be viewed as doing maximum likelihood training, and one can devise ways to sample from BERT as well. Sutskever broadens the scope to include diffusion models, noting that certain diffusion formulations can likewise be framed as maximum likelihood estimators. Because pure compression theory is indifferent to compute budgets, it treats these model families as fundamentally interchangeable:

> “So it's going to say, OK, maybe you need like a factor of 10 or 15 compute, and then things will be the same between the autoregressive and diffusion model.”

From this high-level theoretical perspective, whether one selects an autoregressive model, a diffusion model, or an energy-based model matters very little. Autoregressive transformers dominate today primarily because they are simple, direct, and computationally convenient, even if other formulations might theoretically achieve identical results at higher computational overhead.

---

[49:46](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2986s) Compressor Size vs. Data Size in the Infinite Test Set Regime

An audience member raises a paradox regarding model scale: GPT-4 appears to be the most capable compressor currently in existence, yet it is also the largest model deployed, meaning the size of the compressor itself has ballooned. In classical Kolmogorov complexity, a large decompression program penalizes the overall code length unless the data being compressed is exponentially larger.

Sutskever acknowledges that this represents another point where the clean theoretical model diverges from the reality of large language model pre-training. Classical Minimum Description Length (MDL) and Kolmogorov complexity assume a fixed, bounded dataset that must be compressed into a self-contained program and bitstream. In real-world machine learning, however, models are trained on massive training sets with the explicit objective of generalizing to an evaluation stream:

> “If the test set is infinite and you care about compressing the test set, then you don't care about the size of your compressor, so long as this test set size is much larger.”

Because the downstream distribution can be considered arbitrarily large or infinite, the fixed byte size of the network weights becomes asymptotically negligible relative to the total sequence volume evaluated.

When another audience member asks whether evaluating on an independent validation set resolves this discrepancy, Sutskever agrees that keeping an independent holdout set is good practice. He adds that in the single-epoch pre-training regime—where a model never sees the same training token twice—the distinction largely collapses: - In a single epoch, computing accumulated log probabilities during training already serves as an online measure of the model’s data compression. - Online single-epoch training loss provides an exceptionally close estimate of generalization performance on an unseen validation distribution.

---

[51:51](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=3111s) Gzip + k-NN Text Classification and the Value of Squeezing Bits

An attendee raises a recent paper (presented at ACL) that demonstrated text classification without parameter training by combining `gzip` compression with a simple $k$-nearest neighbors ($k$-NN) classifier. In that method, pairs of text strings are compressed both individually and concatenated together to compute a normalized compression distance metric.

Sutskever is skeptical about drawing sweeping conclusions from such lightweight compressors:

> “My only comment on that is that gzip is not a very strong compressor of text. So I think it does show that things are possible to some degree, but all the really meaty stuff happens when you squeeze the last bits, if you see what I mean.”

While the audience member suggests it serves as a working toy proof-of-concept, another audience member interjects that early benchmark claims for that paper were distorted by implementation bugs. Sutskever smiles and agrees with the critique: “It doesn't work.” True semantic generalization, he maintains, only emerges when a model reaches the extreme compression ratios where every subtle statistical dependency in human text is discovered and modeled.

---

[52:52](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=3172s) Curriculum Learning and Optimization Landscape

The final discussion centers on curriculum learning, which had been raised earlier in relation to how humans learn sequentially compared to how Kolmogorov complexity ignores order. An audience member notes that while curriculum effects are frequently discussed for neural networks, there was no consensus among colleagues over lunch regarding how much curriculum learning actually matters empirically in modern practice.

Sutskever offers a distinct perspective, arguing that the importance of a curriculum is inversely proportional to how easy the model architecture and optimizer are to train:

> “The easier is—the more easy the training optimization problem is, the less susceptible you are to curriculum effects.”

He recounts that the deep learning community has spent years heavily engineering the standard transformer setup—discovering robust weight initializations, tuning learning rate schedules and hyperparameters, and refining residual and normalization placements specifically so gradient descent navigates the loss surface smoothly. When an optimization landscape is well-behaved, a model can absorb arbitrary, unstructured data mixtures right from step zero without getting trapped in bad local minima.

By contrast, Sutskever points to fragile, highly heterogeneous architectures from earlier research: - Neural Turing Machines (NTMs) and memory-augmented networks featured complex routing, read/write heads, and distinct non-uniform components. - For those architectures, training was notoriously finicky: presenting the full, uncurated task suite upfront caused optimization to fail completely, making an incremental, step-by-step curriculum strictly mandatory.

---

[54:21](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=3261s) Concluding Applause

Session chair Yejin Choi takes the microphone to bring the session to a close. “All right, let's thank Ilya again,” she announces to the room, prompting a round of applause from the audience before the attendees transition into informal side conversations.

## Notable quotes > [20:40](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1240s) And all of deep learning hinges on top of the SGD miracle that we can actually train these computers with SGD. — Ilya Sutskever

> [05:51](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=351s) The VC dimension was invented to handle precision parameters with infinite precision. — Ilya Sutskever

> [02:01](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=121s) So three lines of math can prove all of supervised learning. — Ilya Sutskever

> [49:46](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2986s) If the test set is infinite and you care about compressing the test set, then you don't care about the size of your compressor, so long as this test set size is much larger. — Ilya Sutskever

## Mentioned Ilya Sutskever, OpenAI, Yejin Choi, Umesh Vazirani, Simons Institute for the Theory of Computing, Transformer, Recurrent Neural Networks, Image GPT, BERT, CIFAR-10, ImageNet, Universal Transformer, GPT-4, Neural Turing Machines, gzip

## Video description Ilya Sutskever (OpenAI) https://simons.berkeley.edu/talks/ilya-sutskever-openai-2023-08-14 Large Language Models and Transformers

[Source](https://www.youtube.com/watch?v=AKMuA_TVz3A)

中文简报

Sutskever将AI泛化能力与数据压缩极限联系起来 无监督预训练之所以成功,是因为下一步预测迫使神经网络执行有界的程序搜索,从而从数据中提取共享的算法结构。 Ilya Sutskever将监督学习在数学上完备的保证与无监督学习为何成功的长期理论谜团进行了对比。他提出通过算法信息论与联合数据压缩来审视无监督预训练,其中预测建模充当压缩器,而成功则被表述为相对于最优共享结构提取的遗憾最小化。Sutskever将采用随机梯度下降的神经网络训练定性为柯尔莫哥洛夫程序搜索的一种连续、有界的近似,并引用OpenAI的Image GPT结果作为实证,证明下一步似然最大化本质上会产生丰富的语义表征。在延伸问答中,他探讨了自回归预测为何比掩码模型产生更优越的线性表征,承认纯压缩理论忽视了现实世界的计算成本,并解释了平滑的优化景观为何减少了对课程学习的需求。 监督学习通过简单的三行联合界提供了坚不可摧的泛化保证,而无监督学习在理论上仍然充满谜团,这是由于代理预训练目标与下游评估任务之间长期存在不匹配。 (2:01) 无监督预训练可以通过联合数据压缩得到严谨的理解:在拼接的数据集上优化模型可以揭示算法互信息,从形式上解释了在通用数据上进行预训练如何直接促进下游监督迁移。 (14:48) 随机梯度下降在神经电路上充当一种实用的、连续的微程序搜索,在固定的参数和执行预算下近似理论上不可计算的柯尔莫哥洛夫复杂度。 (20:40) OpenAI在2020年进行的Image GPT实验证明,仅靠自回归下一步预测就能在没有专门归纳偏置的情况下提取高级语义表征,通过线性探测在CIFAR-10上达到了99%的准确率。 (31:51)

Reading summary

Speaking at the Simons Institute, Ilya Sutskever argues that unsupervised representation learning can be rigorously grounded through data compression, framing deep neural network training via stochastic gradient descent as an empirical approximation of algorithmic program search. The Theoretical Void in Unsupervised Learning (2:01) Supervised learning relies on established PAC learning frameworks and statistical learning theory, which mathematically guarantee low test error if empirical training error is low and the model's degrees of freedom remain smaller than the dataset size. Sutskever notes that on digital hardware with finite precision, this guarantee reduces to simple discrete counting and concentration bounds, bypassing measure-theoretic machinery like VC dimension. In contrast, unsupervised learning lacks an accepted foundational guarantee due to an inherent objective mismatch: algorithms optimize surrogate proxy losses on unlabeled data—such as reconstruction, denoising, or next-token prediction—yet are evaluated on separate downstream tasks like classification or reasoning. Without assuming underlying structural regularities in the data, minimizing an arbitrary surrogate objective provides no mathematical assurance of downstream transfer. Joint Compression and Algorithmic Information (14:48) To bridge this theoretical gap, Sutskever links predictive modeling directly to lossless data compression, pointing to a conceptual experiment where an unsupervised corpus $X$ and a target supervised dataset $Y$ are concatenated and jointly compressed. For any effective compressor $C$, the joint size satisfies $C(XY) \le C(X) + C(Y)$, where the compression gap represents shared algorithmic mutual information that directly aids downstream tasks. This framework evaluates an unsupervised algorithm through regret: the predictive performance left on the table relative to an optimal compressor accessing the same data. The theoretical ideal is conditional Kolmogorov complexity $K(Y \mid X)$, which identifies the shortest program producing $Y$ given $X$. Because explicit conditional compression on large datasets is operationally unwieldy, Sutskever highlights that unconditionally compressing concatenated datasets achieves the equivalent predictive outcome. Neural Networks as Bounded Program Search (20:40) Sutskever characterizes training deep networks via stochastic gradient descent (SGD) as a practical "micro-Kolmogorov" search, where continuous optimization searches bounded computational circuits to approximate the shortest data-generating program. This perspective explains why minor architectural changes rarely yield major gains unless an existing design suffers from an intrinsic bottleneck, as when recurrent neural networks with fixed-capacity hidden states were superseded by Transformers with global attention. To test whether next-step likelihood optimization extracts semantic representations independently of natural language patterns, OpenAI trained Image GPT (iGPT) in 2020 by serializing raw $64 \times 64$ images into 1D pixel sequences. Despite lacking visual inductive biases, a 6-billion-parameter autoregressive model achieved roughly 99% linear probe accuracy on CIFAR-10 and approached contemporary self-supervised benchmarks on ImageNet, demonstrating that pure sequence prediction forces the extraction of high-level semantics. Theoretical Limits and Practical Gaps Sutskever emphasizes significant divergences between pure algorithmic information theory and deep learning practice. Information-theoretic compression ignores computational costs, treating autoregressive models, diffusion models, and energy-based models as interchangeable despite practical compute differences of 10x to 15x. Furthermore, Kolmogorov complexity uses exhaustive brute-force search indifferent to data sequence, whereas SGD is a weak, path-dependent local optimization method where data order and training dynamics matter. Addressing the relationship between compressor size and data scale, Sutskever explains that while classical Minimum Description Length penalizes large program sizes, evaluating models on an effectively infinite downstream test stream renders fixed parameter counts asymptotically negligible. In single-epoch training, accumulated training log loss mirrors unseen validation loss, making online loss an effective direct metric of data compression. A persistent open question is why next-step autoregression produces linearly separable representations in intermediate layers, whereas bidirectional masked models like BERT and diffusion formulations yield weaker linear probe features due to relying on local context interpolation. Sutskever concludes that while compression theory mathematically justifies fine-tuning transfer, the specific emergence of linear manifolds remains an empirical mystery.

精炼阅读摘要

Ilya Sutskever 提出,无监督表征学习在本质上可以形式化为联合无损数据压缩;通过算法信息论与柯尔莫哥洛夫复杂度的视角,深度神经网络通过随机梯度下降(SGD)最小化负对数似然,实质上是在进行有界的经验程序搜索,从而使无监督预训练得以在下游任务中实现强泛化。 监督学习理论完备与无监督的核心悖论 (2:01) 监督学习的成功在数十年前就由 PAC 学习和统计学习理论奠定了严密的数学证明:只要训练分布与测试分布一致,且模型的自由度小于数据集规模,仅需三行联合界(union-bound)数学推导就能严格保证低泛化误差。Sutskever 指出,物理计算均采用有限精度的浮点数,因此现实中的泛化界可以通过对离散有限函数类进行计数和简单的集中不等式轻松建立,不必过分依赖处理无限精度实数时的 VC 维机制。 相比之下,无监督学习长期缺乏公认的数学解释,存在显著的目标错配悖论:优化目标通常是无标签数据上的代理任务(如重构误差、去噪或自回归下一词元预测),而最终评估的却是完全不同的下游能力(如分类、推理或特征质量)。若输入数据完全是无特征的均匀分布,无监督学习无法带来任何增益;因此,构建一套严谨的无监督理论必须阐明数据需要具备何种非平凡结构,以及为何单靠优化一个代理目标就能保障跨任务迁移能力。 从分布匹配到联合压缩思想实验 (14:48) Sutskever 回顾了其在 2015 年独立推导的“分布匹配”思路:在源域 X 与目标域 Y 之间无任何配对样本的情况下,寻找变换映射 f 使得 f(X) 逼近 Y 的边际分布。在高维空间中,匹配边际分布能施加庞大的约束系统,足以在机器翻译或简单代换密码中恢复真实映射,但该范式过于人造,未能真实反映无监督表示学习的运作逻辑。为此,他将预测等价于压缩的公理推向核心思想实验:将无监督数据集 X 与监督数据集 Y 在磁盘上拼接为 XY,并使用无损压缩器 C 进行联合压缩。 根据信息论性质,高效压缩器在拼接文件上获得的体积必然满足 C(XY) <= C(X) + C(Y),两者之间的压缩差距正是算法互信息(即两域共享的结构)。通过将评估基准设定为“遗憾度”(Regret)——即某一算法在调用无标签文件 X 预测 Y 时,与最优压缩器相比所损失的压缩效能——理论便能保证:若 X 包含对 Y 关键的结构,低遗憾度算法可完全榨取;若 X 仅为无用噪声,该算法也不会处于劣势。这为预训练在数学上为何能辅助下游任务提供了坚实的量化基础。 SGD 作为微型柯尔莫哥洛夫程序搜索 (20:40) 在理想状态下,柯尔莫哥洛夫复杂度(输出目标字符串的最短程序长度)代表了无遗憾预测的理论极限,但其由于需要遍历所有图灵机而属于不可计算问题。Sutskever 提出,在大规模神经网络上运行 SGD,本质上是一种在固定内存和执行预算的物理计算电路上运行的“微型柯尔莫哥洛夫”连续程序搜索。由于现有网络架构极易模拟微小的连接改动,单纯修改层结构收效甚微;唯有突破固有容量瓶颈时(例如由隐状态大小受限的 RNN 跃迁至具备全局注意力的 Transformer),架构创新才显现出不可替代性。 在将该理论映射到实际工程时,条件柯尔莫哥洛夫复杂度 K(Y|X) 可以通过直接拼接全部数据并使用无条件压缩器来等价逼近。在模型未发生过拟合的前提下,参数约束下的负对数似然总和就等于数据集的压缩比特开销与模型参数存储比特之和。随着模型参数规模的扩大,神经网络能更紧密地逼近理论上的最优压缩器,从而为模型规模扩展(Scaling)能够稳定提升泛化能力提供了直接的理论解释。 iGPT 的像素验证与因果预测优势 (31:51) 为了排除纯文本因互联网语料本身存在大量重复模式与提示而带来的特异性解释,OpenAI 在 2020 年开展了 Image GPT(iGPT)实验:将 64x64 图像展平成一维离散像素序列,在不引入视觉归纳偏置的前提下,仅使用标准 Transformer 纯粹训练下一像素预测。实验表明,冻结中间层进行线性探针评估时,下游分类准确率与下一像素预测准确率呈严格单调上升;其在 CIFAR-10 上达到约 99% 的准确率,并在 60 亿参数规模下逼近了当时 ImageNet 顶尖的自监督视觉方案,确立了因果似然最大化能自发提取高层语义的普适性。 针对为何自回归因果模型在线性特征质量上显著优于双向掩码模型(如 BERT),Sutskever 指出:在掩码模型中(例如掩盖 25% 的词元),模型只需依据邻近的局部上下文进行内插即可填空,绕过了最具挑战性的全局推理任务;而自回归下一像素预测迫使网络综合全部历史信息来捕获长程宏观结构,任务难度显著提高。关于扩散模型,尽管其理论基石同样是最大似然估计,但其实际表示能力同样面临掩码模型类似的挑战,这使得线性可分表征的自发涌现机制依然是一个未解谜题。 纯信息压缩理论的工程局限与计算盲区 (48:01) Sutskever 坦承,该压缩理论存在一个严重的工程盲区:它完全忽略了计算成本,仅专注于信息量。在纯理论视角下,诸如 Universal Transformer(多层循环共享参数)等紧凑架构极其节省参数,但在扩展深度时计算代价高昂;同样,扩散模型或能量模型(EBM)可能需要多消耗 10 到 15 倍的算力才能达到与自回归 Transformer 相当的似然表现。自回归 Transformer 之所以成为工业界主导,很大程度上是因为它在实际工程中简单直接且算力效率最高,而非在信息论意义上具有唯一性。 此外,理论与工程现实还在优化机制与测试机制上存在脱节:柯尔莫哥洛夫复杂度依赖无序的穷举搜索,而深度学习使用的是具有路径依赖、极易受训练动力学影响的弱局部搜索算法 SGD;在无限测试集流的假设下,即使如 GPT-4 般参数庞大的压缩器自身,其固定的模型权重开销在海量测试序列面前也可渐进忽略。最后,针对课程学习,Sutskever 提出其重要性与优化难度成反比:精心设计残差、归一化与超参数的现代 Transformer 损失曲面极佳,足以直接消化非结构化的数据混合,唯有高度异构且脆弱的架构(如神经图灵机)才严格依赖渐进式课程。 该理论为无监督表示学习与模型规模扩展提供了自洽的算法信息论支撑,但它将注意力完全集中于信息与比特,忽略了实际硬件上的计算预算与浮点算力代价。同时,SGD 作为一种相对较弱且具路径依赖的局部启发式搜索,无法完全等同于全局程序枚举,且优化理论尚无法彻底解释为何数据压缩必然会促成激活空间内部线性可分流形的自发涌现。

Detailed notes — zh

## Background 该视频由 Simons Institute for the Theory of Computing 于 2023 年 8 月 14 日在 YouTube 平台发布。内容为 OpenAI 联合创始人兼首席科学家 Ilya Sutskever 在伯克利举办的学术会议上的特邀演讲,页面简介标明其主题聚焦于大型语言模型与 Transformer 架构。 ## TL;DR Ilya Sutskever 回溯了 2016 年左右对无监督学习理论基础的探索,试图解答为何优化下一个词或像素预测能够奇迹般地解决复杂的下游任务。他提出无监督学习在本质上可以形式化为联合数据压缩,并将深度神经网络配合 SGD 的训练过程阐释为对理想“柯尔莫哥洛夫压缩器”的实用化离散程序搜索。通过 iGPT 在图像像素自回归上的实证,他论证了最大化预测似然与表征能力的直接关联,并指明模型的扩展正是为了逼近无后悔压缩极限。在问答环节中,他进一步澄清了线性表征仅为压缩的副产物、自回归与扩散模型的算力权衡,以及优化鲁棒性如何削弱了对课程学习的依赖。 ## Atmosphere & style 现场氛围学术沉浸而充满智慧幽默,Ilya 从开场自嘲因商业保密转向经典旧成果开始,便以极具穿透力的直觉化语言抓住了听众。整场讲座兼具理论计算机科学的严谨与工程前沿的宏大视野,他在黑板式的直观推导与深刻猜想之间游刃有余。问答环节中顶级理论学者与演说者交锋碰撞,针对训练动力学、密码学区分性及 gzip 轶事的幽默互动,让这场高密度的理论探索充满了轻松而又发人深省的思想张力。 ## Bulletin - [14:32](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=872s) Ilya Sutskever 提出无监督学习的本质在于数据压缩,将无监督数据 X 与监督数据 Y 拼接联合压缩等价于条件压缩,为预训练表征迁移提供了理论依据。 - [20:40](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1240s) 深层神经网络配合 SGD 本质上是在连续参数空间中逼近不可计算的柯尔莫哥洛夫复杂度,模型参数规模越大,在提取预测价值时的遗憾值(regret)就越低。 - [30:58](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1858s) OpenAI 曾在 2020 年通过纯视觉模型 iGPT 验证压缩理论,仅靠自回归逐像素预测就在 CIFAR-10 上达到了 99% 的线性探针准确率。 - [45:03](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2703s) Ilya 澄清预训练涌现高质量线性表征只是一种“额外红利”,联合压缩理论严格保证的是模型具备出色的下游微调(fine-tuning)能力。 - [52:52](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=3172s) 课程学习(curriculum learning)的必要性与模型架构的优化难度成反比,Transformer 架构成熟的工程优化使其摆脱了对严苛训练课程的依赖。 ## Key takeaways - [01:47](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=107s) 监督学习依赖训练集与测试集同分布的前提,其泛化保证在有限精度浮点数场景下仅需三行基础概率界和简单计数即可证明,无需复杂的 VC 维理论。 - [07:16](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=436s) 无监督学习的核心谜题在于优化一个无监督目标(如去噪或预测)为何能迁移并解决完全不同的下游任务,这需要对现实世界数据分布做理论形式化假设。 - [11:24](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=684s) “分布匹配”是一种在无标签配对情况下建立映射且具备确定性保证的机制,但该设定较为人工化,无法完全解释真实的通用无监督学习。 - [14:32](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=872s) “压缩即预测”,将无监督数据 X 与下游任务数据 Y 进行联合压缩所节省的码长对应算法互信息,解释了无标签数据如何带来泛化收益。 - [18:27](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1107s) 无监督学习可通过“低遗憾(Low-Regret)”框架来评估,只要算法达到低遗憾极限,用户便无需担忧是否遗漏了无标签数据中的潜在价值。 - [20:40](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1240s) 柯尔莫哥洛夫复杂度是最理想的低遗憾压缩器,深度神经网络通过 SGD 进行连续优化本质上是对该离散程序搜索奇迹的工程化逼近。 - [24:59](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1499s) 大多数神经网络架构微调缺乏突破是因为旧架构能轻易模拟新改动,而 Transformer 相比 RNN 的跃迁打破了隐藏状态容量受限的模拟瓶颈。 - [27:26](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1646s) 条件柯尔莫哥洛夫复杂度 K(Y|X) 是无监督学习的终极解,且其效果在数学上等价于直接拼接全量数据 (X, Y) 进行联合压缩,对应大模型的极大似然训练。 - [30:18](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1818s) 行业追求超大模型(Scaling)的深层理论根源,在于模型容量越大越能逼近无遗憾的柯尔莫哥洛夫压缩器。 - [30:58](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1858s) 为避免文本模型少样本能力被归结为文档统计技巧,团队开发了纯视觉模型 iGPT,证明仅凭下一像素自回归预测即可提取顶级的无监督视觉表征。 - [36:20](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2180s) 自回归逐像素预测由于仅依赖单向历史,迫使模型学习全局长程依赖,其任务难度远高于允许利用局部上下文插值的 BERT 掩码预测。 - [38:27](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2307s) 柯尔莫哥洛夫复杂度类比的最大破裂点在于搜索过程:理论压缩器枚举所有图灵机程序且对数据顺序不敏感,而神经网络依赖极弱的 SGD 局部启发式搜索。 - [43:28](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2608s) 神经网络对数据集计算的总负对数似然,在信息论上严格等于使用该网络进行无损压缩所需的物理比特数。 - [45:03](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2703s) 优秀线性表征只是自回归模型带来的额外红利,联合压缩理论真正必然保证的是下游参数微调(fine-tuning)的优秀表现。 - [48:01](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2881s) 基于压缩的理论视角存在忽略计算成本的致命缺陷,自回归模型相比扩散模型或能量模型的最大优势在于工程实现的极简与低开销。 - [49:46](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2986s) 面对潜在无限的测试数据流,只要评估集规模远大于压缩器本身,模型体积膨胀就不会违背信息论压缩原则。 - [51:51](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=3111s) 浅层压缩器(如 gzip)无法替代深度模型,深度学习的本质价值在于榨取消除常识与逻辑熵值所需的最后微小比特。 - [52:52](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=3172s) 优化鲁棒性替代了课程学习:现代 Transformer 架构的改良平滑了损失曲面,使模型不再像神经图灵机那样依赖精心设计的数据课程即可稳健收敛。 ## Detailed walkthrough ### [00:00](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=0s) 开场:从对齐研究转向重提 2016 年的旧成果 主持人 Yejin Choi 在引言中提到,Ilya Sutskever 的论文引用量早已突破六位数,高达 13.9 万次以上,现场观众对听取他对大型语言模型(LLM)和未来发展的看法抱有极大热情。然而,Sutskever 登台致谢后便抛出了一个略带自嘲的难题:当 Umesh 邀请他出席这场群星璀璨的会议时,他非常兴奋,但随即意识到 OpenAI 目前正在开展的大量核心技术研究受到保密限制,他根本无法公开谈论,引来现场一片笑声。 Sutskever 解释道,不久之前他已将自己的全部研究重心转向了“人工智能对齐”(AI Alignment)。尽管对齐领域未来会有极其酷炫的研究成果公布,但眼下还不到对外揭晓的时机,因此只能留待下一次演讲。为了给本次大会带来实质性的内容,他决定回顾 OpenAI 在 2016 年左右得出的一些经典结论。这些早期的思考深刻重塑了他对无监督学习(Unsupervised Learning)的理解。尽管时至今日听众可能会觉得这些推导看似显而易见,但他依然希望带来新的启发,并开玩笑说自己要“把期望值设低,然后再努力超出它”。 --- ### [01:47](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=107s) 监督学习的理论基石与三行数学证明 在探讨无监督学习之前,Sutskever 引导听众回归学习的本质问题:为什么计算机能够学会规律?为什么真实数据具有能被机器学习模型所捕捉的规整性(regularity)?如今的人们对神经网络能够学习早已习以为常,但在理论上这绝非不证自明。多年前统计学习理论(Statistical Learning Theory)与 PAC(可能近似正确)学习框架的建立,为监督学习奠定了坚实的数学根基。 监督学习的美妙之处在于它给出了一个学习必然能够成功的精确数学条件。只要测试分布与训练分布保持一致(i.i.d.),并且模型的自由度(参数量或复杂度)小于训练样本数,那么只要在训练集上将经验损失(Training Loss)降到足够低,数学上就能百分之百保证其测试误差(Test Error)同样很低。Sutskever 指出,这套体系在概念上异常优雅,只需三行数学推导即可证明整个监督学习的泛化边界:利用简单的布尔不等式(Union Bound)即可界定任意假设在训练集与测试集表现严重背离的概率。 > “You're told that if you have some data, from some data distribution, that if you manage to achieve a low training loss and the number of your degrees of freedom is smaller than your training set, then you will achieve low test error.” —— Ilya Sutskever - **监督学习的成立基石**:依赖核心假设,即测试分布与训练分布必须完全一致($P_{\text{train}} = P_{\text{test}}$)。 - **理论保障的实际意义**:它从数学上解释了为什么语音识别和图像分类等任务必然可以通过收集海量带标签数据来不断提升模型性能。 --- ### [05:51](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=351s) 侧记:VC 维与有限精度浮点数的极简视角 在深入讨论无监督学习之前,Sutskever 插叙了一个针对统计学习理论爱好者的侧面观点,甚至幽默地提醒对其不感兴趣的听众“可以在接下来的 30 秒里走个神”。许多统计学习理论文献都将 VC 维(Vapnik-Chervonenkis Dimension)奉为泛化界的核心工具,但 Sutskever 指出,学术界发明 VC 维的唯一初衷,是为了应对具备“无限精度实数参数”的假设类(例如理论上的线性分类器)。 然而在现实计算中,所有计算机模型使用的都是有限精度的浮点数(如 float32、float16 甚至更低精度),并且所用的位数还在不断减少。这意味着计算机能够实现的具体模型函数集合本质上是一个有限离散空间。基于有限精度的参数比特数,研究者完全无需依赖繁琐的 VC 维连续容量控制理论,直接通过最初的三行基础概率界和简单计数(Counting Bound),就能推导出监督学习中最扎实的泛化界。这种化繁为简的视角不仅省去了冗长的证明,也更切中真实计算系统的物理现实。 > “The VC dimension was invented to handle precision parameters with infinite precision.” —— Ilya Sutskever --- ### [07:16](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=436s) 无监督学习的核心谜题:为何优化 A 目标能解决 B 任务? 转向无监督学习后,Sutskever 指出该领域一直缺乏令人满意的纯数学理论阐述。无监督学习的古老愿景是:让机器单纯观察图像或阅读文本,在完全没有人告诉它该做什么的情况下,自主发现数据内部的真实隐藏结构,并将其迁移到其他任务中。这一愿景如今在经验工程上已经由大语言模型彻底实现,但在理论层面它究竟为何能够成功?与监督学习具备明确的泛化保证不同,无监督学习甚至不存在类似的数学定理。 早在 20 世纪 80 年代的玻尔兹曼机(Boltzmann Machine)时代,学界就在探索无监督表示;随后的去噪自编码器(Denoising Autoencoder),其底层思想与现代 BERT 的掩码机制或扩散模型(Diffusion Models)相比也仅有一线之隔。早期语言模型虽然能生成不错的文本样本,但其无监督表征能力远不及今天。Sutskever 强调,整个机制在逻辑上令人困惑:模型在无监督预训练中优化的是重构误差、去噪误差或自监督预测目标(目标 A),但在实际应用中人们关心的却是分类、推理等完全不同的下游目标(目标 B)。 优化一个目标为何能奇迹般地对另一个目标产生巨大帮助?如果输入数据来自于均匀分布(Uniform Distribution),没有任何内在结构,那么所有的无监督学习算法都会彻底失效。这表明无监督学习必须对现实世界的数据分布做某种前提假设,但这个假设该如何形式化?这正是当前理论难以触及的神秘地带。 > “You optimize one objective, but you care about another objective. And yet it helps. How can that be? Magic.” —— Ilya Sutskever ```mermaid flowchart TD accTitle: Supervised Learning vs Unsupervised Learning accDescr: A comparison between the guaranteed mathematical framework of supervised learning and the mysterious objective mismatch in unsupervised learning. subgraph Supervised["监督学习 (理论完备)"] A["训练数据与标签 (X, Y)"] --> B["优化目标:训练误差"] B --> C["评估目标:同一任务的测试误差"] C --> D["数学保证:低训练误差 + 适度参数量 = 泛化成功"] end subgraph Unsupervised["无监督预训练 (经验成功但理论成谜)"] E["无标签纯数据 X"] --> F["优化目标 A:去噪 / 重构 / 下一个词预测"] F -.->|"为何产生迁移迁移?为何对未知目标有帮助?"| G["评估目标 B:分类 / 推理 / 下游泛化"] end ``` --- ### [11:24](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=684s) 引入“分布匹配”:一种具有理论保证的无监督范式 为了解答无监督学习何以成立,Sutskever 提出了一种虽然没有成为工业界主流、但具备关键理论特性的无监督学习思路——**分布匹配(Distribution Matching)**。现代深度学习普遍依赖自回归预测或对比自监督学习,而分布匹配的独特魅力在于:它能够像监督学习一样,在数学上提供“必须有效”的确定性保证。 Sutskever 开始搭建该机制的问题框架:假设系统手头有两个独立的数据源 $X$ 和 $Y$。关键在于,这两个数据源之间没有任何显式的配对或对应标签,模型在完全不知道哪一个 $X$ 对应哪一个 $Y$ 的情况下,仅仅通过对齐两者的整体数据分布,就能够建立起有效的语义映射,从而以确定性的数学形式打破无监督学习的黑箱状态。 > “So what kind of mysterious unsupervised learning procedure where you're not giving any labels to any of your inputs is still guaranteed to work? Distribution matching.” —— Ilya Sutskever ### [12:14](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=734s) 分布匹配与无监督学习的数学约束 Ilya Sutskever 探讨了跨模态或跨语言之间在没有显式对应样本时的对齐问题,例如文本与语音,或者语言一与语言二。核心准则是寻找一个映射函数 $F$,使得变换后的输入分布 $F(X)$ 与目标分布 $Y$ 尽可能相似。这构成了对函数 $F$ 的极强约束。在机器翻译和语音识别任务中,长句子的复杂统计结构意味着极高维度的约束:如果你拿英语句子的分布输入给 $F$,输出的分布与法语句子的分布高度吻合,那么基本上就能断定抓住了 $F$ 的真实结构。 当 $X$ 和 $Y$ 的维度足够高时,约束的重合度甚至足以从纯分布信息中几乎完全反演恢复出映射函数 $F$。简单的代换密码(Substitution Ciphers)同样遵循这种框架。Sutskever 回忆道,自己在 2015 年独立发现了这种分布匹配视角,当时感到无比兴奋,以为终于找到了能够从数学上严格刻画无监督学习的切入点:“I independently discovered this in 2015. And I got really fascinated by it, because I thought, wow, maybe there is something meaningful, mathematically meaningful that we can say about unsupervised learning.” 然而这种数学上的漂亮形式存在现实局限:这种设定本质上依然显得人工雕琢(artificial),与真实世界中机器学习落地时的实际数据分布与应用方式存在脱节,也不是大家真正理解无监督学习的恰当直觉。 --- ### [14:32](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=872s) 压缩即预测:无监督学习的核心思想实验 为了让无监督学习获得与监督学习平起平坐的数学地位,Sutskever 抛出了整场演讲最关键的核心论点:“压缩救场(Compression to the rescue)”。业界熟知“压缩即预测”,任何压缩器都可以转化为预测器,反之亦然,二者存在一一对应关系。但在建立对无监督学习的直觉上,压缩语言展现出了独特的优势。 Sutskever 设计了一个关键的思想实验:假设硬盘上有两个巨大的文件数据集 $X$ 和 $Y$。若设计一个性能极强的压缩算法 $C$,将 $X$ 与 $Y$ 拼接(Concatenate)在一起进行联合压缩,究竟会发生什么?Sutskever 给出的直觉答案是:“My answer is, very intuitively, it will use the patterns that exist inside X to help it compress Y, and vice versa.” ```mermaid flowchart LR accTitle: 联合压缩与共享结构提取流程 accDescr: 展示两个数据集拼接后通过强压缩器利用重叠模式减少总体积的过程 subgraph Data["输入数据"] direction TB X["无监督数据集 X"] Y["目标任务数据集 Y"] Concat["拼接文件 [X, Y]"] X --> Concat Y --> Concat end subgraph Engine["压缩与评估"] Compressor["高性能压缩器 C"] Concat --> Compressor Output["压缩结果 C(X, Y)"] Compressor --> Output end subgraph Info["信息论解释"] Diff["压缩收益增益<br/>C(X) + C(Y) - C(X, Y)"] Output -.-> Diff Structure["提取出的共享结构<br/>(算法互信息)"] Diff --> Structure end ``` 这种增益可以用不等式直观衡量:一个足够好的压缩器对拼接文件的压缩大小 $C(X, Y)$,绝不会劣于分别压缩二者的大小之和 $C(X) + C(Y)$。两者的差额正是压缩器捕获到的“共享结构(Shared Structure)”,在信息论层面即为算法互信息(Algorithmic Mutual Information)。当把 $Y$ 视为监督学习任务数据,把 $X$ 视为无监督预训练数据时,便确立了 $X$ 中模式能够辅助 $Y$ 任务的数学理由。 - 若存在分布匹配场景中将语言一映射为语言二的简单映射 $F$,优秀的联合压缩器必然会捕捉并利用该函数来缩短编码长度。 - 压缩语言相比纯概率预测语言,更清晰地揭示了数据重叠模式如何转化为泛化能力。 --- ### [18:27](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1107s) 无悔算法(Low-Regret)视角下的无监督学习 在形式化无监督学习时,Sutskever 引入了算法评估的“遗憾值(Regret)”框架。设定一个机器学习算法(即压缩/预测器)$A$,其核心目标是尽可能压缩监督数据 $Y$,同时允许其任意探测并读取无监督数据 $X$。所谓低遗憾(Low-Regret),意味着算法从无标签数据中榨取出了所有可能获取的帮助。 这种评估标准为无监督学习提供了确定性保证:面对未知的无标签数据集,用户无法预知其究竟是充满价值的黄金矿藏,抑或只是毫无价值的均匀分布噪声。但如果手中掌握着低遗憾算法,便无需焦虑是否遗漏了潜在信息:“So if you have a low regret unsupervised learning algorithm, you can say, whether it's the first case or the second case, I know I've done my best. I know I've done my best at benefiting from my unlabeled data. And no one could have done better than me.” 这种视角消除了算法设计者的心理负担:如果无监督数据中有用,算法必然已将其变现;若最终没有收益,则证明该数据在客观上确实毫无助益。 --- ### [20:40](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1240s) 柯尔莫哥洛夫复杂度与 SGD 的“程序搜索奇迹” Sutskever 随后带领观众走进理论计算机科学,将柯尔莫哥洛夫复杂度(Kolmogorov Complexity)引入讨论。柯尔莫哥洛夫复杂度定义为能够输出目标数据的最短计算机程序的长度。在现场互动中,约有半数听众表示熟悉该概念。在纠正了 PPT 上一个变量名的笔误后,Sutskever 指出,柯尔莫哥洛夫压缩器可以被视为终极的低遗憾压缩器。 柯尔莫哥洛夫压缩器通过“模拟论证(Simulation Argument)”实现了强大的理论界限:对于任意给定的压缩器 $C$,柯尔莫哥洛夫程序只需包含运行 $C$ 所需的代码长度(常数级)以及 $C$ 压缩后的数据,即可模拟其输出。因此,它对任何数据的压缩效果都能击败任意现存压缩算法(仅差一个固定程序长度常数项)。正因为其具有模拟所有图灵机程序的能力,柯尔莫哥洛夫复杂度在数学上是严格不可计算(Undecidable/Non-computable)的。 ```mermaid flowchart TD accTitle: 柯尔莫哥洛夫搜索与神经网络SGD训练的映射关系 accDescr: 对比理论上的图灵机全程序搜索与深度学习中基于SGD的连续参数搜索 subgraph Theory["理论极限 (不可计算)"] KC["柯尔莫哥洛夫复杂度"] ProgSearch["遍历所有图灵机程序"] KC --> ProgSearch end subgraph Reality["深度学习工程实现"] NN["100层神经网络<br/>(有界内存与步数的电路)"] SGD["随机梯度下降 (SGD)"] ProgParam["在连续参数空间中<br/>进行高效程序搜索"] NN --> ProgParam SGD --> ProgParam end Theory -.->|"微型/实用化逼近"| Reality ``` Sutskever 将这一理论极限与现代深度学习建立了惊人的映射:虽然无法真正枚举所有图灵机程序,但当研究人员在一个拥有上百层的深度神经网络上运行随机梯度下降(SGD)时,本质上是在一个拥有特定内存量和计算步数的微型计算机(即电路)中搜索程序。神经网络本身就是能够模拟真实程序的微型计算机器:“And all of deep learning hinges on top of the SGD miracle that we can actually train these computers with SGD. That works.” 整个深度学习领域的成功,正是建立在能够通过连续优化的 SGD 找到有效离散计算程序这一奇迹之上。 ### [24:59](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1499s) 架构模拟论证与从理论到神经网络的过渡 Ilya Sutskever 指出,人们实际上是从数据中找寻到这些具体的电路(circuits),从而能够计算出一个微型的柯尔莫哥洛夫压缩器(miniature Kolmogorov compressor)。针对设计神经网络架构,他提出了一个“模拟论证”(simulation argument)。许多人在尝试设计更优的神经网络架构时都会感到困难重重:开发者常常会想“加这条连接,加那条连接,再改改这里和那里”,但往往劳而无功。其核心原因在于,任何经过微调的新架构,几乎都可以非常直接地被旧架构模拟出来;只有在极少数无法被旧架构轻易模拟的例外情况下,技术才会迎来质的飞跃。 从小型循环神经网络(RNN)向 Transformer 的跨越就是这种罕见突破的典型范例。RNN 存在一个天然的瓶颈——其隐藏状态(hidden state)的容量限制,导致它极难去高效模拟 Transformer 的运作方式。Ilya 顺势提出一个有趣的假设:如果我们当年能通过工程手段为 RNN 构建一个极其庞大的隐藏状态,或许它的表现又能重新赶上 Transformer。通过这种逻辑,听众得以理解如何从形式化的理论王国平滑过渡到现实的神经网络世界。 - 架构微调之所以经常难以取得突破,是因为旧架构能直接模拟大多数微小改动。 - RNN 与 Transformer 之间的代际差距,根源在于 RNN 受限的隐藏状态瓶颈。 - 只有突破了这种模拟瓶颈的新结构,才能带来显著的性能代差。 ```mermaid flowchart LR accTitle: Architecture Simulation and Bottlenecks accDescr: Comparison of how old architectures easily simulate minor modifications versus RNNs struggling to simulate Transformers due to hidden state bottlenecks. subgraph Minor["常规架构微调"] A["旧网络架构"] -->|"直接模拟"| B["添加局部连接 / 微调参数的新架构"] end subgraph Major["架构代际突破"] C["RNN (循环神经网络)"] -->|"隐藏状态存在容量瓶颈<br/>(极难有效模拟)"| D["Transformer 架构"] end ``` ### [26:12](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1572s) 条件柯尔莫哥洛夫复杂度:无监督学习的终极答案 随后,Ilya 将条件柯尔莫哥洛夫复杂度(Conditional Kolmogorov Complexity)确立为解决无监督学习问题的理论利器。他把 $K(Y \mid X)$ 定义为:在允许探查(probe)数据集 $X$ 的前提下,能够输出目标 $Y$ 的最短程序的长度。基于这一定义,可以推导出与之前一致的理论结果。Ilya 直言,从定义上讲,这就是无监督学习的完美解答;倘若你能掌握这一工具,在学术和工程层面便可高枕无忧,因为从理论上限而言绝不可能有人比它做得更好。 “If you use that, you can sleep very, very safely at night-- soundly at night, knowing that no one does unsupervised learning better than you.” Ilya Sutskever 这样强调道。他指出,这堪称无监督学习领域“终极的低后悔解”(ultimate low regret solution),其唯一的现实缺陷只是它在图灵意义上是不可计算的。需要特别说明的是,这里的条件项 $X$ 指的是整个数据集,而非某一个孤立的样本;这一机制能够从整个数据集 $X$ 中榨取所有可用于预测 $Y$ 的潜在价值。 - 条件复杂度定义:$K(Y \mid X)$ 是允许调用/探测数据 $X$ 时输出 $Y$ 的最短代码长度。 - 理论地位:提供了一种无懈可击、无可超越的无监督学习黄金标准。 - 关键设定:模型是以全量数据集为条件提取特征,而非单一样本。 ### [27:26](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1646s) 联合压缩与条件压缩的等价性 在将上述理论应用到现实机器学习中时,存在一个技术细节上的尴尬点:条件柯尔莫哥洛夫复杂度要求压缩器在访问一个庞大数据集的同时去压缩另一个对象。而在现有的机器学习实践中,虽然我们能轻松在庞大数据集上拟合(fit)参数,但尚未形成真正成熟的、直接对庞大数据集进行条件化(condition)的通用范式。为此,Ilya 提出了一个极具实用价值的等价结论:如果你关心的是对监督任务 $Y$ 做出预测,那么使用传统的柯尔莫哥洛夫压缩器去直接压缩拼接数据 $X$ 与 $Y$(即联合压缩),其效果与专门的条件压缩器完全一样好。 “This says that you can also use your regular Kolmogorov compressor. Just throw all your data. Take all your files. Concatenate them. Compress them. And that's going to make some great predictions on your supervised task, the task that you care about.” Ilya 解释道。这种直接将所有文件拼接后进行压缩的做法,在机器学习中本质上对应着“无过拟合情况下的最大似然估计”(maximum likelihood)。在概率建模下,给定模型参数时数据集对数似然的总和,正好对应了压缩该数据集所需的比特成本(再加上压缩参数本身的开销)。当需要引入新数据时,开发者只需在训练集中追加数据点并累加对数似然项即可,这使得联合压缩在工程实现上极其顺畅自然。 - 现实痛点:当前的机器学习体系极擅长拟合大模型,却难以自然地在巨大数据集上进行精确条件化操作。 - 理论化简:压缩拼接数据 $(X, Y)$ 的联合压缩,在预测表现上等价于条件压缩 $K(Y \mid X)$。 - 机器学习映射:拼接数据的联合压缩直接等同于大模型在大规模混合语料上的最大似然训练。 ### [30:18](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1818s) 神经程序搜索与为什么需要超大模型 基于这种理论对应关系,Ilya 阐述了这套压缩框架为何能完美诠释现代深度学习的核心机制。如果退后一步审视,大语言模型或大神经网络使用随机梯度下降(SGD)进行训练的过程,本质上就是在超大搜索空间中进行的“程序搜索”(program search)。神经网络参数规模越大,它对理想中的柯尔莫哥洛夫压缩器的逼近就越精确。 这也是当今 AI 行业执着于扩大模型规模(Scaling)的深层理论根源:“And so maybe this is also why we like big neural nets, because we approach the unapproachable idea of the Kolmogorov compressor, which truly has no regret, and we just want to have less and less regret as we train larger and larger neural nets as far as extracting predictive value is concerned.” 随着网络规模的不断扩张,我们在提取数据中蕴含的预测价值时所承受的“遗憾”(regret)就会越来越少,从而不断逼近那个不可计算却极其优美的极限。 - SGD 训练大网络的实质:一种基于连续优化的分布式程序搜索机制。 - 模型缩放(Scaling)的深层逻辑:网络越大,对通用柯尔莫哥洛夫压缩器的逼近程度越高。 - 最终目标:在提取全量数据的潜在预测信息时,将后悔值无限降至最低。 ### [30:58](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1858s) 视觉领域的验证:iGPT 与下一像素预测 Ilya 坦承,将上述压缩理论套用到 GPT 系列文本模型上时,往往难以彻底说服怀疑者。因为文本模型展现出的少样本学习(few-shot learning)等特性,完全可以用更直观的统计学概念解释——比如互联网文本的条件概率分布,或者文档中重复模式的延续。为了给这套理论提供直接且无可辩驳的实证支持,OpenAI 团队在 2020 年将目光投向了另一个截然不同的模态:纯视觉领域(图像像素),推出了 iGPT。 iGPT 的定位是一个高昂的概念验证(expensive proof of concept),而非追求最高落地性价比的工业产品;其核心目标就是为了证明“只要做出一个顶级的下一步预测器(next step predictor),就能达成极其出色的无监督表征学习”。iGPT 的设计非常纯粹:直接将图像展平为离散像素强度的序列,完全不使用类似 BERT 的掩码重建机制,而是像 GPT 处理文本一样,用标准的 Transformer 进行自回归的“下一像素预测”(next pixel prediction)。 - 验证动机:文本上的成功容易被归结于互联网文档的特殊统计规律,需在底层像素数据上进行交叉验证。 - 核心架构:将图片转化为一维离散像素序列,用 Transformer 执行纯粹的下一像素自回归预测。 - 算法本质:严格通过自回归最大化似然值,实现对底层图像信息的高保真压缩。 ```mermaid flowchart LR accTitle: Image GPT (iGPT) Workflow accDescr: Pipeline of iGPT from raw image flattening to next pixel prediction and linear probe evaluation. subgraph Training["自回归压缩阶段"] A["输入图像"] --> B["离散像素序列<br/>(展平为 Token)"] B --> C["Transformer 模型<br/>(下一像素预测 / 最大似然)"] end subgraph Evaluation["表征提取阶段"] C --> D["抽取内部最优隐藏层"] D --> E["拟合线性分类器<br/>(Linear Probe)"] E --> F["下游分类评估<br/>(CIFAR-10 / ImageNet)"] end ``` ### [32:56](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=1976s) 实验表现与线性表征的未解之谜 在实验结果方面,下一像素预测展现出了令人信服的缩放规律。在 CIFAR-10 上,随着模型尺寸增大,下一像素预测的精度不断上升,同时模型的线性探针(linear probe,即固定预训练模型权重、仅在最优隐藏层上拟合一个线性分类器)的分类准确率也随之强劲爬升,两条曲线呈现出极佳的同步收敛趋势。团队不仅在 CIFAR-10 上达到了 99% 的惊人准确率,还将模型规模扩大到在当时堪称庞大的 60 亿参数(6B),在低分辨率(64x64)图像上逼近了当时 ImageNet 最前沿的无监督学习表现。虽然受算力限制未能完全击穿大分辨率专用模型的纪录,但它无可置疑地证明了自回归压缩在通用特征学习上的威力。 演讲的尾声部分,Ilya 抛出了一个至今仍令理论界着迷的开放问题:线性表征现象(linear representations)。这套压缩理论成功解释了为什么模型能够无损提取预测信息,但它并不能解释“为什么这些学到的高级表征会自然呈现为线性可分的几何形式”。此外,实验还显示自回归模型(如 iGPT)内部产生的线性表征质量明显优于类似 BERT 的双向掩码模型。在演讲结束、听众席掌声响起后,立刻有听众举手发问:“你能谈谈对这个现象的具体推测吗?”(“Could you provide the speculation?”),Ilya 随即欣然确认并开始展开他对下一像素预测机制的独到推测。 - 性能突破:iGPT 在 CIFAR-10 上达成了 99% 的线性探针准确率,验证了像素压缩的表征效能。 - 算力限制:当年受限于算力,实验采用了 64x64 小图及 60 亿参数模型,若算力进一步提升可显著缩小与专用 SOTA 的差距。 - 理论悬念:压缩理论未从数学上推导表征为何必然线性可分,且自回归预测形成的线性表征明显优于 BERT 范式。 ### [36:20](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2180s) 自回归预测与掩码预测的难度差异:下一个像素与 BERT 的表征之谜 Ilya Sutskever 深入探讨了自回归模型(下一个像素预测)与 BERT 风格的掩码自编码器之间的内在难度差距。在下一个像素预测中,模型必须仅根据前面的所有像素来推断下一个像素,这迫使它不得不去捕捉图像全局的长程依赖结构;而在 BERT 的设定中,假设随机遮盖(drop)25% 的 token 或像素,任何预测其实都可以通过观察局部的前后上下文相对轻松地完成。Ilya 强调:“下一个像素预测中最难的预测任务,要比 BERT 预测中最难的任务难得多(The hardest prediction task in the next pixel prediction is a lot harder than the hardest prediction task in the BERT prediction case)。”这种任务难度的本质差异,解释了为什么自回归模型往往能被迫学到更深刻的全局表征。 随后,现场观众询问是否存在更稳健的二维(2D)版本下一个像素预测。Ilya 回应称,从形式上讲,任何能将神经网络转化为对不同输入赋予概率的概率模型都属于此类。他话锋一转,提到了扩散模型(Diffusion Models)。高质量图像生成中常用的扩散模型并不完全是最大化输入似然,但其最初的理论构想正是最大似然估计。Ilya 抛出了一个犀利的推测:基于与 BERT 相同的逻辑,扩散模型学到的线性表征可能也会弱于下一个像素预测模型,这在他看来反而进一步加深了究竟是什么导致线性表征(linear representations)自发形成的理论谜团。 ```mermaid flowchart LR accTitle: 预测范式与表征质量对比 accDescr: 对比下一个像素预测与掩码BERT在上下文范围、任务难度及表征深度上的差异 subgraph AR["自回归范式 (如 Image GPT)"] direction TB A1["因果上下文:仅依赖历史像素"] --> A2["极具挑战的全局长程推断"] A2 --> A3["迫使生成优质线性特征表示"] end subgraph Masked["掩码/局部范式 (如 BERT / 扩散模型)"] direction TB B1["双向上下文:前后微调观察"] --> B2["容易借助局部插值完成填充"] B2 --> B3["线性表征提取效果较弱"] end ``` ### [38:27](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2307s) 柯尔莫哥洛夫复杂度类比的局限:训练动力学与弱搜索 现场一位观众对将柯尔莫哥洛夫复杂度(Kolmogorov Complexity)与神经网络进行类比提出了尖锐的质疑:这个类比似乎忽略了神经网络至关重要的“训练动力学(training dynamics)”。如果通过柯尔莫哥洛夫复杂度进行压缩,算法遍历所有可能程序,数据的输入顺序完全无关紧要;但在神经网络中,数据的先后顺序显然影响巨大,模型在训练早期学到的简单启发式特征往往会长期滞留到训练后期。 Ilya 坦率承认了这个类比的不完美,并明确指出了它最根本的破裂之处:“你所描述的、这个类比最站不住脚的地方,正是在于搜索过程(The place where that analogy breaks down the most is in the search procedure)。”他进一步剖析: - 柯尔莫哥洛夫压缩器使用的是一种无限昂贵但绝对全能的搜索过程——每次都从头彻底枚举所有可能的程序。 - 真实的神经网络则受限于极其微弱的启发式搜索算法(如随机梯度下降 SGD)。 - Ilya 告诫大家,在使用这个理论类比时必须保持谨慎,它显然不具备普适性,但它在解释“无监督学习为何起作用以及其能力从何而来”方面,依然具有不可替代的直观启发价值。 ### [40:17](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2417s) 密码学视角的区分性与能量模型 另一位观众从理论密码学的发展历史切入提问:早在 20 世纪 80 年代,密码学理论就确立了“数据压缩”、“下一个比特预测(next-bit prediction)”与“区分两个分布的能力(distinguishing two distributions)”三者之间的等价性;既然 Ilya 建立了压缩与预测的桥梁,这种在分布之间进行区分的视角是否能自然映射到当前的无监督学习理解中? Ilya 坦言自己对该领域的经典密码学定理没有极深入的研究,但他迅速联想到了深度学习中一个与之密切相关的流派——基于能量的模型(Energy-Based Models, EBM)。能量模型提供了另一种将神经网络转化为概率分布的机制:输入一个向量配置,网络输出一个非归一化的标量标示其“能量状态(how it feels)”,随后对整个空间进行配分函数归一化。Ilya 指出,在能量模型中,两个分布的概率比值恰好对应于能量的差值(differences of energy),这与观众所探讨的区分性测试可能存在潜在的数学对应。紧接着,现场观众席上量子计算学者(Scott Aaronson)幽默插话,为统计学习理论中的 VC 维(VC dimension)进行“荣誉辩护”,提到自己在 2007 年证明量子态 PAC 学习定理时,VC 维指数级小于假设类大小的对数,证明了组合维度的独特价值;Ilya 笑着回应:“这是一个非常酷的例子(That is a cool example)。” ### [43:28](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2608s) 数据集负对数似然:神经网络作为实际压缩器 针对观众关于数据集采样表示 $X$ 与 SGD 优化器是否能被视作最优压缩程序的疑问,Ilya 详细拆解了如何将神经网络严格视作压缩器。尽管模型在训练时每次只接收一个样本、无法直接显式建模整个数据集内部跨样本的复杂时序结构,但将其视为压缩程序在数学上依然严谨成立。 Ilya 指出,只要神经网络能够对数据赋予对数概率,就可以在一批大规模训练样本上分别计算每个案例的对数似然并求和,得到模型分配给整个数据集的总对数概率。这个负对数概率(negative log probability)在信息论意义下,直接在物理上等价于使用该神经网络作为编码器去无损压缩该数据集所需的真实比特数(number of bits)。即使优化的搜索过程并不完美,压缩率的度量标准依然是坚实存在的。 ### [45:03](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2703s) 线性表征是“额外红利”:微调能力才是无监督压缩的核心保证 针对现场关于“如果压缩是终极目标,为什么非要执着于线性表征”的深刻提问,Ilya 做出了全场最具洞察力的澄清之一。观众指出,语言模型的下一个词预测与有监督任务界限模糊,而图像任务(如 Image GPT)虽证明了自回归无监督预训练能产生优秀的线性探测表征,但某些高效压缩算法并不提供线性特征。Ilya 当即纠正了对该理论的常见误解: > “首先我想说,线性表征——优秀的线性表征只是一种额外的红利(A good linear representation is a bonus)。这个理论论证在任何阶段都没有说过‘因此必然会涌现出线性表征’。” Ilya 阐明,从联合压缩(joint compression)的理论出发,必然能够推导出的结论是**出色的微调(fine-tuning)能力必然会涌现**,因为利用 SGD 进行参数微调,本质上就是一种近似实现联合压缩的工程化搜索过程。历史实验已经证明: - 图像上的掩码模型(如类似 BERT 的架构)抽取的线性表征通常弱于逐像素自回归模型。 - 扩散模型很可能在线性表征提取上也面临类似劣势,但它们在微调下游任务时的表现究竟如何,是一个极其值得深入挖掘的开放问题。 在被问及这些无监督压缩洞察如何反哺监督学习时,Ilya 总结道,这直接指导了我们对目标函数类的选择:网络需要足够深,以便进行更多层级的思考;网络需要足够宽,以承载更大的容量——这些压缩视角的思考,从根本上为现代深度神经网络的缩放法则提供了理论依托。 ### [48:01](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2881s) 压缩理论的实际缺陷:忽略计算成本 Ilya Sutskever 直言不讳地指出了基于柯氏复杂性(Kolmogorov Complexity)与压缩视角的理论在实际应用中的致命短板:“这个理论有一个巨大的实际缺陷,那就是它完全忽略了计算成本(compute cost)。它只关注信息本身。”为了说明这一点,他举了 Universal Transformer 的例子:该架构在各层之间复用同一组权重,概念上极其优雅,但如果你想借此获得相当于海量参数的表达能力,就必须在计算量上付出巨大的代价。而在现实的工业实践中,“没有人愿意这么做”,工程上绝对不能无视算力开销。但该理论的价值在于,如果你暂时将计算成本抛在一边,它确实能为你指明前行的方向。 随后,现场听众提问自回归模型(autoregressive modeling)在概率分布拟合中到底有多关键,并指出像 BERT 也可以被视为在进行某种极大似然训练,甚至也有方法能从中进行采样。Ilya 回应称,特定的扩散模型(diffusion models)同样可以构建为极大似然估计模型。从压缩理论的角度来看,扩散模型完全有潜力达成与自回归模型同样出色的成就,两者之间的差距可能只是一些常数因子的区别。 ```mermaid flowchart TD accTitle: 压缩理论视角下生成模型的等价性与算力权衡 accDescr: 展示自回归模型、扩散模型与基于能量的模型在理论与工程实现上的异同 subgraph Theory["理论视角(关注信息与压缩极限)"] A["极大似然估计 / 压缩目标"] A --> B["自回归模型 (AR)"] A --> C["扩散模型 (Diffusion)"] A --> D["基于能量的模型 (EBM)"] end subgraph Reality["工程现实(受限于计算成本)"] B --> E["实现简单、工程极其便利"] C --> F["可能需要 10 到 15 倍的算力开销"] D --> G["理论潜力大但训练难度极高"] end ``` 由于该理论对算力并不敏感,“它可能会告诉你,好吧,也许你需要多花 10 到 15 倍的计算资源,然后自回归模型和扩散模型的效果就会完全一样了。”Ilya 坦承,自回归模型之所以大获全胜,核心在于工程落地:“自回归模型只是足够简单,极其便利。”未来基于能量的模型(energy-based models)或许能做出更惊人的成果,但在信息论与压缩的视野下,它们的底层逻辑其实是相通的。 - 理论视角的局限:仅以信息熵和无损压缩为导向,假设计算资源无限,未将 FLOPs、显存与延迟纳入优化方程。 - Universal Transformer 的权衡:通过层间参数共享降低参数量,但要达到同等表达深度需循环展开多层,导致计算步数与推理延迟激增。 - 生成范式的等价性:自回归与规范化的扩散模型在似然估计上具有理论等价性,核心差异在于采样与训练的计算常数因子。 ### [49:46](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2986s) 压缩器体积与无限测试集之谜 一名听众提出了一个尖锐的悖论:目前 GPT-4 可能是世界上最强的文本压缩器,但它同时也是体量最庞大的模型之一;一方面模型的压缩性能越来越好,但另一方面作为“压缩器”本身的体积也在不断膨胀,这是否违背了柯尔莫哥洛夫复杂性的初衷? Ilya 解释道,这里存在理论与实践设定的“不对应”(disanalogy)。理论通常假设你要压缩的是一个“固定大小的数据集”,此时压缩器本身的描述长度(模型大小)必须算在总码长中;但在现代大语言模型的实际训练中,数据的设定范式是完全不同的。 > “如果测试集是无限的,而你关心的是压缩测试集,那么只要测试集的规模远远大于压缩器本身,你就根本不需要在乎压缩器的体积大小。” —— Ilya Sutskever 在被问及使用一个相互独立的验证集是否足以弥合这一理论间隙时,Ilya 肯定了验证集的价值,并补充了一个单轮训练(single epoch)下的优美性质:在单 epoch 机制下,随着训练的推进,直接沿途累加计算模型在每个新 step 上的对数概率(log probabilities),所得到的数值在本质上就等同于模型对整个数据集的无损压缩大小,同时也能够作为验证集性能的极佳估计。 - 固定数据 vs. 无限流:传统数据压缩关注有限体积 $D$ 的存储最小化;LLM 预训练模拟从潜在的无限分布中提取泛化规律,压缩器体积在渐近意义下被摊薄。 - 单轮训练的度量特性:在单 epoch 设定中,因模型从未见过后续样本,在线前向累计的交叉熵损失直接构成了无数据泄漏的泛化压缩率评测。 ### [51:51](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=3111s) gzip 分类论文的插曲与深度压缩的本质 一位听众提及当时刚发表不久的一篇引起广泛讨论的学术论文(即利用 gzip 结合 k-近邻分类器进行文本分类的研究),指出该方法仅通过简单拼接字符串、调用 gzip 计算压缩距离,完全无需复杂的训练和海量参数就能完成文本分类,似乎与 Ilya 演讲中提到的压缩分类框架如出一辙。 Ilya 对此回应道,使用标准压缩软件确实能在某种程度上验证这一机制:“我对那篇论文唯一的评价是,gzip 并不是一个非常强大的文本压缩器。所以我认为它确实证明了这种思路在一定程度上是可行的,但所有真正有分量的内容,都发生在你挤出最后那些比特的时候。”听众随即提到该研究可能只是一个玩具级的概念验证(toy proof of concept),甚至现场有人小声提醒该论文的数据集处理此前被曝存在测试泄漏的 Bug。Ilya 则风趣地用一句“它根本不管用(It doesn't work)”引来现场的一阵轻笑。 - 浅层压缩 vs. 深度压缩:传统基于字典或统计计数的压缩器(如 gzip、LZW)只能捕捉局部重复模式,无法理解多跳逻辑、世界知识与复杂语义。 - “挤出最后比特”的哲学:语言模型对预测精度的微小提升(降低交叉熵损失的微小数值),对应着模型必须掌握常识推理和逻辑归纳才能消除的熵值。 ### [52:52](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=3172s) 课程学习与优化难度的内在联系 讨论最后转向了关于“课程学习”(curriculum learning)的探讨。听众提出,在此前讨论中,Jacob 提到了课程学习效应在神经网络中显著存在,但在纯粹的柯尔莫哥洛夫复杂性理论中却看不到痕迹;而现场学者们午餐讨论时也发现,目前学界对于课程效应在 LLM 中究竟扮演多大角色依然缺乏定论。 Ilya 对此分享了一个深刻的直觉视角:课程学习的重要程度,与模型架构本身的优化难度成反比。 > “我们整个领域付出了大量的努力,才让 Transformer——也就是我们当前使用的这种架构——变得相对易于优化。我们找到了良好的初始化方法,找到了极佳的超参数,还对架构进行了各种改良,使得训练变得尽可能容易。训练优化问题变得越容易,你对课程学习效应的依赖就越低。” —— Ilya Sutskever 为了形成鲜明对比,Ilya 举了神经图灵机(Neural Turing Machine)等异构复杂架构的例子。神经图灵机包含了大量极其复杂、非同质化的层级与读写机制,优化地形极度崎岖。如果直接将完整且复杂的数据集一股脑喂给这种架构,训练必然会直接崩溃崩盘;在这种极难优化的奇异架构中,研发人员必须极其审慎地设计由浅入深的训练课程(curriculum)。而现代 Transformer 的工程改良已经大幅平滑了损失面,使其在无序海量数据的随机梯度下降中依然能稳健收敛。 随着 Ilya 解答完毕,主持人 Yejin Choi 宣布讲座圆满结束,并提议全场向 Ilya Sutskever 鼓掌致谢,全场报以热烈掌声。 - 优化鲁棒性替代课程设计:Transformer 配合 Pre-LN、特定初始化策略(如 DeepNorm)和 AdamW 优化器,使网络对数据输入顺序的敏感度大幅降低。 - 复杂架构的优化诅咒:异构与递归架构(如 NTM、记忆增强网络)极易陷入局部最优或梯度弥散,必须依靠严谨阶梯式的课程学习才能勉强引导收敛。 ## Notable quotes > [49:46](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2986s) 如果测试集是无限的,而你关心的是压缩测试集,那么只要测试集的规模远远大于压缩器本身,你就根本不需要在乎压缩器的体积大小。 — Ilya Sutskever > [52:52](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=3172s) 训练优化问题变得越容易,你对课程学习效应的依赖就越低。 — Ilya Sutskever > [36:20](https://www.youtube.com/watch?v=AKMuA_TVz3A&t=2180s) 下一个像素预测中最难的预测任务,要比 BERT 预测中最难的任务难得多 — Ilya Sutskever ## Mentioned Ilya Sutskever, Yejin Choi, Umesh Vazirani, Scott Aaronson, Jacob Steinhardt, OpenAI, Simons Institute for the Theory of Computing, Transformer, RNN, BERT, iGPT, GPT-4, Universal Transformer, Neural Turing Machine, Diffusion Models, Energy-Based Models, CIFAR-10, ImageNet, gzip ## Video description Ilya Sutskever (OpenAI) https://simons.berkeley.edu/talks/ilya-sutskever-openai-2023-08-14 Large Language Models and Transformers [Source](https://www.youtube.com/watch?v=AKMuA_TVz3A)

Source quotes

[49:46] Ilya Sutskever: 如果测试集是无限的,而你关心的是压缩测试集,那么只要测试集的规模远远大于压缩器本身,你就根本不需要在乎压缩器的体积大小。 [52:52] Ilya Sutskever: 训练优化问题变得越容易,你对课程学习效应的依赖就越低。 [36:20] Ilya Sutskever: 下一个像素预测中最难的预测任务,要比 BERT 预测中最难的任务难得多

Source quotes

[20:40] Ilya Sutskever: And all of deep learning hinges on top of the SGD miracle that we can actually train these computers with SGD. [5:51] Ilya Sutskever: The VC dimension was invented to handle precision parameters with infinite precision. [2:01] Ilya Sutskever: So three lines of math can prove all of supervised learning. [49:46] Ilya Sutskever: If the test set is infinite and you care about compressing the test set, then you don't care about the size of your compressor, so long as this test set size is much larger.

Original transcript

[0:00] YEJIN CHOI: It has a citation count that's six digits. [0:03] It's more than 139,000, and then many more. [0:08] So super excited to hear what Ilya has to say [0:10] about LLMs and the future. [0:12] Take it away. [0:13] ILYA SUTSKEVER: OK. [0:14] Hi. [0:16] [APPLAUSE] [0:19] Hi. [0:19] Hi, everyone. [0:21] Thank you for the introduction. [0:23] When Umesh invited me to attend this event, [0:28] I got really excited. [0:29] I saw all the speaker list. [0:30] And I thought, great, I'll go and I'll talk about something. [0:33] And then I ran into a problem, which [0:36] is that a lot of the technical work [0:40] that we're doing at OpenAI, I actually can't talk about. [0:42] [LAUGHTER] [0:43] So I was really wracking my head what could I talk about. [0:47] Right now, so as of not too long ago, [0:50] I switched all my focus to working on AI alignment, [0:55] all my research focus. [0:56] And we'll have very cool results to show there, but not just [0:59] yet. [1:00] So I'm like, so this would have to be for the next talk. [1:03] But what would be good for this talk? [1:05] And I came up with something. [1:09] I'll tell you about some very old results [1:14] that we had at OpenAI many years ago, back in 2016 even, [1:23] which really affected the way I think [1:26] about unsupervised learning. [1:29] And I thought I'd share them with you. [1:31] It is possible that at this point, [1:35] you will find them obvious. [1:37] But maybe not all of them. [1:39] So there is at least a small chance [1:40] that you'll find it interesting. [1:42] So I want to set the expectations modestly, and then [1:45] hopefully exceed them. [1:47] So a theory of unsupervised learning. [1:53] How can such a thing exist? [2:01] Before we talk about unsupervised learning, [2:03] we want to talk about learning in general. [2:05] What is learning? [2:06] And why does learning work at all? [2:09] Why should learning work at all? [2:10] And why should computers be able to learn? [2:13] And now we're just used to the fact. [2:17] We take it for granted that neural networks learn. [2:19] But why do they? [2:22] Mathematically, why should they? [2:23] Why would data have regularity that our machine learning [2:30] models can capture? [2:32] So that's not an obvious question. [2:35] And one important conceptual advance [2:38] that has taken place in machine learning many years ago [2:43] by multiple people was the discovery and the formalization [2:48] of supervised learning. [2:51] So it goes under the name of PAC learning, [2:53] or statistical learning theory. [2:56] And the nice thing about supervised learning [2:59] is that it gives you a precise mathematical condition [3:04] under which learning must succeed. [3:11] You're told that if you have some data, from some data [3:13] distribution, that if you manage to achieve a low training [3:19] loss and the number of your degrees of freedom [3:25] is smaller than your training set, then [3:30] you will achieve low test error. [3:32] And you are guaranteed to do so. [3:35] So you have a mathematical condition [3:37] where you can say, well, if I did [3:40] find a function out of my function class, [3:42] which achieves low training error, [3:45] then learning will succeed. [3:48] And you can say, yeah, this is a very sensible [3:52] mathematical thing that we can reason about. [3:56] And that's why supervised learning is easy. [3:58] And then you had all these theorems, [4:00] which I thought were simple. [4:03] I found them elegant. [4:05] You've seen maybe theorems like this. [4:07] If you have your-- [4:08] basically, it's like this is the sort of thing [4:09] where if you know it, you're going [4:11] to say, oh, yeah, that thing. [4:12] And if you don't know it, it will not [4:13] be possible to explain it in 30 seconds. [4:15] Though, it is possible to explain it in 5 minutes, just [4:18] not 30 seconds. [4:19] None of this stuff is complicated. [4:20] And you've got your little proof which says, well, [4:25] if you have some number of functions in your function [4:27] class, the probability that your train error will be far [4:32] from your test error for at least one function, [4:35] there is some math. [4:36] And the math is simple. [4:37] This is all the math-- three lines of math. [4:39] So three lines of math can prove all of supervised learning. [4:43] Well, that's nice. [4:45] That's very nice. [4:46] So supervised learning is something [4:48] that is well understood-- [4:49] comparatively speaking, well understood. [4:52] We know why it must succeed. [4:56] So we can go forth and collect large supervised learning data [4:59] sets and be completely certain that models [5:04] will keep getting better. [5:09] So that's the story there. [5:12] And yeah, I forgot to mention a very important piece [5:17] of these results. [5:18] The test distribution and the training distribution [5:20] need to be the same. [5:22] If they are the same, then your theory of supervised learning [5:25] kicks in and works and will be successful. [5:29] So conceptually, it is trivial. [5:33] We have an answer for why supervised [5:36] learning works, why speech recognition should work, why [5:41] image categorization should work, [5:43] because they all reduce to supervised learning, which [5:46] works, which has this mathematical guarantee. [5:49] So this is a very nice. [5:51] Here I want to make a small side comment on VC dimension [5:56] to those of you who care about such things. [5:58] There may be a small subset. [5:59] So if you want to zone out for the next 30 seconds, [6:01] feel free to do so. [6:05] So a lot of writings about statistical learning theory [6:11] emphasized the VC dimension as a key component. [6:15] But the main reason the VC dimension-- [6:19] in fact, the only reason the VC dimension was invented [6:22] was to allow us to handle parameters [6:28] which have infinite precision. [6:31] The VC dimension was invented to handle precision parameters [6:35] with infinite precision. [6:36] So if you have a linear classifier, [6:38] every parameter is infinite precision. [6:41] But then, of course, in reality, all our floats [6:45] are finite precision, and their precision is shrinking. [6:48] So you can-- so you have your-- [6:51] so the number of functions that are implemented by a computer [6:54] is actually small. [6:54] And you can reduce it back to this little formula, which [6:59] gives you pretty much all the best bounds [7:03] that you can get from supervised learning. [7:05] So I find this to be cool. [7:06] I find this to be appealing because you [7:09] have fewer lines of proof. [7:16] Now, let's talk about unsupervised learning. [7:19] So I claim-- first of all, what is unsupervised learning? [7:23] What is it? [7:25] Supervised learning is like, yeah, you've [7:27] got your data that says, here, do this, here, do that, [7:31] and you have all this data. [7:33] You do well in your training error. [7:34] Your training error is low. [7:36] You have more training data than degrees [7:39] of freedom in your function class, parameters. [7:42] There may be other things, too-- degrees of freedom, like bits. [7:47] And you say, your supervised learning will succeed. [7:49] But what is unsupervised learning? [7:50] What can you say at all about unsupervised learning? [7:55] And I'll say that at least I have not [7:57] seen like an exposition of unsupervised learning, which [8:00] I found satisfying. [8:01] How to reason about it mathematically? [8:03] We can reason about it intuitively, [8:05] but can we reason about it mathematically? [8:09] And for some context, what is the old dream [8:12] of unsupervised learning, which, by the way, [8:14] this dream has been fulfilled, but it's fulfilled empirically. [8:17] Can we go just a tiny bit beyond the empirical results, [8:22] like the idea that you just look at the images, [8:24] or you just look at the text without being told what [8:26] to do with them, and somehow you still discover [8:29] the true hidden structure that exists in the data, [8:32] and somehow it helps you? [8:35] But why should it happen? [8:39] Should it happen? [8:40] Should we expect it to happen? [8:43] You cannot-- you don't have anything remotely similar [8:46] to the supervised learning guarantee. [8:48] The supervised learning guarantee [8:49] says, yeah, get your low training error, [8:51] and you're going to get your learning. [8:53] It's going to be a great success. [8:55] So unsupervised learning, it appears-- [8:57] it appears that it's not this way. [9:00] People were talking about it for a long time, in the '80s. [9:03] The Boltzmann machine was already [9:05] talking about unsupervised learning. [9:07] And unsupervised learning also did not work at small scale, [9:10] but all the ideas were there, like denoising autoencoder, [9:14] for those of you who remember it. [9:17] It's like BERT or the diffusion model. [9:19] Within it, it's a tiny twist, the tiniest of twists. [9:22] The language models of old times, [9:25] they also generated cool samples for their time, [9:28] but they're unsupervised learning performance was not as [9:32] impressive as those of today. [9:35] But I want to make the case that it is confusing, [9:37] because it's like-- [9:40] why is it confusing? [9:41] You optimize. [9:42] How does unsupervised learning work? [9:43] You say, let's optimize some kind of reconstruction error, [9:47] or let's optimize some kind of denoising error, [9:50] or some kind of self-supervised learning error. [9:53] You optimize one objective. [9:56] Oh, yes. [9:57] I just said that. [9:58] But you care about a different objective. [10:01] So then doesn't it mean that you have no reason [10:05] to expect that you will get any kind [10:08] of good unsupervised learning results, [10:10] or rather you do get them empirically, [10:12] but like, is it going to be-- [10:15] the level of mystery is quite high, I claim. [10:18] It seems like a totally inaccessible phenomenon. [10:21] You optimize one objective, but you [10:22] care about another objective. [10:24] And yet it helps. [10:25] How can that be? [10:27] Magic. [10:35] The other thing, by the way, is that unsuper-- [10:38] well, I guess I'm going to say something which is only 90% [10:43] true. [10:45] Unsupervised learning doesn't-- you could say, OK, [10:48] so you just learn the structure and the input distribution, [10:51] and it helped you. [10:52] But then, what if you're training [10:55] from the uniform distribution? [10:56] Then all your unsupervised learning algorithms will fail. [11:02] How should you to think about that? [11:05] So what can we say? [11:08] Do we need to make assumptions? [11:09] What kind of assumptions? [11:11] So I'd like to present potentially [11:15] a way of thinking about unsupervised learning, which, [11:17] I think, I personally find it interesting. [11:20] Perhaps you'll find it interesting, too. [11:21] Let's find out. [11:24] So I want to show you one way of doing unsupervised learning, [11:30] which is not necessarily widely known, because it never [11:33] became the dominant way of doing unsupervised learning. [11:35] But it has the cool feature that similarly [11:40] to supervised learning, it has to work. [11:44] So what kind of mysterious unsupervised [11:47] learning procedure where you're not [11:49] giving any labels to any of your inputs [11:53] is still guaranteed to work? [11:56] Distribution matching, distribution matching. [12:02] So what is distribution matching? [12:03] Say I've got my data. [12:05] I've got X, and I've got Y, data sources. [12:09] There is no correspondence between them. [12:11] I've just got two data sources, data source X and data source [12:14] Y, language one, language two, text, speech-- [12:20] no correspondence between them. [12:24] Let us look at this criterion. [12:26] Find the function f such that the distribution of F of X [12:32] is similar to the distribution of Y. It is a constraint on F. [12:37] And in the case of machine translation and speech [12:40] recognition, for example, this constraint might be meaningful. [12:49] You could say, yeah, if I have long sentences-- [12:53] if you tell me that you have a function [12:55] such that the distribution-- you take your distribution [12:58] of English sentences. [12:59] You apply the function F to them, [13:01] and you get something which is very [13:03] similar to the distribution of French sentences, you can say, [13:05] OK, I found the true constraint about F. [13:14] If the dimensionality of X and the dimensionality of Y [13:19] is high enough, that's going to give you a lot of constraints. [13:22] In fact, you might be able to almost fully recover F [13:25] from that information. [13:28] This is an example of supervised learning-- [13:31] of unsupervised learning, where it is still guaranteed [13:36] to work in the same sense that supervised learning is [13:38] guaranteed to work. [13:42] Also, substitution ciphers, like little simple encryptions, [13:45] will also fit into this framework. [13:49] So that's the thing. [13:51] And so I ran into this. [13:57] I independently discovered this in 2015. [14:02] And I got really fascinated by it, [14:04] because I thought, wow, maybe there [14:07] is something meaningful, mathematically meaningful [14:11] that we can say about unsupervised learning. [14:16] But let's see. [14:17] The thing about this setup is that still it's [14:20] a little bit artificial. [14:21] It's still-- real machine learning [14:23] setups aren't like this. [14:25] And the way we like to think about unsupervised learning [14:28] isn't that also. [14:32] Now I'll present to you the meat, the meat [14:36] of what I wanted to say-- [14:41] a proposed way to think about unsupervised learning [14:45] that lets you-- [14:47] that puts it on par with supervised learning. [14:48] So OK, what is it doing mathematically? [14:50] How can you be sure that your unsupervised learning is good? [14:55] Compression to the rescue. [14:58] Obviously, it is well-known-- [15:01] I shouldn't say obviously. [15:02] It is not obvious, but it is well-known [15:04] that compression is prediction. [15:07] Every compressor can be a predictor, and vice versa. [15:10] There is a one-to-one correspondence [15:12] between all compressors and all predictors. [15:15] However, I would argue that for the purpose of thinking [15:21] about unsupervised learning, the language of compression [15:26] offers some advantages, at least, for me, it did. [15:31] Perhaps it will for you, too. [15:35] So consider the following thought experiment. [15:41] This thought experiment is the most important slide. [15:45] Say you have two data sets, X and Y. You have two data [15:51] sets, two files on your big giant hard disk. [15:58] And say you have a really great compression algorithm [16:01] C, which takes data in, and outputs compressed objects out. [16:07] Say you compress X and Y jointly. [16:10] You concatenate them. [16:11] You take the two data sets, and you concatenate them. [16:14] And you feed them to your compressor. [16:15] What will happen? [16:18] Well, let's see. [16:19] What, and in particular, an important question [16:21] is, what will a sufficiently good compressor do? [16:27] My answer is, very intuitively, it [16:30] will use the patterns that exist inside X to help [16:34] it compress Y, and vice versa. [16:38] You could make the same claim about prediction, [16:41] but somehow it's more intuitive when [16:42] you say it about compression. [16:44] I don't know why that is, but I find it to be the case. [16:47] So that's our clue. [16:49] And you can make an equation like this, where you say, hey, [16:53] if your compression is good enough, if it's [16:54] like a real great compressor, it should [16:58] say that the compression of your concatenation [17:01] of your giant files should be no worse [17:05] than the separate compression of your two files. [17:08] So any additional compression that [17:10] was gained by concatenation is some kind of shared structure [17:15] that your compressor noticed. [17:17] And the better your compressor is, the more shared structure [17:20] it will extract. [17:22] The gap is the shared structure, or the algorithmic mutual [17:25] information. [17:28] So that's interesting, right? [17:30] You can see what I'm alluding to. [17:31] Y is the data of your supervised task. [17:34] X is your unsupervised task. [17:36] But suddenly, you have some kind of mathematical reason [17:40] for the information for the patterns in X to try to help Y. [17:46] Notice also how it generalizes distribution matching. [17:50] If we are in the distribution matching case, where you've got [17:55] your X is language one and Y is language two, [17:59] and you are saying-- [18:01] and you know that there exists some simple function [18:04] F that transforms one distribution into the other, [18:07] surely, your compressor, if it's good, [18:09] you'll notice that, and make use of that, [18:12] and maybe even internally try to recover this function. [18:20] I think that's pretty cool. [18:22] We've closed the circle. [18:27] So how do we formalize it then? [18:29] What will be the formalization of unsupervised learning? [18:32] Let's see. [18:33] Let's see if I can do it. [18:36] Consider an ML algorithm. [18:39] So here, by the way, in what follows, I'll be a bit sloppy, [18:42] and I will use compression and prediction interchangeably. [18:47] Say you have a machine learning algorithm A. It's an algorithm [18:50] A, and it tries to compress Y. And say it has access to X. X [18:56] is file number one, and Y is file number two. [19:00] You want your machine learning algorithm, your compressor [19:04] to compress Y, and it can probe X as it sees fit. [19:09] The goal is to compress Y as well as possible. [19:12] We can ask ourselves, what is our regret [19:15] of using this particular algorithm? [19:17] You'll see what I'm getting at. [19:20] Regret relative to what? [19:22] If I do a good enough job, if I have-- [19:25] being low regret means that I've gotten all the help [19:30] that I can possibly get from this unlabeled data. [19:35] This unlabeled data has helped me as much as possible. [19:37] And I don't feel bad about it. [19:39] I don't feel bad. [19:39] I don't feel like I've left some prediction value on the table [19:42] that someone else with a better compression algorithm [19:45] could have used. [19:46] That's what it means. [19:49] And in particular, it's like, yeah, you can go, [19:51] and you can sleep happily at night, knowing that if there [19:54] is some information in the unlabeled data that could [19:57] help my task, no one else-- [20:00] no one could have done as good of a job as me. [20:02] I've done the best job at benefiting [20:04] from my unlabeled data. [20:07] So I think that is a step towards thinking [20:10] about unsupervised learning. [20:11] You don't know if your unsupervised data [20:15] set is actually useful. [20:16] It may be super useful. [20:18] It may have the answer. [20:19] It may be totally useless. [20:20] It may be the uniform distribution. [20:23] But if you have a low regret unsupervised [20:25] learning algorithm, you can say, whether it's [20:28] the first case or the second case, I know I've done my best. [20:31] I know I've done my best at benefiting [20:33] from my unlabeled data. [20:36] And no one could have done better than me. [20:40] Now, I want to take a detour to theory land, which [20:44] is a little obscure. [20:45] I think it is interesting. [20:48] Kolmogorov complexity as the ultimate compressor [20:50] gives us the ultimate low regret algorithm, [20:53] which is actually not an algorithm, [20:54] because it's not computable. [20:55] But you will see what I mean really quickly. [20:58] So Kolmogorov-- first of all, for some context, [21:01] who here is familiar with Kolmogorov complexity? [21:05] OK, about 50%. [21:09] Kolmogorov complexity is the kind of thing [21:10] which is easy to explain in 1 minute, so I'll just do it. [21:15] It's like imagine if I give you some data, [21:21] or you give me some data. [21:23] And I'm going to compress it by giving you [21:26] the shortest program that can possibly exist, [21:30] the shortest program that exists, which, if you run it, [21:34] outputs your data. [21:37] AUDIENCE: There's a typo. [21:38] [INAUDIBLE] Instead of Y, it should be X. [21:44] ILYA SUTSKEVER: Yes, that is correct. [21:46] You got me. [21:48] [LAUGHTER] [21:50] It is the length of the shortest program which outputs X. Yes. [21:55] Intuitively, you can see that this compressor is quite good, [22:04] because you can prove this theorem, which [22:06] is also really easy to prove, or rather, it's easy to feel it. [22:11] And once you feel it, you could kind of believe me [22:13] that it's easy to prove. [22:15] And you can basically say that your Kolmogorov compressor, [22:19] if you use that to compress your strings, [22:21] you'll have very low regret about your compression quality. [22:26] You can prove this result. It says [22:28] that if you've got your string X, [22:30] your data set database, whatever, the shortest [22:35] program which outputs X is shorter than whatever [22:38] your compressor needed output, and however well [22:42] your compressor compressed your data, plus a little term, which [22:46] is however many characters of code you need [22:50] to implement your compressor. [22:52] Intuitively, you can see how it makes sense, the simulation [22:55] argument. [22:56] The simulation argument, if you tell me, hey, I've [22:58] got this really great compressor C, I'm going to say, [23:01] cool, does it come with a computer program? [23:04] Can you give this computer program to k and k [23:07] is going to run your compressor? [23:10] Because it runs computer programs, [23:11] you just need to pay for the program length. [23:13] So without giving you the details, [23:15] I think I gave you the feel of it. [23:18] Kolmogorov complexity, the Kolmogorov compressor [23:20] can simulate how the computer program simulates [23:22] other compressors. [23:23] This is also why it's not computable. [23:25] It's not computable because it simulates-- [23:27] it feels very much at liberty to simulate all computer programs. [23:33] But it is the best compressor that exists. [23:36] And we were talking about good compression [23:39] for unsupervised learning. [23:40] Now, let us generalize a Kolmogorov complexity, [23:45] a Kolmogorov compressor to be allowed [23:48] to use side information. [23:53] I'll talk more in detail. [23:55] So I'll make this detail. [23:57] I'll reiterate this point several times, [23:59] because this point is important. [24:01] Obviously, the Kolmogorov compressor is not computable. [24:05] It's undecidable. [24:06] But like, hey, because it like searches over all programs, [24:11] did you know that if you run SGD over the parameters [24:13] of some neural net with 100 layers, [24:15] it's automatically like doing program search over a computer, [24:19] which has a certain amount of memory, [24:21] a certain number of steps. [24:22] It's kind of like micro micro micro homography, [24:27] like fitting a neural net. [24:29] You kind of see the feel, the similarity. [24:33] It's kind of magical, right? [24:37] Neural networks can simulate real programs. [24:39] They are little computers. [24:40] They're circuits. [24:41] Circuits are computers, computing machines. [24:43] And SGD searches over the program. [24:47] And all of deep learning hinges on top of the SGD miracle [24:54] that we can actually train these computers with SGD. [24:58] That works. [24:59] We actually find those circuits from data. [25:03] Therefore, we can compute our miniature Kolmogorov [25:08] compressor. [25:11] An assimilation argument applies here as well, by the way, [25:13] I just want to mention this one fact. [25:15] I don't know if you've-- if you've ever tried to design [25:17] a better neural network architecture, [25:19] what you'd find is that it's kind of hard to find a better [25:22] neural network architecture. [25:24] You say, well, let's add this connection. [25:25] Let's add that connection. [25:26] And let's modify this and that. [25:28] Why is it hard? [25:29] The simulation argument, because your new architecture [25:31] can be pretty straightforwardly simulated [25:33] by your old architecture. [25:35] Except when it can't. [25:36] Those are rare cases. [25:38] And in those rare cases, you have a big improvement, [25:40] such as when you switch from the little RNN to the transformer. [25:43] The RNN has a bottleneck, the hidden state. [25:47] So it has a hard time implementing the transformer. [25:50] However, had we found a way to engineer [INAUDIBLE] [25:54] a very, very large hidden state, perhaps it [25:56] would become as good as a transformer again. [26:00] So this is the link. [26:02] You start to see how we switch from the formal land [26:06] to neural network land. [26:09] But you see the similarity. [26:12] So conditional Kolmogorov complexity as the solution [26:15] to unsupervised learning-- [26:18] you can basically have a similar theorem, [26:22] where I'm not going to define what-- well, I'm [26:24] going to define what K of Y given X is. [26:26] It's like the shortest program which outputs Y, [26:30] if it's allowed to probe X. That's [26:34] the length of that shortest program which outputs Y [26:36] if it allows to probe X. And you can prove the same result. [26:39] And you can see immediately that, yeah, this [26:41] is definitionally the solution to unsupervised learning. [26:45] If you use that, you can sleep very, very safely at night-- [26:48] soundly at night, knowing that no one does [26:51] unsupervised learning better than you. [26:55] It's literally that. [26:56] So this is the ultimate low regret solution [26:59] to unsupervised learning, except that it's not computable. [27:02] But I do think it's a useful framework. [27:05] And here we condition on a data set, not an example. [27:09] This thing will extract all the value out [27:13] of x for predicting y, the data set, the data set, [27:16] not the example. [27:18] So this is the solution to unsupervised learning-- [27:21] done, success. [27:26] And there is one little technicality [27:29] which I need to spend a little bit of time talking about, [27:32] which is we were talking about this conditional Kolmogorov [27:36] complexity, where you are talking about compressors that [27:40] get to C, try to compress one thing, while having access [27:44] to another thing. [27:45] And this is a bit unnatural in a machine learning context [27:48] when you care about feeding big data sets, at least [27:55] as of today. [27:57] Although, it's changing fairly rapidly. [27:59] But I think it's still fair to say [28:00] that there is no truly good way of conditioning on a big data [28:05] set. [28:05] You can fit a big data set, but you can't condition on it, [28:08] not yet, not truly. [28:10] So this result says that, hey, if you [28:13] care about making predictions about your supervised task Y, [28:20] using the good old-fashioned Kolmogorov compressor, which [28:25] just compresses the concatenation of X and Y [28:27] is going to be just as good as using [28:29] your conditional compressor. [28:32] There are more details and a few subtleties to what I just said. [28:37] And I'm happy to talk about them offline in the event someone [28:40] is interested in them, but that basically [28:43] says that if before you were saying, hey-- [28:45] the previous slide said that you can [28:48] use this conditional Kolmogorov compressor to solve [28:51] unsupervised learning. [28:53] This says that you can also use your regular Kolmogorov [28:55] compressor. [28:56] Just throw all your data. [28:57] Take all your files. [28:58] Concatenate them. [28:59] Compress them. [29:00] And that's going to make some great predictions [29:02] on your supervised task, the task that you care about. [29:06] There are some intuitions about why this is true. [29:08] This result is actually like-- [29:10] proving this is slightly more tricky, so I won't do it. [29:16] And so the solution to unsupervised learning, [29:18] just give it all to your Kolmogorov complexity-- [29:20] to your Kolmogorov compressor. [29:26] The final thing is I'll mention that this kind [29:29] of joint compression is maximum likelihood if we don't overfit. [29:33] If you have a data set, then the sum of the likelihood, [29:37] given your parameters, is the cost [29:39] of compressing the data set. [29:40] You also need to pay the cost of compressing the parameters, [29:43] but you can see if you now want to compress two data [29:45] sets, no problem. [29:46] Just add more points to your training set, to your data set, [29:50] and add the terms to the sum. [29:53] So this concatenation, this joint compression [29:56] is very natural in a machine learning context, which [29:58] is why it was worth the hassle of saying, yeah, [30:01] we have our conditional Kolmogorov complexity. [30:04] And then I made some arguments. [30:06] I made some claim without fully defending it, [30:08] but it is possible to defend it, but using regular-- [30:13] just compress everything. [30:14] Kolmogorov complexity works also. [30:16] And so I think this is elegant. [30:18] I like it, because then it says, well, [30:21] if you squint hard enough, you can [30:24] say that this explains what our neural network is doing. [30:26] You can say, hey, SGD over big neural networks [30:30] is our big program search. [30:32] Bigger neural networks approximate the Kolmogorov [30:34] compressor more and more and better and better. [30:37] And so maybe this is also why we like big neural nets, [30:40] because we approach the unapproachable idea [30:43] of the Kolmogorov compressor, which truly has no regret, [30:46] and we just want to have less and less [30:48] regret as we train larger and larger neural nets [30:52] as far as extracting predictive value is concerned. [30:58] Now, the way this applies to the GPT models-- [31:03] you know, I claim that it applies to the GPT models also, [31:05] this theory. [31:07] But the thing that's a little bit tricky with the GPT models [31:10] is that the theory of their behavior [31:13] can also be explained without making [31:15] any references to compression or unsupervised learning. [31:19] You just say, no, it's just the conditional distribution [31:21] of text on the internet. [31:23] Few-shot learning, just imagine a document [31:24] with some repeated patterns. [31:26] The pattern is probably going to continue. [31:28] So the GPT models can intuitively be explained, [31:32] at least their few-shot behavior can definitely [31:36] be explained without alluding to this theory. [31:39] And so I thought it would be nice-- can we [31:44] find some other direct validation of this theory? [31:51] Now, can we find a different domain, like vision? [31:53] Because vision, you have pixels. [31:58] Can you show that doing this on pixels [32:00] will lead to good unsupervised learning? [32:04] The answer is, yes, you can. [32:06] This is work we've done in 2020. [32:10] We just called it iGPT. [32:12] And it's an expensive proof of concept. [32:14] It's not meant to be-- [32:15] it was not meant to be a practical procedure. [32:17] It meant to be a paper that showed [32:19] that if you have a really good next step predictor, [32:21] you're going to do great unsupervised learning. [32:23] And it was proven in the image domain. [32:25] And there, I'll just spell it out. [32:28] You have your image. [32:32] You turn it into a sequence of pixels. [32:35] Each pixel should be given some discrete value of intensity. [32:39] And then just do next pixel prediction. [32:42] Be the same transformer. [32:44] That's it-- different from BERT. [32:47] Just next token prediction, because this [32:49] maximizes the likelihood, therefore compresses. [32:56] And like we see, one immediate result we see-- [33:01] so these are results on CIFAR-10. [33:03] You have models of different sizes. [33:04] This is their next step prediction accuracy [33:07] on their pixel prediction task on their unsupervised learning [33:10] task. [33:10] And this is linear probe accuracy, linear probe, [33:13] when you pick some layer inside your neural net, the best [33:15] layer, fit a linear classifier, and see how well it does. [33:18] You've got these nice looking curves, [33:20] and they start to get more and more similar. [33:22] It's kind of what you want. [33:23] It's like it's working. [33:25] Pixel prediction of the same variety [33:30] as next word prediction, next-- [33:31] not just pixel-- not mere pixel prediction, [33:34] but next pixel prediction leads to better and better [33:41] unsupervised learning. [33:44] I thought that was pretty cool. [33:45] And we tried it-- we scaled it up to various degrees, [33:48] and we showed that, indeed, it learns reasonably well [33:54] where-- we came close, but we didn't fully [33:57] match the gap between our unsupervised learning [33:59] and the best unsupervised learning [34:00] of the day on ImageNet. [34:02] But it was clearly a mat-- it did feel like it scaled, [34:05] and it was a matter of compute, because these things use [34:08] large, high-resolution images, and we use like tiny 64 [34:11] by 64 images with giant transformers for the day-- [34:16] tiny by today's standards, but giant for the day, 6 [34:19] billion parameters. [34:22] So this is like, yeah, you do your unsupervised next pixel [34:24] prediction on a big image data set, [34:26] and then you fit your linear probe on ImageNet. [34:29] And you get strong results. [34:31] Like, OK, that is cool. [34:35] CIFAR, yeah-- like we got-- one of the cool things [34:38] is that if you got 99% on CIFAR-10 with this, [34:42] that was cool. [34:45] 2020 was a different time, but it was cool. [34:50] I'll mention-- I'll close with a couple of comments [34:54] on linear representations. [34:57] The thing-- I like the compression theory, [35:00] because I feel like it just bothered me for a long time [35:03] that you couldn't think rigorously [35:05] about unsupervised learning. [35:07] I claim now you can, at least to some partial degree. [35:10] Still lots of waving of hands is needed, [35:12] but maybe a bit less than before. [35:14] But it doesn't say why your representations [35:17] should be linearly separable. [35:18] It doesn't say a linear [INAUDIBLE] should happen. [35:20] But linear representations happen all the time. [35:24] And the reason for the information [35:26] must be deep and profound. [35:28] And I think we might be able to crisply articulate it [35:31] at some point. [35:33] One thing which I thought was interesting [35:35] is that these next pixel prediction [35:37] models, autoregressive models seem [35:39] to have better linear representations than BERT. [35:41] And the blue accuracy is BERT versus autoregressive. [35:46] I'm not sure why that is, or rather I can speculate. [35:49] I have some speculations. [35:50] But it would be nice to-- [35:53] I think it would be nice to gain more understanding for why, [35:57] like really why those linear representations are formed. [36:01] And yeah, this is the end. [36:03] Thank you for your attention. [36:06] [APPLAUSE] [36:12] AUDIENCE: Could you provide the speculation? [36:14] ILYA SUTSKEVER: Yeah. [36:15] Oh, yeah, yeah. [36:15] I think the speculation is basically [36:17] that if you're doing next pixel prediction, [36:20] you're predicting the next pixel from all the previous pixels. [36:23] So you need to look at the long range structure. [36:26] But in BERT, you have your vector. [36:29] And let's say you drop 25% of the tokens, of the pixels, [36:34] in this case, then any prediction [36:36] that you have can actually be done quite well by looking [36:39] a little bit into the past and a little bit into the future. [36:42] So you remove all the hard prediction tasks, [36:45] or you make them much easier. [36:47] The hardest prediction task in the next pixel prediction [36:49] is a lot harder than the hardest prediction task in the BERT [36:53] prediction case. [36:54] So this is an argument. [36:56] We may be even be able to test it if we think-- [37:01] if we try to design an experiment to test it. [37:03] But yeah, that's the speculation. [37:07] AUDIENCE: Is there a more robust 2D version [37:10] of the next pixel prediction? [37:15] ILYA SUTSKEVER: I would say more robust-- [37:19] I would say any formally-- anything [37:25] you do at all that turns a neural network [37:28] into a probabilistic model that assigns probabilities [37:31] to different inputs is that. [37:33] So the other big way of doing next token prediction is [37:40] diffusion models, diffusion models also like-- [37:43] not the ones that are so-- [37:45] the diffusion models that people use in like high quality image [37:49] generators don't really maximize the likelihood of their inputs. [37:53] They have a different objective. [37:55] But the most original formulation [37:58] is maximizing likelihood. [38:00] And by the way, the diffusion model is a counterargument to-- [38:05] well, rather, the diffusion model also, I would claim, [38:09] should have worse representations than a next [38:13] token prediction model for the same reason that BERT doesn't. [38:17] So I feel this further, in my mind, [38:19] increases the mystery of what caused leads [38:22] to linear representations to form. [38:27] AUDIENCE: Yeah. [38:28] Thanks for the talk. [38:29] I liked the analogy between Kolmogorov complexity [38:32] and neural networks. [38:35] I guess one kind of place where it [38:37] seems like there's a disanalogy is that neural networks have [38:40] training dynamics. [38:41] And if you do something like just take all the computer [38:45] programs, it's more memory. [38:47] So if you're compressing with Kolmogorov complexity, [38:50] the order of the data doesn't matter. [38:52] It clearly does for neural nets. [38:54] You have simple heuristics and features [38:57] that are learned early in training that probably [38:59] stick around late in training. [39:03] And so, I guess, do you have thoughts [39:05] on how to think about that in the context of this picture? [39:09] ILYA SUTSKEVER: Yeah. [39:10] I mean, the analogy isn't perfect. [39:12] That is true. [39:13] And the way in which you describe its-- [39:16] the place where that analogy breaks down the most [39:18] is in the search procedure. [39:20] This is really what you're alluding to, like, hey, [39:22] order of data matters. [39:23] Why? [39:24] Because we are using a weak search procedure. [39:27] A Kolmogorov compressor uses the infinitely expensive search [39:31] procedure of just enumerate everything from scratch [39:33] each time. [39:36] So yeah, I mean it is-- [39:38] I mean-- I would say that caution should be used [40:00] with this particular analogy. [40:02] It's very clearly not universally applicable. [40:05] But I do think that in the case-- [40:07] I do think that there is some value here in explaining [40:11] where unsupervised learning comes from. [40:17] AUDIENCE: So you are-- now that your formal-- [40:19] going back and forth between compression and the next bit [40:22] prediction, you are connecting that [40:26] to-- relating unsupervised learning [40:28] to supervised learning. [40:30] So if you backtrack from cryptography, [40:34] there's sort of a theory. [40:35] It goes back to the '80s, where they talk about compression [40:38] being equivalent to next bit prediction, [40:40] being equivalent to being able to distinguish [40:42] two distributions. [40:43] So if you have an [INAUDIBLE],, then you have an algorithm that [40:47] can predict-- [40:48] then you have an algorithm that can compress. [40:50] I mean, cryptography is the other way. [40:52] You're saying there is no way to compress [INAUDIBLE].. [40:58] And therefore, there is no way [INAUDIBLE].. [41:01] So I wonder if this idea of being able [41:04] to distinguish, how could that translate [41:07] to anything naturally? [41:09] ILYA SUTSKEVER: So I think I understand the question. [41:16] Let me paraphrase. [41:16] So I'm not super well-versed in the area that you mentioned. [41:21] But you're saying, if you can distinguish [41:23] through distribution, you can use that distinguishability [41:26] to make some-- [41:27] to predict. [41:28] And I guess the question would be, what's the-- [41:33] I have some-- [41:34] AUDIENCE: You have samples from one. [41:36] You have samples from the other. [41:37] And you can tell them apart [INAUDIBLE].. [41:39] ILYA SUTSKEVER: And so I guess my question [41:40] is, how well can you predict-- [41:42] or you're talking about you can predict a little bit? [41:44] Is that what you're referring to. [41:44] AUDIENCE: Yeah, [INAUDIBLE]. [41:46] You can predict what the next bit would be, [41:48] let's say, in a sample. [41:51] ILYA SUTSKEVER: So-- [41:57] AUDIENCE: Actually, [INAUDIBLE],, [INAUDIBLE] you can predict [42:02] those. [42:03] ILYA SUTSKEVER: I mean, I can mention [42:04] one thing that is related, which is energy-based models. [42:08] So energy-based models offer yet another way [42:11] of turning neural networks into probability distributions, [42:15] where an energy-based model will say, just give me [42:19] your configuration of vectors. [42:21] And I'm just going to tell you how it feels. [42:24] And then you normalize over all of them. [42:26] And I feel like when it comes to energy-based models [42:28] in particular, ratios of distributions [42:34] correspond to differences of energy. [42:35] Maybe there is some relation to what you're saying. [42:38] I think I'm probably not like precisely commenting [42:41] on the thing that you said, but I [42:42] don't think I have anything more to add, unfortunately. [42:50] AUDIENCE: Ilya, maybe I'll just put in a tiny word [42:53] to defend the honor of VC dimension. [42:55] ILYA SUTSKEVER: Go ahead. [42:56] AUDIENCE: Well, so in 2007, I had [42:58] this theorem about PAC learning of quantum states. [43:02] And this was precisely an example, where [43:04] even if you don't care about infinite precision, [43:07] even if you discretize the state space, [43:09] like you look at the VC dimension, [43:11] or the fat shattering dimension, or whatever, [43:13] and it is exponentially smaller than the log of the size [43:17] of the hypothesis class. [43:18] So I do think there are cases where you still [43:20] want VC dimension. [43:23] ILYA SUTSKEVER: That is a cool example. [43:25] [LAUGHTER] [43:28] AUDIENCE: So I didn't completely follow your notation. [43:33] Capital X was a sample from a distribution. [43:35] ILYA SUTSKEVER: Yeah. [43:36] AUDIENCE: The distributions-- [43:37] ILYA SUTSKEVER: The data set. [43:38] AUDIENCE: So then the transformer, SGD-- [43:43] I'm not sure if you can think of it as the best program [43:46] for compressing [INAUDIBLE]. [43:48] Maybe because it's only given one sample at a time. [43:50] ILYA SUTSKEVER: That's true. [43:51] There is one other assumption that we are making. [43:59] If you look at the total training loss-- [44:02] say you have some neural network. [44:03] It doesn't need to be a transformer-- [44:05] some neural network which assigns [44:06] log probabilities to your data. [44:09] And you have some large number of training cases. [44:13] You can run the neural net. [44:15] You need some neural network. [44:16] You can compute its log probability on each case. [44:18] And you can take their sum. [44:20] And that's going to be the log probability [44:22] that the neural network assigns to the entire data set. [44:26] Now, the neural network is unable-- [44:28] this particular formulation makes [44:30] the neural network unable to explicitly notice [44:35] maybe temporal, or any kind of structure [44:37] in the order of the data. [44:40] But I still claim it's meaningful to say [44:41] that, yeah, you can compute the entire log [44:44] probability of the data set. [44:46] And that gives you your negative log probability, literally [44:51] the number of bits you need to compress [44:55] this data set using this neural network as a compressor. [45:03] AUDIENCE: If I can paraphrase, I think [45:06] you're arguing for compression as a framework [45:10] for understanding or motivating unsupervised learning. [45:13] And a point you made at the end was [45:15] that if you apply that framework to language models, [45:18] to next word prediction, it can feel a little maybe [45:22] superficial, because next word prediction, any text task [45:26] can be converted to next word prediction. [45:28] And so unsupervised learning is kind of superficially [45:31] the same as supervised learning for text. [45:33] So then we turn to image GPT, where [45:35] you can't formulate any given task as next pixel prediction. [45:38] And maybe you could, but let's just say you can't. [45:40] But then you can use the linear representation [45:42] as a way of showing that compression is a good way [45:45] to formulate unsupervised learning. [45:47] But then there are highly effective compressors [45:51] that wouldn't give you a useful linear representation. [45:54] So I'm wondering, are there any cases where [45:57] unsupervised learning and supervised learning [45:59] are not superficially the same, [INAUDIBLE],, [46:02] but that you don't require your compressor [46:05] to give you an effective linear representation [46:07] to show that compression is a good unsupervised objective? [46:09] ILYA SUTSKEVER: Yes. [46:10] So that's a very-- [46:15] I have thoughts on this question. [46:18] So first of all, I will say that the linear representation, [46:22] a good linear representation is a bonus. [46:25] At no point does this argument say, [46:28] and therefore linear representation should emerge. [46:31] However, I would argue that the theory does [46:33] say that good fine tuning should emerge, [46:37] because joint compression is kind [46:38] of like hacky approximate fine tuning using the bad search [46:42] algorithm, which is SGD. [46:44] Now, we know that the evidence from these old experiments [46:50] suggests that BERT learns worse linear representations [46:54] than next pixel prediction when run on images. [46:58] And perhaps the same is true for diffusion models. [47:01] That seems highly likely. [47:02] I think it would be very interesting to see [47:05] how the fine tuned diffusion models compare. [47:07] Maybe someone knows already here. [47:17] AUDIENCE: So I wonder if you can take [47:19] your ideas for unsupervised learning and bring them back. [47:21] It seems to me that there could be [47:23] some insights you could take back [47:24] to the supervised learning [INAUDIBLE].. [47:32] ILYA SUTSKEVER: Well, I think here [47:33] this gives you more insight into the-- so the particular insight [47:37] that you might get here is insight into the function [47:39] class, the desired function class. [47:42] You want your neural net to have many layers. [47:44] For example, if you have many layers, [47:46] it can do more thinking. [47:48] You want those layers to be wider, bigger neural nets. [47:50] I mean, essentially, this is like what the field has already [47:53] discovered. [47:54] AUDIENCE: But you might not need more examples than the number [47:57] of [INAUDIBLE]. [47:57] In supervised learning, this might [47:59] be an explanation for why you don't need [48:01] necessarily more parameters. [48:03] ILYA SUTSKEVER: That's right. [48:04] So this might, for example, be-- [48:06] so there is a-- [48:07] so the weakness of this theory-- by the way, this theory [48:09] has a huge practical weakness, which [48:11] is it ignores compute cost. [48:13] It only focuses on information. [48:15] So you're all familiar with the universal transformer, maybe-- [48:19] basically, it's like it's a transformer. [48:21] We use the same weights at each layer. [48:24] It's a great idea, except that if you [48:26] want to have a lot of parameters, [48:27] you need to pay for it a lot with compute. [48:29] Nobody wants to do that. [48:31] You don't ignore compute costs. [48:34] This ignores compute costs. [48:36] If you ignore compute costs, it gives you [48:39] a recipe of how to proceed. [48:45] AUDIENCE: What do you think the importance is [48:47] of the autoregressive modeling in particular [48:50] of the probability distribution? [48:52] You can view BERT as sort of doing maximum likelihood [48:55] training. [48:57] I think you can find ways to sample out of BERT, [49:00] for example. [49:02] ILYA SUTSKEVER: So certain diffusion models [49:05] can be set up to be maximum likelihood models. [49:09] And so all this theory predicts, the diffusion models [49:12] should also be-- [49:14] it should be possible to make diffusion models [49:16] to do equally great things, perhaps [49:18] with some constant factors of-- [49:20] because this-- as the earlier answer, [49:23] this is not a compute sensitive theory. [49:27] So it's going to say, OK, maybe you [49:28] need like a factor of 10 or 15 compute, [49:30] and then things will be the same between the autoregressive [49:33] and diffusion model. [49:34] The autoregressive model, it's just simple. [49:37] It's convenient. [49:38] Maybe the energy-based model will do even greater things. [49:41] But from that perspective, they're all the same. [49:46] AUDIENCE: It seems like GPT-4 may [49:48] be the best compressor at the moment, which presumably [49:53] is the largest model out there as well. [49:56] So on one hand, it's able to compress better. [49:59] On the other hand, the size of the compressor [50:02] itself is increasing. [50:05] Or is it that it's actually not necessarily the case [50:08] from the perspective of the theory [INAUDIBLE] complexity? [50:13] ILYA SUTSKEVER: Well, I mean what matters [50:15] is that the cost of the-- [50:25] what you really want is for the-- [50:35] there is another way in which this theory doesn't quite [50:38] correspond to reality, because this theory says, [50:40] you have a fixed data set you want to compress. [50:42] But in the way we train the GPT models, [50:46] you say, you have a big training set, [50:47] and then you have a test set, which [50:49] is assumed to be infinite. [50:52] If the test set is infinite and you [50:53] care about compressing the test set, [50:55] then you don't care about the size of your compressor, [50:58] so long as this test set size is much larger. [51:01] So I would say that this is also, like, I would say, [51:04] a disanalogy, where some more careful thinking [51:07] would be useful to get clarity. [51:11] AUDIENCE: Is it enough to use a validation [51:13] set that's independent as long as it's separate? [51:15] That kind of closes the gap? [51:18] ILYA SUTSKEVER: Is it enough? [51:20] It's a good thing. [51:21] It's a good thing to do. [51:22] Is it truly-- the thing is I think it's also-- [51:32] actually, like in the single epoch case, [51:34] if you are in a single epoch case, [51:36] then you can just compute your log probs as you train, [51:39] and that will be something like the model's [51:42] compression of the data set. [51:43] And that gives you also a good estimate of the validation set. [51:46] So in the single epoch case, I think things are quite similar. [51:51] AUDIENCE: I just wanted to make you aware [51:54] that there was a paper last month in [INAUDIBLE].. [51:57] It has used gzip, followed by the k-nearest neighbor [52:01] classifier for text classification. [52:03] So more training, more parameters. [52:06] Is it compressed strings, just like you showed, concatenate [52:10] two strings together [INAUDIBLE] individually, [52:13] then the compute distance. [52:15] There is a way using the output of gzip [52:18] as the [INAUDIBLE] [? code ?] [INAUDIBLE].. [52:21] ILYA SUTSKEVER: Yeah. [52:21] My only comment on that is that gzip is not [52:24] a very strong compressor of text. [52:26] So I think it does show that things [52:30] are possible to some degree, but all the really meaty stuff [52:34] happens when you squeeze the last bits, [52:36] if you see what I mean. [52:38] AUDIENCE: It seems like it works like a toy proof of concept, [52:41] but it does work. [52:44] AUDIENCE: I think there was some bug there before that-- [52:46] ILYA SUTSKEVER: It doesn't work. [52:47] AUDIENCE: [INAUDIBLE] results for now. [52:52] AUDIENCE: Since Jacob brought up curriculum effects, [52:55] and how they appear for neural nets, but not for-- you [52:59] don't see it, but Kolmogorov complexity. [53:02] We were just talking at lunch about what [53:04] is the current empirical situation, about how much do [53:08] curriculum effects actually matter. [53:10] And none of us knew the answer. [53:12] ILYA SUTSKEVER: Well, it's like-- [53:20] so it's a bit-- [53:21] I have a take on this, which is the easier-- [53:27] so we've done a lot of work as a field to make the transformer, [53:32] like the architecture that we are using, to be relatively [53:34] easy to optimize. [53:35] We found good initializations. [53:37] We found good hyperparameters. [53:39] We made changes to the architecture [53:41] so that training is as easy as possible. [53:44] The easier is-- the more easy the training optimization [53:50] problem is, the less susceptible you are to curriculum effects. [53:55] And it's known. [53:56] For example, people who were training [53:58] in all kinds of exotic architectures, [53:59] like neural Turing machines, for example, [54:02] which are these really complicated things. [54:05] And it's super, super huge numbers [54:08] of heterogeneous layers, which are different. [54:11] And that thing, you need to be very, very careful [54:13] with your curriculum, because if you give it the full data set [54:16] right away, it'll just fail. [54:21] YEJIN CHOI: All right, let's thank Ilya again. [54:27] [APPLAUSE] [54:37] [SIDE CONVERSATION]