Skip to content

CMU 07-380 Stage Recap: From Reasoning Under Certainty and Optimization to Uncertainty

Sep 29, 20261 min
TL;DRThe course site's schedule splits 07-380's first ten lectures into Reasoning Under Certainty, Optimization and Reasoning Under Uncertainty: prove things with logic and plan with search, then write problems as constrained objectives, and finally let a prior in with MAP and turn to probabilistic models. HW1 tests logic plus search, HW2 planning plus LP graphing, HW3 writing solvers plus PCA and MAP derivations.

🌏 中文版

By 9/28, CMU 07-380 AI & ML II Fall 2026 has covered ten lectures and collected two homeworks, with the third due 10/1. This post is not a guide to a new lecture. It looks back: what abilities did those ten lectures build? Why does an AI & ML course spend its first half on logic, planning and linear programming before turning to probability?

The short answer: the first ten lectures run from "provable and enumerable" to "can only be estimated". Logic tells an agent what is certain; planning turns certain knowledge into action; optimization writes "best" as a constrained objective; and at MAP, when the data is not enough to be certain, a prior goes into the objective, which is where probabilistic models take over.

This post synthesizes only the official materials already cited in orders 1–13 of this series, plus the module split on the course schedule. It adds no new facts. Based on the course site as of 2026-09-29; the site notes that the schedule is subject to change.

How the course site splits it

The schedule's "Module" column splits the first ten lectures into four blocks. This is the course's own split, not this series' interpretation:

ModuleLectureDateGuide in this series
IntroductionLec1 Introduction8/24Lec1
Reasoning Under CertaintyLec2 Logical Agents8/26Lec2, HW1
Lec3 Planning: PDDL, Relaxations8/31Lec3
Lec4 Motion Planning: RRT9/2Lec4, HW2
OptimizationLec5 Continuous Optimization: LP9/9Lec5
Lec6 Discrete Optimization: ILP9/14Lec6
Lec7 Low Rank Optimization: PCA (LoRA)9/16Lec7
Reasoning Under UncertaintyLec8 MAP9/21Lec8, HW3
Lec9 Generative Models: Naive Bayes, GDA9/23Lec9
Lec10 Graphical Models: Bayes Nets9/28Lec10 (pre-reading edition)

On the schedule, the Reasoning Under Uncertainty module runs on through Lec13 (Approximate Inference, HMM / Particle Filtering, GMM / EM), followed by Acting Under Uncertainty (Lec14, Policy Gradient → RLHF) and Generative AI. So this "stage" does not end on a module boundary but at Lec10: the certainty and optimization modules are done, the uncertainty module has finished its first leg, and HW3 wraps up the first half.

flowchart LR
  L["Logic<br/>Lec2"] --> P["Symbolic planning<br/>Lec3"] --> R["Continuous planning<br/>Lec4"]
  R --> LP["LP<br/>Lec5"] --> IP["ILP<br/>Lec6"] --> PCA["PCA<br/>Lec7"]
  PCA --> MAP["MAP<br/>Lec8"] --> GM["Generative models<br/>Lec9"] --> BN["Bayes Nets<br/>Lec10"]
  L -.-> HW1["HW1"]
  R -.-> HW2["HW2"]
  LP -.-> HW2
  PCA -.-> HW3["HW3"]
  MAP -.-> HW3

One line through ten lectures

Reasoning under certainty: prove, then act

Lec2 has an agent "prove" that a square is safe using propositional logic, with model checking, DPLL and forward chaining as tools. HW1 then turns proof into action: after proving which squares are safe, plan a route with search.

Lec3 makes "how to change the world" something to reason about too. The Lec3 guide concludes that planning is not a new problem but the same search problem with a different state representation; once PDDL writes down an action's preconditions and effects, relaxation can compute heuristics automatically.

Lec4 hits the first wall: a robot arm's state is continuous and cannot be enumerated, so RRT grows a tree by sampling. This is the first place "list everything, then pick" stops working.

Optimization: write "best" as an objective

Lec5 switches tracks to optimization. LP writes a problem as a linear objective with linear constraints, and the optimum lies at a vertex of the feasible region. Lec6 adds integer constraints, vertices stop being the answer, and so you relax to an LP and branch (branch and bound). Lec7's PCA is another kind of optimization: find the best projection under a low-rank constraint. The same schedule row lists the LoRA paper, connecting low rank to fine-tuning large models.

