UC San Diego · Fall 2026

CSE 151B | Introduction to Deep Learning

What you’ll learn

G1 Build a training system

Implement and debug a neural network: predictions, losses, gradients, and training.

G2 Understand design choices

Explain design choices, test their tradeoffs, and judge what experiments establish.

G3 Reason about AI in the real world

Evaluate AI safety, ethics, ownership, control, and governance in real-world use.

G4 Apply AI in professional practice

Build, use, and adapt AI for real needs; make and communicate sound deployment decisions.

Lectures Tuesdays & Thursdays · 2:00–3:20 p.m. · WLH 2005 (Warren Lecture Hall, room 2005) Discussion Mondays · 4:00–4:50 p.m. · CENTR 115 (Center Hall, room 115) Midterms In class on Oct 20 & Dec 1

Weekly schedule

Homework template

Week / dates Monday discussion / quiz Lectures and events Homework & Programming Assignments Weekly learning goal Project milestones
00Sep 24–25 No Monday meeting.

Thu · Sep 24 Syllabus and AI today
Course syllabus and discussion of modern AI systems.

HW0 Ungraded
PA0 Ungraded

Released Sep 24

— —
01Sep 28–Oct 2

Sep 28 · Foundations clinic Discussion of HW0 and PA0 topics.

PyTorch Primer

Tue · Sep 29 ML settings and learning objectives
Review supervised, self-supervised, and reward-based learning objectives. Handout Supplement

Thu · Oct 1 Deep learning vs. machine learning
Nonlinear networks and activation functions. Handout

Optional videos & readings (2)
PA1

Understand when each type of machine learning objective is appropriate. Construct deep neural networks and compute a forward pass through a network.

—
02Oct 5–9

Oct 5 · Quiz 1 Learning settings, objectives, and forward computation.

Tue · Oct 6 Backpropagation
Computing and checking gradients through neural networks.

Optional videos & readings (2)

Thu · Oct 8 Optimization
Gradient descent, learning rates, and curvature. Handout Supplement

Optional videos & readings (2)
PA2

Compute gradients, understand gradient descent, and learn to set the learning rate.

—
03Oct 12–16

Oct 12 · Quiz 2 Backpropagation, curvature, and gradient descent.

Tue · Oct 13 Training deep networks
Initialization, normalization, weight decay, and dropout. Handout Chalkboard notes

Optional videos & readings (2)

Thu · Oct 15 Evaluation and benchmarking
Loss versus task performance, data leakage, and fair comparisons. Handout

Optional videos & readings (2)
PA3

Released Oct 12
Due Oct 19

Understand how initialization, normalization, and regularization affect neural network training. Design benchmarks that measure task performance, avoid data leakage, and support fair comparisons between learning algorithms.

—
04Oct 19–23

Oct 19 · No quiz Midterm review.

Tue · Oct 20 Midterm (in class)
Covers the material in Lectures 1–7, including HW1, HW2, HW3, PA1, PA2, and PA3. Practice midterm Practice solutions Midterm first page Midterm solutions

Thu · Oct 22 Data attribution and interpretability
How training data shape predictions, how to assign credit, and how to interpret model features. Handout

Optional videos & readings (7)

Advanced interpretability

Advanced data attribution

PA4

Released Oct 22
Due Nov 2

Estimate how training examples affect a held-out loss. Compute Shapley values and simple feature interventions. Explain what evidence supports a model interpretation.

—
05Oct 26–30

Oct 26 · No quizProject introduction slides.

Tue · Oct 27Learning from language
Context, entropy, tokenization, and teacher forcing versus generation.Handout

Optional videos & readings (2)

Thu · Oct 29Transformers and SSMs
Attention, recurrent state, and selective memory.Handout

Optional videos & readings (4)
—

Calculate language-model losses and explain how context and tokenization affect prediction. Compute attention and recurrent-state updates.

Oct 26Teams and mission choices due.

Oct 27Individual write-up guidelines released.

