Function Projection for Flow Matching
- 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 , but the target is not a single distribution. Instead, one considers a family
with training only on a finite subset . For each , the available data are i.i.d. samples
The objective is twofold: generate from each training distribution , and, more importantly, adapt at inference time to a new distribution for , given only a finite set of samples (Ingebrand et al., 7 May 2026).
The underlying generative mechanism is standard flow matching. For each distribution , the construction uses
0
and defines the ideal velocity field
1
If 2 were known exactly, then the ODE
3
would transport the Gaussian base to 4. The novelty of FP-FM lies in learning a representation of the family
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 6 is regarded as an element of a Hilbert space of velocity fields over 7, equipped with the distribution-weighted inner product
8
This choice matches the MSE geometry of flow matching, because the standard flow-matching objective minimizes squared error under the joint law of 9 (Ingebrand et al., 7 May 2026).
FP-FM learns shared basis functions 0 and represents each distribution-specific velocity field as
1
For static coefficients, the coefficient vector 2 is the least-squares solution
3
A key observation is that 4 can be estimated from samples alone: 5 Accordingly, inner products with the unknown 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 7, one samples 8, 9, and 0, constructs 1, solves for 2, forms
3
and minimizes the reconstruction error 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 5, but differ in expressivity and compute.
| Variant | Coefficient dependence | Inference cost |
|---|---|---|
| Static FP-FM | 6 | one solve per distribution |
| Temporal FP-FM | 7 | one solve per ODE time step |
| Dynamic FP-FM | 8 | one solve per sample and ODE time step |
In Static FP-FM, the approximation is
9
The coefficients are constant for a given 0, independent of both 1 and 2. This makes inference fast, since the 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: 4 For each fixed 5, the coefficient vector is computed from a least-squares problem under the time-slice distribution 6. This yields a more expressive approximation of flows whose geometry changes over the course of transport, at the cost of solving a 7 system once per integration step (Ingebrand et al., 7 May 2026).
Dynamic FP-FM allows local dependence on both state and time: 8 At a fixed 9, the Gram matrix becomes pointwise,
0
so the remaining task is to estimate the conditional mean displacement
1
and project it onto the span of 2 in 3. 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 4, dynamic coefficients have no such constraint, and temporal coefficients are 0-Lipschitz in 5 but not in 6. 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 7 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 8 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
9
is then used in standard ODE sampling. Temporal FP-FM repeats this coefficient calculation at each time step, solving for 0 under 1. Dynamic FP-FM recomputes coefficients locally during integration at each sample point 2 and time 3 (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 4, define
5
Then
6
Operationally, this gives the following Monte Carlo estimator for each 7: sample 8 from 9, compute
0
normalize
1
and estimate
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 3, defines a path of measures 4, and learns a functional vector field 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
6
projecting functions with 7, pushing forward the reference and data measures into coefficient space, and then performing flow matching in 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 9, a mean velocity
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 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 2 with Tweedie’s formula and then projecting that endpoint onto a linear constraint set under a kinematics-aware metric,
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 4, Recall is 5, and Time is 6 s, while Temporal FP-FM attains UD Precision 7, Recall 8, and Time 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 0, Recall 1, and FID 2. In US, corresponding to digit 9, it achieves Precision 3, Recall 4, and FID 5. 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 6, with generation time growing mildly with 7, 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 8, Recall 9, and FID 00, compared with the conditional model’s Precision 01, Recall 02, and FID 03, and finetune (LoRA)’s Precision 04, Recall 05, and FID 06. In US, Dynamic FP-FM achieves Precision 07, Recall 08, and FID 09, while the conditional model is reported at Precision 10, Recall 11, and FID 12, and finetune at Precision 13, Recall 14, and FID 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 16 or 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.