Variational Regularized Unbalanced Optimal Transport: Single Network, Least Action

Yuhao Sun, Zhenyi Zhang, Zihan Wang, Tiejun Li, Peijie Zhou

Reconstructing the continuous "movie" of a system’s evolution from just a few "photographs" (snapshots) is a classic challenge in statistical physics. In computational biology, this is the holy grail of trajectory inference: observing a few thousand cells at Day 1 and Day 5, and trying to map exactly how they transformed, divided, or died in between.

A new paper from researchers at Peking University, titled "Variational Regularized Unbalanced Optimal Transport: Single Network, Least Action," introduces Var-RUOT, a framework that makes this reconstruction faster, more stable, and more biologically accurate by leaning heavily on the physics of "least action."

TL;DR

Var-RUOT is a novel framework for reconstructing high-dimensional dynamics from sparse snapshots. By baking the "physics" of optimality (the Hamilton-Jacobi-Bellman equation) directly into a single neural network, it discovers more efficient, lower-energy transport paths while training 10–20x faster than previous multi-network methods.

What Problem Does This Paper Address?

When scientists use single-cell RNA sequencing (scRNA-seq), they must destroy the cells to measure them. This means we get snapshots of different populations at different times, but we never see a single cell actually change.

To fill the gaps, researchers use Optimal Transport (OT)—a mathematical way to find the most efficient way to move one distribution of points to another. However, biological systems have two "messy" features:

  1. Stochasticity: Cells don't move in perfectly straight lines; there is random noise (diffusion).
  2. Unbalanced Mass: Cells divide (growth) and die (death), so the "mass" of the population isn't conserved.
Previous RUOT solvers rely on multiple neural networks, making it hard to achieve the principle of least action.

Existing solvers for Regularized Unbalanced Optimal Transport (RUOT) often use multiple neural networks to guess velocity and growth separately. Because these networks don't "talk" to each other about the underlying laws of physics, they often find convoluted, high-energy paths that are biologically unrealistic and notoriously difficult to train.

Methods

The core innovation of Var-RUOT is the shift from "learning by guessing" to "learning by variational principles."

  • The Scalar Potential Field: Instead of using three separate neural networks to learn velocity, growth, and density, the authors use variational calculus to prove that the optimal velocity ($u$) and growth ($g$) can both be derived from a single scalar potential field ($\lambda$).
  • Physics-Informed Loss: The authors incorporate the Hamilton-Jacobi-Bellman (HJB) equation—the mathematical "necessary condition" for an optimal path—directly into the loss function. This forces the model to satisfy the principle of least action.
  • Weighted Particle Method: To handle high-dimensional data, the model simulates a system of particles where each particle has a position (moving via Stochastic Differential Equations) and a weight (changing via growth/death).
  • Modified Growth Penalty: Standard math uses a quadratic penalty for growth ($\frac{1}{2}g^2$). The authors show this actually forces growth to increase over time in certain directions, which contradicts biological intuition (where stem cells at the start typically have the highest growth potential). They propose a modified penalty function ($\psi(g) = g^{2/15}$) that better aligns with biological priors.
The choice of growth penalty function dictates whether growth increases or decreases along the trajectory, reflecting crucial biological priors.

Key Insights and Ideas

  • The "Power of One": Reducing the problem to a single scalar potential acts as a massive regularizer. It’s much harder for the model to "cheat" or find a messy solution when the velocity and growth are mathematically locked together.
  • Physics as a Shortcut: By enforcing the HJB equation, the model doesn't just fit the data points; it understands the "cost" of moving between them. This leads to "straighter," more efficient trajectories.
  • Curvature Matters: The paper highlights a subtle but vital point: the shape of the growth penalty function determines whether your model thinks stem cells are at the beginning or the end of a trajectory. Choosing a function with negative second-order derivatives ($\psi''(g) < 0$) is essential for realistic biological modeling.

Key Results

The authors validated Var-RUOT across a diverse battery of tests, including simulated gene networks, high-dimensional Gaussians, and real biological data (such as EMT datasets, mouse blood hematopoiesis, and human embryoid bodies).

  • Efficiency (Least Action): Var-RUOT consistently found paths with significantly lower "action" (energy) than competitors like DeepRUOT or TIGON, while maintaining the same or better accuracy in matching the data.
  • Dramatic Speedup: On the EMT dataset, Var-RUOT converged in roughly 7 seconds, compared to 365 seconds for TIGON and over 800 seconds for standard RUOT—a nearly 20x to 100x improvement in wall-clock time.
  • Training Stability: Because it only optimizes one network, the variance between training runs was much lower, making the tool more reliable for researchers.
  • Better Extrapolation: In "hold-one-out" tests, Var-RUOT was better at predicting missing time points because its underlying dynamics were physically grounded.

Limitations and Future Work

  • Local Minima: Like all neural-network-based methods, Var-RUOT can get stuck in local minima. It finds a "good" path, but not necessarily the mathematically perfect global minimum.
  • Soft Constraints: The HJB loss currently acts as a "soft" regularization term. In some cases, the model might prioritize fitting the data over perfectly satisfying the physics.
  • Manual Selection: Choosing the right growth penalty ($\psi$) still requires human biological insight. The authors suggest that future work could involve "learning" the growth penalty function directly from the data or microscopic simulations.

Check out the code: https://github.com/ZerooVector/VarRUOT

Summary updated

BibTeX
@inproceedings{sun2025variational,
  author = {Yuhao Sun and Zhenyi Zhang and Zihan Wang and Tiejun Li and Peijie Zhou},
  title = {{Variational Regularized Unbalanced Optimal Transport: Single Network, Least Action}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Iguyg0LULD},
}
Figure