A Dirac-Frenkel-Onsager Principle: Instantaneous Residual Minimization with Gauge Momentum for Nonlinear Parametrizations of PDE Solutions

Matteo Raviola, Benjamin Peherstorfer

Solving Partial Differential Equations (PDEs) using nonlinear parametrizations, such as neural networks, is a promising frontier in computational physics. However, a persistent failure mode plagues these neural PDE solvers: the erratic and non-unique behavior of network parameters when the model becomes ill-conditioned.

Building on classical variational principles and non-equilibrium thermodynamics, researchers have introduced the Dirac-Frenkel-Onsager (DFO) principle. This novel framework resolves the "tangent space collapse" problem by using a history-based momentum to guide parameter updates. Crucially, DFO injects this momentum exclusively into the "gauge" (nullspace) directions, ensuring smooth parameter evolution without sacrificing the physical accuracy of the solution.

The Challenge: Tangent Space Collapse

When neural networks are deployed to solve time-dependent PDEs, they typically rely on the Dirac-Frenkel (DF) principle, which advances the network's parameters by minimizing the PDE residual at every time step.

Because neural networks are heavily over-parametrized, they suffer from mathematical non-uniqueness: multiple distinct sets of parameter velocities can produce the exact same change in the output function. When the network's Jacobian becomes rank-deficient—a phenomenon known as "tangent space collapse"—the underlying mathematics break down. Parameters may stall completely or jump erratically due to numerical noise.

Standard stabilization techniques, such as Tikhonov regularization, often introduce undesirable "bias." While they stabilize parameter dynamics, they do so at the cost of no longer perfectly minimizing the PDE residual.

The DFO Approach: Momentum as a Gauge Fix

To overcome this, the authors propose treating this non-uniqueness as a gauge freedom. In physics, gauge freedom implies that certain variables can be altered without changing the observable physical outcome. In this context, the "gauge" consists of directions in the parameter space (the nullspace of the Jacobian) that do not affect the current time derivative of the PDE solution.

The Dirac-Frenkel-Onsager (DFO) approach operates through three key mechanisms:

  1. Onsager’s Principle (History Variable): The method introduces a history variable ($m$) acting as momentum, which tracks an exponentially weighted moving average of past parameter velocities.
  2. Nullspace Injection: Instead of applying momentum globally across all parameters, DFO projects it strictly onto the nullspace of the Jacobian.
  3. Gauge Fixing: By utilizing momentum to select a specific, coherent velocity from the infinite pool of valid options in the nullspace, the parameters are forced to move smoothly over time.

Because momentum is only added to directions that do not alter the function's derivative, the DFO method remains "Galerkin-optimal"—it continues to minimize the PDE residual perfectly at every step.

Experimental Validation and Key Results

The authors evaluated DFO on several challenging PDE benchmarks specifically designed to trigger tangent space collapse, including 1D Colliding Waves, Advection-Reaction systems, Rotating Detonation Waves (RDW), the Vlasov Equation for plasma physics, and a 5D Fokker-Planck Equation.

The results demonstrate significant improvements over existing methods:

  • Superior Accuracy: In the complex RDW model, DFO achieved an $L^2$ error of $2.10 \times 10^{-3}$, substantially outperforming standard DF ($6.06 \times 10^{-3}$) and more complex alternatives like TENG ($6.83 \times 10^{-3}$).
  • Robustness to Ill-Conditioning: During the Colliding Waves test, standard methods caused waves to "stick" together at singular points. DFO utilized its momentum memory to push parameters through the collapse, allowing the waves to separate naturally and maintaining errors several orders of magnitude lower than standard DF.
  • Reduced Background Noise: By consistently steering the nullspace components, DFO significantly reduced "off-support" artifacts—random noise appearing in regions where the solution should strictly be zero.
  • Negligible Computational Overhead: The algorithm requires only a few additional matrix-vector multiplications. When paired with randomized SVD (RDFO), runtime was actually lower than standard methods in high-dimensional scenarios.

Limitations and Future Directions

While DFO represents a major step forward for physics-aware stability, the authors note a few limitations. The method introduces two new hyperparameters: $\tau$ (memory time-scale) and $\lambda$ (momentum injection strength). Although the method is robust, developing automated tuning mechanisms based on the residual would enhance usability.

Additionally, DFO specifically targets nullspace (gauge) directions and does not directly address range-space ill-conditioning (directions that do change the solution). Finally, because the nullspace is defined only for first-order changes, traversing long distances within it can eventually cause "drift" in the actual function due to nonlinear effects—a known property of the underlying Dirac-Frenkel principle.

Summary updated

BibTeX
@inproceedings{raviola2026dirac,
  author = {Matteo Raviola and Benjamin Peherstorfer},
  title = {{A Dirac-Frenkel-Onsager Principle: Instantaneous Residual Minimization with Gauge Momentum for Nonlinear Parametrizations of PDE Solutions}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=aDPbUSUCwh},
}

Loading related content...

Figure