Learning for Highly Faithful Explainability

Yuhan Guo, Lizhong Ding, Shihao Jia, Yanyu Ren, Pengqi Li, Jiarun Fu, Changsheng Li, Ye Yuan, Guoren WangICLR 2026

DeepFaith is a novel framework for "Learning to Explain" (L2E), where a neural network is trained to act as an instant explainer for complex target models. By combining a theoretically grounded self-supervised objective with high-quality, filtered "supervision" from existing Explainable AI (XAI) methods, it produces explanations that are significantly more "faithful"—meaning they more accurately reflect the target model's actual decision-making process—than previous approaches.

The Trade-off in Explainable AI

In the world of XAI, practitioners often face a difficult trade-off. Traditional "post-hoc" methods (like Integrated Gradients or SHAP) are notoriously slow because they require thousands of model queries to generate a single explanation. The Learning to Explain (L2E) paradigm attempts to resolve this by training a dedicated "amortized explainer" network to generate explanations in a single forward pass.

However, L2E faces three major hurdles:

  1. Restrictive Assumptions: Many self-supervised explainers assume the model works in a specific way (e.g., features are independent), which fails on complex, high-dimensional data.
  2. Noisy Supervision: Explainers that learn by "imitating" existing XAI methods are limited by the quality of those methods, which can often be unfaithful or inconsistent.
  3. Convergence Issues: Training these explainers from scratch is difficult, often leading to poor results on complex architectures like Vision Transformers.

The DeepFaith Framework

To address these challenges, the authors introduce DeepFaith, which employs a three-pronged strategy to train a highly faithful amortized explainer.

The DeepFaith architecture pipeline, illustrating the deduplication, filtering, and dynamic optimization stages.

1. Unified Faithfulness Theory

The researchers re-formalized 10 popular faithfulness metrics (such as Deletion/Insertion scores and Infidelity) into a single mathematical framework. They theoretically proved that an optimal explanation mapping exists that can satisfy all these metrics simultaneously, providing a solid mathematical foundation for their optimization objective.

2. High-Quality Signal Curation

Instead of blindly imitating a single existing XAI method, DeepFaith aggregates 14 different methods. It deduplicates these explanations using cosine similarity and then applies p-quantile filtering based on faithfulness scores. This ensures the explainer only learns from the "best of the best" explanations, treating prior methods as a noisy pool rather than absolute ground truth.

3. Dynamic Joint Optimization

Training relies on a "curriculum" approach to balance convergence speed and explanation quality.

Training dynamics showing the shift from Pattern Consistency loss to Local Correlation loss guided by the alpha parameter.

The process starts by focusing on Pattern Consistency ($L_{PC}$)—fitting the filtered supervisory signals to gain a basic "intuition" and stabilize early training. Once the training stabilizes, a dynamic weighting parameter ($\alpha$) shifts the focus to a Local Correlation loss ($L_{LC}$). This self-supervised objective refines the explanation to be as theoretically faithful as possible without relying on the initial teacher signals. The explainer itself utilizes a multi-layer Transformer Encoder architecture, making it highly adaptable to image patches, text tokens, or tabular features.

Key Insights and Results

DeepFaith was evaluated across 12 distinct tasks spanning three modalities: Image (ImageNet, UCSD OCT Retina), Text (IMDb, AGNews), and Tabular (NHANES, Wholesale Customers). Target models included ResNet50, EfficientNet, DeiT, LSTMs, and MLPs.

  • Superior Faithfulness: DeepFaith consistently achieved the highest average rank across all 10 faithfulness metrics in every single task, outperforming established L2E baselines like L2X, CXPlain, and FastSHAP.
  • Filtering Beats Distilling: The results demonstrate that "teacher" methods are often flawed. By filtering a diverse pool of methods for high faithfulness, the "student" explainer can actually surpass the quality of its teachers.
  • Blazing Speed: Once trained, DeepFaith generates explanations in milliseconds. On the ImageNet+DeiT task, it took roughly 3.1ms per sample, compared to nearly 100ms for Integrated Gradients and over 60ms for Kernel SHAP.
  • Qualitative Clarity: Visualizations confirm that DeepFaith produces cleaner heatmaps that focus precisely on relevant features (e.g., specific lesions in medical scans) compared to the noisier outputs of other methods.

Limitations and Future Directions

While inference is nearly instantaneous, the training phase requires generating a large volume of "teacher" explanations from 14 different methods, which incurs a significant upfront computational cost. Additionally, the framework introduces new hyperparameters (like the filtering quantile $p$ and similarity threshold) that may require tuning for novel datasets.

However, the modular nature of DeepFaith means that as better XAI metrics or methods are developed, they can be seamlessly integrated into the pipeline, allowing the explainer to continuously evolve and improve.

Summary updated

BibTeX
@inproceedings{guo2026learning,
  author = {Yuhan Guo and Lizhong Ding and Shihao Jia and Yanyu Ren and Pengqi Li and Jiarun Fu and Changsheng Li and Ye Yuan and Guoren Wang},
  title = {{Learning for Highly Faithful Explainability}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=bLgkkEGgBy},
}
Figure