Skip to content

PhysSAE: Mechanistic Interpretability of PINNs with Sparse Autoencoders

Nandita N. Patil, Eshwar R. A., Gajanan V. Honnavar

cs.LG

Abstract

Physics-informed neural networks (PINNs) solve PDEs by minimising the equation residual, yet what their hidden layers represent is largely unknown. We present PhysSAE, which trains sparse autoencoders (SAEs) on PINN activations, aligns the learned atoms with physical fields computed from independent reference solutions, and tests them by editing the frozen network's hidden state. Across 12 PDEs and 36 PINNs, atoms form readable shock, interface, soliton and front features (best |r| up to 0.98), and removing an atom changes the solution mostly where its concept lives. Comparing every statistic with untrained networks and with PINNs trained on other equations shows that trained PINNs encode the individual terms of their own PDE operator. A pre-registered test on three unseen equations confirmed all five predictions (Burgers diffusion term: probe R2=0.99R^2 = 0.99 against 0.150.15 for the null networks). PINNs that fail to train lose this structure, which makes PhysSAE a diagnostic of what a PINN has learned.

Create a lesson

Metadata

Categories
cs.LG, physics.comp-ph
Comments
27 pages, 10 figures, 17 tables