Last year version: Fall 2024
This course provides a unifying introduction to statistical modeling of multidimensional data through the framework of probabilistic graphical models, together with their associated learning and inference algorithms.
Teacher: Simon Lacoste-Julien
Office hours: Wednesday 3:30-4:30pm in Auditorium at Mila just after class
TAs: Yukti Makhija and Alan Milligan
Office hours: Monday 4:30-5:30pm, in room H04 at Mila
Monday 1:30-3:30pm
Wednesday 1:30-3:30pm
The lectures are taught in hybrid mode: the lectures will be given at the Mila Auditorium 1 and 2, 6650 rue Saint-Urbain, but also connected synchronously on Zoom (see info on Studium). They will also be recorded for further review or for those in remote time zones.
Probability review
Maximum likelihood estimation
Linear regression, logistic regression, Fisher discriminant
K-means, EM, Gaussian mixtures
Directed and undirected graphical models
Exponential family, information theory
Gaussian networks
Factor analysis
Sum-product algorithm, HMM, junction tree
Approximate inference: sampling, variational methods
Estimation of parameters in graphical models
Bayesian methods
Model selection
Homework (20%) – 5 homework | homework logistics below
Project (30%) – project report to hand in + poster presentation on Dec 21st | detailed info about projects
Final exam (50%) – in-person exam Dec 16th
The prerequisites are previous coursework in linear algebra, multivariate calculus, and basic probability and statistics. There will be programming for the assignments, so familiarity with some matrix-oriented programming language will be useful (we will use Python with numpy).
Warning: This class is quite mathematical, and the amount of work is significant (this is a 4 credits class, so expect at least 8 hours of work per week in addition to the lectures), so do not take it if you do not like maths or are looking for an easy class.
The course will follow the (unpublished) manuscript An Introduction to Probabilistic Graphical Models by Michael I. Jordan that will be made available to the students (but do not distribute!).
Supplementary references:
For very detailed and rigorous reference: Probabilistic Graphical Models: Principles and Techniques by Daphne Koller and Nir Friedman. Referred as KF in outline below.
See Part I of the Deep Learning book by Ian Goodfellow, Yoshua Bengio and Aaron Courville for a very gentle review of applied maths useful for this class. Chapter 5 contains a useful presentation of machine learning basics. Referred as DL in outline below.
Another classical book, with a more Bayesian perspective than Mike's book, but at least completed, is Pattern Recognition and Machine Learning, by Chris Bishop.
The homework is to be handed online in Gradescope before the beginning of the class (Wednesday) on the due date. The detailed instructions for the code handin-logistics can be found in the news in Studium. Because LLMs can now easily do the homework for you, the homework itself won't be graded in details (we instead provide solutions + office hours). The points allocated to the homework are for a good faith attempt at it and handing it in on time (see also AI policy below).
Collaboration policy: you can collaborate with colleagues while working on the homework, but you need to write your own independent write-up. And if you have collaborated with others on a question, you need to credit the help of your colleagues by specifying them in the write-up (proper acknowledgment is good practice for you have for academia later). You also need to mention the help of any AI tool for your homework.
Generative AI use policy: you are encouraged to use generative AI tools (ChatGPT, Claude, Gemini, etc.) to help in your learning (for example, to get help when you are stuck; to provide guidance or explain subtle concepts; etc.). See option 3 on this page for background on this policy. But you need to explicitly have a mention in your work (project report, homework writeup) of how you have used generative AI for it. And you are responsible for your own writeup (like in academic papers).
Late homework policy:
You have a budget of 10 late days that you can spend on the 5 homework. To use these days, you need to declare it by filling the appropriate option in the Google form to hand in with the assignment.
The late day penalty will be the following (as deadlines are on Wednesday):
handed in Wednesday after beginning of class: 10% penalty (or 1 day late used)
handed in Thursday: 20% penalty (or 1 day late used)
handed in Friday: 40% penalty (or 2 days late used)
handed in Monday: 80% penalty (or 3 days late used)
handed in later: you won't get any credit (or you have to have used some of your late days to reduce the number of days counted late)
handed in Tuesday: 100% penalty (or 4 days late used)
handed in Wednesday (one week later): 100% penalty (or 5 days late used)
No assignment accepted more than one week late
Below is a draft detailed outline that will be updated as the class goes on. For now it is the outline recopied from the Fall 2024 version of this class, with the links to the relevant old scribbled notes that will be updated with the new ones gradually. The related chapters in Mike's book are given (but note that they do not exactly correspond with the class content), and also sometimes pointers to the Koller and Friedman book (KF), the Deep Learning book (DL) or the Bishop's book (B). Related past ‘‘scribe notes’’ from the previous instantiations of this class as well as (for later lectures) the class that I taught in Paris are given for now, and will be updated with the more updated scribe notes if needed (and I get some).
| Date | Topics | Related chapters Scribbled notes Recordings | Scribe notes | Homework milestones |
| Aug 31 (Mon) | Set-up & overview | lecture1 recording | Isabela Albuquerque (Fa17) lecture1.pdf source | |
| Sept 2 (Wed) | Probability review | 2.1.1 DL: 3 (nice and gentle) KF: 2.1 (more rigorous) lecture2 recording | William Léchelle (Fa16) lecture2.pdf source | |
| Sep 7 (Mon) | Labor Day Holiday: no class | |||
| Sept 9 (Wed) | Prob. review (cont.) Parametric models | 5 lecture3 recording | Philippe Brouillard and Tristan Deleu (Fa17) lecture3.pdf source | Hwk 1 out (hwk 1 source) |
| Sept 14 (Mon) | Frequentist vs. Bayesian Maximum likelihood | lecture4 recording | Philippe Brouillard and Tristan Deleu (Fa17) lecture4.pdf source | |
| Sept 16 (Wed) | MLE (cont.) Statistical decision theory | 1.3 in Bickel & Doksum Bias-variance tradeoff: 7.3 in Hastie's book lecture5 recording | Sébastien Lachapelle (Fa17) lecture5.pdf source | |
| Sept 21 (Mon) | Properties of estimators and MLE | lecture6 recording | same as lecture5 | |
| Sept 23 (Wed) | Linear regression Logistic regression | DL: 7.1 (l2, l1-reg.) 6, 7 lecture7 recording | Zakaria Soliman (Fa16) lecture6.pdf source | Hwk 1 due Hwk 2 out |
| Sept 28 (Mon) | Numerical Optimization Logistic regression (cted) and IRLS | 7 DL: 4.3 Boyd's book lecture8 recording | Eeshan Gunesh Dhekane and Younes Driouiche (Fa18) lecture8.pdf source | |
| Sept 30 (Wed) | Gen. classification (Fisher) Derivative tricks for Gaussian MLE Kernel trick (skipped) | 7 Matrix Diff. book lecture9 recording lecture9 2017 (kernel trick) (skipped) | Eeshan Gunesh Dhekane (Fa18) lecture9.pdf source | |
| Oct 5 (Mon) | Election day: no class | |||
| Oct 7 (Wed) | latent variable model K-means EM and GMM | 10, 11 lecture10 recording | Ismael Martinez and Binulal Narayanan (Fa20) lecture12-2020.pdf source | |
| Oct 12 (Mon) | Thanksgiving holiday: no class | |||
| Oct 14 (Wed) | Graph Theory Directed Graphical Models | 2 lecture11 recording | Martin Weiss and Eeshan Gunesh Dhekane (Fa18) lecture11.pdf source | Hwk 2 due Hwk 3 out (hwk 3 source) |
| Oct 19 (Mon) | Break: look at projects | |||
| Oct 26 (Mon) | DGM (cont.) Undirected graphical models | 2 lecture12 recording | Philippe Beardsell (Fa18) lecture12.pdf source | |
| Oct 28 (Wed) | UGM (cont.) | 2 lecture13 recording | ||
| Nov 2 (Mon) | Inference: elimination alg. Sum-product alg. | 3, 4 lecture14 recording | lecture13-2018.pdf source Sum-product: see lecture16-2020 below | |
| Nov 4 (Wed) | Max-product Junction tree HMM | 17, 12 lecture15 recording | lecture16-2020.pdf source lecture15-2018.pdf source | Hwk 3 due Hwk 4 out (hwk 4 source) Project: team formed |
| Nov 9 (Mon) | EM for HMM Information theory | 12, 19 lecture16 recording | lecture15-2018.pdf above | |
| Nov 11 (Wed) | Max entropy MaxENT duality | 8 old lecture17 (KL geometry: lecture 16 2017) old recording | lecture16-2018.pdf source | |
| Nov 16 (Mon) | Exponential families Estimation in graphical models | 8 9 old lecture18 old recording | lecture18-2021.pdf source | |
| Nov 18 (Wed) | MC integration Sampling | 21 (variance reduction: see old lecture18 2017) old lecture19 old recording | (new scribe notes to come!) | |
| Nov 23 (Mon) | MCMC Markov chains Metropolis-Hastings | 21 old lecture20 old recording 2023 | ||
| Nov 25 (Wed) | Gibbs sampling Variational methods | Bishop: 10.1 old lecture21 old recording (skipped parts of: old lecture22 2017 for marginal polytope) | MVA lecture9 | Hwk 4 due Hwk 5 out (hwk 5 source) |
| Nov 30 (Mon) | Bayesian methods Model selection Causality | 5, 26 old lecture22 old recording Causality for Machine Learning (arXiv 2019) Elements of Causal Inference (book) | MVA lecture10 | |
| Dec 2 (Wed) | Gaussian networks Factor analysis, PCA, CCA (Kalman filter) VAE | old lecture24 old recording 13 old lecture17 Fa2016 14 , (15) old lecture18 Fa2016 VAE – DL: 20.10.3 | MVA lecture6.5 MVA lecture7.3 | Project: 1 page progress report due |
| (skipped this year | Guest lecture on GFlowNets by Juan and Mansi | old lecture23 old recording | ||
| (skipped this year) | (Guest lecture on causality by Sebastien Lachapelle) | old lecture24 old recording | ||
| (skipped this year) | Non-parametric models: Gaussian processes Dirichlet processes | 25 old lecture25 old recording GP book DP tutorial | lecture26-2020.pdf source | |
| Dec 7 (Mon) | No lecture this week (NeurIPS) work on hwk 5 or your project! | |||
| Dec 16 (Wed) | Final exam (in class) 1:30pm-4:30pm | |||
| Dec 21 (Mon) | Poster presentation 1:30pm-4:30pm | |||
| Dec 23 (Wed) | Hwk 5 due Project report due | |||