Phy-Taylor: Physics-Model-Based Deep Neural Networks

Yanbing Mao, Lui Sha, Huajie Shao, Yuliang Gu, Qixin Wang, Tarek F. AbdelzaherarXiv 2022 · DOI

Introduction

Standard Deep Neural Networks (DNNs) are powerful "black boxes" capable of identifying complex patterns in data. However, in safety-critical engineering domains—such as autonomous driving or power grid management—these models often ignore the underlying physical laws of the systems they represent. This can lead to "spurious correlations," where a model makes predictions that are physically impossible or unsafe.

While existing approaches like Physics-Informed Neural Networks (PINNs) attempt to address this by adding physical constraints to the loss function, the internal structure of the network remains unconstrained. Furthermore, standard networks often struggle to learn complex nonlinearities (e.g., aerodynamic drag) using simple linear activation functions.

The Phy-Taylor Framework

The authors propose Phy-Taylor, a framework that embeds physical laws directly into the neural network architecture through two primary mechanisms: Physics-compatible Neural Networks (PhN) and Physics-guided NN Editing.

The Phy-Taylor framework (top) consists of a sequence of PhN blocks, each refined through Link and Activation Editing (bottom).

1. Physics-compatible Neural Network (PhN)

The PhN replaces standard activation layers with Phy-Augmentation. This component generates monomials from a Taylor series expansion (e.g., $x^2$, $xy$) as input features. Since most physical laws are expressed through such terms, the network can represent complex physics more succinctly than a standard DNN. To ensure robustness, a Noise Suppressor is integrated to prevent high-order terms from amplifying sensor noise.

Physical-Features Augmentation generates higher-order monomials to represent complex physical relationships efficiently.

2. Physics-guided NN Editing

This stage involves "pruning" the network based on known physical dependencies:

  • Link Editing: Removing connections between variables that have no physical interaction (e.g., decoupling mass from a velocity-dependent safety metric).
  • Activation Editing: Deactivating nonlinear functions in regions where the relationship is known to be linear, preventing unnecessary complexity.

Experimental Evaluation

The framework was tested across three distinct domains to evaluate its versatility:

  • AutoRally Platform: Real-world autonomous vehicle data focusing on lateral and longitudinal dynamics.
  • Coupled Pendulums: Synthetic data used to test "out-of-distribution" performance on angles not seen during training.
  • US Illinois Climate: Hourly climate data from NOAA, testing the model's noise suppression capabilities in systems where physical laws are less strictly defined.

Key Results and Insights

The "architecture over loss" philosophy yielded significant improvements over purely data-driven baselines:

  • Massive Parameter Reduction: In vehicle dynamics tasks, Phy-Taylor used only 465 parameters, compared to 24,838 for a state-of-the-art Deep Koopman model—a 50x reduction.
  • Superior Accuracy: Despite the smaller size, Phy-Taylor achieved a prediction error of 0.0036, vastly outperforming the Deep Koopman model's 0.23.
  • Robustness: The model maintained high accuracy on out-of-distribution data where standard fully-connected networks failed.
  • Training Speed: Constraints accelerated training by preventing the model from exploring physically impossible regions of the parameter space.

Conclusion and Future Work

Phy-Taylor demonstrates that constraining a network's architecture to be physically consistent is more effective than relying on loss-based penalties alone. While the "curse of dimensionality" remains a challenge for high-dimensional inputs like video, the use of Taylor monomials provides a powerful primitive for low-dimensional physical states. Future work will explore compression techniques like Tucker Decomposition to scale the framework to higher-dimensional systems.

Summary updated

BibTeX
@misc{mao2022phy,
  author = {Yanbing Mao and Lui Sha and Huajie Shao and Yuliang Gu and Qixin Wang and Tarek F. Abdelzaher},
  title = {{Phy-Taylor: Physics-Model-Based Deep Neural Networks}},
  year = {2022},
  eprint = {2209.13511},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.13511},
}
Figure