
AGI Algorithms, Learning and Architectures
By Nick Polson and Vadim Sokolov.
Description
What would it take for a machine to be good at many things and not at one? This book gives a precise answer: the ideal general agent is Bayes rule joined to a Bellman recursion. It keeps a posterior over models of its world and plans against that posterior, and every practical system is an approximation to it. The approximations are the subject of the book, which also summarizes three decades of research by its authors on algorithms, Bayesian computation and optimization.
Many of today’s architectures turn out to be classical statistical estimators at a new scale: attention is a kernel smoother with a learned kernel, a mixture of experts is a gated mixture of regressions, a Kolmogorov GAM network is an additive model on a universal embedding, and a prior fitted network is an amortized posterior. The algorithmic chapters cover shrinkage priors and the horseshoe, proximal algorithms, Pólya Gamma data augmentation, scale mixture EM, optimization by simulation, stochastic gradient Langevin dynamics, variational inference, particle learning and Bayesian optimization. Generative Bayesian computation, which trains a quantile network to map noise and data to posterior draws, is compared with adversarial networks and diffusion models.
Reinforcement learning is developed from the Bellman equation through Q learning and policy gradients to AlphaZero for chess and Go, with complete worked examples of search and self play. Later chapters treat learning from human preferences, verifiable rewards and human verification, recursive self improvement, the artificial general engineer that designs physical products, causal inference, inference with predictions and e values. More than two hundred figures, computed from the Python code printed in the book, illustrate the ideas, and every chapter but the last ends with exercises.
How to cite
Polson and Sokolov (2026), AGI: Algorithms, Learning and Architectures, edition 1, https://doi.org/10.5281/zenodo.24721640.
@book{polsonsokolov2026agi_book,
author = {Polson, Nick and Sokolov, Vadim},
title = {{AGI: Algorithms, Learning and Architectures}},
year = {2026},
publisher = {Independently published},
doi = {10.5281/zenodo.24721640},
url = {https://vsokolov.org/books/agi_book/}
}Main results
- Horseshoe marginal density and two sided bounds (Theorem 6.1, page 47): The horseshoe prior has an exact marginal density in terms of the exponential integral, with logarithmic upper and lower bounds that show a pole at zero and tails decaying like theta to the minus two.
- Pólya Gamma identity for logistic and binomial likelihoods (Theorem 9.3, page 75): A binomial likelihood in the log odds is a mixture of Gaussian kernels over a Pólya Gamma variable, and the mixing variable has a Pólya Gamma conditional law with an explicit mean.
- The check loss identifies the posterior quantile generator (Proposition 17.2, page 137): Among all functions of the data and a uniformly drawn quantile level, the expected check loss is minimized by the posterior quantile function, so with unlimited simulations and a flexible enough network the trained map generates exact posterior draws.
- Checking every step turns exponential work into linear work (Proposition 42.6, page 321): For a long task whose steps fail silently, checking each step reduces the expected work from exponential in the number of steps to linear, and a square root rule gives the best spacing of costly checks.
- Expected gain of self modification with a noisy evaluator and the Bayes acceptance threshold (Proposition 43.4, page 335): When most self modifications are harmful and the evaluation is noisy, accepting whatever looks better can make a system worse on average, while a Bayes threshold always gives a positive expected gain.
All 13 results of the book (13 proved) are on the page Results by chapter, each with its statement, status and number.
License: Text, figures and PDF: CC BY 4.0. Code: MIT.
This page is generated from the book’s repository (main). The numbers and pages are those of the PDF, version 1.0.0.