Improving Adversarial Robustness via Information Bottleneck Distillation

Huafeng Kuang, Hong Liu, Yongjian Wu, Shin'ichi Satoh, Rongrong JiNeurIPS 2023

Abstract: Previous studies have shown that optimizing the information bottleneck can significantly improve the robustness of deep neural networks. Our study closely examines the information bottleneck principle and proposes an Information Bottleneck Distillation approach. This specially designed, robust distillation technique utilizes prior knowledge obtained from a robust pre-trained model to boost information bottlenecks. Specifically, we propose two distillation strategies that align with the two optimization processes of the information bottleneck. Firstly, we use a robust soft-label distillation method to increase the mutual information between latent features and output prediction. Secondly, we introduce an adaptive feature distillation method that automatically transfers relevant knowledge from the teacher model to the student model, thereby reducing the mutual information between the input and latent features. We conduct extensive experiments to evaluate our approach's robustness against state-of-the-art adversarial attackers such as PGD-attack and AutoAttack. Our experimental results demonstrate the effectiveness of our approach in significantly improving adversarial robustness.

Introduction

Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial attacks—tiny, imperceptible perturbations to inputs that cause catastrophic misclassifications. While Adversarial Training (AT) is the standard defense, it suffers from a significant generalization gap between training and testing data.

To build better defenses, researchers have turned to the Information Bottleneck (IB) principle. The IB theory suggests that a robust model should learn to extract only the information necessary for the target prediction ($Y$) while aggressively filtering out "nuisance" information from the input ($X$)—such as adversarial noise.

However, applying IB to high-dimensional data like images is mathematically difficult because calculating exact mutual information is intractable. Existing approximations (like the Conditional Entropy Bottleneck) rely on simple one-hot labels to estimate these distributions. For complex image data, one-hot labels are too crude, leading to imprecise bottlenecks and sub-optimal robustness.

Methodology

To address these limitations, we propose Information Bottleneck Distillation (IBD). Instead of using basic one-hot labels to approximate the bottleneck's distributions, IBD uses the rich, robust representations from a pre-trained, adversarially robust "teacher" model.

Information Bottleneck Distillation Architecture

We mathematically reformat the IB objective into two practical distillation strategies:

  1. Robust Soft-Label Distillation (Maximizing Target Info): To ensure the student model retains information useful for prediction, it is trained to match the soft output labels of the robust teacher. These soft labels contain rich class-relation data that hard labels lack.
  2. Adaptive Feature Distillation (Minimizing Nuisance Info): To squeeze out adversarial noise, the student's intermediate latent features are trained to match the teacher's intermediate features. Because teacher and student architectures often differ, we introduce an attention-based mechanism that dynamically calculates similarities between different feature layers, allowing the network to automatically route and transfer the right structural knowledge.

These two distillation terms are combined with standard adversarial training to form the final IBD loss function.

Experimental Setup

We evaluated IBD on standard image classification benchmarks:

  • CIFAR-10 & CIFAR-100: Used for primary benchmarking and ablation studies.
  • ImageNet-1K: Used to prove the method scales to high-resolution, large-scale datasets (1,000 classes, >1M images).

Key Insights

  • Teacher Knowledge as a Mathematical Prior: The most elegant insight is theoretical. We show that Knowledge Distillation isn't just a neat trick for copying a model; when using a robust teacher, it actually provides a tighter, more accurate variational lower bound for optimizing the Information Bottleneck objective.
  • Intermediate Features Matter: Previous adversarial distillation methods only matched the final output logits. IBD proves that matching intermediate features is crucial. It forces the student to filter out adversarial noise early in the network, rather than just trying to correct it at the very end.
  • Cross-Architecture Translation: The attention-based feature matching is highly flexible. It allows a massive teacher model (e.g., WideResNet) to effectively guide a smaller student (e.g., ResNet-18) by automatically learning which shallow/deep layers correspond to one another.

Results

IBD consistently outperformed state-of-the-art adversarial training and distillation baselines across multiple threat models (PGD, AutoAttack, Black-box attacks).

Robustness Results on CIFAR-10 and CIFAR-100
  • CIFAR-10 (ResNet-18): Achieved 52.11% robust accuracy against the rigorous AutoAttack (AA), beating previous SOTA methods like RSLAD (51.52%) and standard AT (47.73%).
  • CIFAR-100 (ResNet-18): Reached 29.21% AA accuracy, a significant jump over RSLAD (26.73%).
  • Pushing the Limits (WideResNet): When combined with Adversarial Weight Perturbation (AWP) on a larger WideResNet-34-10 student, IBD hit 57.18% AA accuracy on CIFAR-10, surpassing previously reported RobustBench baselines.
  • ImageNet: Successfully scaled to ImageNet, achieving 40.94% AA accuracy ($\epsilon=2/255$), easily beating Fast-AT (35.22%) and RSLAD (38.35%).

Limitations and Future Work

  • The Accuracy Trade-off: While adversarial robustness improves significantly, the model's "natural" accuracy on clean, unperturbed images does not see a major boost. The classic trade-off between robustness and standard accuracy remains.
  • Computational Overhead: IBD requires a pre-trained, adversarially robust teacher model. Training this teacher, and then running it alongside the student during distillation, increases the overall computational cost and training time.
  • Future Work: We are currently investigating if this tighter IB approximation can generalize to other applications of the Information Bottleneck principle, such as model compression or out-of-distribution generalization.

Summary updated

BibTeX
@inproceedings{kuang2023improving,
  author = {Huafeng Kuang and Hong Liu and Yongjian Wu and Shin'ichi Satoh and Rongrong Ji},
  title = {{Improving Adversarial Robustness via Information Bottleneck Distillation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=BvevOuEJFY},
}
Figure