DUE: A Deep Learning Framework and Library for Modeling Unknown Equations

Junfeng Chen, Kailiang Wu, Dongbin Xiu

TL;DR

This paper introduces DUE, a comprehensive deep learning framework and Python library for discovering and modeling unknown differential equations from data. It offers a unified approach to learning various types of equations (ODEs, PDEs, DAEs, etc.) using advanced neural network architectures and provides an accessible tool for both education and research.

What Problem Does This Paper Address?

Many complex systems in science and engineering are governed by differential equations that are either unknown or too complex to solve analytically. Traditional methods rely on first principles to derive these equations, which is often impossible for intricate systems. While data-driven approaches have emerged, there's a need for a unified, user-friendly framework that can handle diverse equation types and leverage modern deep learning techniques for efficient and accurate modeling. This paper aims to bridge this gap by providing a flexible and accessible tool for learning these unknown equations directly from data.

Methods

The core of DUE is a deep learning framework that learns "flow maps" – functions that describe how a system's state evolves over a time step. The paper details several neural network architectures for this task:

  • Feedforward Neural Networks (FNNs): The basic building blocks.
  • Residual Networks (ResNets) & Generalized ResNets (gResNets): Enhance learning by allowing the network to learn the "residual" or correction to the input, improving performance on complex dynamics.
  • Operator Semigroup Networks (OSG-Nets): Specifically designed to handle varying time step sizes by incorporating the time step as an input, adhering to semigroup properties crucial for autonomous systems.
  • Transformers: Adapted for learning PDEs, leveraging self-attention mechanisms to capture long-range dependencies in spatial data.
  • Position-induced Transformers (PiT): A specialized Transformer that considers spatial interrelations, making it suitable for learning PDEs on unstructured meshes.
  • Dual-OSG-Net: A novel architecture combining two OSG-Nets with a gating mechanism to effectively model multiscale dynamics by adaptively focusing on different time scales.

The framework also incorporates advanced training techniques like multi-step loss (averaging loss over multiple future time steps) and a semigroup-informed loss to improve prediction accuracy and stability.

Datasets

The paper uses synthetic datasets generated from known ODEs and PDEs for various examples, including:

  • Damped Pendulum System
  • Coupled Oscillators
  • Chaotic Lorenz System
  • Robertson Chemical Reaction System
  • One-dimensional Viscous Burgers' Equation
  • Two-dimensional Incompressible Navier-Stokes Equations
  • Two-dimensional Flow Past a Circular Cylinder

Real-world noisy data for coupled oscillators is also utilized. The paper emphasizes that the true governing equations are treated as unknown during the data-driven learning process.

Key Insights and Ideas

  • Unified Framework for Diverse Equations: DUE provides a single platform to learn various types of differential equations (ODEs, PDEs, DAEs, IDEs, SDEs) and even reduced or partially observed systems, simplifying the modeling process.
  • Flow Map Learning: Learning the time evolution of system states directly (flow maps) bypasses the need to explicitly solve the learned equations, enabling efficient prediction.
  • Adaptive Architectures for Multiscale Dynamics: The novel Dual-OSG-Net architecture effectively handles systems with dynamics occurring at vastly different time scales, a common challenge in stiff differential equations.
  • Structure-Preserving AI: Techniques like the semigroup-informed loss embed fundamental mathematical properties (like the semigroup property) into the learning process, leading to more stable and accurate models, especially for long-term predictions.
  • Accessibility and Education: DUE is designed to be user-friendly, allowing users to start modeling with just a few lines of code, making advanced deep learning techniques for scientific discovery more accessible to students and researchers.

Key Results

The paper demonstrates DUE's effectiveness across numerous examples:

  • Damped Pendulum: Accurate predictions up to t=20 (1000 forward steps) for fully observed systems, and good performance even with partially observed data and up to 10% noise.
  • Coupled Oscillators: Models with memory terms (M=10) showed improved accuracy over those without (M=0) on real-world noisy data.
  • Lorenz System: Both ResNet and gResNet captured the chaotic dynamics, with gResNet achieving higher prediction accuracy.
  • Robertson Chemical Reaction: The Dual-OSG-Net accurately predicted multi-scale kinetics up to t=100,000, outperforming a vanilla OSG-Net.
  • Navier-Stokes Equations: The GDSG-trained OSG-Net produced accurate vorticity predictions at t=60 and t=100, while a purely data-driven model without the semigroup property was unstable.
  • Flow Past Cylinder: The PiT model successfully captured velocity and pressure dynamics, though downstream errors were noted due to sparser grid points.

Limitations and Future Work

  • Computational Resources: Deep learning frameworks, while powerful, can be computationally expensive, especially for high-dimensional problems or large datasets.
  • Data Requirements: While DUE aims to reduce data needs, further research into minimizing data requirements through techniques like robust denoising, incorporating physical constraints, active learning, and transfer learning is suggested.
  • Generalization to New Scenarios: The paper suggests that further development could focus on expanding DUE's applicability to more complex scenarios, such as multi-frequency time series data.
  • Contributions: The authors encourage external contributions to expand DUE's capabilities and applicability.

Summary updated

BibTeX
@article{chen2025due,
  author = {Junfeng Chen and Kailiang Wu and Dongbin Xiu},
  title = {{DUE: A Deep Learning Framework and Library for Modeling Unknown Equations}},
  journal = {SIAM rev},
  year = {2025},
  doi = {10.1137/24m1671827},
}
Figure