30초 요약
Stanford’s CS312 asks students to predict training experiments before seeing their results, because familiar explanations of deep learning can fail when the settings change. Tatsunori Hashimoto makes assignments effectively ungraded and permits AI coding tools, but requires students to understand their own runs for quiz credit. Suhas Kotha uses a 30-million-parameter model that trains in about ten minutes as a shared test bed. In one demonstration, removing pre-normalization appears fatal at the default learning rate but works with a three-times-lower rate; removing residual connections remains far more damaging in that experiment.
- 1A large network can generalize outside the classic complexity pictureHashimoto says the familiar underfitting–overfitting curve does not reliably describe modern networks. Even double descent may disappear when hyperparameters and regularization change.
- 2Quizzes measure whether students can predict a new runStudents use assignment experiments to form a model, then predict a held-out experiment whose exact code change is supplied. Wrong predictions can reveal where that model needs revision.
- 3Ungraded assignments separate AI-assisted coding from understandingAssignments count essentially zero, and students may use coding agents. Quiz partial credit depends on explaining an answer through experiments they actually ran.
- 4Pre-training offers a comparatively clean measurementKotha says held-out validation loss is relatively low-noise and useful for downstream comparisons. Small runs also allow scaling experiments, although they cannot capture every large-model behavior.
- 5A ten-minute model makes repeated sweeps practicalThe course’s approximately 30-million-parameter model trains on one GPU. In the default setting a learning rate near 3 × 10⁻³ gives loss around 2.93.
- 6A lower learning rate rescues the no-pre-normalization variantThe variant that failed at the default rate trained when the rate was reduced threefold. Removing residual connections remained highly damaging in the displayed experiment.
핵심 정리
- Compare variants across appropriate learning rates before concluding that an architectural component is essential.
- Build intuition by predicting a held-out experiment, then use unexpected results to design the next probe.
- Record and visualize your own runs so you can connect a prediction to observed evidence.
- Treat numerical optima from a small model as setting-specific; test how they change with scale before extrapolating.
- AI can implement experiments, but the student must understand the results to answer the course’s quizzes.
챕터별로 다듬은 전문 읽기
Why familiar deep-learning intuitions fail
Hashimoto contrasts classical models of complexity and optimization with brittle deep-learning observations. He frames the course as an experiment in teaching through prediction.
Tatsunori Hashimoto and Suhas Kotha introduce a course they call Deep Learning Alchemy. Hashimoto says deep learning has often felt mysterious and frustrating, so they are experimenting with a different way to teach it.
Language models, self-driving systems, protein prediction and game-playing systems use very different data and methods, yet all draw on deep learning. Hashimoto argues that the foundations are still poorly understood despite those successes.
A traditional lesson says a model that is too complex will overfit and one that is too simple will underfit, implying a sweet spot. Hashimoto argues that this picture is not a reliable mental model for modern deep learning: very large networks can generalize despite having more parameters than training examples.
Double descent offers a different picture in which error rises and then falls again as models grow. But Hashimoto says even that pattern can be brittle: with well-tuned hyperparameters and regularization, an experiment may instead show a single descent.
The familiar bowl-shaped picture of gradient descent also misses aspects of training, he says. Rather than smoothly approaching a minimum, parameters can move substantially during training and settle only as the learning rate is reduced.
Hashimoto recalls Ali Rahimi’s criticism of deep learning as alchemy, followed by influential architectural research that offered little explanation for why its variants worked. He says the course will embrace experimentation rather than wait for a complete mathematical theory.
The course will not center classical proofs or ask students to memorize reported phenomena that may disappear under different conditions. Hashimoto is also skeptical that a conventional project alone measures learning when coding agents can do much of the implementation.
Prediction quizzes as a way to learn
Students use experiments to build a mental model, then predict held-out results specified by executable code differences. Assignments prepare them for quizzes rather than carrying ordinary grades.
Instead, students will repeatedly predict experiments before seeing the results. A mismatch between prediction and observation provides feedback for revising their internal model of deep learning; Hashimoto acknowledges this teaching format is itself an experiment.
One sample question modifies an eight-layer transformer so a residual connection also draws from an earlier layer. Students predict whether the altered model’s loss will improve or worsen across learning rates; a code diff specifies the experiment precisely.
Hashimoto connects prediction to how scientific theories are tested, citing early astronomy and the bending of light during an eclipse. Assignments give students observations, while quizzes test whether those observations generalize to an experiment they have not run.
The class treats training as a system with inputs such as architectures and optimizers and outputs such as loss curves, activations and gradient norms. Students will predict both performance and internal measurements to develop a model of what happens inside training.
Seven assignments cover experiment design, hyperparameters, optimizers, initialization, architecture, stability and generalization. Most work centers on a small language model, with a later different setting such as DNA intended to expose conclusions that do not transfer.
Assignments require substantial work but count essentially zero toward the grade. Hashimoto says graded implementation can penalize students who do the work themselves instead of relying heavily on coding agents; here students may use AI, but must internalize the experiments before taking quizzes themselves.
The assignments still matter because they prepare students for the quizzes. A student who gives a wrong prediction can earn partial credit by explaining it with an experiment they personally ran; tutorials also give students a place to discuss their results.
Each assignment has an optional bonus: propose a distinctive, difficult quiz question. If the instructors select it, the student earns credit, with another bonus if it proves difficult for classmates.
Quizzes occur roughly every one and a half weeks and range from direct questions about assignment experiments to harder generalizations. Each proposed experiment comes with an executable code diff; students can recover up to 75% through a rationale citing their own work.
The quizzes are closed to assignment notes, so students must remember and understand what they ran. The staff plan to use programs and language models for mechanical grading, with human review available if a student requests a regrade.
To prepare, Hashimoto recommends running a broad set of experiments and attending tutorials, not simply memorizing an isolated result. Seven shorter quizzes spread the stakes across the term, and the assignments are intended to be the preparation.
Practical prediction and course design
The instructors plan to calibrate quiz difficulty and use small-group tutorials. Hashimoto describes the class’s workload, experimental format and narrow scope.
He says some prediction questions could be unfairly obscure, so the staff will focus on useful comparisons and curve shapes rather than arbitrary precision. If everyone misses a question, they will consider whether they designed it badly and adjust difficulty.
The ability to predict matters outside class as well: a researcher must judge whether a training run is stable and whether a result may hold at larger scale before spending substantial compute. Even the instructors, he says, will not get every prediction right.
Small-group tutorials bring students and teaching staff together for thirty minutes to review assignments and quizzes. They account for about 15% of the grade and are intended to reward engagement as well as reduce the effect of quiz variance.
The class receives computing credits, including for people on the waitlist, so they can follow assignments and quizzes while enrollment is resolved. Hashimoto asks students not to spend course credits on unrelated research.
The course promises hands-on experience and a detailed understanding of one small model, not mastery of every deep-learning setting. Hashimoto warns that this first offering is experimental, includes many exams and expects students to fill gaps in prerequisites such as backpropagation.
Why the course focuses on pre-training
Kotha limits the setting to model training and chiefly language-model pre-training. Low-noise validation loss and small-scale scaling experiments make it a useful test bed.
Kotha narrows the problem. A practical machine-learning pipeline includes defining a task, collecting data, training, evaluating across settings and deploying; this class concentrates on training, not because the other stages are unimportant but because the staff need a manageable scope.
Within training, the focus is pre-training rather than fine-tuning or reinforcement learning. In language modeling, a model learns to assign probabilities to sequences drawn from a data distribution, a capability that can support later adaptation to particular tasks.
Kotha points to in-context learning, instruction tuning and reinforcement learning as examples of systems built on strong pre-trained models. He argues that improving the underlying model can make these later stages more effective.
Pre-training also makes experiments easier to study. Validation loss, measured on held-out data, is relatively low-noise and can be predictive of downstream performance, providing a consistent metric for comparing runs.
Scaling laws provide another reason to start small: researchers can compare runs at several compute levels and sometimes extrapolate to larger runs. Kotha cautions that small experiments do not perfectly reflect large systems, even when useful relationships transfer.
Because pre-training runs start from random weights rather than an already trained model, Kotha says they are easier to reproduce and reason about. The first assignments focus on language; later work may switch modality to test which intuitions hold.
The small model and its training recipe
The default eight-layer model trains in about ten minutes on a GPU. Kotha explains next-token loss, architecture, optimization and data, then varies the learning rate.
Kotha outlines the training loop: data supplies inputs, an architecture converts them into predictions, a loss measures error and an optimizer updates model weights. The course will vary architecture and optimization while keeping much of the data and objective fixed.
The default “model organism” has about 30 million parameters and trains on roughly 600 million tokens. A run takes approximately ten minutes on one GPU and around a dollar with the added logging; students will compare many variants to that baseline.
The language model represents a sequence through successive next-token probabilities conditioned on earlier tokens. Cross-entropy evaluates the model’s assigned probability to data; lower per-token loss means the model predicts the held-out distribution better.
The baseline uses a Llama-style transformer with eight layers. Each layer combines attention, which mixes information across tokens, and an MLP, which performs computation per token; residual connections and normalization help training remain stable.
Kotha sketches gradient descent as a simplification: estimate how loss changes with the weights, then update the weights in a direction expected to reduce it. The recipe estimates gradients from batches of 64 samples and uses a more sophisticated optimizer than the basic sketch.
A learning-rate schedule controls update size: it rises initially and then declines during training. The data comes from the DCLM web-text corpus, tokenized into a vocabulary of 4,096 possibilities and split into sequences of 1,024 tokens.
For a first experiment, Kotha varies the learning rate while holding the rest of the baseline fixed. In this setting, a rate around 3 × 10⁻³ produces a final loss near 2.93; the familiar numbers become a reference for later experiments.
A student asks whether such findings transfer to larger models. Kotha says the exact rate and loss are specific to this setup, but students can repeat a sweep at different depths and examine how the best rate changes with model size.
Hashimoto adds that the experimental method—searching hyperparameters, identifying sensitive settings and studying how they scale—may transfer to other domains even when the numerical result does not.
Ablations, residual connections and the sample quiz
Students compare component removals and design their own probes. The quiz reveals how changing the learning rate changes conclusions about pre-normalization.
A sample assignment asks students to remove components such as attention, MLPs, residual connections, normalization and positional embeddings, then compare training curves. Exploratory portions ask students to invent modifications and investigate which aspects of a component matter.
At the default learning rate, the baseline is best in the displayed comparison. Kotha says removing attention has a larger effect than removing the MLP, while removing residual connections is particularly damaging; these observations are tied to the chosen recipe.
Students should spend time designing and visualizing experiments, Kotha says, while using AI tools to help with routine plotting or implementation. The point is to internalize results well enough to explain and use them during a quiz.
For another probe, Kotha scales residual connections by constants or injects Gaussian noise, testing variants at two learning rates. Comparing their losses with the 2.93 baseline helps students reason about what the connection can tolerate.
A student notices that the relative ordering of noise variants changes across learning rates. Kotha offers instability as a possible explanation but says he does not know; a follow-up experiment inspecting hidden states could help investigate.
Asked how many learning rates to test, he says experimenters must develop intuition and work within a run budget. If the optimum already appears roughly located, another question may be more informative than filling an entire grid with additional rates.
The staff expect tutorials to provide discussion and feedback even though assignments do not carry ordinary grades. They also intend to share the design intent behind assignment questions, while allowing students to discover unexpected results.
In a sample quiz, students must predict component-removal results after each variant is tested at five learning rates, rather than only the single rate seen in the assignment. The code diff makes the modified experiments reproducible.
A second question asks about mixing residual inputs from the previous and the earlier layer. Students are asked to generalize from their earlier probes rather than having necessarily run this exact variant.
The answer illustrates why tuning matters: removing pre-normalization looked fatal at the default rate, but using a rate three times lower let the model train comparably to other variants. Removing residual connections, by contrast, left essentially nothing training in this experiment.
For the mixed residual variant, Kotha says the measured loss difference is less than 0.01. Earlier experiments that injected substantial noise into residuals produced only a small loss increase, potentially offering a clue that the connection tolerates some changes.
A student asks how a model without positional embeddings can work. Kotha says causal attention masking itself leaks some positional information and points to work showing that a model can be trained without explicit positional embeddings.
같은 채널의 다른 글
56:46EN
1:44:59EN
1:00:02EN
48:59EN
49:17EN
1:13:23EN