Stanford Online

Deep Learning by Prediction: Intro | Stanford CS312 Lecture 1 with Tatsunori Hashimoto & Suhas Kotha

Published 2026-11-24 · Duration 1:08:38

Summary

This lecture introduces a pedagogical approach to deep learning, termed 'Alchemy,' which prioritizes empirical prediction and experimentation over classical theoretical models (like the bias-variance tradeoff). The course focuses on the pre-training phase, utilizing a small-scale d8 model organism (a 30M-parameter, 8-layer transformer) to explore phenomena like residual connection stability and hyperparameter sensitivity. Assessments are based on prediction quizzes, requiring students to build an 'internal world model' of deep learning behavior.

Download summary

Key takeaways

  1. The Failure of Classical Intuition 3:10

    The traditional bias-variance tradeoff and convex optimization models are argued to be misleading for deep learning, as phenomena are often brittle and contingent on specific settings [00:03:10].

  2. Prediction as Understanding 14:50

    The core teaching method involves prediction quizzes, where students must predict the outcome of a held-out experiment (e.g., loss curves) to build a 'world model' of deep learning [00:14:50].

  3. Focus on Pre-training 21:50

    The class focuses almost exclusively on pre-training, which aims to imitate a raw data distribution using a low-noise metric: validation loss [00:23:30].

  4. Small-Scale Model Organism 25:50

    Experiments are conducted using a small testbed: the d8 model, which has 30 million parameters and trains in approximately 10 minutes on one GPU [00:26:50].

More digests on Deep Learning

Technical details

  • Model Architecture 2040s

    The default architecture is based on Llama (Meta-trained) and consists of 8 layers, utilizing attention, MLPs, residual connections, and normalization for stable training [00:34:00].

  • Training Process 2120s

    Pre-training uses cross-entropy loss, which measures the negative log likelihood of the data as graded by the model. The objective is to minimize this loss [00:36:30].

  • Experimental Design 2630s

    Experiments involve systematic probing of components (e.g., removing MLPs, attention, or residual connections) and sweeping hyperparameters (e.g., learning rate $\alpha$) to observe changes in loss [00:44:30].

  • Metrics and Benchmarks 2810s

    A key finding demonstrated in the setting is that the optimal learning rate is close to $3 \times 10^{-3}$ and the resulting loss is around 2.93 [00:47:30].

Mentioned resources

Channel & topics

Watch on YouTube · Back to latest

This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.