Volume 1 of this series, Applied AI Under Uncertainty, was about predicting and deciding when the world will not tell you the answer in advance.
Volume 1 of this series, Applied AI Under Uncertainty, was about predicting and deciding when the world will not tell you the answer in advance. This volume, Applied AI for Generation and Control, is about systems that produce things (images, molecules, programs, trajectories) and choose actions (which experiment to run next, which move to try, which controller gain to apply). The tools of Volume 1 do not disappear when you move from prediction to generation. They move into the evaluation and the control loop.
Three of them are used so often in the chapters that follow that this volume would be hard to read without them.
- Proper scoring rules and calibration. A generative model or a verifier emits probabilities, and we need a way to say whether those probabilities are any good. the companion book (evaluating generative models) and the companion book (reinforcement learning with verifiers) lean on this vocabulary, as does any pipeline that thresholds a model’s confidence.
- Conformal prediction. When a surrogate model guides a search or a design loop, a distribution-free interval or set around its output is the cheapest honest statement of what it does not know.
- Off-policy evaluation. When the thing you want to evaluate is a new policy (a sampler, a search strategy, a controller) and the data were collected by an old one, importance weighting is the basic tool, and its failure mode (huge weights) reappears whenever one distribution is reweighted into another.
this article re-implements each of the three in compact form, proves the central result of each, and checks the claims numerically. It is a recap, not a replacement: Volume 1, the companion book gives the full treatment of scoring rules and calibration, the companion book of conformal prediction and risk control, and the companion book of off-policy evaluation, with more datasets and more estimators than fit here. If you have read those chapters you can skim this one and keep it for reference; if you have not, it is meant to be enough to follow the rest of this volume.
A note on data. Volume 1 used several public tabular datasets. To keep every listing runnable anywhere in seconds, this article uses synthetic data generated in the code, with one exception: the 8 by 8 handwritten-digit images bundled with scikit-learn (the UCI optical recognition data of Alpaydin and Kaynak), used in the companion book example as a small stand-in for larger image sets. Everything here is for education and is not professional advice.
Continue with the book
Explore the full treatment, worked examples, and exercises in Applied AI for Generation and Control.
Companion article for Applied AI for Generation and Control, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.
