This course is a mathematical introduction to artificial intelligence and large language models. We will study vectors, matrices, tensors, embeddings, gradient descent, automatic differentiation, attention mechanisms, and generative models. The course will emphasize hands-on mathematical examples, especially simple low-dimensional versions of ideas that appear in modern AI systems.
Term: Summer 2026 (June 25, 2026 - August 26, 2026)
Class meetings: Monday, Wednesday, Friday, 2:10–3:15 PM
X-hour: Thursday, 1:20–2:10 PM
Office hours: M 10-11 AM, W 3:30-4:30 PM -- Kemeny 316
Instructor: Mohammad Javad Latifi Jebelli (mohammad.javad.latifi.jebelli@dartmouth.edu)
Grader: Arses Prasai (Arses.Prasai.28@dartmouth.edu)
| The row and column pictures |
| Visual backpropagation |
| Hands-on ML with pytorch |
| Homework 1 - due Friday Jul 10, 7 PM |
| Homework 2 - due Friday Jul 17, 7 PM |
| Homework 3 - due Friday Jul 24, 7 PM |
| Component | Points |
|---|---|
| Homework | 10 |
| Class Activities | 10 |
| Quiz | 20 |
| Final Project | 20 |
| Midterm | 30 |
| Final Exam | 10 |
| Total | 100 |
(1) The class activities are usually due at 7 PM, Friday. If we have multiple activities in the same week, all of them are due on the same Friday.
(2) Homework assignments are usually due at 7 PM, Thursday (if we have one assigned in a given week)
(3) The quiz need to submitted to gradescope right after the completion. The quiz will take place on most Thursdays, 1:40 - 2:10 PM (during X-hour).
Notes:- Homework and class activities are graded for completion (you don't need to get a complete correct answer to get the points), with no feedback.
- Quiz problems are selected from homework problems of the past week, with possibly a minor modification.
Overview of AI, neural networks. Vectors and dot products. Row and column pictures of matrix multiplications. Postulates of a machine that can learn via adjustable parameters. Linear functions as simplest parameterized family of functions. Single layer feed forward neural networks (FFNN). The row picture of FFNN.
Many pictures of FFNN: pipe picture, row picture, column picture and mixed pictures. High-dimensional geometry. SVD, Low Rank Approximation, Linar Regression. Encoder-decoder models. Linear Autoencoders and connection to SVD.
Dual numbers. Extension of a real valued function to a dual number valued function. Dual number approach to differentiation and chain rule. Computation graphs, automatic differentiation, and backpropagation.
Gradients, chain rule, loss functions, gradient descent, and training. Implementing a neural network in PyTorch.
Tensors, tensor product spaces, examples of 3-tensors, slices of a tensor, decomposable tensors, dimension and shape of a tensor, reshaping a tensor.
Midterm: The midterm will take place in class on Friday July 31.
Vector fields on a high-dimensional sphere. Vector fields represented by kernels.
Many-particle dynamics on the sphere, next-token prediction, and the attention mechanism.
Project presentations.
Time permitting: probability distributions, conditional probability, maximum likelihood, diffusion models, and final project discussions.
* Indicates a broad research theme from which multiple individual projects can be developed.
By the end of the course, students should be able to:
Students with disabilities who may need disability-related academic adjustments and services for this course are encouraged to see me privately as early in the term as possible. Students requiring disability-related academic adjustments and services must consult the Student Accessibility Services office (Carson Hall, Suite 125, 646-9900). Once SAS has authorized services, students must show the originally signed SAS Services and Consent Form and/or a letter on SAS letterhead to me. As a first step, if students have questions about whether they qualify to receive academic adjustments and services, they should contact the SAS office. All inquiries and discussions will remain confidential.