NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Robust Local Features for Improving the Generalization of Adversarial Training

Chuanbiao Song, Kun He, Jiadong Lin, Liwei Wang, John E. Hopcroft

Adversarial training is often considered the "heavy armor" of deep learning—it remains one of the most effective ways to protect neural networks from adversarial attacks. However, this armor is notoriously clunky. Models trained to withstand attacks frequently suffer from a "generalization gap," performing significantly worse on clean, unseen data than their standard, undefended counterparts.

In a compelling ICLR 2020 paper, researchers from Huazhong University, Peking University, and Cornell propose a clever fix: forcing models to stop obsessing over global structures and start paying attention to robust local features.

By introducing a method called RLFAT (Robust Local Features for Adversarial Training), the authors use a "Random Block Shuffle" technique to break up global image structures during training. By forcing the model to learn from local patches and then transferring that knowledge back to normal images, they achieve a rare win-win: significantly better robustness against attacks and higher accuracy on clean data.

The Problem: Global vs. Local Bias

Deep neural networks are notoriously brittle. A tiny, invisible-to-humans perturbation can flip a model's prediction from "dog" to "toaster." Adversarial Training (AT)—where you intentionally include these "attacked" images in the training set—helps mitigate this, but it comes with a cost to standard accuracy.

Recent research suggests that AT models become overly biased toward global structure features (the general silhouette or layout of an object). While these global features are robust to pixel-level noise, they do not generalize well to new variations in shape or pose. Meanwhile, standard models focus more on local features (textures, specific parts), which generalize better to new data but are easily broken by adversarial noise. The core challenge is finding a way to learn local features that are also robust.

The RLFAT Methodology

To solve this, the authors propose a multi-step approach centered around breaking the model's reliance on global geometry:

  1. Random Block Shuffle (RBS): To break the model's reliance on global structure, they split an image into a grid and randomly shuffle the blocks. This preserves the local details (like the texture of a bird's feathers) but destroys the global context (the wing might now be where the tail was).
Illustration of the Random Block Shuffle (RBS) process, showing how an image is split and rearranged to destroy global structure while preserving local patches.
  1. Robust Local Feature Learning (RLFL): The researchers perform adversarial training on these shuffled images. Because the global structure is no longer a reliable indicator of the object's class, the model is forced to find and rely on "robust local features."
  2. Robust Local Feature Transfer (RLFT): Since images are not shuffled in the real world during test time, the model needs to apply what it learned to normal, intact images. They use a knowledge transfer loss—minimizing the distance between the network's outputs for shuffled and non-shuffled adversarial images—to ensure the model maintains these robust local representations during standard adversarial training.

The team integrated this logic into two state-of-the-art defense frameworks: PGDAT (Projected Gradient Descent Adversarial Training) and TRADES.

Key Insights and Results

The team evaluated their approach on three standard benchmarks: STL-10, CIFAR-10, and CIFAR-100. STL-10 is particularly challenging due to its higher resolution and fewer training examples, making it a perfect test for generalization.

  • The "Aha" Moment: Shuffling blocks is a simple but powerful way to "blind" a model to global geometry. If a model can still identify an object when its parts are scrambled, it has successfully captured the essence of the local features.
  • Human-Centric Vision: By visualizing salience maps (which pixels the model cares about), the authors found that RLFAT models focus much more on the actual object and its parts. Baseline models often have "messier" focus areas, suggesting RLFAT aligns the AI's reasoning more closely with human perception.
  • Stronger Generalization and Robustness: The improvements were consistent and substantial. On the STL-10 dataset, their version of TRADES (RLFAT$_T$) achieved 72.38% clean accuracy, compared to just 65.24% for the original TRADES. Furthermore, it improved robustness against PGD attacks from 38.99% to 43.36%.
Performance comparison on the STL-10 dataset showing improvements in both clean accuracy (No Attack) and robust accuracy (Attack) when using RLFL and RLFT with TRADES.
  • Black-Box Defense: The models also performed better against derivative-free black-box attacks, showing that the robustness isn't just a result of "gradient masking" (a common pitfall where models only appear robust by breaking the gradient signal attackers rely on).

Limitations and Future Work

While the results are impressive, the authors note a few areas for further exploration. First, can we explicitly separate local and global features rather than just biasing the model toward one? Second, global information is useful for many tasks, so finding the optimal balance between local and global features remains an open question. Finally, while tested on CIFAR and STL-10, it remains to be seen how this specific block-shuffling strategy scales to massive, high-resolution datasets like ImageNet.

By breaking the image to fix the model, RLFAT provides a promising path toward AI that is not only harder to fool but also more capable of understanding the visual world the way humans do.

Summary updated

BibTeX
@inproceedings{song2020robust,
  author = {Chuanbiao Song and Kun He and Jiadong Lin and Liwei Wang and John E. Hopcroft},
  title = {{Robust Local Features for Improving the Generalization of Adversarial Training}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure