Abstract
Standard Convolutional Neural Networks (CNNs) often prioritize local textures over global shapes, a phenomenon known as texture-bias. This reliance makes models vulnerable to noise and adversarial attacks. We present SDbOA (Shape Deformation-based Online Augmentation), a novel training strategy that utilizes edge-guided image generation to create diverse shape variations. By forcing models to recognize objects through structural cues rather than surface patterns, SDbOA significantly enhances robustness across various benchmarks, including ImageNet and CIFAR-10.
Introduction: The Texture-Bias Problem
When presented with a "texture-shape conflict"—such as a cat's silhouette filled with elephant-skin texture—standard CNNs typically classify the image based on the texture (e.g., "elephant"). This texture-bias is a fundamental weakness; while humans rely on robust structural features, AI models often take the path of least resistance by memorizing easily distorted surface patterns.
This fragility is exploited by adversarial attacks and common environmental corruptions (like fog or blur). Previous attempts to mitigate this via style augmentation often lack the diversity needed to teach a network true shape invariance. SDbOA addresses this by generating semantically valid, warped versions of objects during training.
The SDbOA Framework
The proposed Shape Deformation-based Online Augmentation (SDbOA) pipeline consists of three integrated stages designed to produce high-quality, shape-varied training data in an online fashion.
1. Edge Map-based Shape Encoding (EMSE)
To capture a robust structural representation, the system combines a standard Canny edge detector with a "self-information guided map." This approach ensures that the resulting edge map includes broader boundary regions, making the shape representation less sensitive to pixel-level noise.
2. TPS-based Shape Deformation (TSD)
The encoded edge map is subjected to Thin Plate Spline (TPS) deformation. By applying a uniform grid and randomly perturbing its points, the system creates "warped" versions of the object. These deformations are carefully controlled to maintain the underlying structural logic of the class.
3. Texture and Shape-based Generation (TSG)
The final stage uses a GAN-based generator to "inpainting" the original texture back into the newly deformed shape. A two-stage training process with a shape-preservation loss ensures that the generated image adheres strictly to the deformed edges while retaining realistic textures.
Experimental Results
The researchers evaluated SDbOA across multiple benchmarks, demonstrating a significant shift in model behavior and robustness:
- Shape-Bias Shift: On ImageNet, the shape-bias metric improved from 21.39% in standard models to 71.28% with SDbOA.
- Adversarial Robustness: Against the powerful C&W attack on CIFAR-10, SDbOA maintained a robust accuracy of 56.06%, whereas vanilla models dropped to near zero.
- Corruption Resistance: On CIFAR-10-C, SDbOA achieved a mean Corruption Error (mCE) of 18.8%, outperforming established methods like Mixup and AugMix.
- Backdoor Immunity: The method effectively neutralized "poisoned" data, reducing Attack Success Rates (ASR) to nearly 0% in several scenarios.
Key Insights
A critical finding is the existence of a "Goldilocks" zone for deformation intensity ($\lambda$). While moderate deformation ($\lambda \approx 0.1$) encourages shape learning, excessive warping can destroy semantic meaning, inadvertently forcing the model back toward texture reliance. Furthermore, the study reveals that shape-biased models are inherently more stable; because they allocate more neural capacity to structural variations, their internal feature maps remain consistent even under adversarial pressure.
Conclusion and Future Work
SDbOA successfully shifts the learning paradigm of CNNs from fragile textures to robust shapes. While highly effective against pixel-wise perturbations, future work will explore resilience against patch-wise occlusions and the application of these principles to Vision Transformer (ViT) architectures.
Summary updated