All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Numerical Analysis Reveals Automatic Differentiation Can Produce Incorrect Derivatives in Physics Simulations

By

abetusk

8mo ago· 2 min readenInsight

Summary

This article discusses the numerical analysis of differentiable simulation in scientific machine learning, highlighting potential issues with automatic differentiation (AD) when applied to physics simulations. It examines how AD can produce incorrect derivatives despite its widespread use in SciML for gradient-based optimization. The content focuses on the numerical stability and robustness of AD using examples from Python libraries like Jax (diffrax) and PyTorch (torchdiffeq), challenging the simplistic notion that simulators can be easily integrated into loss functions.

Key quotes

· 4 pulled
Scientific machine learning (SciML) relies heavily on automatic differentiation (AD), the process of constructing gradients which include machine learning integrated into mechanistic models
While these differentiable programming approaches pitch an idea of 'simply put the simulator into a loss function and use AD', it turns out there are a lot more subtle details to consider in practice
how numerically stable and robust is AD?
Automatic Differentiation of Physics Can Give Incorrect Derivatives
Snippet from the RSS feed
ISCL Seminar Series The Numerical Analysis of Differentiable Simulation: How Automatic Differentiation of Physics Can Give Incorrect Derivatives Scientific machine learning (SciML) relies heavily on automatic differentiation (AD), the process of construct

You might also wanna read