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

GradINN: Gradient Informed Neural Network

Filippo Aglietti, Francesco Della Santa, Andrea Piano, Virginia AgliettiarXiv 2024 · DOI

Abstract

GradINN (Gradient Informed Neural Network) is a "gray-box" modeling approach designed to bridge the gap between standard neural networks and Physics-Informed Neural Networks (PINNs). By utilizing an auxiliary network to encode prior beliefs about a system's gradients—such as smoothness—GradINN can accurately model complex physical systems even when the underlying governing equations are unknown.

Introduction

In computational physics, researchers often face a "Goldilocks" problem. Standard Neural Networks (NNs) are powerful but data-hungry; in low-data regimes, they tend to overfit and produce physically impossible results. Conversely, Physics-Informed Neural Networks (PINNs) are highly efficient but require explicit knowledge of the governing differential equations. GradINN addresses the scenario where the physics is a mystery, providing a neural network with the "intuition" of physical behavior (like smoothness) without needing exact mathematical formulations.

Methodology: The Dual-Network Architecture

The core innovation of GradINN is a dual-network architecture consisting of a Primary Network ($U$), which models the target function, and an Auxiliary Network ($F$), which represents prior beliefs about the system's gradients.

Instead of training $U$ solely on labeled data, GradINN introduces a customized loss function. This loss forces the gradient of the primary network (calculated via automatic differentiation) to match the output of the auxiliary network at a set of "collocation points"—locations in the input space where labels may be absent, but specific behavior is expected.

Comparison of solution and gradient reconstruction between a standard NN and GradINN. GradINN (red) follows the ground truth (dashed) much more accurately than the standard NN (blue).

By initializing the auxiliary network $F$ to output constants (like zero), the model is effectively biased toward smooth solutions. As training progresses, $F$ is updated alongside $U$, allowing the initial prior to adapt to the actual patterns found in the training data.

Key Results

The authors evaluated GradINN across several benchmarks to demonstrate its versatility:

  • Friedman Function: In a very low-data setting ($N_U = 50$), GradINN achieved an RMSE of 0.66, significantly outperforming a standard NN (2.24).
  • Stokes Flow: GradINN successfully reconstructed fluid flow fields with high fidelity, showing that adding second-order derivative constraints further improved accuracy.
  • Lotka-Volterra System: GradINN matched the performance of Universal PINNs (UPINNs) in gradient RMSE (0.03) despite having no prior knowledge of the system's structure.
  • Burger’s Equation: GradINN outperformed standard NNs by nearly an order of magnitude in relative error ($2.7 \times 10^{-2}$ vs $11 \times 10^{-2}$).
Scatter plots comparing predicted values ($U$) against ground truth ($u$). GradINN (bottom) shows significantly tighter alignment with the identity line compared to the standard s-NN (top).

Discussion and Future Work

GradINN acts as a powerful regularizer, preventing models from "wiggling" erratically between sparse data points. However, the authors noted that the smoothness prior can struggle with "shock waves" or discontinuities, leading to blurred results at sharp boundaries. Additionally, the use of automatic differentiation makes training more computationally expensive than standard backpropagation.

Future directions include exploring non-smooth initializations for the auxiliary network to handle discontinuities and investigating weighted loss functions to better balance data-driven learning with prior beliefs.

Summary updated

BibTeX
@misc{aglietti2024gradinn,
  author = {Filippo Aglietti and Francesco Della Santa and Andrea Piano and Virginia Aglietti},
  title = {{GradINN: Gradient Informed Neural Network}},
  year = {2024},
  eprint = {2409.01914},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.01914},
}
Figure