FAR: A General Framework for Attributional Robustness

Adam Ivankay, Ivan Girardi, Chiara Marchiori, Pascal Frossard

TL;DR

Deep neural networks are notoriously "black boxes," and the tools we use to peek inside—attribution maps—are surprisingly fragile. This paper introduces FAR (Framework for Attributional Robustness), a generalized mathematical framework to train models whose explanations remain consistent even under adversarial attack, ensuring that a model's "reasoning" is as robust as its predictions.

What Problem Does This Paper Address?

As deep learning enters safety-critical fields like healthcare and autonomous driving, we need to know why a model makes a decision. Attribution maps (like Saliency Maps or Integrated Gradients) highlight which pixels or features most influenced a prediction.

However, researchers have found that these explanations are easily manipulated. An attacker can add imperceptible noise to an image that doesn't change the model's output (it still sees a "dog") but completely shifts the explanation (the heatmap moves from the dog's face to a random corner). This "attributional fragility" undermines trust. Existing fixes were often narrow, tied to specific explanation methods, or failed on certain types of data.

Methods

The authors propose FAR, a unified min-max optimization framework. Think of it as a "meta-recipe" for training. It adds a regularization term to the standard loss function that penalizes the model if the attribution map of a perturbed input looks too different from the original.

Key contributions include:

  • AAT (Adversarial Attributional Training): An instantiation of FAR that focuses solely on making explanations robust.
  • AdvAAT: A version that jointly optimizes for both robust predictions (standard adversarial training) and robust explanations.
  • Pearson Correlation Loss (PCL): Instead of just looking at raw pixel values, they use the Pearson correlation coefficient to ensure the relative importance of features remains the same.
  • IFIA (Integrated Feature Importance Attack): A specialized algorithm used during training to find the "worst-case" perturbation that messes up the explanation the most.

Crucially, FAR is shown to be a generalization of previous methods, meaning older techniques are actually just specific, more constrained versions of this new framework.

Datasets

The researchers evaluated their methods across five widely-used vision benchmarks:

  1. MNIST: Handwritten digits.
  2. Fashion-MNIST: Clothing items.
  3. CIFAR-10: General objects (birds, planes, etc.).
  4. GTSRB: German Traffic Sign Recognition Benchmark.
  5. Restricted ImageNet: A subset of the massive ImageNet dataset.

Key Insights and Ideas

  • The "Align" Flaw: Previous state-of-the-art methods (like "Align") relied on the alignment between input pixels and gradients. The authors discovered this fails on datasets like MNIST where many pixels are black (zero value). Since $0 \times \text{gradient} = 0$, the model gets no "signal" to improve robustness in those areas. FAR avoids this by decoupling the input values from the attribution targets.
  • Initialization Sensitivity: One of the most surprising findings is that attributional robustness is highly dependent on weight initialization. Two models with the same architecture and same final accuracy can have wildly different explanation stability just because of their random starting weights.
  • The Robustness Trade-off: There is a tug-of-war between making a prediction robust and making an explanation robust. Increasing the regularization ($\lambda$) for explanations can sometimes lead to a slight drop in adversarial prediction accuracy.
  • Smoothing the ReLU: Because standard ReLU activation functions have "dead" second derivatives, the authors use a Softplus approximation during the adversarial attack phase to provide the smooth gradients needed for optimization.

Key Results

  • SOTA on MNIST/Fashion-MNIST: AAT and AdvAAT significantly outperformed previous methods in terms of Top-K Intersection (how many of the top important pixels stay the same) and Kendall’s Rank Correlation.
  • Competitive on Complex Data: On CIFAR-10 and ImageNet, the methods performed comparably to existing specialized techniques while being more generally applicable.
  • Visual Consistency: Qualitative results show that under attack, "Natural" models produce noisy, nonsensical attribution maps, while AAT-trained models maintain clean, interpretable heatmaps focused on the actual object.

Limitations and Future Work

  • Computational Cost: Like most adversarial training methods, FAR requires solving an inner maximization problem (the "attack") during every training step, which is computationally expensive.
  • Non-Differentiable Maps: The current framework relies on gradients. It doesn't yet support "black-box" explanation methods like Occlusion or LIME, which don't provide gradients to optimize against.
  • Second-Order Complexity: Optimizing for robust attributions involves second-order derivatives, which can be "irregular" and difficult to stabilize in very deep networks. The authors suggest further research into the geometry of these loss landscapes.

Summary updated

BibTeX
@inproceedings{ivankay2021far,
  author = {Adam Ivankay and Ivan Girardi and Chiara Marchiori and Pascal Frossard},
  title = {{FAR: A General Framework for Attributional Robustness}},
  booktitle = {BMVC},
  year = {2021},
  url = {https://openreview.net/forum?id=3mpD04lfI9},
}

Loading related content...

Figure