English

Sample-Efficient Optimisation over the Outputs of Generative Models

Machine Learning 2026-05-14 v3 Machine Learning

Abstract

Modern generative AI models, such as diffusion and flow matching models, can sample from rich data distributions. However, many applications, especially in science and engineering, require more than drawing samples from the model distribution: they require searching within this distribution for samples that optimise task-specific criteria. In this work, we propose O3 (Optimisation Over the Outputs of Generative Models), a method for sample-efficient black-box optimisation over continuous-variable diffusion and flow-matching models. O3 is built around surrogate latent spaces: low-dimensional Euclidean embeddings that can be extracted from a generative model without additional training. The resulting representations have controllable dimensionality and support the direct application of standard optimisation algorithms. We show, on image and protein design tasks, that surrogate-space optimisation finds substantially higher-scoring samples than standard sampling or optimisation in the original latent space. Our method is model- and optimiser-agnostic, incurs negligible additional cost over standard generation, and requires no retraining or fine-tuning of the generative model.

Keywords

Cite

@article{arxiv.2509.23800,
  title  = {Sample-Efficient Optimisation over the Outputs of Generative Models},
  author = {Samuel Willis and Paul Duckworth and Jack Simons and Aleksandra Kalisz and Krisztina Sinkovics and Noam Ghenassia and Shikha Surana and Henry T. Oldroyd and Alexandru I. Stere and Dragos D Margineantu and Carl Henrik Ek and Henry Moss and Erik Bodin},
  journal= {arXiv preprint arXiv:2509.23800},
  year   = {2026}
}
R2 v1 2026-07-01T06:02:24.291Z