Free Programming Books: AI, Machine Learning, Deep Learning and LLMs (Legally Free)
A curated index of legally free books on artificial intelligence, machine learning, deep learning, large language models (LLMs), reinforcement learning, math for machine learning and data science, grouped by level from beginner to research. Every entry is published free of charge by its authors or publisher (author websites, open-access editions, arXiv, official online versions), so you can read them without pirate PDF sites. It is for self-taught learners, students and engineers moving into AI.
Last reviewed: December 2026. “Free” here means free to read online or download from an official source at the time of review. Many of these books are also sold in print; buying a copy is a nice way to support the authors.
Table of Contents
- How to Use This List
- What Counts as Legally Free
- Suggested Reading Paths
- Level 0: Prerequisites
- Level 1: Beginner
- Level 2: Intermediate
- Core Machine Learning Textbooks
- Deep Learning Textbooks
- Natural Language Processing and LLMs
- Computer Vision
- Reinforcement Learning
- Bayesian and Probabilistic Machine Learning
- Causal Inference
- Time Series and Forecasting
- Interpretability, Fairness and AI Safety
- ML Engineering and Systems
- Classic AI (Search, Planning, Agents)
- Level 3: Advanced
- Level 4: Research Monographs and Theory of Deep Learning
- Interview Preparation
- How to Read a Technical Book Without Giving Up
- Contributing
- License
- Credits
How to Use This List
- Levels are about prerequisites, not quality. Level 1 books assume you can program a little and remember high school algebra. Level 2 assumes comfort with linear algebra, probability and Python. Level 3 and 4 assume a solid undergraduate math background.
- Each entry has a format tag:
HTML(read in the browser),PDF,Notebooks(Jupyter notebooks you can run), orarXiv(a free PDF on arXiv). - Language tags show the main code language where relevant:
Python,R,Julia. - You do not need to read every book. Pick one book per topic, finish it, do the exercises, then move on. Two finished books teach more than ten half-read ones.
Entry format:
[Title](link) - Authors. Tags. What it is good for.
What Counts as Legally Free
A book is listed only if at least one of these is true:
- The author or publisher hosts the full text for free on an official site (for example the book’s own website or the author’s university page).
- The book is published under an open license (for example Creative Commons) or as an open-access edition.
- The full text is posted by the authors on arXiv.
- It is a public-domain work hosted by a reputable archive such as Project Gutenberg.
Not listed: books that only offer a free sample chapter, books behind a free trial, and “free PDF” uploads by third parties. If a link here ever points to an unofficial copy, please open an issue.
Suggested Reading Paths
Path A: Software developer to ML engineer (about 6 months)
- Python Data Science Handbook (data tools)
- An Introduction to Statistical Learning, Python edition (classic ML)
- Dive into Deep Learning or Deep Learning with Python (deep learning, hands-on)
- Machine Learning Systems (deploying and operating ML)
- Foundations of Large Language Models (LLMs)
Path B: Math-first, aiming for research (about 12 months)
- Mathematics for Machine Learning
- Introduction to Probability (Blitzstein and Hwang)
- Pattern Recognition and Machine Learning or Probabilistic Machine Learning: An Introduction
- Understanding Deep Learning
- Understanding Machine Learning: From Theory to Algorithms or Learning Theory from First Principles
Path C: Data analyst to data scientist (about 4 months)
- R for Data Science or Python for Data Analysis
- Introduction to Modern Statistics
- An Introduction to Statistical Learning
- Forecasting: Principles and Practice
- Causal Inference for the Brave and True
Path D: LLM and generative AI engineer (about 4 months)
- Neural Networks and Deep Learning (Nielsen), for intuition
- Understanding Deep Learning, chapters on transformers and diffusion
- Speech and Language Processing, chapters on transformers and LLMs
- Foundations of Large Language Models
- Reinforcement Learning from Human Feedback (Lambert)
- The Ultra-Scale Playbook and How to Scale Your Model
Level 0: Prerequisites
Programming for Data and ML
- Think Python, 3rd edition - Allen B. Downey. HTML, Notebooks, Python. A gentle first programming book that teaches thinking like a programmer, with runnable notebooks for every chapter.
- Green Tea Press - Allen B. Downey. HTML, PDF. The author’s home for his free books, including the Think Stats and Think Bayes titles listed below.
- Python Data Science Handbook - Jake VanderPlas. HTML, Notebooks, Python. NumPy, pandas, Matplotlib and scikit-learn in one book; still the fastest way to get fluent with the scientific Python stack.
- Python for Data Analysis, 3rd edition - Wes McKinney. HTML, Python. The open-access edition of the pandas creator’s book: data cleaning, reshaping, grouping and time series in depth.
- Data Science at the Command Line, 2nd edition - Jeroen Janssens. HTML. Using shell tools to obtain, scrub and explore data; great for anyone who works with logs or CSV files.
- Mathematics for Computer Science - Eric Lehman, F. Thomson Leighton, Albert R. Meyer. PDF on MIT OpenCourseWare. Proofs, discrete math, counting and discrete probability; useful if you never took a proofs course.
Math Refreshers
- Book of Proof - Richard Hammack. PDF. How to read and write proofs. Makes every theory-heavy book on this list less painful.
- Calculus Made Easy - Silvanus P. Thompson. Public domain, Project Gutenberg. A famously friendly calculus introduction from 1910 that still works for building intuition about derivatives.
- Active Calculus - Matthew Boelkins and contributors. HTML, PDF. An open textbook built around activities; good for relearning single-variable and multivariable calculus.
- Calculus Volume 1 (OpenStax) - Gilbert Strang, Edwin “Jed” Herman and contributors. HTML, PDF. A complete open college calculus text; Volumes 2 and 3 cover series and multivariable calculus.
- Immersive Linear Algebra - J. Ström, K. Åström, T. Akenine-Möller. HTML. A linear algebra book with interactive figures you can drag around.
Level 1: Beginner
First Machine Learning Books
- An Introduction to Statistical Learning (ISL) - Gareth James, Daniela Witten, Trevor Hastie, Robert Tibshirani (Python edition adds Jonathan Taylor). PDF, R and Python. The standard first textbook for classic ML: regression, classification, resampling, trees, SVMs, clustering and an intro to deep learning, with labs.
- A Course in Machine Learning - Hal Daumé III. PDF. Short, clear chapters on the core ideas (decision trees, perceptron, linear models, bias and fairness) written for undergraduates.
- Machine Learning from Scratch - Danny Friedman. HTML, Python. Derives common models step by step and implements them with NumPy before showing the library version.
- Hands-On Machine Learning with R - Bradley Boehmke, Brandon Greenwell. HTML, R. A practical tour from feature engineering through gradient boosting and deep learning, all in R.
- Tidy Modeling with R - Max Kuhn, Julia Silge. HTML, R. How to build, evaluate and tune models properly with the tidymodels framework; strong on resampling and avoiding leakage.
- Feature Engineering and Selection - Max Kuhn, Kjell Johnson. HTML. A practical guide to turning raw data into useful predictors, with many worked examples.
First Deep Learning Books
- Neural Networks and Deep Learning - Michael Nielsen. HTML, Python. Builds a digit classifier from scratch and explains backpropagation with unusual clarity. The best “why does this work” introduction.
- The Little Book of Deep Learning - François Fleuret. PDF. A compact (phone-sized) overview of modern deep learning, from the basics to transformers and generative models, in a small, short format.
- Deep Learning with Python, 3rd edition - François Chollet, Matthew Watson. HTML, Python. The official free online edition of the Keras creator’s practical deep learning book, covering vision, text, generative models and LLMs.
- Deep Learning for Coders with fastai and PyTorch (fastbook) - Jeremy Howard, Sylvain Gugger. Notebooks, Python. The full book as Jupyter notebooks; top-down, code-first, paired with the free fast.ai course.
- The Matrix Calculus You Need for Deep Learning - Terence Parr, Jeremy Howard. HTML. Exactly the derivatives you need to understand backpropagation, explained without hand-waving.
- The Mechanics of Machine Learning - Terence Parr, Jeremy Howard. HTML, Python. A practical, in-progress book focused on random forests, data cleaning and feature engineering.
Data Science with Python and R
- R for Data Science, 2nd edition - Hadley Wickham, Mine Çetinkaya-Rundel, Garrett Grolemund. HTML, R. Importing, tidying, transforming and visualizing data with the tidyverse.
- Text Mining with R - Julia Silge, David Robinson. HTML, R. Tidy approaches to word frequencies, sentiment and topic modeling.
- Supervised Machine Learning for Text Analysis in R - Emil Hvitfeldt, Julia Silge. HTML, R. Preprocessing text and building classical and deep models for text.
- Natural Language Processing with Python (NLTK book) - Steven Bird, Ewan Klein, Edward Loper. HTML, Python. The classic hands-on introduction to text processing; good grounding before you jump to transformers.
- Mining of Massive Datasets - Jure Leskovec, Anand Rajaraman, Jeffrey D. Ullman. PDF. Algorithms for big data: MapReduce, similarity search, streams, link analysis, recommendation systems.
Probability and Statistics
- Introduction to Probability - Joseph K. Blitzstein, Jessica Hwang. PDF. The textbook behind Harvard’s Stat 110: intuitive, story-driven probability with excellent problems.
- Introduction to Probability (Grinstead and Snell) - Charles M. Grinstead, J. Laurie Snell. PDF. A classic, clear undergraduate probability text, freely redistributable.
- Introduction to Probability for Data Science - Stanley H. Chan. PDF. Probability taught with data science and ML applications in mind, with Python examples.
- OpenIntro Statistics - David Diez, Mine Çetinkaya-Rundel, Christopher Barr. PDF. An open introductory statistics text focused on inference.
- Introduction to Modern Statistics - Mine Çetinkaya-Rundel, Johanna Hardin. HTML. A modern intro emphasizing data, simulation-based inference and regression.
- Introductory Statistics, 2nd edition (OpenStax) - OpenStax. HTML, PDF. A standard one-semester statistics course book.
- Think Stats, 3rd edition - Allen B. Downey. HTML, Notebooks, Python. Exploratory data analysis and statistics with Python, learning by computing rather than by formulas.
- Think Bayes, 2nd edition - Allen B. Downey. HTML, Notebooks, Python. Bayesian statistics through code and simulation.
- Seeing Theory - Daniel Kunin and contributors (Brown University). HTML. Not a textbook, but a visual introduction to probability and statistics that pairs well with any book above.
Linear Algebra and Calculus for ML
- Mathematics for Machine Learning - Marc Peter Deisenroth, A. Aldo Faisal, Cheng Soon Ong. PDF. Linear algebra, analytic geometry, matrix decompositions, vector calculus, probability and optimization, then four ML applications. The most common “math for ML” recommendation for good reason.
- Introduction to Applied Linear Algebra (VMLS) - Stephen Boyd, Lieven Vandenberghe. PDF, with Julia and Python companions. Vectors, matrices and least squares, taught through applications such as regression and classification.
- Linear Algebra - Jim Hefferon. PDF. A free, proof-based first course with many exercises and answers.
- Interactive Linear Algebra - Dan Margalit, Joseph Rabinoff. HTML. A computational first course with interactive demos.
- The Matrix Cookbook - Kaare Brandt Petersen, Michael Syskind Pedersen. PDF. A reference of matrix identities and derivatives; keep it open while reading ML papers.
Level 2: Intermediate
Core Machine Learning Textbooks
- Pattern Recognition and Machine Learning - Christopher M. Bishop. PDF. The classic probabilistic view of ML: Bayesian linear models, kernels, graphical models, mixture models and EM, approximate inference.
- Probabilistic Machine Learning: An Introduction - Kevin P. Murphy. PDF, Python notebooks. A broad, modern textbook covering foundations, linear models, deep networks, nonparametric methods and unsupervised learning.
- The Elements of Statistical Learning (ESL) - Trevor Hastie, Robert Tibshirani, Jerome Friedman. PDF. The more mathematical big sibling of ISL; the reference for boosting, trees, lasso and model assessment.
- Patterns, Predictions, and Actions - Moritz Hardt, Benjamin Recht. HTML, PDF. A modern graduate introduction that connects prediction to datasets, causality and decision making.
- Data Mining and Machine Learning: Fundamental Concepts and Algorithms, 2nd edition - Mohammed J. Zaki, Wagner Meira Jr. HTML online edition. Clustering, frequent patterns, classification and regression with careful math.
- Information Theory, Inference, and Learning Algorithms - David J. C. MacKay. PDF. A unique, entertaining book that ties together information theory, Bayesian inference and neural networks.
- Computer Age Statistical Inference - Bradley Efron, Trevor Hastie. PDF. How statistics changed with computers: bootstrap, empirical Bayes, large-scale testing and the links to ML.
- Statistical Learning with Sparsity - Trevor Hastie, Robert Tibshirani, Martin Wainwright. PDF. The lasso and its generalizations in depth.
Deep Learning Textbooks
- Understanding Deep Learning - Simon J. D. Prince. PDF, Notebooks, Python. A modern, beautifully illustrated textbook covering networks, training, transformers, GANs, normalizing flows, VAEs, diffusion and RL, with notebooks for each chapter.
- Dive into Deep Learning (D2L) - Aston Zhang, Zachary C. Lipton, Mu Li, Alexander J. Smola. HTML, Notebooks, Python (PyTorch, JAX, TensorFlow, MXNet). An interactive book where every concept comes with runnable code.
- Deep Learning: Foundations and Concepts - Christopher M. Bishop, Hugh Bishop. HTML (free online version). A rigorous, up-to-date textbook from the author of PRML, covering transformers and diffusion.
- Deep Learning - Ian Goodfellow, Yoshua Bengio, Aaron Courville. HTML. The 2016 classic; its math background and regularization and optimization chapters are still excellent, though it predates transformers.
- Alice’s Adventures in a Differentiable Wonderland, Volume I - Simone Scardapane. arXiv. A friendly but precise tour of differentiable programming, from automatic differentiation to transformers and graph networks.
- A Primer on Neural Network Models for Natural Language Processing - Yoav Goldberg. arXiv. A concise tutorial on neural networks for text from the pre-transformer era; good for understanding embeddings and RNNs.
Natural Language Processing and LLMs
- Speech and Language Processing, 3rd edition draft - Daniel Jurafsky, James H. Martin. PDF. The most widely used NLP textbook, continuously updated; includes chapters on transformers, LLMs, prompting, retrieval and speech.
- Foundations of Large Language Models - Tong Xiao, Jingbo Zhu. arXiv. A book-length introduction to pre-training, generative models, prompting, alignment and inference for LLMs.
- Introduction to Information Retrieval - Christopher D. Manning, Prabhakar Raghavan, Hinrich Schütze. HTML, PDF. Indexing, ranking and evaluation; the foundation underneath search and retrieval-augmented generation (RAG).
- Reinforcement Learning from Human Feedback - Nathan Lambert. HTML. A practical book on post-training LLMs: reward models, preference data, RLHF and related alignment methods.
- GenAI Handbook - William Brown. HTML. A structured reading guide through the best free blog posts, papers and videos on generative AI, organized like a textbook.
- Formal Algorithms for Transformers - Mary Phuong, Marcus Hutter. arXiv. Precise pseudocode for transformer architectures, training and inference; perfect when you want exact definitions.
Computer Vision
- Computer Vision: Algorithms and Applications, 2nd edition - Richard Szeliski. PDF. A comprehensive reference spanning classic geometry and modern deep learning methods.
- Foundations of Computer Vision - Antonio Torralba, Phillip Isola, William T. Freeman. HTML. A modern textbook from MIT that connects image formation, signal processing, learning and generative models.
- A Cookbook of Self-Supervised Learning - Randall Balestriero, Yann LeCun and co-authors. arXiv. A practical guide to the families of self-supervised methods and the tricks needed to train them.
Reinforcement Learning
- Reinforcement Learning: An Introduction, 2nd edition - Richard S. Sutton, Andrew G. Barto. PDF. The foundational RL textbook: bandits, MDPs, dynamic programming, Monte Carlo, temporal-difference learning and policy gradients.
- Mathematical Foundations of Reinforcement Learning - Shiyu Zhao. PDF on GitHub. A carefully paced, math-first path from Bellman equations to actor-critic methods, with accompanying lecture videos.
- Algorithms for Decision Making - Mykel J. Kochenderfer, Tim A. Wheeler, Kyle H. Wray. PDF, Julia. Probabilistic reasoning, sequential decisions, model uncertainty, state uncertainty and multi-agent systems.
- Spinning Up in Deep RL - OpenAI. HTML, Python. An educational resource (not a book) with a clean introduction to RL concepts and simple implementations of key algorithms.
Bayesian and Probabilistic Machine Learning
- Bayesian Reasoning and Machine Learning - David Barber. PDF. Graphical models, inference and learning, with many exercises.
- Model-Based Machine Learning - John Winn, with Christopher M. Bishop and others. HTML. Learn probabilistic modeling through real case studies, designing a model for each problem.
- Bayesian Data Analysis, 3rd edition - Andrew Gelman, John B. Carlin, Hal S. Stern, David B. Dunson, Aki Vehtari, Donald B. Rubin. PDF for non-commercial use. The standard applied Bayesian statistics reference.
- Bayes Rules! - Alicia A. Johnson, Miles Q. Ott, Mine Dogucu. HTML, R. An approachable introduction to applied Bayesian modeling.
- Probabilistic Programming and Bayesian Methods for Hackers - Cameron Davidson-Pilon. Notebooks, Python. Bayesian methods taught computation-first with PyMC.
- Gaussian Processes for Machine Learning - Carl Edward Rasmussen, Christopher K. I. Williams. PDF. The definitive GP text, still the reference for Bayesian optimization and kernel methods.
Causal Inference
- Causal Inference: What If - Miguel A. Hernán, James M. Robins. PDF. Rigorous yet readable treatment of causal questions from observational data.
- Causal Inference: The Mixtape - Scott Cunningham. HTML, R, Stata, Python. Causal inference for social science: DAGs, matching, regression discontinuity, instrumental variables, difference-in-differences.
- Causal Inference for the Brave and True - Matheus Facure. HTML, Python. Practical, humorous causal inference for industry data scientists.
Time Series and Forecasting
- Forecasting: Principles and Practice, 3rd edition - Rob J Hyndman, George Athanasopoulos. HTML, R. The go-to practical forecasting book: decomposition, exponential smoothing, ARIMA, evaluation.
Interpretability, Fairness and AI Safety
- Interpretable Machine Learning - Christoph Molnar. HTML. Interpretable models plus model-agnostic methods such as permutation importance, partial dependence, LIME and SHAP.
- Fairness and Machine Learning: Limitations and Opportunities - Solon Barocas, Moritz Hardt, Arvind Narayanan. HTML, PDF. What fairness means for automated decisions, and what statistical criteria can and cannot do.
- AI Safety, Ethics, and Society - Dan Hendrycks. HTML, PDF. An introduction to risks from advanced AI, safety engineering, governance and ethics.
ML Engineering and Systems
- Machine Learning Systems - Vijay Janapa Reddi and contributors. HTML, PDF. An open textbook on the engineering of ML systems: data pipelines, training, efficient inference, deployment, operations and responsible AI.
- Rules of Machine Learning - Martin Zinkevich (Google). HTML. A short guide of hard-won engineering lessons for shipping ML products.
- Deep Learning Tuning Playbook - Varun Godbole, George E. Dahl, Justin Gilmer, Christopher J. Shallue, Zachary Nado. Markdown on GitHub. A systematic process for tuning deep learning hyperparameters.
- Machine Learning Engineering Open Book - Stas Bekman. Markdown on GitHub. Field notes on training large models: hardware, networking, storage, debugging and fault tolerance.
Classic AI (Search, Planning, Agents)
- Artificial Intelligence: Foundations of Computational Agents, 3rd edition - David L. Poole, Alan K. Mackworth. HTML, Python. A full AI textbook (search, reasoning, planning, learning, multi-agent systems) with Python code.
- Planning Algorithms - Steven M. LaValle. HTML, PDF. Motion planning and decision-theoretic planning, used widely in robotics.
Level 3: Advanced
Learning Theory
- Understanding Machine Learning: From Theory to Algorithms - Shai Shalev-Shwartz, Shai Ben-David. PDF. PAC learning, VC dimension, regularization and stability, then the algorithms that follow.
- Foundations of Machine Learning, 2nd edition - Mehryar Mohri, Afshin Rostamizadeh, Ameet Talwalkar. PDF, HTML. A theory-first graduate text: Rademacher complexity, kernels, boosting, online learning.
- Learning Theory from First Principles - Francis Bach. PDF. A modern, self-contained treatment covering kernels, neural networks, optimization and generalization.
- Probabilistic Machine Learning: Advanced Topics - Kevin P. Murphy. PDF. Inference, generative models, causality and decision making at research depth.
Optimization
- Convex Optimization - Stephen Boyd, Lieven Vandenberghe. PDF. The standard text on convex sets, functions, duality and algorithms.
- Algorithms for Optimization - Mykel J. Kochenderfer, Tim A. Wheeler. PDF, Julia. A practical tour of derivative-based, stochastic, population and surrogate methods.
- Convex Optimization: Algorithms and Complexity - Sébastien Bubeck. arXiv. A compact monograph on the complexity of first-order methods.
- Introduction to Online Convex Optimization - Elad Hazan. arXiv. Regret, online gradient descent and the connections to boosting and bandits.
- The Elements of Differentiable Programming - Mathieu Blondel, Vincent Roulet. arXiv. Automatic differentiation, differentiable programs and smoothing, written for ML researchers.
- Matrix Calculus (for Machine Learning and Beyond) - Paige Bright, Alan Edelman, Steven G. Johnson. arXiv. MIT course notes that treat derivatives as linear operators, which makes gradients of matrix functions much easier.
Generative Models and Diffusion
- Step-by-Step Diffusion: An Elementary Tutorial - Preetum Nakkiran, Arwen Bradley, Hattie Zhou, Madhu Advani. arXiv. The shortest rigorous path into diffusion models and flow matching.
- Tutorial on Diffusion Models for Imaging and Vision - Stanley H. Chan. arXiv. A tutorial that derives VAEs, DDPM, score matching and SDE views carefully.
- The Principles of Diffusion Models - Chieh-Hsin Lai, Yang Song, Dongjun Kim, Yuki Mitsufuji, Stefano Ermon. arXiv. A book-length monograph unifying the variational, score-based and flow-based perspectives.
Training and Scaling LLMs
- How to Scale Your Model - Jacob Austin and co-authors (Google DeepMind). HTML. How TPUs and GPUs work, and how to reason about parallelism, memory and throughput when training and serving LLMs.
- The Ultra-Scale Playbook - Hugging Face. HTML. Data, tensor, pipeline and context parallelism and ZeRO explained with experiments on real clusters.
- The Smol Training Playbook - Hugging Face. HTML. An end-to-end account of training a small LLM: ablations, data mixtures, architecture choices and post-training.
Advanced Reinforcement Learning
- Reinforcement Learning: Theory and Algorithms - Alekh Agarwal, Nan Jiang, Sham M. Kakade, Wen Sun. PDF. Sample complexity, exploration and policy optimization from a theory perspective.
- Bandit Algorithms - Tor Lattimore, Csaba Szepesvári. PDF. The comprehensive reference on multi-armed bandits.
- Distributional Reinforcement Learning - Marc G. Bellemare, Will Dabney, Mark Rowland. PDF. Learning the full distribution of returns rather than just the mean.
Graph and Geometric Deep Learning
- Graph Representation Learning - William L. Hamilton. PDF. Node embeddings, graph neural networks and generative graph models.
- Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gauges - Michael M. Bronstein, Joan Bruna, Taco Cohen, Petar Veličković. PDF (proto-book). A unifying view of architectures through symmetry and invariance.
Robotics
- Modern Robotics: Mechanics, Planning, and Control - Kevin M. Lynch, Frank C. Park. PDF, with videos. Kinematics, dynamics, planning and control.
- Underactuated Robotics - Russ Tedrake. HTML, Python notebooks. Nonlinear dynamics and control for walking, flying and swimming robots, including learning-based control.
- Robotic Manipulation - Russ Tedrake. HTML, Python notebooks. Perception, planning and control for robot arms, including learned policies.
- Introduction to Autonomous Robots - Nikolaus Correll and co-authors. PDF and LaTeX source on GitHub, open license. Locomotion, sensing, localization and mapping.
Scientific Machine Learning
- Deep Learning for Molecules and Materials - Andrew D. White. HTML, Notebooks. Deep learning applied to chemistry and materials, with runnable examples.
- Physics-based Deep Learning - Nils Thuerey and co-authors. HTML, Notebooks. Combining neural networks with physical simulation and differentiable solvers.
Level 4: Research Monographs and Theory of Deep Learning
- The Principles of Deep Learning Theory - Daniel A. Roberts, Sho Yaida, Boris Hanin. arXiv. An effective theory approach to wide neural networks borrowed from physics.
- The Modern Mathematics of Deep Learning - Julius Berner, Philipp Grohs, Gitta Kutyniok, Philipp Petersen. arXiv. A survey-style chapter on expressivity, optimization and generalization of deep networks.
- Deep Learning Theory Lecture Notes - Matus Telgarsky. HTML, PDF. Approximation, optimization and generalization results for neural networks.
- A Mathematical Perspective on Transformers - Borjan Geshkovski, Cyril Letrouit, Yury Polyanskiy, Philippe Rigollet. arXiv. Transformers viewed as interacting particle systems.
Interview Preparation
- Introduction to Machine Learning Interviews Book - Chip Huyen. HTML. How ML interviews work, plus a large bank of questions on math, ML theory and systems.
- Machine Learning Q and AI - Sebastian Raschka. HTML (free to read online). Short, focused answers to 30 intermediate questions about deep learning, LLMs, evaluation and deployment.
How to Read a Technical Book Without Giving Up
- Read the table of contents and the preface first. Authors usually say which chapters you can skip.
- Do a fast first pass of each chapter (skim figures, headings and summaries), then a slow second pass with pen and paper.
- Re-derive one key result per chapter by hand. If the book has code, re-implement one algorithm without looking.
- Do at least three exercises per chapter. Exercises are where understanding is tested.
- Keep a one-page summary per chapter in your own words. These pages become your personal cheat sheet.
- Pair a book with a course that covers the same material, for example ISL with its authors’ lectures, or Sutton and Barto with a university RL course.
- Stop and backfill. If a chapter needs math you do not have, take a week with a Level 0 or Level 1 math book, then return.
Contributing
Pull requests are welcome. Please keep entries accurate:
- Only add books that are legally free from an official source (see What Counts as Legally Free).
- Use the entry format above, link to the official page (not a direct mirror), and write a one-line description in your own words.
- Put the book in the level that matches its prerequisites, and say why in the pull request.
- Report broken links or books that are no longer free by opening an issue.
License
This list is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0). The books themselves belong to their authors and publishers and keep their own licenses.
If this helped you, a star helps others find it.
More free resources
Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.