A Flow Matching Algorithm for Many-Shot Adaptation to Unseen Distributions

Tyler Ingebrand, Ruihan Zhao, Kushagra Gupta, David Fridovich-Keil, Sandeep P. Chinchali +1 more
5/7/2026
cs.LG
diffusion-flow

No confident code implementation found for this paper.

Abstract

While generative modeling has achieved remarkable success on tasks like natural language-conditioned image generation, enabling model adaptation from example data points remains a relatively underexplored and challenging problem. To this end, we propose Function Projection for Flow Matching (FP-FM), an algorithm that directly conditions generation on samples from the target distribution.

Show full abstract

FP-FM learns basis functions to span the velocity fields corresponding to a set of training distributions, and adapts to new distributions by computing a simple least-squares projection onto this basis. This enables efficient generation of samples from diverse target distributions without additional training at inference time. We further introduce multiple variants of FP-FM that provide a trade-off in expressivity and compute by enriching the coefficient calculation, e.g., by making the coefficients dependent on time. FP-FM achieves greatly improved precision and recall relative to baselines across synthetic and image-based datasets, with especially strong gains on unseen distributions.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ingebrand2026flow,
  title  = {A Flow Matching Algorithm for Many-Shot Adaptation to Unseen Distributions},
  author = {Tyler Ingebrand and Ruihan Zhao and Kushagra Gupta and David Fridovich-Keil and Sandeep P. Chinchali and Ufuk Topcu},
  year   = {2026},
  eprint = {2605.06272},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.06272v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.06272.svg)](https://codeofpaper.com/paper/2605.06272)

Discussion