NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Differentiable modelling to unify machine learning and physical models for geosciences

Chaopeng Shen, Alison Appling, Pierre Gentine, Toshiyuki Bandai, Hoshin V. Gupta, Alexandre M. Tartakovsky, Marco Baity‐Jesi, Fabrizio Fenicia, Daniel Kifer, Li Li, Xiaofeng Liu, Wei Ren, Yi Zheng, C. J. Harman, Martyn Clark, Matthew W. Farthing, Dapeng Feng, Praveen Kumar, Doaa Aboelyazeed, Farshid Rahmani, Yalan Song, Hylke E. Beck, Tadd Bindas, Dipankar Dwivedi, Kuai Fang, Marvin Höge, Christopher Rackauckas, Binayak P. Mohanty, Tirthankar Roy, Chonggang Xu, Kathryn LawsonNature Reviews Earth & Environment 2023

Introduction: The Divide in Geoscientific Modeling

Geoscientists have long navigated a tension between two distinct modeling paradigms. Process-Based Models (PBMs) are built on fundamental physical laws, such as the conservation of mass and energy. These models are highly interpretable and robust under novel conditions, yet they often struggle to ingest large-scale datasets and can fail when the underlying physics is incomplete. Conversely, Machine Learning (ML) models, particularly deep learning architectures like LSTMs, excel at identifying complex patterns in "big data." However, these "black boxes" often lack physical interpretability and fail to generalize to out-of-distribution scenarios, such as unprecedented extreme weather events.

The following table summarizes the inherent trade-offs between these two approaches:

Comparison of purely data-driven neural networks and process-based models.

The Solution: Differentiable Programming

The authors propose Differentiable Modeling (DM) as a unifying framework. By leveraging Differentiable Programming, physical models are reimplemented in computational frameworks (such as PyTorch, JAX, or Julia) that support automatic differentiation. This enables the entire system—including both physical equations and embedded neural networks—to be optimized simultaneously using gradient-based methods.

Key technical pillars of this approach include:

  • Automatic Differentiation (AD): Efficiently tracking derivatives through complex physical code to enable end-to-end training.
  • Hybrid Architectures: Replacing uncertain or empirical components of a physical model (e.g., soil moisture parameterization) with neural network modules.
  • Adjoint Methods: Managing memory constraints when computing gradients for large-scale systems, such as those governed by partial differential equations (PDEs).

Synergies: Combining Physics and Data

DM creates a "Goldilocks" zone for modeling. While pure ML has an unconstrained search space and pure PBMs are often overly rigid, DM provides a mid-size search space that facilitates faster convergence and requires less data to achieve high accuracy.

Technical and scientific synergies of combining Deep Learning with Process-Based modeling.

By using physics as a "guardrail," DM models maintain physical consistency, which is crucial for reliable extrapolation. Furthermore, DM enables Differentiable Parameter Learning (dPL), where a neural network learns to map landscape attributes to physical parameters across diverse regions, significantly improving calibration efficiency and spatial scalability.

Empirical Evidence and Results

The paper highlights several key findings from hydrological and geoscientific benchmarks:

  • Accuracy and Interpretability: In tests using the CAMELS dataset, DM versions of hydrological models achieved predictive accuracy comparable to pure LSTMs while maintaining full physical interpretability.
  • Computational Efficiency: Calibration tasks that previously required massive CPU clusters can now be performed on a single GPU in a fraction of the time (e.g., reducing days of computation to one hour).
  • Generalization: DM models significantly outperformed pure ML in "ungauged" regions, demonstrating the power of physical constraints in spatial extrapolation and global-scale modeling.

Future Outlook and Challenges

While promising, the transition to differentiable modeling faces several hurdles:

  • Computational Intensity: Storing gradients for iterative solvers can be memory-heavy, necessitating more efficient adjoint implementations.
  • Optimization Issues: Challenges like vanishing gradients in deep physical chains and "process equifinality"—where different internal configurations yield the same output—must be addressed to ensure learned physics are correct.
  • Skill Gap: Adopting DM requires geoscientists to develop a hybrid skillset spanning numerical analysis, physics, and deep learning.

Despite these challenges, DM represents a significant step toward a new generation of geoscientific models that are both data-rich and physics-informed, bridging the gap between accuracy and understanding.

Summary updated

BibTeX
@article{shen2023differentiable,
  author = {Chaopeng Shen and Alison Appling and Pierre Gentine and Toshiyuki Bandai and Hoshin V. Gupta and Alexandre M. Tartakovsky and Marco Baity‐Jesi and Fabrizio Fenicia and Daniel Kifer and Li Li and Xiaofeng Liu and Wei Ren and Yi Zheng and C. J. Harman and Martyn Clark and Matthew W. Farthing and Dapeng Feng and Praveen Kumar and Doaa Aboelyazeed and Farshid Rahmani and Yalan Song and Hylke E. Beck and Tadd Bindas and Dipankar Dwivedi and Kuai Fang and Marvin Höge and Christopher Rackauckas and Binayak P. Mohanty and Tirthankar Roy and Chonggang Xu and Kathryn Lawson},
  title = {{Differentiable modelling to unify machine learning and physical models for geosciences}},
  journal = {Nature Reviews Earth \& Environment},
  year = {2023},
  doi = {10.1038/s43017-023-00450-9},
}
Figure