Evaluating generated scientific candidates before an experiment

← Back to Blog & Articles

A chemist or materials scientist who wants a molecule or a crystal with a target property faces a search problem with an unusual cost structure.

The space of candidates is astronomically large. The property of interest, say a binding strength, a conductivity or a stability, is measured by a laboratory process that takes days and consumes money, or computed by a simulation that takes hours of a cluster. A budget of tens to hundreds of measurements is not unusual. Everything else about the problem is cheap by comparison: proposing a candidate costs nothing, and a rough prediction of its property costs almost nothing.

Three tools from earlier chapters fit this shape. A generative model (the companion book) turns the cheap part, proposing candidates, into a distribution concentrated on plausible structures. A surrogate model with calibrated uncertainty (Chapters 0 and 3) turns a handful of expensive measurements into a cheap prediction with a reliable error bar. An acquisition rule (the companion book) spends the budget where a measurement is expected to help the most, subject to constraints and in batches, because laboratories run experiments in parallel. this article assembles the three into one loop and then tries to break it. The structure of the companion book follows the usual eight parts: the problem, a formal model, the derivations behind each component, an implementation, a worked run, an evaluation against baselines, failure modes and exercises.

A second family of scientific problems has a different shape: the physics is known as a partial differential equation, and what is expensive is solving it repeatedly or in awkward geometries. Physics-informed neural networks are one way to use a network as a solver. the companion book example builds one for the heat equation, derives what is guaranteed about its error, and compares it with a classical finite-difference scheme. The comparison is deliberately even-handed, and the classical method does at least as well on this problem.

Three limits come first. The data are synthetic. The standard public benchmark of small molecules with computed properties (QM9; Ramakrishnan et al., 2014) cannot be downloaded in the offline setting these listings are written for, so the “molecules” here are clouds of six identical points in space (“fragments”) with a hidden Morse pair energy (Morse, 1929) and a hidden property that is a function of the geometry. Everything the companion book says about symmetry, calibration, acquisition and failure is a statement about that toy world, and the numbers in the listings are not chemistry. The models are small stand-ins that run in a minute or two on one CPU core with NumPy: a message-passing denoiser with 5,152 parameters, ensembles of two-layer networks, and Gaussian processes from the companion book. this article is educational and is not professional advice. A real discovery program needs a chemist or materials scientist to review the problem framing (what is the property, what is a feasible candidate, what does the oracle fail to capture), the validity rules (the geometric checks in the companion book example are crude teaching rules, not chemical knowledge), and the synthesis and safety implications of anything proposed. Nothing here makes a claim about any real compound, and no output of these programs should be read as a safety statement.

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.

Scroll to Top