# ESS-Flow: training-free guidance as Bayesian inference in source space

*Adhithyan Kalaivanan, Zheng Zhao, Jens Sjölund, Fredrik Lindsten*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149338) · [OpenReview](https://openreview.net/forum?id=qokTHEVYpp) · [alphaXiv](https://www.alphaxiv.org/abs/2510.05849) · [Open on the map](../papers.html#p149338)

Category: [AI for Molecules, Materials & Genomics](../pcat/8.md) › [Equivariance and Invariance in Deep Learning](../pgroup/384.md) · Type: new method · Keywords: flow-based generative models, Bayesian inference, source space, Elliptical Slice Sampling, material design, protein structure prediction

Areas: [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Flow Matching and Diffusion › Training-Free Generative Guidance; [AI for Science](../areas/ai-for-science.md) › Molecular Systems Modeling › Equivariant and Invariant Representations

## Summary
ESS-Flow is a training-free guidance method that performs Bayesian inference in the source space using Elliptical Slice Sampling, enabling conditional generation without retraining.

## Explained to a 5-year-old
A computer program can make new things like materials or protein shapes. Sometimes we want those things to have special qualities, like being strong or conducting electricity. Instead of teaching the program many new examples, we can change the hidden ideas it already has. We use a simple method that lets the program guess the right changes without needing to calculate tiny steps. This helps scientists quickly explore new materials and understand how proteins fold.

## Explained to a 5-year-old, longer
A computer program can create new things like materials or the shapes of proteins. These programs are called flow-based models because they move information smoothly. Sometimes we want the created things to have special properties, like being good conductors or having a certain shape. Usually, to get those properties we need to show the program many examples of what we want. That can take a lot of time and computer power. The new idea is to guide the program without teaching it new examples. It works by looking at the hidden starting information that the program already has. We use a simple rule that helps the program guess the right changes. This rule does not need to know how to calculate tiny steps, so it works even when the program cannot give us those steps. It only needs to run the program forward, which is easy. This makes it possible to design new materials for electronics or to figure out how proteins fold. As a result, scientists can explore many ideas quickly and cheaply.

## For a technical reader
The paper presents a way to steer pre-trained flow-based generative models toward desired outputs without any additional training. It exploits the Gaussian prior inherent in the source distribution and performs Bayesian inference directly in that space using Elliptical Slice Sampling. Because only forward passes through the model are required, the approach works even when gradients are unavailable, such as with non-differentiable simulators or quantized models. The method is demonstrated on scientific tasks like material design and protein structure prediction from sparse distance measurements. This training-free guidance can reduce computational cost and enable rapid prototyping of conditional generation pipelines.

## Problem
Guiding pretrained generative models to produce samples with desired properties often requires retraining on paired data, which can be costly and impractical.

## Method
The approach leverages the Gaussian prior of the source distribution in flow-based models and uses Elliptical Slice Sampling to perform Bayesian inference directly in the source space, requiring only forward passes through the generative model and observation process.

## Contributions
The paper introduces a gradient-free, training-free guidance method that performs Bayesian inference in source space using Elliptical Slice Sampling, applicable when gradients are unavailable, and shows its utility on scientific tasks.

## Practical relevance
It enables researchers to guide generative models for material design and protein structure prediction without costly retraining, facilitating rapid exploration of desired properties.

## Research questions this paper is counted under

- [How can we align generative models to a desired target distribution without extensive retraining or reference data?](../q/265.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149338)
