Abstract
Deep Neural Networks (DNNs) are often criticized for their over-reliance on texture rather than shape. This paper introduces a fully differentiable framework that parameterizes 2D shapes using Fourier series and the Winding Number Theorem. By optimizing these "Fourier shapes" through backpropagation, the authors demonstrate that DNNs possess significant geometric priors. The framework enables high-confidence classification from silhouettes alone, precise model interpretability, and efficient geometric adversarial attacks using as few as 51 parameters.
Introduction: The Texture-Shape Gap
While humans primarily recognize objects through a combination of shape and texture, computer vision research has historically highlighted a "texture obsession" in Deep Neural Networks (DNNs). Most adversarial attacks and interpretability tools operate at the pixel level, often resulting in high-frequency noise that lacks semantic meaning to humans. The fundamental challenge in studying shape within DNNs is the gap between continuous geometry and discrete pixel grids. Bridging this gap requires a representation that is both expressive and differentiable.
Methodology: Bridging Geometry and Backpropagation
The researchers developed a three-stage pipeline to make geometry differentiable and accessible to gradient descent:
- Fourier Shape Parameterization: Shapes are represented as 2D closed contours defined by a compact set of Fourier coefficients ($c_k$). Low-frequency coefficients define the general structure (the "blob"), while higher harmonics add fine-grained details like ears or fins.
- Differentiable Mapping via Winding Numbers: To convert these coefficients into a pixel grid the DNN can process, the authors utilize the Winding Number Theorem from complex analysis. By implementing this as a differentiable sum, gradients can flow from the model's final classification score back to the Fourier coefficients.
- Signal Energy Regularization: To prevent the optimization from creating unrealistic, "spiky" shapes, constraints based on signal energy are applied. This ensures the model builds a stable base shape before adding high-frequency details.
Experimental Setup
The framework was evaluated on two major benchmarks in computer vision:
- ImageNet: Used for class-specific shape generation and interpretability experiments across various architectures, including ResNet, VGG, DenseNet, and Vision Transformers.
- MS COCO: Used to test the "adversarial shape" paradigm in real-world object detection scenarios using models like YOLOv3 and RetinaNet.
Key Insights and Results
The experiments revealed that shape alone is a powerful semantic carrier. A grayscale silhouette, generated from scratch with no texture, can trigger a ResNet-50 model to classify an "ice bear" with 98.8% confidence. This proves that DNNs harbor deep geometric priors, even if they typically prioritize texture in standard training.
Surgical Interpretability and Adversarial Potency
Traditional interpretability tools like Grad-CAM often produce blurry heatmaps. By optimizing a Fourier mask to be as small as possible while maintaining classification, the authors isolated the exact regions critical for the model. For example, a model may only need to see the flame of a candle (1.68% of the image) to identify it with certainty.
Furthermore, the method proved highly efficient for adversarial attacks. While standard pixel-based attacks involve tens of thousands of parameters, this Fourier method achieved high success rates with just 51 parameters ($K=25$). In object detection, placing an optimized white Fourier shape over a person reduced YOLOv3’s detection confidence from 94% to 15.9%, effectively rendering the subject "invisible" to the AI without complex textures.
Conclusion and Future Directions
This work demonstrates that geometry is a viable and potent medium for interacting with DNNs. Future research may extend this to 3D using spherical Fourier series to optimize meshes or point clouds. Additionally, exploring hybrid optimizations that evolve both shape and texture simultaneously could lead to even more robust and semantically meaningful adversarial examples.
Summary updated