Singla Lab IIT Roorkee

Teaching · Autumn 2026–27 · running now

BEC-351

Fundamentals of AI/ML

Where the field came from, the mathematics underneath it, and how to tell whether a model is any good.

मूलं हि शस्यं वर्धते नितान्तं
मूलं हि विद्या वर्धते नितान्तम्।
मूलं हि सर्वस्य भवन्ति मूलं
मूलं न सन्देहकृतं हि लोके॥

mūlaṁ hi śasyaṁ vardhate nitāntaṁ
mūlaṁ hi vidyā vardhate nitāntam |
mūlaṁ hi sarvasya bhavanti mūlaṁ
mūlaṁ na sandehakṛtaṁ hi loke ||

Just as the root is essential for the growth of a plant, the fundamentals of knowledge are crucial for its development. The root is the basis of everything; there is no doubt about this in the world.

Course information

Instructor

Jitin Singla · jsingla@bt.iitr.ac.in

Lectures

Mon & Thu · 4:05–5:00 PM
Fri · 5:05–6:00 PM

Venue

GB-003

Office hours

To be announced
Room 211, BSBE Department

Discussion

Piazza

Objectives

  • Comprehend the historical evolution and foundational concepts of AI/ML.
  • Build mathematical intuition for machine learning principles.
  • Explore core theoretical frameworks and evaluation strategies.

Prerequisites

  • Python programming

Course content

  • Historical development and evolution of AI/ML
  • Key terminology
  • Linear algebra and probability review
  • Theoretical underpinnings of learning from data
  • How energy functions and loss functions guide model training and evaluation
  • Various loss functions
  • First-order optimization: gradient descent (GD) and stochastic gradient descent (SGD)
  • Basics of constrained optimization and its relevance in training
  • Hyperparameter tuning strategies
  • Validation techniques to assess model generalization
  • Evaluation metrics to measure and compare models
  • Bayesian inference in machine learning

Schedule

#TopicSlidesEssential readingAdditionalHomework
0Kick-offSlides—The course in one picture—
1History of AI and machine learningSlidesKolter & Do, Linear Algebra Review & Reference (CS229) §1–2 · Boyd & Vandenberghe, Introduction to Applied Linear Algebra (VMLS) Ch. 1–3The Imitation Game · Turing machine — short—
LA1Notation & basic objects; vector/matrix products; properties of matrix multiplication—Kolter & Do §1–23Blue1Brown, Essence of Linear Algebra · Deisenroth, Faisal & Ong, Mathematics for Machine Learning, Ch. 2–4—
LA2Transpose, symmetric matrices, trace; norms, Cauchy–Schwarz & cosine similarity—Kolter & Do §3.2–3.5Demo: ℓₚ unit balls · Demo: cosine similarity—
LA3Matrix inverse; span, range & linear independence—Kolter & Do §3.6–3.9——
LA4Linear projection & least squares—Kolter & Do §3.9, §4.4Demo: least-squares line fitting—
LA5Determinant; condition number & numerical sensitivity—Kolter & Do §3.10 · condition number is supplementary — see Trefethen & Bau, Numerical Linear Algebra——
LA6Quadratic forms; symmetric & positive (semi)definite matrices—Kolter & Do §3.11——
LA7Eigenvalues & eigenvectors; diagonalization & the spectral theorem; eigenvalues as optimisation—Kolter & Do §3.12–3.13, §4.6Demo: eigenvectors as fixed directions · Demo: rotate, scale, rotate · Setosa, Eigenvectors & Eigenvalues, Explained VisuallyPractice-1
LA8SVD; PCA; matrix calculus (self study)—Kolter & Do §4.1–4.3Demo: PCA playground · Setosa, Principal Component Analysis, Explained Visually · Petersen & Pedersen, The Matrix CookbookPractice-2
PR1Probability review (self study + extra class)—Probability Review——
OPT1Why optimise; anatomy of a problem; stationarity & convexity; the Lagrangian (shadow price, scalarisation)—Deisenroth, Faisal & Ong, Mathematics for ML Ch. 7 (§7.1–7.3)Boyd & Vandenberghe, Convex Optimization Ch. 1, §3.1–3.2, §4.7, §5.6 · Khan Academy, Interpretation of Lagrange Multipliers—
OPT2Gradient descent: steepest descent; step size & curvature; descent lemma; condition number & zigzag; line search—Dive into Deep Learning §12.3 Gradient Descent · Dive into Deep Learning §12.1–12.2 (optimization & convexity)Boyd & Vandenberghe §9.2–9.4 (descent methods, backtracking, steepest descent) · Strang, MIT 18.065 Lec. 22: Gradient Descent · Boyd, EE364a slides §9 Unconstrained Minimization—
OPT3Stochastic gradient descent: unbiased minibatch gradients; the √B law; noise floor; step-size schedules—Dive into Deep Learning §12.4 SGD · Dive into Deep Learning §12.5 Minibatch SGD · Dive into Deep Learning §12.11 Learning-Rate SchedulingBottou, Curtis & Nocedal, Optimization Methods for Large-Scale ML §3.3, §4.2 (Thms 4.6–4.7) · Strang, MIT 18.065 Lec. 25: Stochastic Gradient Descent—
EBMLinear classifiers; perceptron, hinge & logistic losses; MSE vs likelihood; NLL as push-down / pull-up—LeCun et al., A Tutorial on Energy-Based Learning §2.1, §2.2.1–2.2.4 (NLL gradient: eq. 24)Goodfellow, Bengio & Courville, Deep Learning §5.5, §5.5.1, §5.7.1 · Bishop, Pattern Recognition and Machine Learning §1.2.5, §3.1.1, §4.3.4—
CIConcentration inequalities: the sample average; Markov, Chebyshev & Hoeffding (with proof); sample complexity; laws of large numbers—Abhishek et.al., Introduction to Concentration Inequalities §3.1–3.5Chan, Introduction to Probability for Data Science Ch. 6 (§6.2.4–6.2.8, §6.3) · Duchi, CS229 Supplemental Notes: Hoeffding's InequalityHomework

References and resources

Recommended text

  • Probabilistic Machine Learning: An Introduction, Kevin Murphy. MIT Press, 2022.

Supplementary

Watch

Evaluation

30% Continuous assessment (CWS)Announced and surprise quizzes
30% Mid-term exam (MTE)
40% End-term exam (ETE)

Tentative.

Question papers

  • Autumn 2025–26 — MTE · ETE