TL;DR
This paper introduces a novel regularization technique for deep neural networks that disentangles image representations into "appearance" and "geometric" codes. This approach significantly enhances robustness against adversarial attacks and improves generalization to images with large geometric transformations, drawing inspiration from neuroscience findings on primate visual processing.
What Problem Does This Paper Address?
Deep Convolutional Neural Networks (CNNs) have achieved remarkable success in various computer vision tasks. However, they suffer from two critical weaknesses: vulnerability to adversarial attacks (imperceptible perturbations that fool the model) and poor generalization to images with significant geometric variations (like changes in viewpoint or scale). These limitations hinder their deployment in safety-critical applications such as autonomous driving. Existing defense mechanisms often struggle to scale or lack guaranteed robustness.
Methods
The core of this paper is a "Disentangled Deep Autoencoding Regularization" framework. It augments a standard CNN classifier with a regularizing deep autoencoder. This autoencoder's encoder maps an input image into two distinct low-dimensional codes:
- Appearance Code ($C_a$): Captures texture, color, and background information.
- Geometric Code ($C_g$): Captures category-relevant shape information and spatial transformations.
Two decoders then reconstruct the original image from these codes. A "warping function" uses the geometric code to displace the appearance code, allowing for reconstruction of the original image. The entire system (encoder, decoders, and classifier) is trained jointly. The loss function includes the standard cross-entropy loss for classification, a reconstruction loss for the autoencoder, and a regularization term that encourages the separation of appearance and geometric codes. Additionally, a data augmentation strategy is employed, involving random deformations of input images, with an L2 regularization on the difference between appearance codes of original and deformed images to further enforce disentanglement.
Datasets
The paper evaluates its method on the following datasets:
- MNIST: A dataset of handwritten digits, used for evaluating robustness against adversarial attacks.
- FaceScrub: A dataset of celebrity faces, used for evaluating robustness against adversarial attacks.
- CIFAR10: A dataset of color images across 10 classes, used for evaluating robustness against adversarial attacks on more general natural images.
- smallNORB: A dataset of 3D objects captured under various illuminations, elevations, and azimuths, used for evaluating generalization to novel viewpoints.
Key Insights and Ideas
- Neuroscience Inspiration: The work is directly inspired by the discovery that primate brains disentangle shape and appearance representations, suggesting this is a key to robust perception.
- Disentanglement as a Defense: The paper posits that separating appearance from geometric information is crucial for robustness. Adversarial attacks often exploit the model's reliance on specific texture or pixel-level details, which can be mitigated by focusing on more invariant geometric features.
- Complementary Defense: The proposed regularization is designed to be orthogonal to existing defense methods, meaning it can be combined with them (e.g., adversarial training) for potentially even greater gains.
- Data Efficiency: By disentangling features, the geometric code lives in a lower-dimensional space, potentially making the model more data-efficient and less susceptible to overfitting on spurious correlations.
Key Results
- Robustness Against Adversarial Attacks: The proposed method significantly outperforms baseline CNNs against both white-box (FGSM, BIM) and black-box (Local Search) attacks across MNIST, FaceScrub, and CIFAR10 datasets. For instance, on MNIST with FGSM attack ($\epsilon=0.5$), the attack success rate drops from 97.6% for the baseline to 38.5% for their method.
- Improved Generalization: On the smallNORB dataset, the method achieves a 2% improvement in accuracy for novel azimuths and an 8% improvement for novel elevations compared to the baseline CNN, reaching state-of-the-art performance for novel azimuth generalization.
- Ablation Studies: Disentangled feature learning (removing the warping function) is shown to be essential for robustness. Augmented training and code regularization further contribute to improved generalization.
- Joint Defense: Combining the proposed method with adversarial training further boosts robustness, outperforming adversarial training alone.
Limitations and Future Work
- Limitations: The paper notes that their method shows no noticeable advantage over benchmark CNNs against black-box attacks leveraging transferability properties, as this type of attack is generalizable to many models. The visualization of feature embeddings suggests that while the geometric code remains separable even after attack, the appearance code can still become entangled.
- Future Work: The authors suggest exploring other neuroscience-inspired mechanisms for robustness and generalization. They also propose combining their method with capsule networks, which also aim to improve robustness and generalization through structured representations.
Summary updated