Papers
Topics
Authors
Recent
Search
2000 character limit reached

Function Projection for Flow Matching

Updated 5 July 2026
  • The paper introduces FP-FM, which decomposes distribution-specific velocity fields into shared basis functions and distribution-dependent projection coefficients computed via least-squares.
  • It implements static, temporal, and dynamic variants, balancing computational cost and expressivity when adapting to unseen target distributions.
  • Experiments on 2D Arcs, MNIST, and ImageNet show FP-FM significantly improves precision, recall, and FID compared to conditional and finetuning methods.

Searching arXiv for the specified papers and closely related work to ground the article. arXiv search query: (Ingebrand et al., 7 May 2026) FP-FM; (Kerrigan et al., 2023) Functional Flow Matching; (Watanabe et al., 26 Feb 2026) ProjFlow; (Li et al., 17 Nov 2025) Functional Mean Flow in Hilbert Space Function Projection for Flow Matching (FP-FM) is a flow-matching method for generative modeling over a family of target distributions in which each distribution-specific velocity field is treated as an element of a function space, approximated in a learned basis, and adapted to unseen distributions by a least-squares projection computed from example samples rather than gradient-based retraining. In the current literature, the term most specifically denotes the many-shot adaptation algorithm introduced in 2026, while closely related work uses projection ideas in infinite-dimensional functional flow models and in projection-based constrained sampling during flow integration (Ingebrand et al., 7 May 2026).

1. Problem setting and flow-matching formulation

FP-FM is posed on a data space XRn\mathcal{X} \subset \mathbb{R}^n, but the target is not a single distribution. Instead, one considers a family

{pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},

with training only on a finite subset TI\mathcal{T} \subset \mathcal{I}. For each ιT\iota \in \mathcal{T}, the available data are i.i.d. samples

Dι={xι,i}i=1mpXι.\mathcal{D}^\iota = \{x^{\iota,i}\}_{i=1}^m \sim p_X^\iota.

The objective is twofold: generate from each training distribution pXιp_X^\iota, and, more importantly, adapt at inference time to a new distribution pXιp_X^\iota for ιIT\iota \in \mathcal{I}\setminus\mathcal{T}, given only a finite set of samples xι,1,,xι,mx^{\iota,1},\dots,x^{\iota,m} (Ingebrand et al., 7 May 2026).

The underlying generative mechanism is standard flow matching. For each distribution pXιp_X^\iota, the construction uses

{pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},0

and defines the ideal velocity field

{pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},1

If {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},2 were known exactly, then the ODE

{pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},3

would transport the Gaussian base to {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},4. The novelty of FP-FM lies in learning a representation of the family

{pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},5

that supports efficient post-training adaptation to unseen members of that family.

This setting differs from classic conditional diffusion or flow models, which expect a conditioning variable such as a class label or text. FP-FM instead conditions on a set of samples from the target distribution. The paper motivates this by applications where there may be no clean conditional variable but there are example datapoints, and where finetuning per new distribution is too expensive and slow (Ingebrand et al., 7 May 2026).

2. Function-space projection of velocity fields

The central construction adapts the Function Encoders viewpoint to flow matching. Each {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},6 is regarded as an element of a Hilbert space of velocity fields over {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},7, equipped with the distribution-weighted inner product

{pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},8

This choice matches the MSE geometry of flow matching, because the standard flow-matching objective minimizes squared error under the joint law of {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},9 (Ingebrand et al., 7 May 2026).

FP-FM learns shared basis functions TI\mathcal{T} \subset \mathcal{I}0 and represents each distribution-specific velocity field as

TI\mathcal{T} \subset \mathcal{I}1

For static coefficients, the coefficient vector TI\mathcal{T} \subset \mathcal{I}2 is the least-squares solution

TI\mathcal{T} \subset \mathcal{I}3

A key observation is that TI\mathcal{T} \subset \mathcal{I}4 can be estimated from samples alone: TI\mathcal{T} \subset \mathcal{I}5 Accordingly, inner products with the unknown TI\mathcal{T} \subset \mathcal{I}6 are replaced by Monte Carlo averages over paired noise and data samples (Ingebrand et al., 7 May 2026).

Training is a joint optimization over the basis parameters. For each training distribution TI\mathcal{T} \subset \mathcal{I}7, one samples TI\mathcal{T} \subset \mathcal{I}8, TI\mathcal{T} \subset \mathcal{I}9, and ιT\iota \in \mathcal{T}0, constructs ιT\iota \in \mathcal{T}1, solves for ιT\iota \in \mathcal{T}2, forms

ιT\iota \in \mathcal{T}3