06Nov 2–6

Nov 2 · Quiz 3Covers the Oct 22–29 lectures, HW4, and PA4.

Tue · Nov 3LM training pipeline and evaluations
Pretraining, supervised fine-tuning, reinforcement learning, and evaluation.Handout

Optional videos & readings (1)

Thu · Nov 5Reinforcement learning
Learning policies from rewards and interaction.Handout

Optional videos & readings (6)

Derivations and interactive explanations

RL beyond language models

—

Distinguish stages of language-model training and their data and objectives. Reason about policies, rewards, and returns.

Nov 6Individual algorithm and benchmark write-ups due.

07Nov 9–13

Nov 9 · Quiz 4Multiple choice and one written question.Practice problems

Tue · Nov 10GPUs
Parallel computation, tensor layouts, and memory access.Handout

Thu · Nov 12AI safety, governance, and ethics
Evaluating risks, safeguards, and decisions about AI use.

Safety and governance writing assignment

Released Nov 12
Due Nov 19

Explain how data layout affects GPU computation. Evaluate AI risks and safeguards using concrete evidence.

Nov 13Feedback on individual project write-ups returned.

08Nov 16–20

Nov 16 · Discussion cancelledNo discussion or quiz.

Tue · Nov 17Learning from images
Image representations and self-supervised learning.Handout

Thu · Nov 19Generating images
Flow matching, velocity prediction, and iterative sampling. Introduction to scores and diffusion.
Guest lecture by Hansen Lillemark.Worksheet

Optional readings: November 19 (4)
  • MIT: An Introduction to Flow Matching and Diffusion ModelsReview
    Start here: Section 2.1 and Sections 3.1–3.3. Review Euler sampling, conditional and marginal probability paths, and learning a velocity field from noise–data pairs. Focus on the examples and training algorithm. The formal proofs are optional.
  • Gao et al.: Diffusion Meets Flow MatchingReview + extension
    Read “Overview” and “Sampling” for the connection between denoising and velocity prediction, and why straight training paths can yield curved sampling paths. This article uses t = 0 for data and t = 1 for noise, the reverse of our lecture.
  • Yang Song: Generative Modeling by Estimating Gradients of the Data DistributionExtension
    Start with “The score function, score-based models, and score matching” and “Score-based generative modeling with multiple noise perturbations.” These expand the lecture’s brief introduction to scores and noisy distributions. The later stochastic differential equation sections go beyond this lecture.
  • Lipman et al.: Flow Matching for Generative ModelingDeeper derivation
    Optional research paper: Sections 3–4 explain conditional flow matching and Gaussian probability paths, including why conditional training learns the marginal vector field.

Released Nov 17
Due Nov 30

Thanksgiving flexibility: All required materials and lectures will be available before Thanksgiving, so you can finish HW5 and PA5 before the break. The November 30 deadline gives you extra flexibility if you need it.

Explain how models learn image representations without labels. Construct training examples and targets for image generation.

Nov 20Group algorithm and benchmark submission due.

09Nov 23–27

Nov 23 · Quiz 6

Tue · Nov 24Multimodal learning
CLIP, image–text alignment, and vision-language models.Handout

Thu · Nov 26No lecture
Thanksgiving.

—

Explain how models align images and text, and use shared representations for retrieval and zero-shot classification.

—
10Nov 30–Dec 4

Nov 30 · No quizMidterm 2 review.

Tue · Dec 1Midterm 2 (in class)
Coverage and exam instructions will be announced.Practice midterm 2

Thu · Dec 3Staff solution presentations

Fri · Dec 4Industry panel (optional)
10:30 a.m.–noon · Location TBD.

—

Review and apply course concepts. Compare staff approaches and discuss how deep learning is used in practice.

Dec 3Project benchmark results and leaderboard released.

FinalsDec 7–11 — — — —

Thu · Dec 10Group presentations, 3:00–5:59 p.m. Location TBD.Group presentation guidelines