NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Follow the Mean: Reference-Guided Flow Matching

Pedro Curvo, Maksim Zhdanov, Floor Eijkelboom, Jan-Willem van de Meent

NeurIPS page · Open on the map

Category: Diffusion & Image Generation › Diffusion Model Distillation and Alignment · Type: new method · Keywords: flow matching, controllable generation, reference guidance, parameter-efficient control, image synthesis

Areas: Generative Models (Diffusion & Flows) › Pixel-Space Diffusion › Guidance and Robust Training

Summary

The paper introduces Reference-Mean Guidance and Semi-Parametric Guidance, which enable controllable generation by shifting the reference set's endpoint mean without fine-tuning pretrained flow models.

Explained to a 5-year-old

We have a drawing model that can change what it draws by looking at example pictures. Instead of retraining the model, we just tell it which example to follow. This lets us make the model draw different colors, faces, or styles just by swapping the example. It works without changing the model's weights, so it's fast and easy. This way, we can personalize the model for each new task without needing a lot of extra work.

Explained to a 5-year-old, longer

Imagine a computer program that can draw pictures from text prompts. Usually, to make it draw something new, you have to train it a lot, which takes time. This paper finds a trick so you can change what the program draws without retraining. You give the program a few example pictures you like. The program looks at the average of those examples and uses that to guide its drawing. By swapping the example pictures, you can make the program draw different colors, faces, or artistic styles. One way does this by calculating a simple correction on the fly, keeping the original model unchanged. Another way learns a small extra part that refines the drawing while still using the examples. Both methods let you control the output just by choosing which examples to follow. This makes it easy to personalize the model for specific needs, like creating portraits in a friend's style. It also saves computer resources because you don't need to update the whole model. Overall, the idea lets anyone quickly adapt a drawing model to new tasks without complex training.

For a technical reader

The paper exploits a property of flow matching where the generation flow is governed by the mean of the conditional endpoint, allowing control by simply adjusting this mean with reference examples. One instantiation computes a closed-form correction on a frozen model, providing training-free guidance for attributes like color, identity, style, and structure. The second adds a learned residual refiner that amortises the same idea, enabling reference swapping at inference while preserving unconditional model quality. Together, these techniques let users steer pretrained generative models without any parameter updates.

Problem

Existing controllable generation methods require fine-tuning, auxiliary networks, or test-time search, making adaptation costly and inflexible.

Method

The approach leverages flow matching's property that the velocity field is determined by the conditional endpoint mean, allowing control by adjusting this mean using a reference set. For training-free control, a closed-form correction is applied to a frozen model; for amortised control, a learned residual refiner is used while keeping the reference set swappable at inference.

Results

The approach achieves control over visual attributes without any model updates, and the semi-parametric variant matches the quality of an unconditional DiT-B/4 model on AFHQv2 while supporting reference swapping.

Contributions

The paper shows that flow matching can be controlled by shifting the conditional endpoint mean, providing a training-free guidance scheme and an amortised semi-parametric variant that enable reference-guided generation without fine-tuning.

Practical relevance

This enables practitioners to control pretrained generative models on the fly using reference examples, reducing the need for costly fine-tuning and facilitating rapid adaptation to new styles or identities.

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