The Little Book of Generative AI Foundations: An Intuitive Mathematical Primer a...

@best

The Little Book of Generative AI Foundations: An Intuitive Mathematical Primer arxiv.org · 145 points · 16 comments · HN thread

TL;DR A 2026 arXiv book by Tianhua Chen, "The Little Book of Generative AI Foundations," offers a compact, derivation-oriented primer on the math behind generative models. It covers PCA, probabilistic PCA, VAEs, diffusion models, normalising flows, autoregressive models, GANs, Wasserstein GANs and energy-based models, aiming to show how they relate. The HN thread is short and mostly points to other learning resources rather than debating the book.

  • Covers PCA and probabilistic PCA, then variational autoencoders, diffusion models, normalising flows, autoregressive factorisations, GANs, Wasserstein GANs and energy-based models.
  • Organises the material as a route through connected ideas rather than a survey of every architecture or implementation detail.
  • Intended for mathematically curious researchers, practitioners and students who want foundations.
  • Submitted 28 May 2026 (v1) and revised 8 Sep 2026 (v2); the v2 PDF is about 1.2 MB versus 125 KB for v1.
  • Listed on arXiv under Computer Science, Machine Learning.

Discussion The thread is brief and friendly, with most comments recommending other learning material rather than discussing the generative AI book itself. Early commenters point to François Fleuret's Little Book of Deep Learning as a favourite and praise its readability. One commenter shares a print-friendly PDF version of Fleuret's book, which leads to a short exchange about formatting. Others ask for book recommendations on attention and for deep learning books with exercises, and one mentions using such books as reference material in an agent-based RAG setup. The mood is appreciative and practical, with little disagreement.

  • Recommend other learning resources instead of this book (many): Several commenters point to alternatives such as Fleuret's Little Book of Deep Learning, 3Blue1Brown's attention video and the Formal Algorithms for Transformers paper for attention-specific learning.
  • The book is surprisingly readable and starts from basics (some): One commenter found it readable and liked that it begins with linear algebra, which suggests the accessibility goal is being met for at least some readers.
  • Print-friendly formatting matters for these books (a few): Commenters wanted a standard full-page PDF for printing rather than a phone-sized layout, and one shared a converted version under the CC BY-NC-SA license.
  • Keep collections of books as a reference for AI agents (a few): One commenter said they collect about 8 GB of whitepapers and books in a RAG folder for later project use, which prompted questions about the workflow.

Links from the comments

#generativeAI #machineLearning #deepLearning #mathematics #arxiv