Abstract
Modern Convolutional Neural Networks (CNNs) frequently overlook fundamental signal processing principles, specifically the Nyquist-Shannon Sampling Theorem, during downsampling operations. This neglect introduces aliasing artifacts that compromise model robustness against adversarial attacks and common image corruptions. We introduce Aliasing and Sinc Artifact free Pooling (ASAP), a novel downsampling technique operating in the Fourier domain. By combining spectral cropping with windowing functions, ASAP eliminates aliasing and suppresses "ringing" artifacts. Our results demonstrate that ASAP provides a significant boost to native robustness on benchmarks like ImageNet-C and CIFAR-10 without the prohibitive costs of traditional adversarial training.
The Aliasing Problem in CNNs
Standard CNN architectures rely on operations like MaxPooling or strided convolutions to reduce spatial dimensions. However, these methods aggressively discard information, violating the Nyquist-Shannon Sampling Theorem which requires filtering out high-frequency components before downsampling. This violation results in aliasing—where high-frequency signals are misinterpreted as low-frequency ones. While often imperceptible to humans, these artifacts create instabilities that deep learning models exploit, leading to vulnerability against noise and adversarial perturbations.
Proposed Method: ASAP Pooling
To address these issues, we propose moving downsampling from the spatial domain to the frequency domain.
- Frequency Low Cut (FLC) Pooling: FLC applies a Fast Fourier Transform (FFT) to the feature map, removes high-frequency components beyond the new Nyquist limit, and performs an inverse FFT (IFFT). While theoretically alias-free, this "hard cut" in the frequency domain introduces "ringing" or sinc artifacts (Gibbs phenomenon) in the spatial domain, visible as ripples around sharp edges.
- ASAP (Aliasing and Sinc Artifact free Pooling): ASAP refines FLC by applying a Hamming window in the frequency domain. This "soft" transition suppresses ringing artifacts while maintaining the alias-free property. Additionally, ASAP incorporates stabilization techniques, such as asymmetric padding, to ensure signal centering during FFT operations on even-sized feature maps.
Experimental Results
We evaluated ASAP across ImageNet-1k, ImageNet-C (common corruptions), and CIFAR-10.
- Native Robustness: On ImageNet, a ResNet-18 equipped with ASAP improved FGSM adversarial accuracy from 21.20% to nearly 40% without any adversarial training. This suggests that much of a network's vulnerability is rooted in poor mathematical foundations of downsampling.
- Corruption Resistance: ASAP consistently outperformed existing anti-aliasing methods like BlurPooling on ImageNet-C, demonstrating superior handling of blur, noise, and weather-related shifts.
- Efficiency and Training Stability: Unlike traditional adversarial training, which can increase training time by 700%, the "Small Padding" variant of ASAP ($ASAP_{sp}$) adds only about 8% overhead. Furthermore, ASAP helps prevent "catastrophic overfitting" in fast adversarial training methods by stabilizing the feature representation.
Conclusion
ASAP demonstrates that robustness does not always require expensive training regimes; it can be a native property of a mathematically sound architecture. By fixing the "math" of downsampling in the Fourier domain, ASAP provides a clear path toward more reliable and stable computer vision models.
Summary updated