What these three lectures share: the problem is fully specified, and the difficulty is finding the optimum efficiently.

The door to uncertainty: the prior comes in

Lec8 MAP is the turning point. With limited data, the likelihood alone is not enough, so a prior enters the estimate; written into the objective, that prior is regularization. This step makes optimization and probability two ways of writing the same thing, and it is why the site puts MAP first in Reasoning Under Uncertainty.

Lec9 uses generative models (Naive Bayes, GDA) to build p(x|y) and recover the class with Bayes' theorem; Naive Bayes relies on features being conditionally independent given the class. Lec10's Bayes nets generalize that kind of assumption: a graph says which variables have no edge between them, splitting a too-large joint into small conditional probability tables.

What HW1–3 each test

All three homeworks have Gradescope online questions (CMU-only); below covers only the public programming and written parts. The homework posts in this series describe problem structure only and include no solutions.

HomeworkDueProgrammingWrittenAbility tested
HW19/3Logic and the Hybrid Wumpus Agent, Q1–Q7noneEncode world rules as a knowledge base, check entailment with SAT, feed inference into search
HW29/18Classical and Motion Planning: Q1 PDDL, Q2–Q7 RRT / RRT*hw2.pdf: GraphPlan, LP formulation, graphing LPs, feasible regionsRepresent one problem two ways (symbolic / continuous); turn a word problem into an LP and plot it
HW310/1Linear and Integer Programming: vertex-enumeration LP, branch and bound, formulation problemshw3.pdf: integer programming, ethics of delivery routes, PCA, MAP priors and regularizationWrite the solvers yourself; compute PCA via SVD; prove a Laplace prior equals L1 regularization

Side by side, the abilities stack up layer by layer:

  1. HW1: representation plus inference. You write the game's rules as logical sentences, let a SAT solver decide which squares are safe, then hand off to search.
  2. HW2: two representations of one thing. The same robot cook is planned once in PDDL as a discrete problem and once with RRT in continuous space. The first written question covers GraphPlan; the other three are already LP.
  3. HW3: from using tools to writing them, then over to probability. The programming part has you implement LP and IP solving yourself; the last written question asks you to prove that adding a Laplace prior to probabilistic linear regression is the same as adding L1 regularization to MSE. That question is exactly the seam between the first half and the second.

HW4 is tentatively due 10/22 and has not been released; this series does not guess its content.

How much is public right now

As of the 2026-09-29 site, the course as a whole is A2 (in progress); the released Lec1–9 stretch is already at A3 level: every lecture has slides (including inked versions), most have pre-reading notes, Recitations 1–5 come with solutions, and HW1–3 have problem PDFs, LaTeX templates, starter code and local autograders. The levels are defined in the global AI/CS course map.

Not available yet:

  • Lec10 slides (no link on the schedule; only the PR6 notes and demo)
  • Slides after Lec11, PR7–PR13, handouts from Recitation 6 on
  • HW4–HW7 and Final Project details
  • Quiz 1–6 questions, Canvas checkpoints, Gradescope online questions (CMU-only)
  • Recordings (no link on the site)

Outside readers can fully redo the slides, pre-readings, recitations and programming assignments. What they cannot get are the quizzes and online questions, so there is no way to confirm you have reached the level the course expects.

What to watch next

The next lecture on the schedule, Lec11 (9/30), is Approximate Inference: likelihood weighted sampling and Gibbs. Lec10's three-step recipe is exact inference and needs the whole joint first; with many variables that becomes infeasible, and sampling exists to handle exactly that.

If you are self-studying along with this series, the math behind Lec2–Lec8 can be backfilled from 07-280: search and A*, CSP and backtracking, gradient descent, regularization, MLE. The course's overall positioning is in the 07-380 overview.

Things to do tonight

  1. On a sheet of paper, write one sentence for each of Lec2–Lec10: "what problem from the previous lecture does this one solve?" Wherever you get stuck, go back to that lecture's pre-reading.
  2. Pick a programming assignment from HW1–HW3 you have not run yet, download the starter, and run autograder.py once to see everything fail, confirming your environment works.
  3. Read question 4 of hw3.pdf (MAP: priors and regularization) and try to write only the form of the log-posterior, without rushing to finish. This checks whether you have really crossed from optimization to probability.

References