NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Disentangled Explanations of Neural Network Predictions by Finding Relevant Subspaces

Pattarawat Chormai, Jan Herrmann, Klaus-Robert Müller, Grégoire Montavon · DOI

Abstract

Standard Explainable AI (XAI) techniques often produce "entangled" heatmaps that conflate multiple distinct features driving a model's prediction. We introduce two novel methods, Principal Relevant Component Analysis (PRCA) and Disentangled Relevant Subspace Analysis (DRSA), designed to decompose complex neural network explanations into semantically distinct "relevant subspaces." By focusing on features strictly relevant to the model's decision strategy rather than just data variance, these methods provide clearer, disentangled insights. Our approach is back-end agnostic and enables surgical post-hoc interventions, such as mitigating "Clever Hans" effects without retraining.

The Problem of Entangled Explanations

Traditional XAI methods like Layer-wise Relevance Propagation (LRP) or Integrated Gradients generate attribution heatmaps that highlight which pixels influenced a prediction. However, these maps often suffer from entanglement: a single heatmap merges multiple distinct reasons for a decision. For example, in a "basketball" classification, a standard heatmap might blur the ball, the court, and the players' jerseys into one red mass, making it difficult to discern the model's specific sub-strategies.

Existing "concept-based" methods attempt to solve this but often rely on human-annotated datasets or unsupervised clustering that captures features the model might actually ignore (invariance). The goal of this work is to automatically extract subspaces that are strictly relevant to the model's specific decision strategy.

Methods: PRCA and DRSA

The core innovation involves inserting a "virtual layer" at an intermediate point in the neural network. This layer performs an orthogonal transformation into latent subspaces and then transforms them back. Because the transformation is orthogonal, the final output remains identical, but internal activations are organized into interpretable components.

Principal Relevant Component Analysis (PRCA)

PRCA extends standard PCA by finding directions of maximum relevance to the prediction rather than maximum variance in the data. It utilizes a "context vector" derived from the model's response to identify activation patterns that drive the final logit.

Figure 4: Comparison of PCA (variance-based) versus PRCA (relevance-based). PRCA aligns more closely with the model's actual response direction.

Disentangled Relevant Subspace Analysis (DRSA)

DRSA extends Independent Subspace Analysis (ISA) using higher-order statistics to partition the activation space into $K$ distinct subspaces. This forces the explanation to split into semantically separate components, such as one subspace for "faces" and another for "textures."

Key Results and Disentanglement

The researchers evaluated these methods on ImageNet and Places365 using architectures like VGG16 and ResNet18. Quantitative results using Area Under the Patch-Flipping Curve (AUPC) showed that PRCA consistently outperformed baselines. On ImageNet with VGG16, PRCA achieved an AUPC of 5.36, significantly better than standard PCA (7.92).

Qualitatively, DRSA successfully disentangles complex strategies. In the basketball example, it separated the explanation into four distinct components: the court, outfits, faces, and the ball.

Figure 1: Visual comparison of standard heatmaps versus PRCA and DRSA. DRSA successfully disentangles the explanation into multiple semantically distinct subspaces.

Applications and Robustness

Because these subspaces are disentangled, they allow for "surgical" model refinement. In tests with datasets poisoned by watermarks (a "Clever Hans" scenario), identifying and removing the specific "watermark subspace" improved model accuracy on poisoned data by 3.6% without retraining. Additionally, PRCA helps identify adversarial manipulations; when an image is perturbed to create a fake heatmap, the primary PRCA component tends to retain the original relevant features, pushing the adversarial noise into residual subspaces.

Conclusion

PRCA and DRSA provide a powerful framework for moving beyond simple attribution maps toward a structural understanding of neural network decision-making. By prioritizing relevance over variance, these methods offer a path toward more transparent, robust, and editable machine learning models.

Summary updated

BibTeX
@article{chormai2024disentangled,
  author = {Pattarawat Chormai and Jan Herrmann and Klaus-Robert Müller and Grégoire Montavon},
  title = {{Disentangled Explanations of Neural Network Predictions by Finding Relevant Subspaces}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2024},
  url = {https://openreview.net/forum?id=4IiuhouPUY},
}
Figure