Path-independent Flow Matching for Multi-parameter Generative Dynamics

Francisco Téllez, AmirHossein Zamani, philippe Martin, Shuang Ni, Guy Wolf, Eugene Belilovsky, Sina Sanjari, Yanlei Zhang

TL;DR

This paper introduces Path-independent Flow Matching (PiFM), a novel method for learning generative models that can handle multiple evolving parameters simultaneously. PiFM ensures that the transformations between data distributions are consistent regardless of the order in which these parameters are applied, a crucial property for many real-world applications.

What Problem Does This Paper Address?

Generative models often learn to transform one data distribution into another. Traditional methods like Flow Matching typically handle a single evolving parameter (like time). However, many real-world processes involve multiple independent parameters that change concurrently. For example, in biology, a cell's state might evolve based on both experimental time and a pluripotency score. When these multiple parameters are involved, simply composing standard flow models can lead to inconsistent results – the final outcome depends on the order in which the parameters are applied. This "path dependence" makes it difficult to reason about and control the generative process, hindering applications like interpolation, extrapolation, and analogy-making in the data distribution space. PiFM aims to solve this by learning transformations that are "path-independent," meaning the final distribution is the same no matter how the multiple parameters are combined.

Methods

The core innovation is Path-independent Flow Matching (PiFM). It extends the existing Flow Matching framework to handle multiple parameters (e.g., t and s instead of just t). The key idea is to learn vector fields that satisfy specific structural conditions ensuring path independence. This is achieved by:

  • Multi-parameter ODEs: Defining vector fields that depend on multiple parameters, governing the evolution of distributions.
  • Continuity Equations: Ensuring that these vector fields consistently transport probability densities along each parameter dimension.
  • Path Independence Condition: Introducing a mathematical condition (related to Lie brackets and partial differential equations) that the vector fields must satisfy to guarantee that the order of integration doesn't matter.
  • Conditional Flow Matching: Similar to standard CFM, PiFM uses conditional vector fields to enable simulation-free training.
  • Regularization (Optional): For cases where the learned vector fields don't perfectly satisfy the path independence condition, a regularization term is added to the training objective.

PiFM also establishes a theoretical connection to Wasserstein Barycenters, suggesting it can learn a form of distributional interpolation that is consistent with these barycenters.

Datasets

The paper evaluates PiFM on several datasets:

  • Synthetic Datasets: Used for demonstrating low-dimensional domain shift and path-independent generation.
  • CelebA Dataset: Used for unsupervised image-to-image translation tasks (e.g., adding smiles, changing hair color).
  • Single-cell RNA-seq Reprogramming Dataset (Schiebinger et al., 2019): Used to model complex biological processes involving experimental day and pluripotency score as two interacting parameters.

Key Insights and Ideas

  • Path Independence is Crucial for Compositionality: The paper strongly emphasizes that for generative models to be truly compositional (i.e., for transformations to be reliably combined), they must be path-independent. This is a fundamental requirement for tasks like attribute manipulation and distributional interpolation.
  • PiFM Generalizes Flow Matching: PiFM isn't just a minor tweak; it's a principled extension that allows Flow Matching to operate in higher-dimensional parameter spaces while enforcing the critical path-independence property.
  • Connection to Wasserstein Barycenters: The link to Wasserstein barycenters provides a strong theoretical grounding, suggesting PiFM learns a meaningful notion of distributional interpolation that aligns with established optimal transport concepts.
  • Practical Training Objective: The proposed simulation-free objective makes PiFM computationally feasible for training on complex data.

Key Results

  • Improved Performance on Synthetic Data: PiFM outperforms methods like Meta Flow Matching (MFM) on synthetic datasets, especially in out-of-distribution settings and when inferring unseen populations. For example, it achieves a significantly smaller 2-Wasserstein distance in domain shift tasks.
  • Successful Image Translation: PiFM demonstrates superior performance in unsupervised image-to-image translation compared to CFM, successfully generating desired attribute transformations (e.g., smiling, black hair) while preserving identity. It also shows better consistency across different integration orders.
  • Coherent Single-Cell Dynamics: On a single-cell reprogramming dataset, PiFM successfully models complex, multi-stage biological processes, capturing both temporal progression and fate acquisition. The generated trajectories are path-independent, aligning with empirical data.
  • Computational Efficiency: PiFM offers a faster alternative to computing Wasserstein barycenters, especially for inference.

Limitations and Future Work

  • Individual Sample Path Independence: While PiFM guarantees path independence at the distributional level, it doesn't guarantee it for individual samples.
  • Wasserstein Barycenter Connection: The theoretical connection to Wasserstein barycenters is currently studied for the 2-parameter case (n=2). Extending this to more general n parameters is an open area.
  • Future Directions:
    • Extending PiFM to more general geometric settings.
  • Applying PiFM to more complex single-cell perturbation data and trajectory inference.
  • Further validating PiFM as a generative framework for Wasserstein barycenters.

Summary updated

BibTeX
@inproceedings{tellez2026path,
  author = {Francisco Téllez and AmirHossein Zamani and philippe Martin and Shuang Ni and Guy Wolf and Eugene Belilovsky and Sina Sanjari and Yanlei Zhang},
  title = {{Path-independent Flow Matching for Multi-parameter Generative Dynamics}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9yq2JAPSPm},
}
Figure