and minimizes the reconstruction error ιT\iota \in \mathcal{T}4. The paper characterizes this as a meta-learning style joint optimization: the inner problem is a closed-form function-space regression for coefficients, and the outer problem learns the shared basis so that these projections reconstruct all training velocity fields well (Ingebrand et al., 7 May 2026).

3. Static, temporal, and dynamic variants

FP-FM is presented as a family of models distinguished by how the coefficient function depends on time and state. All variants use the same shared basis ιT\iota \in \mathcal{T}5, but differ in expressivity and compute.

Variant Coefficient dependence Inference cost
Static FP-FM ιT\iota \in \mathcal{T}6 one solve per distribution
Temporal FP-FM ιT\iota \in \mathcal{T}7 one solve per ODE time step
Dynamic FP-FM ιT\iota \in \mathcal{T}8 one solve per sample and ODE time step

In Static FP-FM, the approximation is

ιT\iota \in \mathcal{T}9

The coefficients are constant for a given Dι={xι,i}i=1mpXι.\mathcal{D}^\iota = \{x^{\iota,i}\}_{i=1}^m \sim p_X^\iota.0, independent of both Dι={xι,i}i=1mpXι.\mathcal{D}^\iota = \{x^{\iota,i}\}_{i=1}^m \sim p_X^\iota.1 and Dι={xι,i}i=1mpXι.\mathcal{D}^\iota = \{x^{\iota,i}\}_{i=1}^m \sim p_X^\iota.2. This makes inference fast, since the Dι={xι,i}i=1mpXι.\mathcal{D}^\iota = \{x^{\iota,i}\}_{i=1}^m \sim p_X^\iota.3 system is solved only once for a new distribution. The paper states that this variant works well on training distributions but struggles with unseen mixtures and new supports, because it assumes a fixed global linear combination of the basis fields (Ingebrand et al., 7 May 2026).

Temporal FP-FM relaxes this by allowing the coefficients to vary with time: Dι={xι,i}i=1mpXι.\mathcal{D}^\iota = \{x^{\iota,i}\}_{i=1}^m \sim p_X^\iota.4 For each fixed Dι={xι,i}i=1mpXι.\mathcal{D}^\iota = \{x^{\iota,i}\}_{i=1}^m \sim p_X^\iota.5, the coefficient vector is computed from a least-squares problem under the time-slice distribution Dι={xι,i}i=1mpXι.\mathcal{D}^\iota = \{x^{\iota,i}\}_{i=1}^m \sim p_X^\iota.6. This yields a more expressive approximation of flows whose geometry changes over the course of transport, at the cost of solving a Dι={xι,i}i=1mpXι.\mathcal{D}^\iota = \{x^{\iota,i}\}_{i=1}^m \sim p_X^\iota.7 system once per integration step (Ingebrand et al., 7 May 2026).

Dynamic FP-FM allows local dependence on both state and time: Dι={xι,i}i=1mpXι.\mathcal{D}^\iota = \{x^{\iota,i}\}_{i=1}^m \sim p_X^\iota.8 At a fixed Dι={xι,i}i=1mpXι.\mathcal{D}^\iota = \{x^{\iota,i}\}_{i=1}^m \sim p_X^\iota.9, the Gram matrix becomes pointwise,

pXιp_X^\iota0

so the remaining task is to estimate the conditional mean displacement

pXιp_X^\iota1

and project it onto the span of pXιp_X^\iota2 in pXιp_X^\iota3. This is the most expressive variant and also the most expensive, since the coefficient solve is performed per sample and per ODE time step (Ingebrand et al., 7 May 2026).

The paper further interprets these variants through regularity of the coefficient function: static coefficients are 0-Lipschitz in pXιp_X^\iota4, dynamic coefficients have no such constraint, and temporal coefficients are 0-Lipschitz in pXιp_X^\iota5 but not in pXιp_X^\iota6. This suggests a continuum of intermediate models, though such variants are left for future work.

4. Adaptation to unseen distributions

Adaptation is the defining operation of FP-FM. Once the basis pXιp_X^\iota7 has been trained, no gradient updates to the basis networks are used for a new target distribution. Instead, adaptation consists of solving a small linear system using the sample set pXιp_X^\iota8 from that new distribution (Ingebrand et al., 7 May 2026).

For Static FP-FM, the same least-squares formula used in training is reused at inference time, with Monte Carlo approximations computed from the new distribution’s samples and fresh Gaussian noise draws. The resulting adapted field

pXιp_X^\iota9

is then used in standard ODE sampling. Temporal FP-FM repeats this coefficient calculation at each time step, solving for pXιp_X^\iota0 under pXιp_X^\iota1. Dynamic FP-FM recomputes coefficients locally during integration at each sample point pXιp_X^\iota2 and time pXιp_X^\iota3 (Ingebrand et al., 7 May 2026).

