Exploring validation metrics for offline model-based optimisation with diffusion models

Christopher Beckham, Alexandre Piché, David Vázquez, Christopher Pal

Abstract

Offline model-based optimization (MBO) aims to discover high-reward designs from static datasets without the luxury of expensive real-world testing. This paper investigates the use of Denoising Diffusion Probabilistic Models (DDPMs) for MBO and addresses the critical challenge of validation. By evaluating several "cheap" validation metrics against ground-truth oracles, the authors identify "Agreement" and "Fréchet Distance" as the most reliable predictors of a model's ability to generate high-performing, out-of-distribution designs.

Introduction

Model-Based Optimization (MBO) involves finding an input $x$ (such as a protein sequence or robot morphology) that maximizes a reward $y$. In practical applications like drug discovery or engineering, calculating $y$ is prohibitively expensive, requiring wet-lab experiments or complex simulations.

In the offline MBO setting, we are restricted to a static dataset of previous experiments. The goal is to train a generative model to "extrapolate"—to find designs superior to any seen during training. A major hurdle is validation: standard machine learning techniques validate on data from the training distribution, but MBO requires moving beyond it. Without reliable validation metrics, models may exploit proxy weaknesses, leading to "adversarial" designs that appear high-performing but fail in reality.

The proposed framework distinguishes between research settings where ground truth oracles are known and real-world applications where they are absent, necessitating knowledge transfer of validation metrics.

Methods

The authors focus on Denoising Diffusion Probabilistic Models (DDPMs), exploring both classifier-based and classifier-free guidance to steer generation toward high rewards. They propose an evaluation framework that intentionally splits datasets by a reward threshold $\gamma$, training on "low-reward" data and validating on "high-reward" data to simulate the need for extrapolation.

Five validation metrics were tested for their correlation with true (expensive) oracles:

  1. $M_{C-DSM}$: A proxy for data likelihood.
  2. $M_{reward}$: Mean reward via a learned proxy oracle.
  3. $M_{Agr}$ (Agreement): Measures how well the model’s generated $x$ matches the target reward $y$ it was conditioned to produce.
  4. $M_{FD}$ (Fréchet Distance): Measures the semantic distance between the distribution of generated samples and the validation set.
  5. $M_{DC}$ (Density and Coverage): A manifold-based approach to measure the precision and recall of generated designs.
The optimization pipeline involves training on $\mathcal{D}_{train}$, extrapolating via diffusion ($p_{\theta, \gamma}$), and validating using the proposed metrics before final generation and scoring.

Experimental Results

The study utilized the Design Bench framework, covering tasks such as Ant and D’Kitty Morphology, Superconductor design, and Hopper robotics. Key findings include:

  • The "Agreement" Advantage: $M_{Agr}$ was the most consistent winner across tasks. High agreement suggests the model has truly captured the relationship between form and function, rather than just memorizing training samples.
  • Likelihood is a Lie: The $M_{C-DSM}$ metric performed poorly. This confirms that a model that perfectly fits the training data is not necessarily good at inventing novel, high-performing designs.
  • The Quality-Diversity Trade-off: The guidance hyperparameter $w$ acts as a "master knob." High $w$ leads to high-quality but repetitive samples, while low $w$ produces diverse but low-quality designs. Finding the optimal balance is essential.
  • Competitive Performance: Diffusion models achieved state-of-the-art results, notably a 100th percentile reward of 0.972 on the D’Kitty Morphology task, outperforming previous baselines like COMs and MINs.

Discussion and Conclusion

While classifier-free guidance showed strong performance, the authors recommend classifier-based guidance for real-world applications because the classifier can be updated as new data arrives without retraining the entire generative model.

Limitations of this work include the focus on continuous Gaussian diffusion; many MBO problems in biology and chemistry are discrete. Future research should explore discrete or latent diffusion models and address the computational cost of diffusion sampling to speed up the design iteration loop. Overall, this work provides a rigorous foundation for selecting validation metrics that accurately reflect real-world performance in offline MBO.

Summary updated

BibTeX
@article{beckham2024exploring,
  author = {Christopher Beckham and Alexandre Piché and David Vázquez and Christopher Pal},
  title = {{Exploring validation metrics for offline model-based optimisation with diffusion models}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2024},
}
Figure