Adversarial Robustness by Design Through Analog Computing And Synthetic Gradients

Alessandro Cappelli, Ruben Ohana, Julien Launay, Laurent Meunier, Iacopo Poli, Florent Krzakala

Introduction

Deep neural networks are highly susceptible to adversarial attacks—small, intentional perturbations to input data that lead to incorrect classifications. Traditional defenses, such as adversarial training, often require significant computational resources and frequently result in a "robustness-accuracy tradeoff," where model performance on clean data (natural accuracy) is sacrificed for security. Furthermore, digital "gradient obfuscation" techniques are often circumvented by adaptive attacks like Backward Pass Differentiable Approximation (BPDA).

This research proposes a hardware-integrated solution: an analog Optical Processing Unit (OPU) that introduces physical parameter obfuscation. By combining this hardware with a novel hybrid training regime using Direct Feedback Alignment (DFA), the authors demonstrate a robust-by-design architecture that maintains high natural accuracy while resisting white-box, black-box, and transfer attacks.

Methodology: The Optical Processing Unit and Hybrid Training

The core of the proposed defense is the integration of an analog OPU into a standard VGG-16 architecture. The OPU performs a fixed, non-linear random projection by scattering light through a diffusive medium. Unlike digital weights, these physical parameters are inherently hidden from both the user and potential attackers, creating a layer of "parameter obfuscation."

Figure 1: The hybrid architecture integrating convolutional layers with an analog OPU, trained via a combination of Backpropagation and Direct Feedback Alignment (DFA).

Because the OPU is a non-differentiable physical component, standard backpropagation cannot be used for the entire network. The authors implement a hybrid training approach:

  1. Standard Backpropagation (BP): Used for layers following the OPU.
  2. Direct Feedback Alignment (DFA): Used for layers preceding the OPU. DFA utilizes a random projection of the global error as a "synthetic gradient," bypassing the OPU entirely during the backward pass.

Experimental Results

The VGG-OPU model was evaluated on the CIFAR-10 and CIFAR-100 datasets. A key finding is that the architecture incurs zero cost to natural accuracy, maintaining the performance of a standard VGG-16 on clean images.

Robustness to White-Box Attacks

The model was tested against Projected Gradient Descent (PGD) attacks. Even when attackers attempted to bypass the OPU using BPDA, the VGG-OPU model maintained significantly higher accuracy than the baseline.

Figure 5: Accuracy under PGD attacks for CIFAR-10 and CIFAR-100. The VGG-OPU models (orange and blue) significantly outperform the standard VGG-16 baseline (black) as perturbation increases.

As shown in the results, the VGG-OPU model provides a 20% to 40% accuracy improvement over the baseline under strong PGD attacks. This robustness is maintained even against adaptive attacks like BPDA, which attempts to approximate the non-differentiable OPU layer.

Black-Box and Transfer Attack Resistance

The study highlights that robustness is multi-faceted:

  • Black-Box Robustness: Attributed to the OPU's combination of input binarization and random projection, which complicates the optimization landscape for gradient-free attacks like Parsimonious attacks.
  • Transfer Robustness: Resistance to transfer attacks stems from the DFA training itself. DFA forces the network to learn features that are fundamentally different from those learned via standard backpropagation, rendering standard adversarial examples ineffective.

Discussion and Conclusion

The integration of analog hardware provides a unique security layer that is difficult to replicate or approximate mathematically. While physical parameters could theoretically be retrieved through advanced phase retrieval techniques, the computational complexity for high-dimensional matrices makes such an attack practically infeasible. By moving security from software-based gradient masking to hardware-based parameter obfuscation, this work offers a path toward deep learning models that are robust by design without the traditional overhead or accuracy penalties associated with adversarial defense.

Summary updated

BibTeX
@inproceedings{cappelli2021adversarial,
  author = {Alessandro Cappelli and Ruben Ohana and Julien Launay and Laurent Meunier and Iacopo Poli and Florent Krzakala},
  title = {{Adversarial Robustness by Design Through Analog Computing And Synthetic Gradients}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2021},
  doi = {10.1109/icassp43922.2022.9746671},
}
Figure