The main theoretical device enabling Dynamic FP-FM is Theorem 1, which rewrites the conditional mean displacement as a self-normalized importance sampling expectation. For fixed pXιp_X^\iota4, define

pXιp_X^\iota5

Then

pXιp_X^\iota6

Operationally, this gives the following Monte Carlo estimator for each pXιp_X^\iota7: sample pXιp_X^\iota8 from pXιp_X^\iota9, compute

ιIT\iota \in \mathcal{I}\setminus\mathcal{T}0

normalize

ιIT\iota \in \mathcal{I}\setminus\mathcal{T}1

and estimate

ιIT\iota \in \mathcal{I}\setminus\mathcal{T}2

Dynamic FP-FM then projects this local estimate onto the instantaneous basis span. The result is a fully training-free adaptation rule in coefficient space rather than parameter space (Ingebrand et al., 7 May 2026).

A practical implication is that FP-FM occupies a middle ground between fixed conditional models and per-distribution finetuning. Static adaptation is extremely cheap, Temporal adaptation is moderate, and Dynamic adaptation is the most computationally demanding. The details explicitly state, however, that all three remain cheaper and simpler than finetuning or training per-distribution guided models.

5. Relation to functional flow models and other projection-based uses

FP-FM sits within a broader research line that brings flow matching into functional or projected settings, but the role of projection differs across papers. Functional Flow Matching (FFM) formulates flow matching directly on a real separable Hilbert space ιIT\iota \in \mathcal{I}\setminus\mathcal{T}3, defines a path of measures ιIT\iota \in \mathcal{I}\setminus\mathcal{T}4, and learns a functional vector field ιIT\iota \in \mathcal{I}\setminus\mathcal{T}5 that generates this path through an ODE in function space. Its practical implementation discretizes the domain and uses Fourier Neural Operators, which the details describe as already a form of projection onto a finite-dimensional subspace spanned by implicit Fourier modes up to a cutoff (Kerrigan et al., 2023).

That functional perspective also makes explicit how a projection-based variant can be formalized. The details for FFM describe choosing a finite-dimensional subspace

ιIT\iota \in \mathcal{I}\setminus\mathcal{T}6

projecting functions with ιIT\iota \in \mathcal{I}\setminus\mathcal{T}7, pushing forward the reference and data measures into coefficient space, and then performing flow matching in ιIT\iota \in \mathcal{I}\setminus\mathcal{T}8. This is presented as conceptually equivalent to FFM’s practical discretization, but with basis choice and projection made explicit. A plausible implication is that the named FP-FM algorithm of 2026 and the projection interpretation of FFM share a common Hilbert-space intuition while addressing different problems: one is many-shot adaptation across a family of distributions, the other is generative modeling of data that already live in function spaces (Kerrigan et al., 2023).

Functional Mean Flow in Hilbert Space extends this line to a one-step setting. It defines a two-parameter flow ιIT\iota \in \mathcal{I}\setminus\mathcal{T}9, a mean velocity

xι,1,,xι,mx^{\iota,1},\dots,x^{\iota,m}0

and corresponding one-step generators in Hilbert space. Its implementations again rely on finite-dimensional representations: FNOs for functional data, sparse/dense operator hybrids for images, and Perceiver-style latent representations for signed distance fields. The details explicitly describe these as concrete realizations of projections xι,1,,xι,mx^{\iota,1},\dots,x^{\iota,m}1 to a finite-dimensional Hilbert subspace, followed by re-embedding or decoding (Li et al., 17 Nov 2025).

ProjFlow uses projection in yet another sense. It modifies flow-matching sampling by predicting a clean endpoint xι,1,,xι,mx^{\iota,1},\dots,x^{\iota,m}2 with Tweedie’s formula and then projecting that endpoint onto a linear constraint set under a kinematics-aware metric,

xι,1,,xι,mx^{\iota,1},\dots,x^{\iota,m}3

Here the projection is not onto a basis of velocity fields, but onto a constraint manifold during sampling. The details therefore support a narrow and a broad use of “function projection for flow matching”: narrowly, the many-shot adaptation algorithm of 2026; more broadly, a design pattern in which flow matching is combined with explicit projection operators, either in representation space or in constrained sampling space (Watanabe et al., 26 Feb 2026).

A common misconception is to collapse these formulations into a single method. The literature instead distinguishes at least three roles for projection: basis projection of velocity fields for distribution adaptation, finite-dimensional projection of infinite-dimensional function-space models, and analytic projection onto linear constraint manifolds during sampling. This suggests that “projection” is a unifying lens rather than a single standardized architecture.

