Automatic differentiation can fail to capture physics constraints
The limits of exactness: On the failure of automatic differentiation in physics-informed machine learning
Summary
Automatic differentiation (AD) helps computers find exact mathematical derivatives in machine learning models, which is very useful for solving physics problems. But the authors show that even when these derivatives are perfectly calculated mathematically, they might still miss important physical rules like direction of flow or energy conservation. This means AD might produce answers that look correct but don’t actually follow the physics of the problem. The authors suggest that future work should focus on ways to include the physical meaning into machine learning models, beyond just computing derivatives exactly.
What this means in practice
- •For computational engineers: Design physics-informed neural networks that ensure physical laws like conservation and positivity are respected, not just mathematically differentiable.
- •For software developers in scientific computing: Create machine learning tools that integrate physical constraints explicitly rather than relying solely on automatic differentiation.
A position paper. It proposes an approach and reports no results.