Abstract
Existing works have extensively studied adversarial examples, which are minimal perturbations that can mislead the output of deep neural networks (DNNs) while remaining imperceptible to humans. However, in this work, we reveal the existence of a harmless perturbation space, in which perturbations drawn from this space, regardless of their magnitudes, leave the network output unchanged when applied to inputs. Essentially, the harmless perturbation space emerges from the usage of non-injective functions (linear or non-linear layers) within DNNs, enabling multiple distinct inputs to be mapped to the same output. For linear layers with input dimensions exceeding output dimensions, any linear combination of the orthogonal bases of the nullspace of the parameter consistently yields no change in their output. For non-linear layers, the harmless perturbation space may expand, depending on the properties of the layers and input samples. Inspired by this property of DNNs, we solve for a family of general perturbation spaces that are redundant for the DNN's decision, and can be used to hide sensitive data and serve as a means of model identification. Our work highlights the distinctive robustness of DNNs (i.e., consistency under large magnitude perturbations) in contrast to adversarial examples (vulnerability for small noises).
Introduction
Most research on adversarial robustness focuses on the vulnerability of models—how tiny, invisible bits of noise can cause catastrophic misclassifications. This paper flips the script to examine a different kind of robustness: invariance. Deep Neural Networks (DNNs) are inherently "many-to-one" functions. Because they often compress high-dimensional inputs (e.g., a 3072-pixel CIFAR image) into lower-dimensional outputs (e.g., 10 class probabilities), there must exist a massive redundant space in the input. We identify and mathematically define this "harmless perturbation space" where even massive changes to an image result in zero change to the model's output.
Theoretical Framework
We provide a framework to solve for these harmless spaces layer-by-layer, exploiting the mathematical properties of common network components:
- Linear Layers: For any linear layer where the input dimension ($n$) is greater than the output dimension ($m$), there exists a "nullspace" of dimension $n-m$. Any vector in this nullspace, when added to the input, is mathematically zeroed out by the layer's weights.
- Non-linear Layers: Harmless spaces behave predictably in common activations:
- ReLU: Perturbations are harmless if they only affect neurons that are already "off" (negative).
- Softmax: Adding a constant value to all logit components preserves the final probability distribution.
- Pooling: Changes that do not alter the "max" or "average" within a window are ignored.
Geometric Decomposition
We prove that any perturbation (random noise or adversarial) can be decomposed into a "harmless" component ($\delta_{||}$) and an "effective" component ($\delta_{\perp}$). The model's output is determined solely by the effective component, regardless of how large the harmless part is.
Experimental Validation
We validated our theory across standard benchmarks, including MNIST, CIFAR-10/100, and SVHN, using architectures like ResNet-18, ResNet-50, VGG-16, and EfficientNet.
Dimensionality and Invariance
Our analysis shows that the dimension of the harmless space is significant in modern DNNs. As shown in the figures below, the dimension decreases as the output complexity (number of kernels or neurons) increases, but remains substantial for typical layer configurations.
Empirically, harmless perturbations resulted in network output errors (RMSE) in the range of $10^{-15}$—essentially zero. We generated images with significant visual changes (Structural Similarity Index ~0.47) that maintained 0.00% accuracy drop. In contrast, adding standard Gaussian noise of a similar magnitude caused accuracy to drop by over 32%.
Applications and Insights
- Magnitude vs. Direction: In DNNs, "big" noise isn't necessarily "bad" noise. If noise is oriented entirely within the harmless subspace, the model is 100% robust to it, even if the image becomes unrecognizable to humans.
- Privacy through Redundancy: Because these perturbations are model-specific, sensitive data can be "hidden" by adding a massive harmless perturbation. A human sees noise, but the intended AI model sees the original image perfectly.
- Model Fingerprinting: Harmless perturbations are generally not transferable. A perturbation that is harmless for ResNet-50 will likely cause a ResNet-18 to fail, serving as a means of model identification.
Conclusion
While DNNs are vulnerable to small adversarial attacks, they exhibit remarkable robustness to large-scale harmless perturbations. Understanding these redundant spaces provides a new perspective on model invariance and suggests that adversarial research should focus on the "effective component" of noise rather than total $L_p$ norms. Future work will explore finding global harmless spaces for deep networks and investigating "Equivalent Adversarial Spaces" to understand attack transferability.
Summary updated