cs.LGNov 16, 2026

Deep Learning for Physicists: From Linear Regression to Reasoning Models

Authors: Masanori Hanada

Organizations: School of Mathematical Sciences, Queen Mary University of London, Mile End Road, London, E1 4NS, United Kingdom

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.

Explore similar work

CardsList
  1. Lecture Notes on Statistical Physics and Neural Networks

    May 7, 2026Olaf HohmSpin GlassPhase Transitions

  2. Statistical Properties of Training & Generalization

    Jun 18, 2026Itay Lavie, Noam Levi, Yonatan KahnNeural Network GeneralizationScientific ML

  3. Deep Learning Theory through the Lens of Statistical Physics: A Topical Review

    Nov 6, 2026Wei Huang, Youjin DengStatistical Physics of LearningNeural Network Generalization