Abstract
Deep neural networks (DNNs) are now commonly used in many domains. However, they are vulnerable to adversarial attacks: carefully crafted perturbations on data inputs that can fool a model into making incorrect predictions. Despite significant research on developing DNN attack and defense techniques, people still lack an understanding of how such attacks penetrate a model's internals. We present Bluff, an interactive system for visualizing, characterizing, and deciphering adversarial attacks on vision-based neural networks. Bluff allows people to flexibly visualize and compare the activation pathways for benign and attacked images, revealing mechanisms that adversarial attacks employ to inflict harm on a model. Bluff is open-sourced and runs in modern web browsers.
Introduction
Deep Neural Networks are notoriously vulnerable to adversarial attacks—tiny, human-imperceptible tweaks to an image that cause a model to confidently misclassify it. While the efficacy of these attacks is well-documented, the internal mechanisms remain largely a "black box." Understanding which specific neurons an attack exploits or how the "strength" of an attack changes internal behavior is critical for building robust defenses. Bluff addresses this gap by providing a visual, interactive way to decipher these "adversarial pathways."
The Bluff Visualization System
Bluff is a web-based interactive system designed to visualize the internal state of a model (specifically InceptionV1) during an attack. The system focuses on Activation Pathways, which are sequences of highly activated neurons (channels) and the influential connections between them.
To make the complex network data intelligible, Bluff employs a unified color-coding scheme in its Graph Summary View:
- Green: Neurons important for the original (correct) class.
- Blue: Neurons important for the target (incorrect) class.
- Orange: Neurons important for both classes.
- Red: Neurons uniquely activated or significantly altered by the adversarial attack.
Deciphering Attack Strategies
Through interactive exploration, Bluff has revealed several distinct strategies employed by adversarial attacks:
The "Brown Bird" Strategy
In a case study involving the misclassification of a panda as an armadillo, Bluff revealed that the attack did not merely add random noise. Instead, it specifically excited neurons associated with "scales," "bumps," and "mesh" textures. These features combined to trick the model into detecting a "brown bird" feature—a visual component the model strongly associates with armadillos, effectively bridging the semantic gap between the two unrelated classes.
Alternative Pathways
Attacks can also find "bypass" routes. When attempting to turn a diamondback snake into a green vine snake, the attack surprisingly exploited "blue bird" and "blue object" neurons. This suggests that adversarial perturbations can reach a target class by activating features that are not even present in the target's typical training images.
The Impact of Attack Strength
One of the most counterintuitive findings enabled by Bluff's "Compare Attacks" mode is the relationship between perturbation strength and neuron exploitation. Researchers discovered a phenomenon described as "Death by a Thousand Cuts."
Weaker attacks (low perturbation) often exploit a significantly higher number of neurons than stronger ones. For example, a weak PGD attack (strength 0.1) might trigger 28 "attack-only" neurons, utilizing many unrelated "polysemantic" neurons to nudge the model toward a wrong answer. In contrast, a stronger attack (strength 0.5) can more directly overwhelm the model, requiring as few as 9 potent features to achieve the same misclassification.
Conclusion and Future Work
Bluff provides a qualitative and quantitative framework for identifying the semantic features attacks use to subvert DNNs. By lowering the barrier for inspecting model internals, it allows researchers to move beyond simple accuracy metrics toward a structural understanding of model vulnerability.
Future iterations of Bluff aim to include Interactive Neuron Editing, allowing users to "delete" vulnerable neurons in real-time to test for increased robustness, and applying the tool to models that have undergone adversarial training to inspect the cleanliness of their internal pathways.
Summary updated