Abstract
Learning dynamical systems from data is a fundamental task in science and engineering. While deep learning offers powerful tools for this, standard "black-box" models often lack physical interpretability and long-term stability. This paper introduces OnsagerNet, a framework that embeds a generalized Onsager principle into neural network architectures. By parameterizing potential functions, dissipation matrices, and external forces, OnsagerNet ensures physical consistency and stability by design. We demonstrate its effectiveness on systems ranging from simple pendulums to complex Rayleigh-Bénard convection, showing that it can learn accurate, low-dimensional reduced-order models that remain stable over long time horizons.
1. Introduction
The modeling of complex dynamical systems is transitioning from purely first-principles derivations to data-driven approaches. However, a significant gap remains between flexible machine learning models, which can fit complex trajectories but often fail to generalize or maintain stability, and rigid physical models that may be too restrictive for real-world dissipative systems. OnsagerNet bridges this gap by providing a structured neural network framework based on the generalized Onsager principle.
2. The Generalized Onsager Principle
The classical Onsager reciprocal relations describe systems near thermodynamic equilibrium. To handle more general non-equilibrium systems, the authors propose a generalized formulation:
$$(M(h) + W(h))\dot{h} = -\nabla V(h) + g(h)$$
In this equation, $h$ represents the state variables. $V(h)$ is a potential function (e.g., free energy), $M(h)$ is a symmetric positive semi-definite dissipation matrix, $W(h)$ is an anti-symmetric matrix representing conservative motion, and $g(h)$ accounts for external forcing. This structure provides a rigorous mathematical foundation for modeling dissipative and forced systems while ensuring that the dynamics respect fundamental physical constraints.
3. OnsagerNet Architecture
OnsagerNet implements the generalized Onsager principle by parameterizing $V, M, W,$ and $g$ with neural networks. To ensure the required mathematical properties, specific architectural choices are made:
- $M(h)$ is constructed as $L(h)L(h)^T + \alpha I$ to guarantee positive semi-definiteness.
- $W(h)$ is constructed as $R(h) - R(h)^T$ to ensure anti-symmetry.
- $V(h)$ is designed to be lower-bounded.
- The gradient $\nabla V(h)$ is computed via automatic differentiation.
For high-dimensional systems, the framework employs a PCA-ResNet autoencoder to project data into a low-dimensional latent space $h$ where the Onsager dynamics are learned. This "metric-preserving" regularization helps in finding coordinates that are conducive to stable dynamical modeling.
4. Experimental Evaluation
The framework was evaluated across three distinct regimes:
- Damped Langevin Equations: Testing the ability to recover physical energy landscapes in simple systems like a nonlinear pendulum.
- Lorenz '63 System: Assessing performance on chaotic, forced, non-Hamiltonian dynamics.
- Rayleigh-Bénard Convection (RBC): Building reduced-order models (ROMs) for complex fluid dynamics. Data was generated using high-fidelity Legendre-Fourier spectral methods.
5. Results and Discussion
OnsagerNet demonstrates several key advantages over unstructured models:
- Stability by Design: Unlike standard multi-layer perceptron (MLP) based ODE solvers that often diverge over long integration times, OnsagerNet is theoretically guaranteed to be stable under mild conditions. In RBC simulations, it maintained qualitative accuracy where standard nets failed.
- Interpretability: The learned components have physical meaning. For the pendulum, the learned $V(h)$ closely approximates the true physical energy, allowing researchers to extract scientific insights directly from the model weights.
- Efficient Model Reduction: For the RBC system, OnsagerNet successfully captured the essential physics (fixed points and limit cycles) using only 11 dimensions. This is significantly more efficient than traditional Galerkin projection methods, which typically require an order of magnitude more modes for similar accuracy in nonlinear regimes.
6. Conclusion
OnsagerNet represents a significant step toward "physics-informed" machine learning. By embedding the generalized Onsager principle as an inductive bias, it achieves a balance between the flexibility of neural networks and the robustness of physical laws. Future work will explore active learning strategies to improve data efficiency and extending the framework to directly learn partial differential equations.
Summary updated