Towards robust neural networks via orthogonal diversity

Kun Fang, Qinghua Tao, Yingwen Wu, Tao Li, Jia Cai, Feipeng Cai, Xiaolin Huang, Jie Yang

TL;DR

This paper introduces DIO, a novel defense against adversarial attacks that augments neural networks by embedding multiple, mutually-orthogonal "heads" that share a common backbone. This model-level augmentation, rather than data augmentation, forces the network to learn diverse features, significantly improving robustness without sacrificing clean accuracy.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial examples – subtly perturbed inputs that cause misclassifications, despite being imperceptible to humans. While adversarial training (augmenting training data with adversarial examples) is a common defense, it often leads to a drop in performance on clean, unperturbed data and doesn't fundamentally improve the model's internal robustness. This paper addresses the need for defenses that enhance the model's inherent robustness by learning more adaptive features, independent of data augmentation strategies.

Methods

The core of DIO is model augmentation. Instead of modifying the input data, DIO modifies the network architecture itself. It embeds multiple parallel "heads" (linear classifiers) after the shared backbone of a standard DNN. The key innovation lies in two constraints applied to these heads:

  • Orthogonality Constraint: The weight matrices of these heads are encouraged to be mutually orthogonal. This forces them to learn distinct, diverse features from the backbone's output.
  • Distance Constraint: A margin-maximization loss is introduced to ensure that the features are sufficiently separated by these orthogonal heads, preventing the natural tendency of high-dimensional vectors to be nearly orthogonal without meaningful separation.

These constraints are incorporated into a novel optimization objective that includes the standard cross-entropy loss, the orthogonality loss, and the distance loss. During inference, one of these heads is randomly selected to make a prediction.

Datasets

The paper evaluates DIO on the following standard image classification datasets:

  • CIFAR10
  • CIFAR100
  • TinyImageNet

Key Insights and Ideas

  • Model Augmentation as a Robustness Strategy: The paper convincingly argues that improving a model's internal structure and feature learning can be as, if not more, effective than solely relying on data augmentation for adversarial robustness.
  • Orthogonal Diversity is Key: The orthogonality constraint is not just about making heads different; it's about forcing them to learn complementary representations that collectively contribute to robust feature extraction.
  • Complementary Constraints: The orthogonality and distance constraints work synergistically. Orthogonality alone might be weak in high dimensions, but the distance constraint makes it more meaningful and impactful.
  • Robustness without Sacrificing Clean Accuracy: DIO demonstrates strong adversarial robustness while maintaining competitive clean accuracy, a common trade-off with many adversarial training methods.
  • Synergy with Existing Defenses: DIO can be effectively combined with existing data-augmented adversarial training methods (like TRADES, GAIRAT) to achieve even greater robustness gains.

Key Results

  • Superior Robustness on Non-Data-Augmented Defenses: When trained only on clean data (vanilla training), DIO significantly outperforms other non-data-augmented defenses like PNI, DeNoise, and PCL against white-box (FGSM, C&W) and black-box (TRANSFER, SQUARE) attacks. For example, on CIFAR10, DIO achieves 38.57% accuracy against FGSM, compared to baseline's 25.31%.
  • Enhanced Robustness with Data Augmentation: When combined with state-of-the-art adversarial training methods (e.g., TRADES, GAIRAT), DIO further boosts robust accuracy. For instance, on CIFAR10, DIO+GAIRAT on WRN34X10 achieves over 65% robust accuracy against PGD-20.
  • Effective Against Adaptive Attacks: DIO shows resilience even against adaptive attacks designed to exploit its multi-head structure and randomness, demonstrating that its robustness is not due to gradient masking.
  • Minimal Model Capacity Increase: The addition of multiple heads results in only a minor increase in model parameters (typically <2%), suggesting the robustness gains are primarily from the architectural diversity, not just increased capacity.

Limitations and Future Work

  • Structural Modifications: DIO requires architectural changes (adding multiple heads), which might not be ideal for all downstream tasks that prefer standard network structures. The authors suggest exploring more efficient ways to achieve orthogonality diversity without explicit multi-head structures.
  • Training and Storage Costs: While minor, the multi-head structure does introduce additional costs in training time and storage.
  • Hyperparameter Tuning: The effectiveness of DIO depends on hyperparameter choices (α, β, τ, L), and finding optimal values might require careful tuning. The sensitivity analysis on τ suggests that while it can improve robustness, excessively large values might have side effects.

Summary updated

BibTeX
@article{fang2020towards,
  author = {Kun Fang and Qinghua Tao and Yingwen Wu and Tao Li and Jia Cai and Feipeng Cai and Xiaolin Huang and Jie Yang},
  title = {{Towards robust neural networks via orthogonal diversity}},
  journal = {Pattern Recognition},
  year = {2020},
}
Figure