arXiv:2610.18534cs.LGOct 2026

Manuscript Offprint

arXiv:2610.18534

Euclidean Distance-Based Flow Matching

Paul-Henrik Heilmann, Peter Ochs

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Flow Matching has recently become popular as a technique for generative modeling with applications in many domains. In the standard Flow Matching formulation, we interpret the vector field as the solution of a least-squares regression problem, which is known to be sensitive to contamination. Therefore we leverage the viewpoint of robust statistics and replace the squared Euclidean distance with the Euclidean distance as a regression objective. This seemingly minor change strongly affects the properties of Flow Matching. We provide a probabilistic interpretation of the new regression target as a conditional geometric median and use this characterization to study distributional robustness of the Euclidean Distance-based Flow Matching. We analyze the mathematical properties of this changed objective and the effect of a contaminated target distribution on the involved conditional velocity distributions. We discuss the challenge of directly characterizing the distribution that our method induces. In specific contamination settings we show theoretically that our method yields an improvement for severe contamination. Finally, we present numerical experiments conducted on the CIFAR-10 image dataset where a proportion of the samples has been contaminated. Our Euclidean distance-based Flow Matching shows a clear advantage in scenarios of severe contamination of the target distribution.

1 Introduction

Flow Matching (FM) (Lipman et al., 2023, 2024; Albergo and Vanden-Eijnden, 2023; Liu et al., 2023) is a framework for training a flow model (Chen et al., 2018; Grathwohl et al., 2019) to generate samples from a target distribution that is available only through data. Starting from a known source distribution from which we can sample, FM learns a time-dependent vector field that drives the generation process. New samples are generated by drawing from the source distribution and applying the flow induced by this learned time-dependent vector field. It is well known that under suitable regularity assumptions, the (population) optimal vector field for the standard formulation generates the prescribed target distribution exactly.

Real-life datasets often do not only contain samples from the assumed true distribution, but they contain contaminated samples as well. A classical example is the Belgium telephone calls dataset (Rousseeuw and Leroy, 1987) that includes several wrongly recorded data points. Therefore we model the observed distribution as a mixture model of the clean and a contaminating distribution, rather than only the target distribution. Consequently, robustness is the desirable property that the learned distribution stays close to the clean distribution, even in the presence of contamination without manually filtering the samples.

Flow Matching is a powerful technique to produce samples from the target, but suffers from replication of the exact target including the contamination. We present a remedy for this by a simple modification of the Flow Matching objective. Our approach replaces the squared Euclidean distance loss in the standard Flow Matching objective with the Euclidean distance loss. The latter penalizes large regression residuals linearly rather than quadratically, motivating its use to reduce sensitivity to contamination. At the population level, the modified field is a geometric median of the conditional velocity distribution, whereas

*Email: heilmann@math.uni-sb.de

†^{\dagger}Email: ochs@math.uni-sb.de the standard squared-loss field is its mean. We demonstrate that this change also improves distributional robustness, yielding a generated distribution closer to the clean target under contamination. Clearly the necessary trade-off that we accept is that we lose the general guarantee that the population-optimal field reproduces the prescribed target distribution, even when the data are uncontaminated.

To be more precise, we characterize the population-optimal Euclidean distance Flow Matching vector field as a conditional geometric median. On clean data, we derive bounds comparing this field with the standard squared-loss field. We then analyze how contamination affects the regression fields and prove that, in specific contamination settings, our adaptation yields an improvement in the Wasserstein distance. Finally, we evaluate both objectives on contaminated CIFAR-10 data, comparing their generation quality across different contamination models and proportions.

References (24)