[Paper Review] CoRTX: Contrastive Framework for Real-time Explanation
CoRTX proposes a contrastive learning framework for real-time model explanation that reduces reliance on expensive ground-truth explanation labels by synthesizing positive and negative instances for contrastive training. It learns disentangled, explanation-oriented representations through a self-supervised contrastive loss, enabling high-accuracy explanations with minimal labeled data, achieving state-of-the-art performance on tabular and image datasets with inference speeds up to 2000x faster than baseline methods.
Recent advancements in explainable machine learning provide effective and faithful solutions for interpreting model behaviors. However, many explanation methods encounter efficiency issues, which largely limit their deployments in practical scenarios. Real-time explainer (RTX) frameworks have thus been proposed to accelerate the model explanation process by learning a one-feed-forward explainer. Existing RTX frameworks typically build the explainer under the supervised learning paradigm, which requires large amounts of explanation labels as the ground truth. Considering that accurate explanation labels are usually hard to obtain due to constrained computational resources and limited human efforts, effective explainer training is still challenging in practice. In this work, we propose a COntrastive Real-Time eXplanation (CoRTX) framework to learn the explanation-oriented representation and relieve the intensive dependence of explainer training on explanation labels. Specifically, we design a synthetic strategy to select positive and negative instances for the learning of explanation. Theoretical analysis show that our selection strategy can benefit the contrastive learning process on explanation tasks. Experimental results on three real-world datasets further demonstrate the efficiency and efficacy of our proposed CoRTX framework.
Motivation & Objective
- To address the high computational cost and limited scalability of existing real-time explanation (RTX) frameworks that rely on large amounts of ground-truth explanation labels.
- To reduce dependency on expensive, human-annotated or exact computation-based explanation labels in RTX training.
- To develop a self-supervised contrastive framework that learns effective, disentangled explanation representations without requiring labeled explanations.
- To enable efficient, one-feed-forward inference for real-time model explanation in practical deployment scenarios.
Proposed method
- CoRTX employs a contrastive learning paradigm to train a representation model that encodes explanation-relevant features without requiring ground-truth explanation labels.
- It designs a synthetic sampling strategy to generate positive and negative instance pairs based on feature perturbations and model prediction shifts.
- The framework minimizes a contrastive loss (e.g., InfoNCE) to pull similar instances (positive pairs) closer and push dissimilar ones (negative pairs) apart in the latent space.
- The learned latent representations are fine-tuned with a small number of labeled explanations via a lightweight explanation head for downstream tasks like feature attribution or ranking.
- The method is trained end-to-end on the training set, enabling real-time inference via a single forward pass per instance.
- The framework is applicable to both tabular and image data, with ablation studies validating the design choices of the contrastive sampling strategy.
Experimental results
Research questions
- RQ1Can a contrastive learning framework effectively learn explanation-oriented representations without relying on expensive ground-truth explanation labels?
- RQ2How does the synthetic positive and negative sampling strategy impact the quality of the learned explanation representations?
- RQ3What is the trade-off between explanation accuracy and inference speed when using CoRTX compared to non-amortized and supervised RTX baselines?
- RQ4To what extent can CoRTX generalize across different data modalities, such as tabular and image data?
- RQ5How does CoRTX perform under low-label regimes, and can it maintain high faithfulness with minimal labeled explanations?
Key findings
- CoRTX achieved a rank accuracy of 0.7680 ± 0.0031 on the Adult dataset, outperforming L2X (0.0847 ± 0.0011) and FastSHAP in both exclusion and inclusion AUC tasks.
- On surrogate models, CoRTX achieved an exclusion AUC of 0.372 ± 0.012 and inclusion AUC of 0.772 ± 0.012, outperforming non-amortized baselines and being competitive with FastSHAP.
- CoRTX achieved an ℓ₂-error of 0.007 with only 0.00015 seconds per instance, while high-permutation KernelSHAP required 1.3089 seconds per instance (over 2000x slower).
- The ℓ₂-error of KernelSHAP dropped only slightly from 0.0038 (2000 permutations) to 0.0018 (8000 permutations), indicating diminishing returns beyond 4000 permutations.
- Theoretical analysis confirms that CoRTX’s sampling strategy bounds the explanation error and improves representation learning for explanation tasks.
- CoRTX demonstrated strong generalization on both tabular (Adult, German) and image (CIFAR-10) datasets, showing robustness across data types.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.