Introduction
Deep learning models are notoriously brittle. Small, human-imperceptible perturbations—known as adversarial attacks—can trick state-of-the-art classifiers into misidentifying images with high confidence. Existing defenses generally fall into two categories: computationally expensive adversarial training or simple pre-processing techniques like JPEG compression. However, pre-processing often fails against "whitebox" attacks, where the adversary understands the defense mechanism and can "see through" the transformation.
Researchers have developed RandDisc (Randomized Discretization), a "plug-and-play" defense that creates an information-theoretic barrier against such attacks without requiring model retraining.
The RandDisc Defense Mechanism
RandDisc operates as a front-end filter for any pre-trained classifier. The process involves three distinct steps:
- Noise Injection: Random Gaussian noise is added to each pixel of the input image.
- Discretization: Each noisy pixel is mapped to its nearest "cluster center"—representative colors derived from the specific image being processed.
- Classification: The resulting transformed image is fed into a standard classifier.
This approach leverages the fact that pixels in natural images tend to cluster in color space. If a pixel is near a cluster center, small adversarial tweaks are unlikely to change its assigned cluster. If a pixel lies between clusters, the added noise makes the final assignment random, preventing an attacker from reliably "steering" the pixel toward a deceptive value.
Key Insights: Information-Theoretic Security
The core innovation of RandDisc is its reduction of the KL divergence between a clean image and its adversarial counterpart. Theoretically, if the distributions of the transformed clean and noisy images are sufficiently close, no algorithm can distinguish between them to mount a successful attack.
Crucially, the defense uses adaptive clustering, choosing centers based on the specific image rather than a fixed global palette. This preserves the semantic integrity of the image while stripping away the precision required for adversarial manipulation.
Experimental Results
The researchers evaluated RandDisc on MNIST and ImageNet (NIPS 2017 subset) benchmarks. To test against the strongest possible whitebox adversaries, they developed RandMix, a differentiable version of the defense used to generate adaptive attacks.
Performance Highlights:
- MNIST: RandDisc achieved 94.4% accuracy against strong PGD attacks, significantly outperforming vanilla CNNs (12%).
- ImageNet: On the NIPS 2017 competition subset, RandDisc demonstrated 3–5x higher accuracy under PGD attacks compared to standard adversarially-trained models.
- Stability: Against the top three winning attacks from the NIPS competition, RandDisc maintained at least 18% higher average accuracy and was 35% more effective against worst-case scenarios.
Limitations and Future Outlook
While highly effective, RandDisc introduces a trade-off between robustness and clean accuracy. On non-adversarial ImageNet images, accuracy drops from approximately 97.1% to 88-92% due to the loss of fine detail during discretization. Additionally, while the defense provides "certified robustness" (a mathematical guarantee of performance), these bounds are currently tighter for low-resolution images (MNIST) than for high-resolution ones (ImageNet).
Future work aims to refine the discretization process to maintain higher clean-image performance and to reduce the computational overhead required for the majority voting passes used to stabilize randomized outputs.
Summary updated