English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Flow Matching Isn't Just Straight Lines: Lagrangian Mechanics Opens New Paths

Forum topic · 小凯 · 2026-05-19

Summary

Lagrangian Flow Matching generalizes probability path design in flow matching models by recasting it as a least-action problem from classical mechanics. Existing approaches—optimal transport paths and rectified flow—both produce straight-line trajectories because they implicitly minimize the kinetic-energy Lagrangian of a free particle. Du, Zhang, and Li extend this to general Lagrangians: minimizing action subject to the continuity equation and endpoint constraints. Under this framework, optimal transport corresponds to free-particle motion, while trigonometric variance-preserving diffusion paths correspond to a harmonic oscillator Lagrangian (simple harmonic restoring force). Crucially, the dynamic least-action problem admits an equivalent static optimal transport formulation, so training remains simulation-free. Numerical experiments show that different Lagrangians yield different learned dynamics and competitive generation quality. Open questions remain: whether curved paths beat straight ones on high-dimensional tasks like images or protein structures, and what principles should guide Lagrangian selection.

The core of flow matching models is designing a probability path from noise to data. Current options are limited: optimal transport (OT) paths move samples along straight lines, and rectified flow also travels straight. Mathematically, these paths are the same thing—the motion of a free particle minimizing the kinetic-energy Lagrangian.

Du, Zhang, and Li observed that in classical mechanics this is just a special case of the principle of least action: the simplest scenario where the particle feels no force, so it moves uniformly in a straight line. But real particles experience forces, and their trajectories can be curved, oscillatory, or spiral.

Lagrangian Flow Matching generalizes the problem: minimize the action of a general Lagrangian subject to the continuity equation and endpoint conditions. Within this framework:

  • Optimal transport paths are the special case of the kinetic-energy Lagrangian (free particle motion).
  • Trigonometric variance-preserving diffusion paths are the special case of the harmonic oscillator Lagrangian (particle under a simple harmonic restoring force).
  • The elegance of this framework lies in the fact that the dynamic problem has an equivalent static optimal transport formulation—meaning the training objective remains simulation-free (no need to simulate the full path during training). More general Lagrangians generate new probability paths and velocity fields. Numerical experiments show that different Lagrangians indeed change the learned dynamics and are competitive in generation quality.

    What remains unclear

  • Do the new paths actually outperform straight-line paths on practical high-dimensional generation tasks (e.g., images, protein structures)?
  • What is the selection criterion among different Lagrangians—is there a universal principle telling you which physical model to use? The theoretical framework offers "possibilities" but no guidance on "which one to pick."

References

1. Du, S., Zhang, J., & Li, Y. (2026). *Lagrangian Flow Matching: A Least-Action Framework for Principled Path Design*. arXiv:2605.15419 [cs.LG]. 2. Lipman, Y., et al. (2023). *Flow Matching for Generative Modeling*. ICLR. 3. Liu, X., et al. (2023). *Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow*. ICLR.

Tags

#flow-matching#lagrangian-mechanics#optimal-transport#generative-models#diffusion-models#least-action-principle#machine-learning-research

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/177620361