CSE-41XX
Course Curriculum

Statistical Mechanics for Deep Learning & CS

A rigorous, modern curriculum bridging statistical physics, information theory, and generative AI / LLMs (2020–2026).

Statistical Mechanics for Deep Learning & Computer Science

Why does Statistical Mechanics sit at the core of Modern AI?
Statistical mechanics was created to answer: How do we predict the emergent behavior of 102310^{23} microscopic particles without solving individual trajectories?
Deep learning asks the exact same question: How do we understand the emergent behavior of 101110^{11} parameters and millions of tokens without tracking individual weights?


🗺️ The CS \longleftrightarrow Stat-Mech Rosetta Stone

Statistical MechanicsComputer Science & Machine LearningPrimary Application / Literature
Microstate σS\sigma \in \mathcal{S}Parameter vector θ\theta / Token sequence yyState spaces, Latent configurations
Energy E(x)E(x)Loss function L(x)\mathcal{L}(x) / Negative Logit zi-z_iEnergy-Based Models (EBMs), Softmax
Boltzmann / Gibbs DistributionSoftmax with Temperature / Gibbs measureAutoregressive LLM Sampling, Policy π(yx)\pi(y \mid x)
Partition Function Z=eβEiZ = \sum e^{-\beta E_i}Normalization factor / Log-Sum-ExpEBMs, Evidence, DPO cancellation trick
Entropy S=pilnpiS = -\sum p_i \ln p_iShannon Entropy / Exploration RegularizerPolicy diversity, Attention entropy collapse
Free Energy F=ETSF = \langle E \rangle - TSVariational Free Energy / ELBOVariational Autoencoders (VAEs), KL Optimization
Spin Glasses / Ising ModelHopfield Networks / Transformer AttentionAssociative Memory, In-Context Learning theory
Thermodynamic Limit (NN \to \infty)Infinite-Width Limit / High-Dimensional RegimeNNGP, Neural Tangent Kernel (NTK), Mean Field
Order Parameter / CriticalityGeneralization error / Sharp loss transitionsGrokking, Phase transitions in learning
Langevin Dynamics & NoiseDiffusion Models & SGLDDDPM (2020), Score-SDE (2021), LLaDA (2025)
Liouville Continuity EquationContinuous Flow MatchingFlow Matching (ICLR 2023), Normalizing Flows

📚 Curriculum Structure

On this page