Deep Learning for Physicists: From Linear Regression to Reasoning Models
Abstract
These lecture notes are based on an introductory course on neural networks and deep learning that the author taught in the School of Mathematical Sciences at Queen Mary University of London in 2023/24 and 2024/25. The author, however, is a physicist, and it shows: wherever possible, ideas are explained with physical intuition rather than heavy formalism. Readers with a background in physics or mathematics who want a self-contained, introductory route into modern machine learning may therefore find these notes particularly friendly. The notes start from maximum likelihood, least squares, linear regression and (stochastic) gradient descent. They then cover neural networks, backpropagation, the vanishing gradient problem, batch and layer normalization, overfitting and regularization, adversarial examples, and the kernel method. The second half turns to natural language processing: word embeddings, recurrent networks and LSTMs, the attention mechanism and Transformers, and large language models, including scaling laws, the history of GPT, instruction tuning, reinforcement learning from human feedback, hallucination, alignment faking, chain-of-thought reasoning and test-time scaling. The emphasis on large language models reflects requests from the students. The notes are aimed at third- and fourth-year students in the UK system. Because the course was also taken by students from other departments, very little is assumed: even basic material such as matrix multiplication is explained from scratch, so readers familiar with it can safely skip such parts. No originality is claimed; the aim is a coherent, intuitive path through the material. Developments after spring 2025 are not covered, but the basic ideas emphasized here are unlikely to go out of date soon.
Create a lesson
Metadata
- Categories
- cs.LG, hep-lat, hep-th, physics.comp-ph
- Comments
- 115 pages, many figures. Based on lectures given at Queen Mary University of London
Related papers
Curvature-Equilibrated Policy Optimization for Deep Reinforcement Learning
Shared title terminologycs.LGGang Chen
SwiftLoop: Selective Refinement for Adaptive Implicit Reasoning in Looped Transformers
Shared title terminologycs.LGTianyi Zhao, Ke Wan, Chen Chen
How Far Can Linear Go? BiPert, a Unified Framework for Single-Cell Perturbation Modelling
Shared title terminologycs.LGAbhishek Sharma, Aleksej Zelezniak
Can Latent Reasoning Drive LLM Outputs Without a Trace?
Shared title terminologycs.LGTomer Ashuach, Zorik Gekhman, Avi Caciularu et al.
How Do Deep Networks Encode and Selectively Use Information? Shared Encoding and Conditional Signed Readout in Vision and Language Models
Shared title terminologycs.LGKaixiang Shu
Object-Centric Differentiable Logic Networks for Abstract Visual Reasoning
Shared title terminologycs.LGHanne Say Eren, Ana Ezquerro, Ozan Özdenizci