PhysSAE: Mechanistic Interpretability of PINNs with Sparse Autoencoders
Organizations: QuaNad Research Laboratory, PES University, Bengaluru, India · Independent Researcher, QNu Labs Pvt Ltd, Bengaluru, India. Former Professor at PES University (EC Campus), Bengaluru
Abstract
Physics-Informed Neural Networks (PINNs) embed PDE residuals into neural network training, but their internal representations remain opaque: it is unknown what physical features their hidden layers encode or whether those features have a localized causal role. We present PhysSAE, a mechanistic interpretability framework that trains overcomplete sparse autoencoders (SAEs) on PINN penultimate-layer activations and evaluates dictionary atoms through direct causal intervention in the original frozen hidden state: , bypassing the SAE decoder entirely. Across six PDE families, with 3 PINN seeds and 3 SAE seeds each---we show that (i) Our discovered SAE atoms align with independently-defined physical observables (max Pearson , always permutation null), (ii) the causal footprint of top-aligned atom ablation is 1.2--4.2 more spatially concentrated canonical than PCA or ICA interventions, and (iii) top-aligned atoms outperform matched random controls on causal localization for structured physical concepts (ESF advantage 0.04-0.44). Two-atom bilateral representations improve concept regression R by over single atoms, while random pairs decrease it by up to 0.60. These results demonstrate that PINNs develop sparse, physically structured latent representations that can be identified and causally interrogated post-hoc, opening a path toward interpretability-aware scientific machine learning.
Figures & tables
| PDE | Concept name | Formula |
|---|---|---|
| Heat | Amplitude | |
| Gradient | ||
| Curvature | ||
| Temporal rate | ||
| Signed value | ||
| Burgers | Amplitude |
| PDE | Equation | Domain | IC | Ref. type | L2 err |
|---|---|---|---|---|---|
| Heat | Analytic | ||||
| Burgers | , | Spectral | |||
| Allen–Cahn | Spectral | ||||
| Conv. easy | Analytic | ||||
| Conv. hard | Analytic | ||||
| Schrödinger | Soliton | Analytic |
| PDE | Best concept | Mean max | Z-score |
|---|---|---|---|
| Heat | gradient | ||
| Burgers | amplitude | ||
| Allen–Cahn | signed | ||
| Conv. easy | characteristic | ||
| Conv. hard | characteristic | ||
| Schrödinger | amplitude |
| PDE | SAE ESF 80 | PCA | ICA | SD | Speedup | Max | Neg. ctrl | Bilat. |
|---|---|---|---|---|---|---|---|---|
| Heat | 0.700 | 0.587 | 0.278 | 4.2 | 0.890 | 0.025 | 0.053 | |
| Burgers | 0.585 | 0.574 | 0.341 | 1.6 | 0.804 | 0.005 | 0.097 | |
| Allen–Cahn | 0.576 | 0.622 | 0.412 | 1.2 | 0.692 | 0.043 | 0.088 | |
| Conv. easy | 0.546 | 0.571 | 0.423 | 1.5 | 0.872 | 0.049 | 0.146 | |
| Conv. hard | 0.745 | 0.653 | 0.292 | 2.0 | 0.951 | 0.125 | 0.030 | |
| Schrödinger | 0.406 | 0.538 | 0.312 | 2.3 | 0.920 | 0.013 | 0.102 |
| PDE | Metric | |||
|---|---|---|---|---|
| Heat | Mean top-1 | 0.815 | 0.831 | 0.836 |
| Recon. MSE | 0.128 | 0.075 | 0.042 | |
| Burgers | Mean top-1 | 0.855 | 0.928 | 0.964 |
| Recon. MSE | 0.192 | 0.106 | 0.060 | |
| Schrödinger | Mean top-1 | 0.817 | 0.836 | 0.869 |
| Recon. MSE | 0.240 | 0.129 | 0.068 |
| Mean L 0 | Recon. MSE | Mean top-1 | Status | |
|---|---|---|---|---|
| 259.7 | 0.041 | 0.916 | too dense | |
| 254.8 | 0.040 | 0.918 | too dense | |
| 207.6 | 0.049 | 0.941 | good | |
| 149.1 | 0.070 | 0.964 | operative | |
| 75.4 | 0.120 | 0.935 | sparse | |
| 35.0 | 0.234 | 0.916 | recon. degrades |
| PDE | Single atom | SAE pair | Random pair | |
|---|---|---|---|---|
| Heat | 0.591 | 0.643 | 0.053 | 0.226 |
| Burgers | 0.387 | 0.483 | 0.097 | 0.203 |
| Allen–Cahn | 0.279 | 0.367 | 0.088 | 0.189 |
| Conv. easy | 0.451 | 0.598 | 0.146 | 0.196 |
| Conv. hard | 0.332 | 0.362 | 0.030 | 0.127 |
| Schrödinger | 0.504 | 0.607 | 0.102 | 0.215 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | Value |
|---|---|
| PINN | |
| Hidden layers / width | 5 / 128 |
| Activation | |
| Adam iters / LR | 8000 / |
| L-BFGS iters | 300 |
| Loss weights | 100, 100, 1 |
Mechanistic Interpretability
Mechanistic interpretability studies how neural networks implement behaviors through internal features, circuits, and causal information flow.
See all 391 papers