Attribution Mask: Filtering Out Irrelevant Features By Recursively Focusing Attention on Inputs of DNNs

Jae-Hong Lee, Joon-Hyuk ChangarXiv 2021

Abstract

Deep Neural Networks (DNNs) often rely on complex feature interactions that are difficult to interpret. This study introduces a recursive attribution masking framework designed to isolate essential input features while filtering out irrelevant noise. By enforcing a "No Implicit Bias" (NIB) condition and utilizing a novel Gradient * Sign-of-Input (GxSI) attribution method, the researchers achieved near-perfect classification accuracy (up to 100% on CIFAR-10) using only the features deemed relevant by the model. The results suggest that iterative refinement of input features can significantly enhance model reliability and provide clearer insights into DNN decision-making processes.

Introduction

Deep Neural Networks (DNNs) are frequently criticized as "black boxes" due to the difficulty in understanding their internal logic. Gradient-based Attribution (GBA) methods, such as saliency maps, are commonly used to identify which input features (e.g., specific pixels in an image) contribute most to a model's prediction. However, these methods often fail "sanity checks," appearing more like edge detectors than true explanations of model behavior. Furthermore, standard DNN architectures contain "implicit biases"—such as bias terms in layers and mean parameters in batch normalization—that inject noise into gradients, obscuring the features that truly drive classification.

This paper addresses these challenges by asking: Can we use attributions to improve a model's accuracy by filtering out irrelevant input features?

Methods

The researchers propose a framework centered on three key innovations:

The "No Implicit Bias" (NIB) Condition

The authors theoretically demonstrate that a DNN can be locally linearized into a single-layer "brew matrix." To ensure that gradients accurately reflect the relationship between input features and target labels, they propose the NIB condition: removing all bias terms and mean parameters from batch normalization. This modification "cleans" the gradients of noise that typically hinders attribution methods.

Gradient * Sign-of-Input (GxSI)

Standard attribution methods often multiply the gradient by the raw input value. The authors introduce GxSI, which multiplies the gradient by the sign of the input instead. This prevents high-magnitude input values from disproportionately influencing the attribution, leading to more robust and stable feature selection.

Recursive Attribution Masking

Rather than calculating an attribution mask once, the framework applies it iteratively. As shown in the process below, the model generates an attribution mask, which is then used to "clean" the input image. This cleaned image is fed back into the DNN to generate a more refined mask.

The recursive attribution masking process iteratively refines the input to focus on essential features.

Key Results

The effectiveness of the recursive masking approach was evaluated on the CIFAR-10 and CIFAR-100 datasets using modified VGG16 and WideResNet architectures.

Near-Perfect Accuracy

On CIFAR-10, the GxSI method reached a Masked Input Accuracy (MIA) of 99.8% to 99.9% without additional training. Unlike standard methods like Integrated Gradients (IG) or Guided Backpropagation (GBP), which see a sharp decline in accuracy as more features are masked, GxSI maintains or even improves performance as it iterates.

Comparison of Masked Input Accuracy (Q) across iterations for CIFAR-10 and CIFAR-100.

Feature Transferability

In a "student-teacher" experiment, masks generated by a "Teacher" model (VGG16) were used to pre-filter data for a "Student" model (WideResNet). The student model, trained only on these filtered features, achieved 100.0% accuracy on the CIFAR-10 test set. This suggests that the attribution masks capture objective, class-relevant features rather than model-specific artifacts.

Discussion and Conclusion

The findings suggest that the perceived unreliability of gradient-based attributions in previous literature may stem from architectural noise (biases) rather than the methods themselves. Under the NIB condition, recursive masking effectively distills images down to their essential components.

While highly effective on benchmark datasets, the NIB condition requires architectural modifications that may impact performance on larger-scale datasets like ImageNet. Additionally, the recursive nature of the process increases computational costs. Future research will focus on scaling these techniques to high-resolution, real-world imagery and exploring their utility in broader machine learning contexts.

Summary updated

BibTeX
@misc{lee2021attribution,
  author = {Jae-Hong Lee and Joon-Hyuk Chang},
  title = {{Attribution Mask: Filtering Out Irrelevant Features By Recursively Focusing Attention on Inputs of DNNs}},
  year = {2021},
  eprint = {2102.07332},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.07332},
}
Figure