6. Empirical behavior, computational profile, and limitations

The 2026 FP-FM paper evaluates the method on 2D Arcs, MNIST, and ImageNet, using three regimes: TD (Training Distribution), UD (Unseen Distribution), and US (Unseen Support). Baselines include unconditional flow matching on the union of training data, conditional flow matching with explicit conditioning, classifier-guided methods, distribution-guided methods, and finetuning. The reported metrics are Precision, Recall, FID, and Generation Time (Ingebrand et al., 7 May 2026).

On 2D Arcs, Dynamic FP-FM is reported as the best match to target distributions across TD, UD, and US. For UD, its Precision is xι,1,,xι,mx^{\iota,1},\dots,x^{\iota,m}4, Recall is xι,1,,xι,mx^{\iota,1},\dots,x^{\iota,m}5, and Time is xι,1,,xι,mx^{\iota,1},\dots,x^{\iota,m}6 s, while Temporal FP-FM attains UD Precision xι,1,,xι,mx^{\iota,1},\dots,x^{\iota,m}7, Recall xι,1,,xι,mx^{\iota,1},\dots,x^{\iota,m}8, and Time xι,1,,xι,mx^{\iota,1},\dots,x^{\iota,m}9 s. The paper interprets the pattern as many baselines overestimating support, whereas Dynamic FP-FM achieves high precision while maintaining high recall (Ingebrand et al., 7 May 2026).

On MNIST, Dynamic FP-FM again gives the strongest reported results. In TD, it achieves Precision pXιp_X^\iota0, Recall pXιp_X^\iota1, and FID pXιp_X^\iota2. In US, corresponding to digit 9, it achieves Precision pXιp_X^\iota3, Recall pXιp_X^\iota4, and FID pXιp_X^\iota5. The conditional model is described as strong on TD and somewhat on UD but struggling on US, while finetune and guided methods are significantly worse in FID and/or precision. The ablations further report that FID improves with more shots, that Dynamic FP-FM precision and recall are relatively stable, and that performance is fairly robust across the number of basis functions pXιp_X^\iota6, with generation time growing mildly with pXιp_X^\iota7, especially for Dynamic FP-FM (Ingebrand et al., 7 May 2026).

On ImageNet, the strongest gains are on unseen classes. In TD, Dynamic FP-FM achieves Precision pXιp_X^\iota8, Recall pXιp_X^\iota9, and FID {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},00, compared with the conditional model’s Precision {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},01, Recall {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},02, and FID {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},03, and finetune (LoRA)’s Precision {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},04, Recall {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},05, and FID {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},06. In US, Dynamic FP-FM achieves Precision {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},07, Recall {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},08, and FID {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},09, while the conditional model is reported at Precision {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},10, Recall {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},11, and FID {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},12, and finetune at Precision {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},13, Recall {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},14, and FID {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},15. The abstract summarizes the overall result as greatly improved precision and recall relative to baselines across synthetic and image-based datasets, with especially strong gains on unseen distributions (Ingebrand et al., 7 May 2026).

The implementation details reflect the dataset scale. The basis architecture is an MLP for 2D Arcs, a U-Net for MNIST, and a latent ViT backbone with a pretrained VAE latent space for ImageNet. Optimization uses Adam or AdamW with learning rate {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},16 or {pXι}ιI,\{p_X^\iota\}_{\iota \in \mathcal{I}},17, with constant or cosine scheduling. The paper states that 2D Arcs and MNIST were run on an RTX 3080, and ImageNet on 8 RTX Pro 6000 Blackwell GPUs (Ingebrand et al., 7 May 2026).

The stated limitations are structural. FP-FM requires samples from the new distribution, and performance degrades with too few or unrepresentative samples. It assumes that velocity fields across distributions lie approximately in a low-dimensional linear subspace spanned by the learned bases, so static and temporal variants may underfit if the true family of flows is far from linear. Dynamic FP-FM is compute-heavy because it recomputes coefficients per sample and time step. The ImageNet results further indicate that basis quality and batch size matter: insufficient class context or poor basis training can make static and temporal variants perform poorly (Ingebrand et al., 7 May 2026).

Taken together, these results locate FP-FM as a sample-conditioned alternative to symbolic conditional generation and to per-task finetuning. Its main contribution is not a new transport equation, but a new decomposition of distribution-specific flow fields into shared basis functions plus distribution-dependent projections. In that sense, FP-FM turns adaptation to unseen distributions into a problem of function-space approximation and coefficient inference rather than optimizer-driven parameter updates.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Function Projection for Flow Matching (FP-FM).