STANFORD-CS329A COURSE GUIDE

CS329A Self-Improving AI Agents: Course Overview

A chapter-by-chapter readback of the free course by Stanford Online on Stanford Online.

Length1:09:42
Chapters14
Modules4
Plain Markdown with clickable timestamps — drops into Obsidian, Notion or GitHub as-is.

The course frames self-improving agents around test-time scaling and verification: models already 'know' more than one sample reveals, and reliable verifiers are the bottleneck to agent self-correction.

Who it's for
Read this guide if
  • You want an overview of how LLM scaling, RLHF, and reasoning models connect before taking the course
  • You're deciding whether to enroll and want the project and grading structure upfront
  • You research test-time compute, parallel sampling, or LLM-as-a-judge pipelines
Skip ahead if
  • You need hands-on coding tutorials rather than a lecture overview
  • You're already deeply familiar with scaling laws and reasoning-model literature
  • You only want the homework logistics without the technical background
In brief
  • Runs about 70 minutes (4182 seconds) with roughly 7 chapters.
  • Covers scaling laws, ChatGPT-style training, reasoning models, agent workflows, and course logistics.
  • Discusses research like Large Language Monkeys, O1-style reasoning, DeepSeek, Claude Code, and Codex.
  • Three homeworks (50% of grade) plus an open-ended team project (50%) with a December 12 poster session.
  • Graduate-level course; materials at cs329a.stanford.edu and lectures posted to YouTube.

The walkthrough

Each chapter below is our original written explanation of what happens at that moment in the video — a paraphrase, not a transcript. Click any timestamp to jump the player.

Scaling Laws and Emergent Abilities

0:00

Introduction

The instructor opens the first CS329A lecture and points to the course website, which hosts lecture materials, papers, the homework schedule, and project information.

1:41

Scaling Laws and Model Growth

Test loss falls as compute, data, and parameters grow, which underpinned pretrained base models. Parameter counts climbed exponentially from BERT's 340M toward GPT-4's estimated trillions.

4:46

Zero-Shot, Few-Shot, and Chain of Thought

Larger models answer tasks without task-specific training and improve with example prompts. Supplying reasoning steps in examples—chain of thought—emergently boosts big models but not ~7–8B ones.

10:01

Emergent Abilities and ChatGPT

Certain abilities, like modular arithmetic, appear only past certain model sizes. ChatGPT's rapid uptake in November 2022 came from instruction tuning and RLHF layered on top of pre-training.

Training Pipelines: From Pre-training to RLHF

12:09

Pre-training, Fine-Tuning, and Alignment

Pre-training teaches next-token prediction but models can't follow instructions, so alignment steers them toward human goals and values—still an unsolved problem. High-quality curated data drives the fine-tuning stages.

15:04

Instruction Tuning and RLHF

Instruction tuning mixes human and synthetic instruction–answer pairs, while RLHF trains a reward model from human preference ratings to guide generation toward correctness, helpfulness, and harmlessness.

19:35

Test-Time Scaling and Large Language Monkeys

Sampling many answers in parallel and picking the correct one with a verifier lets small models like LLaMA-3-8B surpass GPT-4o on math and code, showing models know more than a single query reveals.

30:10

Reasoning Models and O1

OpenAI's O1 showed log-linear gains in accuracy as test-time compute grows, self-generating and self-correcting chains of thought—skills from both curated data and RL on synthetic data.

36:05

Q&A on Reasoning Models

In discussion, the instructor explains that reasoning-model gains come from learning generalized thinking skills like decomposition and backtracking, and that models prefer their own reasoning traces.

From LLMs to Agents

41:01

Agents and Agentic Workflows

Chatbots don't complete tasks end to end, but tools like Claude Code and deep research now do: given a goal, an agent plans, acts, and corrects from feedback. Most deployments still use hand-built workflows chaining LLM calls, verifiers, judges, and tools.

48:15

Coding Agent Loops and Self-Improvement

Coding agents operate a terminal loop—searching, editing, and executing files—and recently became reliable thanks to stronger models and RL with verifiable rewards, enabling self-improvement loops like generating unit tests to check generated code.

50:38

Verification Bottleneck and Real Applications

Robust verification is the key bottleneck since human feedback doesn't scale. Applications span customer support, report generation from literature review, migrations and codebase refactors, and research agents acting as 'AI scientists.'

Course Logistics

1:00:54

Course Structure and Logistics

Guest lectures from frontier labs cover post-training and multimodal robotics agents. Canvas is the main channel; prereqs should be checked before registering, and three newly designed homeworks are due this quarter.

1:04:17

Projects, Grading, and Communication

The open-ended project (up to four people, API credits provided) requires a research hypothesis and measurable analysis—surveys or simple apps don't qualify. Homeworks and project each count 50%; questions go to EdStem, submissions to Gradescope, and the poster session is December 12.

Moment by moment

TimeWhy it matters
3:47Scaling laws explained: why more compute, data, and parameters lower test loss.
19:35The Large Language Monkeys result: small models beating GPT-4o by sampling 10,000 answers.
30:10O1's log-linear test-time scaling—reasoning models self-generate and self-correct chain of thought.
41:01The defining loop of an agent: goal, planning, environment interaction, and feedback-driven correction.
50:38Verification named as the central bottleneck for self-improving agents.

Do this next

  1. Browse cs329a.stanford.edu to review the paper list, homework schedule, and past project examples before deciding to enroll.
  2. Replicate a mini parallel-sampling experiment: sample a math or code problem multiple times and measure coverage versus a single sample.
  3. Sketch an agentic workflow with prompt chaining, an LLM-as-a-judge, and a verifiable check like unit tests for one of your own repetitive tasks.

Common questions

What makes CS329A 'self-improving' agents?

The course centers on loops where models verify and improve their own outputs: test-time scaling with verifiers, reasoning models trained on synthetic data, and coding agents that generate tests to check their own code.

What was the key takeaway from the Large Language Monkeys work?

Sampling many answers in parallel and selecting the correct one lets a 7–8B model outperform GPT-4o on hard math and coding benchmarks, showing models know more than a single sample reveals.

How is the course graded?

Three homeworks count for 50% and the research project for the other 50%. Projects need a hypothesis and measurable analysis; milestones include an early-October proposal, a midterm with actual experimental progress, a final report, and a December 12 poster session.

Are coding agents reliable enough to use today?

The instructor notes the terminal-based agent loop was unreliable a year ago but is just now becoming dependable, credited to stronger models and RL with verifiable rewards.

Spot a mistake?

Every summary on this page is hand-checked against the video, but errors can still slip through. If you spot a wrong timestamp, a mischaracterized point, or a missing chapter, please let us know.

More course guides