Robust Ranking Explanations

Chao Chen, Chenghua Guo, Guixiang Ma, Ming Zeng, Xi Zhang, Sihong Xie

TL;DR

Gradient-based saliency maps are notoriously fragile to tiny input perturbations, and standard defenses focus on $\ell_p$-norm changes that treat all input features equally. This paper introduces ranking explanation thickness, a metric that specifically measures the stability of the top-$k$ most salient features humans actually look at, and proposes R2ET, an efficient training algorithm that anchors top feature rankings without the heavy computational cost of adversarial training.

What Problem Does This Paper Address?

Deep neural network explanations often rely on saliency maps—gradients of the output with respect to the input—to highlight which features drove a decision. However, humans have bounded cognitive capacity and typically interpret only the top few ($k$) features.

Existing explanation defenses focus on minimizing the $\ell_p$ distance between original and perturbed saliency maps (often via Hessian smoothing). But as the authors demonstrate, a perturbed explanation can have a negligible $\ell_p$ distance from the original while drastically scrambling the order of the top-$k$ features. This gap between the mathematical $\ell_p$ objective and human cognitive reality breeds user mistrust in high-stakes settings like medical diagnosis and finance.

Methods

The authors formalize ranking stability through Explanation Thickness:

  • Local Pairwise & Top-$k$ Ranking Thickness: Defined as the expected margin or probability that a top feature $i$ maintains a higher saliency score than a lower feature $j$ across a local neighborhood around input $x$. Rather than considering all $O(n^2)$ pairs, the authors focus on the top-$k$ vs. non-top-$k$ features ($O(kn)$), reducing it further to $O(k)$ in their efficient variant (R2ET-mm) by anchoring around the $k$-th feature.
  • Tractable Surrogate Bounds: Directly calculating thickness requires expensive neighborhood sampling and path integration. By establishing Lipschitz continuity bounds, the authors prove that explanation thickness is lower-bounded by the saliency gap $h(x, i, j) = \mathcal{I}(x)_i - \mathcal{I}(x)_j$ minus a term scaled by the perturbation budget $\epsilon$ and the Hessian difference $\|H(x)_i - H(x)_j\|_2$.
  • The R2ET Objective: The theoretical bounds reveal that robust rankings require both widening the gap between top and bottom features and controlling the Hessian norm: $$\min_{\mathbf{w}} \mathcal{L}_{\text{cls}}(f) - \lambda_1 \mathbb{E}_x \left[\sum_{i=1}^k \sum_{j=k+1}^n h(x, i, j)\right] + \lambda_2 \mathbb{E}_x \left[\|H(x)\|_2\right]$$
  • Connection to Adversarial Training (AT): The authors prove that optimizing this surrogate regularizer is theoretically equivalent to a min-max adversarial training problem targeting pairwise feature flips, but bypasses the expensive iterative inner-loop search.

Datasets

The authors evaluated their framework across diverse data modalities and network architectures:

  • Tabular: Bank Telemarketing, Adult Census, and COMPAS (evaluated on standard DNN classifiers).
  • Images: CIFAR-10 (ResNet) and MNIST (evaluated on dual-input Siamese Networks).
  • Brain Networks (Connectomics): Bipolar Disorder (BP, 82 nodes) and Attention Deficit Hyperactivity Disorder (ADHD, 116 nodes), evaluated on Siamese graph neural networks to simulate pair-based clinical diagnostic retrieval.

Key Insights and Ideas

  • Hessian smoothing alone is insufficient: Prior defenses primarily smoothed model curvature (e.g., via Hessian penalties). While reducing the Hessian norm tightens the thickness bounds, it does not actively push the importance gap between top and non-top features wider.
  • Explanation Ranking Attack (ERAttack) exposes false security: Standard MSE-based gradient attacks leave over 90% of top-$k$ features intact for more than half the tested models. In contrast, the paper's ranking-focused attack (ERAttack) drops up to 50% of top features out of the top-$k$, revealing that prior defenses were evaluated against an ineffective threat model.
  • Thickness correlates with empirical robustness: The number of attack iterations required to flip a feature's rank correlates strongly with ranking thickness ($r = 0.89$ on COMPAS), but barely correlates with the Hessian norm ($r = 0.06$).

Key Results

  • Higher Ranking Preservation (Precision@$k$): Under ERAttack, R2ET and its variants achieved the highest top-$k$ precision across almost all benchmarks. For example, on CIFAR-10 ($k=100$), R2ET-mm maintained 78.0% P@$k$ (vs. 66.5% for Vanilla and 64.2% for Weight Decay). On ADHD ($k=50$), R2ET achieved 71.6% P@$k$ (vs. 45.5% for Vanilla).
  • Faithful Explanations: Explanations from R2ET models preserved or improved decision faithfulness when evaluated on Decision Flip Fraction of Tokens (DFFOT), Comprehensiveness (COMP), and Sufficiency (SUFF).
  • Visual Coherence: Saliency visualizations on MNIST and CIFAR-10 showed that R2ET models anchored explanations on recognizable foreground patterns (e.g., digit strokes or ship hulls) that did not shift under adversarial manipulation.

Limitations and Future Work

  • Dataset Scale & Feature Dimension Trade-offs: On low-dimensional tabular datasets (e.g., Adult, Bank), the gap-only variant ($\text{R2ET}\backslash H$) occasionally outperformed full R2ET because penalizing the Hessian can inadvertently shrink absolute feature margins. Tuning $\lambda_1$ vs. $\lambda_2$ remains feature-count dependent.
  • Scope of Explanations: The experimental evaluation focuses primarily on gradient saliency (SimpleGrad), though the authors note similar dynamics apply to SmoothGrad and Integrated Gradients.
  • Future Work: Extending ranking explanation thickness and R2ET to natural language processing and large language models (LLMs).

Summary updated

BibTeX
@inproceedings{chen2023robust,
  author = {Chao Chen and Chenghua Guo and Guixiang Ma and Ming Zeng and Xi Zhang and Sihong Xie},
  title = {{Robust Ranking Explanations}},
  booktitle = {IMLH @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=kyLjxxGDtd},
}

Loading related content...

Figure