Learning Robust Convolutional Neural Networks with Relevant Feature Focusing via Explanations
Kazuki Adachi, Shin'ya Yamaguchi
TL;DR
This work tackles distribution shift causing CNNs to latch onto spurious features by introducing ReFF, a training-time regularizer that aligns model explanations with task-relevant regions using Grad-CAM. A pseudo-annotator generates regional annotations to reduce manual labeling, enabling scalable application to off-the-shelf CNNs without extra test-time cost. Across Textured MNIST, ISIC2017, and Oxford Pets, ReFF improves test accuracy under varying spurious-feature regimes and benefits from multi-layer regularization, with pseudo-annotations often outperforming full manual annotations. The approach enhances robustness and explainability, offering a practical path to more reliable vision models in real-world, shift-prone environments.
Abstract
Existing image recognition techniques based on convolutional neural networks (CNNs) basically assume that the training and test datasets are sampled from i.i.d distributions. However, this assumption is easily broken in the real world because of the distribution shift that occurs when the co-occurrence relations between objects and backgrounds in input images change. Under this type of distribution shift, CNNs learn to focus on features that are not task-relevant, such as backgrounds from the training data, and degrade their accuracy on the test data. To tackle this problem, we propose relevant feature focusing (ReFF). ReFF detects task-relevant features and regularizes CNNs via explanation outputs (e.g., Grad-CAM). Since ReFF is composed of post-hoc explanation modules, it can be easily applied to off-the-shelf CNNs. Furthermore, ReFF requires no additional inference cost at test time because it is only used for regularization while training. We demonstrate that CNNs trained with ReFF focus on features relevant to the target task and that ReFF improves the test-time accuracy.
