In the world of biology and generative AI, diffusion processes are everywhere—from how stem cells reprogram themselves to how generative models synthesize images. But while we can often observe the results of these processes (snapshots of a population over time), we rarely see the individual trajectories. Figuring out the underlying "physics" driving these movements has traditionally been a computational nightmare.
A new paper from researchers at ETH Zürich, titled "Learning diffusion at lightspeed," introduces JKOnet*, a method that turns this grueling optimization problem into a simple, lightning-fast calculation.
The Problem: Learning from Population Data
Imagine watching a crowd of people move through a park. You don't see individuals; you just see a heat map of where people are every ten minutes. Your goal is to figure out the "forces" acting on them: Are they moving toward a fountain (potential energy)? Are they avoiding each other (interaction energy)? Or are they just spreading out randomly (internal energy/entropy)?
In science, this is known as "population data." In fields like single-cell RNA sequencing (scRNA-seq), researchers can observe the distribution of cell states at different days. However, because the measurement process destroys the cells, tracking a single cell's journey is impossible.
Existing methods to solve this, like the original JKOnet, rely on bilevel optimization. This is essentially a "loop within a loop": to update the model's guess of the energy functional (the "why"), it has to solve a complex optimization problem to predict the next distribution (the "where"). This approach is computationally expensive, often unstable, and usually limited to learning simple drift (potential) terms.
The JKOnet* Approach: Causes Over Effects
The authors' key insight is to stop trying to solve the optimization problem directly and instead look at its first-order necessary conditions.
They base their work on the Jordan-Kinderlehrer-Otto (JKO) scheme, which describes diffusion as a sequence of steps where a population moves to minimize its energy while staying "close" (in terms of Wasserstein distance) to its previous state.
Instead of solving the JKO step to find the next distribution, JKOnet looks at the optimality condition*—the mathematical "balance" that must exist at the solution. This condition essentially states:
Force from Potential + Force from Interaction + Force from Entropy + Displacement = 0
By minimizing the residual of this equation, the authors transform a bilevel problem into a single-level quadratic loss (essentially a Mean Squared Error).
- Causes vs. Effects: Previous models focused on minimizing the error in the predicted distribution (the effect). JKOnet focuses on minimizing the error in the energy functional* (the cause). This "first principles" approach is what enables a massive speedup.
- Linear Parametrization: If the energy functions are linear, the optimal solution can be found in closed-form (a direct formula).
- Non-linear Parametrization: If using neural networks, it becomes a simple gradient descent process that doesn't require an inner optimization loop.
Datasets and Validation
The researchers validated JKOnet* across several benchmarks, proving its ability to recover the full physics of a system—simultaneously capturing potential, interaction, and internal energy components.
- Synthetic Potentials: The model was tested on 15 different complex energy landscapes (e.g., Styblinski-Tang, "Flowers," "Watershed") in dimensions ranging from $d=2$ to $d=50$.
- General Energy Functionals: Synthetic data including interaction kernels and noise (internal energy).
- Real-World Biology: The Embryoid Body scRNA-seq dataset, which tracks the 27-day differentiation process of human embryonic stem cells.
Key Results
- Speed: Because the loss is calculated per-particle and per-snapshot, the algorithm is highly parallelizable on GPUs. On the scRNA-seq task, JKOnet trains in less than a minute*, whereas competing methods like TrajectoryNet or Schrödinger Bridge models take hours.
- Accuracy: On the embryoid body data, JKOnet achieved an Earth Mover's Distance (EMD) of 0.624*, outperforming the original JKOnet (1.363) and other state-of-the-art methods like OT-CFM (0.790).
- Scalability: The model scales sublinearly with the dimension of the data, making it exceptionally well-suited for high-dimensional biological or physical systems.
Limitations and Future Directions
The authors are transparent about where the model might struggle:
- Non-Diffusion Processes: JKOnet* assumes the underlying process is a gradient flow (diffusion). If the system has "solenoidal" components (like a whirlpool or rotation), the model fails to capture them because they aren't driven by energy minimization.
- Feature Selection: For the linear version, the user still needs to pick good "features" (basis functions). While the non-linear version uses MLPs to get around this, picking the right architecture for interaction terms (like Transformers) is an area for future research.
- Image Data: The current work focuses on particle/vector data; applying this to high-dimensional image manifolds remains an open challenge.
By turning a "hard" optimization problem into a "simple" physics-balance problem, JKOnet* offers a powerful new tool for anyone trying to decode the hidden rules of moving populations.
Summary updated