Abstract
Important insights towards the explainability of neural networks reside in the characteristics of their decision boundaries. In this work, we borrow tools from the field of adversarial robustness, and propose a new perspective that relates dataset features to the distance of samples to the decision boundary. This enables us to carefully tweak the position of the training samples and measure the induced changes on the boundaries of CNNs trained on large-scale vision datasets. We use this framework to reveal some intriguing properties of CNNs. Specifically, we rigorously confirm that neural networks exhibit a high invariance to non-discriminative features, and show that the decision boundaries of a DNN can only exist as long as the classifier is trained with some features that hold them together. Finally, we show that the construction of the decision boundary is extremely sensitive to small perturbations of the training samples, and that changes in certain directions can lead to sudden invariances in the orthogonal ones. This is precisely the mechanism that adversarial training uses to achieve robustness.
Introduction
Despite their success, deep neural networks (DNNs) are notoriously fragile. A tiny, imperceptible change to an image—an adversarial perturbation—can flip a "cat" prediction to a "truck." This suggests that the decision boundary, the geometric "fence" the network builds between classes, is alarmingly close to the data points. This research investigates the relationship between the features in a dataset and the geometry of these boundaries, exploring why networks are sensitive in some directions (like low-frequency shapes) but invariant in others, and how training dictates boundary placement.
Methodology
The researchers propose a framework to measure the margin (distance to the decision boundary) along specific directions in the input space using the following tools:
- Subspace-Constrained DeepFool: An adaptation of the DeepFool algorithm to find the smallest perturbation needed to change a model's prediction within specific constrained subspaces.
- Frequency Analysis (DCT): For image data, the Discrete Cosine Transform (DCT) is used to define subspaces. This allows measurement of the "energy" required to cross a decision boundary using only low-frequency (structural) or high-frequency (detailed) changes.
- Synthetic & "Flipped" Experiments: To prove that boundaries are data-driven, the authors created "flipped" datasets where low-frequency information was swapped with high-frequency information to observe if the network's sensitivity followed the features.
Experimental Setup
The study utilizes a mix of controlled synthetic environments and large-scale benchmarks:
- Synthetic Data: A linearly separable dataset used to train a Multi-Layer Perceptron (MLP).
- MNIST, CIFAR-10, and ImageNet: Standard computer vision datasets of varying scale.
- "Flipped" Variants: Modified versions of the above where the frequency spectrum of every image is inverted.
Key Insights
- Boundaries are "Elastic": Decision boundaries only exist where there are discriminative features to support them. Removing high-frequency features from training makes the network almost perfectly invariant to them.
- The "Flipped" Proof: In standard networks, margins are typically small in low frequencies and large in high frequencies. When trained on "flipped" data, the margin distribution also flips, confirming that boundary geometry directly reflects dataset features.
- Extreme Sensitivity: Boundary construction is incredibly sensitive to the exact position of training samples. Moving training points slightly in one direction can cause massive changes in boundary orientation in orthogonal directions.
- Adversarial Training (AT) as a Geometry Reshaper: AT works by slightly perturbing samples during training. This tiny movement "pushes" the decision boundary away, specifically increasing the margin in high-frequency directions where standard networks are usually vulnerable.
Key Results
The authors rigorously confirmed that CNNs are approximately invariant to non-discriminative features, showing significantly larger margins in noise-filled subspaces compared to feature-rich ones.
As illustrated in the figure above, in a ResNet-50 on ImageNet, adversarial training increased the high-frequency margin by orders of magnitude (e.g., from a margin of ~7.3 to ~1352.9 in specific DCT bands), effectively "clearing out" the decision boundaries from those directions. Furthermore, they demonstrated that modifying the position of as few as 100 training samples in a CIFAR-10 model was enough to locally introduce massive invariance.
Discussion and Future Work
While the DCT is effective for images, it may not be the optimal basis for all data types or non-linear features. Additionally, measuring margins across many subspaces is computationally intensive. Future work may involve using this framework to design faster adversarial training schemes, understand "catastrophic forgetting," or identify "low-margin blindspots" critical for safety-sensitive applications like medical imaging.
Summary updated