Knowledge-guided Machine Learning: Current Trends and Future Prospects

Anuj Karpatne, Xiaowei Jia, Vipin KumararXiv 2024 · DOI

Abstract

Knowledge-guided Machine Learning (KGML) represents a transformative shift in scientific modeling, bridging the gap between theory-driven process models and data-driven "black-box" machine learning. This review explores the three-dimensional framework of KGML, detailing how scientific knowledge is integrated through learning objectives, model architectures, and pre-training strategies. By synthesizing results across hydrology, climate science, and fluid dynamics, we highlight how KGML achieves superior generalization, data efficiency, and physical consistency. Finally, we discuss the path toward scientific foundation models and the potential for ML-driven discovery of new physical laws.

Introduction

In scientific disciplines such as hydrology, climate science, and biology, the traditional reliance on either purely process-based models or standard "black-box" machine learning (ML) often falls short. Process-based models, rooted in physical laws, generalize well but are computationally expensive and prone to bias due to oversimplifications. Conversely, data-driven ML models are fast and flexible but often produce physically inconsistent results—such as predicting water flowing uphill—when data is sparse or out-of-distribution.

Knowledge-guided Machine Learning (KGML) emerges as a "glass-box" paradigm that integrates centuries of scientific laws with modern AI. By embedding physical constraints directly into neural networks, KGML aims to create models that are accurate, data-efficient, and physically consistent.

The positioning of KGML relative to science-only and data-only models, alongside a three-dimensional view of research directions.

The KGML Framework

The core of KGML research can be categorized into a three-dimensional framework based on the type of scientific knowledge used (ranging from perfect to imperfect), the form of integration (process-centric to ML-centric), and the specific method for incorporating that knowledge into the ML pipeline.

Methodological Approaches

There are three primary ways to integrate scientific knowledge into machine learning:

  1. Knowledge-guided Learning: This approach modifies the model’s loss function to include penalties for violating scientific laws (e.g., Physics-Informed Neural Networks or PINNs). If a model predicts a state that violates the conservation of mass, it is "punished" during training.
  2. Knowledge-guided Architecture: Scientific constraints are "baked" directly into the neural network's structure. Examples include Equivariant Networks that respect spatial symmetries or specialized layers (like PGA-LSTMs) that ensure variables maintain their physical relationships.
  3. Knowledge-guided Pre-training: Models are first trained on synthetic data generated by traditional physics simulations. This allows the ML model to learn the general "rules of the game" before being fine-tuned on limited, high-quality observational data.
Visual mechanisms for integrating knowledge into ML: learning (loss landscape), architecture (structural constraints), and pre-training (initialization).

Key Insights and Results

KGML is not a single algorithm but a spectrum of integration. It ranges from ML-centric approaches, where physics provides guidance, to process-centric hybrids, where ML is used to "fix" or calibrate specific parameters within traditional equations. Landmark achievements in the field include:

  • Surrogate Modeling: KGML models can emulate complex climate simulations up to 1,000x faster than traditional numerical solvers (e.g., Fourier Neural Operators) while maintaining high accuracy and the ability to generalize across spatial resolutions.
  • Improved Generalization: By anchoring models to universal constants, KGML handles "out-of-distribution" scenarios—such as future climate states—far better than pure data-driven models.
  • Data Efficiency: In lake temperature modeling, Physics-Guided RNNs (PGRNNs) have significantly outperformed both pure physics and pure ML models, particularly in data-poor environments where only a few days of observations were available.

Challenges and Future Prospects

Despite its promise, the field faces several critical hurdles. Catastrophic forgetting remains a challenge, where models may lose their grasp of physical laws during the fine-tuning phase. Furthermore, scientific decision-making requires robust uncertainty quantification, an area where current KGML models still struggle to provide reliable confidence intervals.

The "holy grail" of the field is moving from prediction to discovery—using ML to identify missing terms in our equations and discover new physics. The authors suggest that the next frontier lies in building Scientific Foundation Models (similar to large language models but for Earth systems) that can be fine-tuned for a wide array of environmental and physical tasks.

Summary updated

BibTeX
@misc{karpatne2024knowledge,
  author = {Anuj Karpatne and Xiaowei Jia and Vipin Kumar},
  title = {{Knowledge-guided Machine Learning: Current Trends and Future Prospects}},
  year = {2024},
  eprint = {2403.15989},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.15989},
}
Figure