Abstract: The vulnerabilities of deep learning models towards adversarial attacks have attracted increasing attention, especially when models are deployed in security-critical domains. Numerous defense methods, including reactive and proactive ones, have been proposed for model robustness improvement. Reactive defenses, such as conducting transformations to remove perturbations, usually fail to handle large perturbations. The proactive defenses that involve retraining, suffer from the attack dependency and high computation cost. In this paper, we consider defense methods from the general effect of adversarial attacks that take on neurons inside the model. We introduce the concept of neuron influence, which can quantitatively measure neurons' contribution to correct classification. Then, we observe that almost all attacks fool the model by suppressing neurons with larger influence and enhancing those with smaller influence. Based on this, we propose Neuron-level Inverse Perturbation (NIP), a novel defense against general adversarial attacks. It calculates neuron influence from benign examples and then modifies input examples by generating inverse perturbations that can in turn strengthen neurons with larger influence and weaken those with smaller influence.
1. Introduction
Deep Neural Networks (DNNs) are notoriously fragile. Small, often imperceptible changes to an input—known as adversarial perturbations—can cause a model to confidently misclassify an image or audio clip. Existing defenses generally fall into two camps: reactive defenses, which try to "clean" the input before the model sees it, and proactive defenses, which involve modifying the model itself through adversarial training. While reactive methods are fast, they often fail against sophisticated perturbations. Proactive methods, though robust, are computationally expensive and often only work against the specific attacks used during training.
This paper introduces a "middle way": Neuron-level Inverse Perturbation (NIP). NIP is a defense that is as flexible as reactive methods but as robust as proactive ones, all without the massive cost of model retraining.
2. The Concept of Neuron Influence
The core of this research is the discovery of an "internal signature" shared by almost all adversarial attacks. By introducing the concept of Neuron Influence—a quantitative measure of a neuron's contribution to a correct prediction—the authors found a consistent pattern. Regardless of the specific attack (e.g., FGSM, PGD, DeepFool), adversarial perturbations work by suppressing "front" neurons (those most responsible for a correct prediction) and enhancing "tail" neurons (those that usually have little influence on the correct class).
As shown in the figure above, the distribution of neuron influence is dramatically shifted during an attack. This observation allows for an "attack-agnostic" defense; one does not need to know the specific mechanism of an attack to counteract its internal effects.
3. Methodology: Neuron-level Inverse Perturbation (NIP)
NIP leverages this internal signature to "fight fire with fire" by adding a secondary, corrective perturbation to inputs. The process occurs in two stages:
- Preparation Stage: Using a small set of benign data, the system calculates the influence of neurons in a specific layer (typically the flatten or global average pooling layer). It identifies "front" neurons (high influence), "tail" neurons (low influence), and "remaining" neurons (stable). It then generates a library of inverse perturbations ($\rho$)—input modifications designed to mathematically strengthen front neurons and weaken tail ones.
- Test Stage: When a new input arrives, NIP examines the activation pattern of the stable "remaining" neurons. It finds the best-matching inverse perturbation from its library and applies it to the input. This process is adaptive, scaling the corrective perturbation based on the properties of the incoming data.
4. Experimental Results
The authors evaluated NIP across several domains, including image classification (CIFAR-10, CIFAR-100, ImageNet) and speaker recognition (VCTK dataset).
Key Findings:
- Effectiveness: NIP outperformed 10 state-of-the-art (SOTA) defenses across 13 different types of attacks, improving the defense success rate by an average of 1.45x.
- Robustness to Scale: While standard reactive defenses fail when perturbations become large, NIP maintained a defense success rate of over 70%, roughly 3.4x better than baselines in worst-case scenarios.
- Efficiency: NIP is highly efficient, running at approximately 1/6 the time cost of complex reactive baselines and requiring zero model retraining.
- Real-world Application: The method achieved a 95% average defense success rate on audio speaker recognition and successfully protected black-box models on Baidu’s commercial cloud platform.
5. Conclusion and Future Work
NIP presents a novel, plug-and-play module for deep learning security. By focusing on the internal neuron behavior rather than external noise patterns, it provides a robust defense against a wide array of additive adversarial attacks.
However, limitations remain. NIP currently struggles against non-additive attacks, such as spatial transformations (rotations or tilts), where its success rate drops to approximately 50%. Future research will explore adapting NIP for these geometric attacks and further optimizing the neuron selection process to reduce computational overhead for ultra-low-latency applications.
Summary updated