Machine Learning— From Probability to GPT —
This book teaches the ideas of machine learning as one continuous path, from the first steps of probability to the mechanism of the large language model GPT. For the tasks of machine learning (regression, classification, estimation of probability distributions, latent representations, and generation), we go through the representative methods one by one and check what each assumes, what each optimizes, and what each predicts, using derivations of the equations and numerical examples that can be followed by hand.
The intended readers are undergraduates specializing in materials engineering, students who are starting to use machine learning in a laboratory, researchers studying on their own, and general readers who want to fill in the mathematics as they read. The only prerequisites are the elementary calculus, linear algebra, and probability of high school through the first year of university; no statistical mechanics is assumed. Missing mathematics can be supplemented by the companion volume “University Mathematics,” and the relation to statistical mechanics by the links to the relevant sections of Part VII of “Introductory University Physics.”
The chapters begin with probability and estimation (Part I), then go through the foundations that make learning work (Part II), regression, classification, kernel methods, Gaussian processes, and Bayesian optimization (Part III), neural networks (Part IV), latent variables and graphical models (Part V), and approximate inference and sampling (Part VI), and arrive at attention, the Transformer, and GPT by way of sequence data (Part VII). Finally, we place connections to materials science and statistical mechanics, and a comprehensive exercise in materials search (Part VIII). Every chapter has a section that relates a concrete problem in materials to the equations of the text, and a section on common misconceptions and limits of applicability.
The main reference book is Pattern Recognition and Machine Learning (2006) by C. M. Bishop, but this book is neither a translation nor a summary of it. The course of the explanations, the figures, the examples, the exercises, and the numbers are all original, and the original papers and textbooks consulted in each chapter are listed at the end of that chapter.
- Introductory route: a way of reading that grasps the mechanisms from machine learning to generative AI as quickly as possible. At the beginning of each chapter we list the “sections for the introductory route” (this table of contents also lists them for each chapter). The book is written so that, if you read only those sections, the prerequisites remain unbroken from Chapter 1 through Chapter 26 (GPT). The backbone chapters are 1 → 2 → 3 → 4 → 5 → 6 → 7 → 8 → 9 → 13 (13.1–13.3, the idea of Bayesian optimization) → 14 → 15 → 22 → 23 → 24 → 25 → 26. For the chapters outside the backbone (Chapters 10–12, Chapters 16–21, and Chapters 27 and 28), on the introductory route it is enough to look through the summary section at the end of the chapter, and you may go on to the next backbone chapter as the guide at the beginning of each chapter says.
- Detailed route: read all the sections, following the equations through estimation, inference, and materials search. Sections that are not part of the introductory route carry a “Detailed Route” badge to the right of the heading.
- In the backbone chapters, on either route, please read the “Summary and Link to the Next Chapter” and the exercises at the end of each chapter (questions based on sections of the detailed route may be postponed on the introductory route). The solutions to the exercises are in Appendix C.
- Many chapters embed a simulator that runs inside the browser. The boxes in the text give the operating steps, the points to observe, the corresponding equation numbers, and questions to consider after operating, so please try them by hand while comparing the equations with the computed results. If you want to use one on a larger screen, you can open it with “Open in a separate window at full size.”
- The random numbers in the simulators can be reproduced by specifying the seed. What is computed, the range of the inputs, and the simplifications made are summarized in Appendix D.
- Most of the data used in the figures, examples, and simulators are synthetic data for teaching purposes, for which the generating equation and the random-number seed are stated explicitly (for example, “firing temperature and relative density,” “band gap of a hypothetical mixed crystal,” and “dopant amount and ionic conductivity”). They are not measured values of a real material.
- Symbols and terms can be looked up in Appendix B. Supplements to the mathematics used in the text, such as matrix derivatives and the singular value decomposition, are in Appendix A.
List of Simulators
This is a list of the simulators embedded in the “Simulator” boxes of the main text. All of them compute only inside the browser and do not communicate with the outside. Random numbers can be reproduced by specifying a seed. The formulas used, the ranges of the inputs, the simplifications, and the methods by which the numerical values were checked are collected in Appendix D. Each simulator is divided into two pages: a simulator page and an explanation page. The simulator page has a “Simple view,” which lets you grasp what is happening through pictures and motion, and a “Detailed view,” which corresponds to the operating procedures in the boxes of the main text (the view embedded in the main text is the detailed view). The explanation page collects the correspondence between the words on the screen and the technical terms, the formulas and procedures being computed, the operating procedures, the conditions of the calculation, and questions for checking.
Main reference books
- C. M. Bishop, Pattern Recognition and Machine Learning, Springer (2006).
- C. E. Rasmussen & C. K. I. Williams, Gaussian Processes for Machine Learning, MIT Press (2006).
This book is neither a translation nor a summary of these books. The flow of the explanations, the figures, the examples, the exercises, and the numerical values were all created independently. The references consulted in each chapter are listed at the end of that chapter.
Mochizuki Research Group, Department of Materials Science and Technology, Faculty of Advanced Engineering, Tokyo University of Science — Advanced Resources AD 04
← Back to Educational Resources