CIFS: Improving Adversarial Robustness of CNNs via Channel-wise Importance-based Feature Selection

Hanshu Yan, Jingfeng Zhang, Gang Niu, Jiashi Feng, Vincent Y. F. Tan, Masashi Sugiyama

Introduction

Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial examples—inputs with imperceptible perturbations designed to cause misclassification. While Adversarial Training (AT) is the current gold standard for defense, it often suffers from "robustness overfitting," where a model's defense peaks early in training and then degrades. This paper introduces CIFS (Channel-wise Importance-based Feature Selection), a dynamic mechanism that identifies and suppresses channels that contribute negatively to the correct classification under attack.

The Problem: Hijacking "Negatively-Relevant" Channels

The authors observe that adversarial attacks succeed by "hijacking" specific feature channels. In any given layer, some channels are positively-relevant (PR) to a class (helping identify it), while others are negatively-relevant (NR) (features that should be absent). Adversarial inputs work by over-activating these NR channels to confuse the classifier.

In standard models, adversarial attacks (red) over-activate channels with negative weights, hijacking the model's logic.

As shown in the figure above for a standard ("Normal") model, adversarial activations (adv.) are significantly higher in channels with negative weights compared to natural activations (nat.). This discrepancy is what leads to incorrect predictions.

The CIFS Mechanism: Dynamic Purification

CIFS acts as an internal gatekeeper that operates in three main steps:

  1. Surrogate Raw Prediction: A small "probe network" at an intermediate layer makes a quick, preliminary prediction of the image class.
  2. Relevance Assessment: The system calculates the gradients of the top-$k$ predicted logits with respect to the channel activations to determine which channels are PR or NR.
  3. Importance Mask Generation: A mask is created to suppress NR channels (multiplier near zero) and maintain PR channels.

By using a probe network rather than the final output, the authors avoid the computational complexity of third-order gradients during training, making the method both efficient and stable. This process effectively "purifies" the feature maps before they reach subsequent layers.

Key Results and Robustness

CIFS was evaluated on benchmarks including CIFAR10, SVHN, and Fashion-MNIST. The mechanism provides several key benefits:

  • Robustness Boost: On CIFAR10 using a ResNet-18, CIFS improved robust accuracy against the PGD-100 attack by 4 percentage points (from 44.72% to 48.70%) compared to standard AT.
  • Mitigating Overfitting: While standard models often see their robust accuracy plummet late in training, CIFS-modified models maintain their peak robustness throughout the entire process.
  • Feature Alignment: The mechanism forces adversarial features to align with natural ones, making it much harder for an attacker to find a successful perturbation.
CIFS purifies features in the robust model, aligning adversarial activations (red) with the natural distribution (blue).

In the protected model (shown as "Adv."), the adversarial activations are successfully suppressed in the negative-weight channels and concentrated in the positive-weight channels, mirroring the natural distribution and restoring correct classification.

Conclusion

CIFS offers a "plug-and-play" architectural improvement for CNN robustness. By dynamically selecting features based on their relevance to the predicted class, it prevents attackers from exploiting "wrong" channels. While there is a slight trade-off in natural accuracy (typically 1-2%), the gains in stability and robust performance make it a compelling addition to the adversarial defense toolkit.

Summary updated

BibTeX
@inproceedings{yan2021cifs,
  author = {Hanshu Yan and Jingfeng Zhang and Gang Niu and Jiashi Feng and Vincent Y. F. Tan and Masashi Sugiyama},
  title = {{CIFS: Improving Adversarial Robustness of CNNs via Channel-wise Importance-based Feature Selection}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=oOx6RveDgMh},
}
Figure