arXiv:2609.07061cs.LGSep 2026

Manuscript Offprint

arXiv:2609.07061

PhysSAE: Mechanistic Interpretability with Sparse Autoencoders

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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: hcf=h−αzkdkh_{\text{cf}} = h - \alpha z_k d_k, 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 ∣r∣=0.951|r| = 0.951, always ≫\gg permutation null), (ii) the causal footprint of top-aligned atom ablation is 1.2–4.2×1.2–4.2\times 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 (ESF80ESF_{80} advantage 0.04–0.440.04–0.44). Two-atom bilateral representations improve concept regression R2R^2 by ΔR2=0.05–0.15\Delta R^2 = 0.05–0.15 over single atoms, while random pairs decrease it by up to 0.600.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.

1 INTRODUCTION

Physics-Informed Neural Networks (Raissi et al., 2019) encode the residual of a PDE directly into the training loss via automatic differentiation, enabling mesh-free solution of forward and inverse problems. Despite widespread adoption in fluid mechanics (Cai et al., 2021), solid mechanics (Haghighat et al., 2021), and biomedical modelling (Sahli Costabal et al., 2020), PINNs remain black boxes at the feature level. Their failure modes—spectral bias (Wang et al., 2022), gradient pathologies (Wang et al., 2021a), causality violations (Wang et al., 2024a)—are well-characterised at the loss or gradient level, but no work has asked what a trained PINN actually represents in its hidden layers.

Recent mechanistic interpretability work has developed tools for extracting human-readable features from activations: linear probes (Alain & Bengio, 2017), concept activation vectors (Kim et al., 2018), and overcomplete sparse autoencoders (SAEs) (Bricken et al., 2023; Cunningham et al., 2023; Templeton et al., 2024). SAEs have now migrated to scientific ML, appearing on graph CFD surrogates (Hu & Liu, 2025) and neural operators (Tolooshams et al., 2025), and concept steering has been applied to physics foundation models (Fear et al., 2025). A direct inspection of PINN weight distributions by Tucny et al. (2025) found that weights “resemble Gaussian random matrices with no evident trace of the physical principles,” motivating feature-level (rather than weight-level) interpretability.

PHYSSAE bridges mechanistic interpretability and scientific ML for residual-loss PINNs. Its core design choices address three challenges unique to the PINN setting: (1) concepts must be defined

*nanditanpatill14@gmail.com

†eshwarra5@gmail.com

‡gajanan.v@qnulabs.com from independent reference solutions to avoid circularity; (2) causal intervention must act on the original PINN hidden state rather than an SAE reconstruction; (3) the spatio-temporal domain is continuous rather than discrete, requiring the ESF and support-capture metrics that generalise token-level interpretability to function spaces.

Related work. PINN architectures and failure modes. Self-adaptive weights (McClenny & Braga-Neto, 2020) and Fourier-feature embeddings (Wang et al., 2021b) address spectral bias; domain decomposition (Jagtap & Karniadakis, 2020) enables parallel training; causal reweighting (Wang et al., 2024a) fixes temporal ordering; KAN-based PINNs (Wang et al., 2024b) offer symbolic readability via spline activations. None of these study internal representations at the feature level. XAI in scientific ML. SHAP/LIME/Integrated Gradients have been applied to PINNs as black-box regressors (Lundberg & Lee, 2017), not engaging the network's spatiotemporal structure. SAEs on graph CFD surrogates (Hu & Liu, 2025) and neural operators (Tolooshams et al., 2025), and concept steering on a physics foundation model (Fear et al., 2025), are closest to our work but applied to data-driven models, not residual-loss PINNs. Sparse autoencoders. The SAE design (ReLU codes, L1 sparsity, unit-norm decoder columns, pre-encoder bias) for monosemanticity in LLMs is established (Bricken et al., 2023; Cunningham et al., 2023; Templeton et al., 2024; Elhage et al., 2021). We adapt this to the continuous-domain PDE setting.

References (24)