This summary provides a technical overview of the paper "Natural Color Fool: Towards Boosting Black-box Unrestricted Attacks," presented at NeurIPS 2022.
TL;DR
The authors introduce Natural Color Fool (NCF), a novel adversarial attack that fools deep neural networks by realistically manipulating image colors. By leveraging a library of real-world color distributions and fine-tuning them with gradient-based optimization, NCF achieves significantly higher black-box transferability than previous methods while remaining virtually indistinguishable from natural images to the human eye.
What Problem Does This Paper Address?
Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial attacks—carefully crafted inputs designed to trigger misclassification. Most traditional attacks rely on $L_p$-norm constraints, adding tiny, high-frequency "noise" that is human-imperceptible. However, these are often easy to defend against and don't reflect real-world variations.
"Unrestricted" attacks, conversely, allow for larger, semantically meaningful changes (like changing the color of a car or the sky) that still look "natural" to humans. While promising, current unrestricted color attacks often lack flexibility. To ensure naturalness, they either use very small color shifts or rely on rigid, intuitive rules. This lack of flexibility severely limits their transferability—the ability of an adversarial example crafted for one model (the substitute) to fool a completely different, unknown model (the black-box target).
Methods
NCF aims to maximize attack flexibility without sacrificing naturalness. The core of their approach involves three main components:
- Color Distribution Library: The authors built a library using the ADE20K dataset, containing 20 realistic color distributions for each of 150 semantic classes (e.g., "mountain," "car," "airplane"). This ensures that any color shift applied is grounded in real-world data. The pipeline for building the color distribution library from ADE20K.
- The NCF Pipeline:
- Segmentation: The input image is first segmented into semantic masks.
- Color Mapping: For each class in the image, a realistic distribution is randomly selected from the library. These are fused into a target distribution.
- Monge-Kantorovitch (MK) Solution: The authors use the MK solution to find an optimal transfer matrix $T$ that maps the original image's color distribution to the target one in the perceptually uniform CIELab color space. The simplified NCF pipeline showing how an image variant is generated and optimized.
- Optimization Techniques: To boost transferability, they don't just pick a random color; they optimize:
- Selection: They sample $\eta$ random distributions and use the substitute model to pick the most adversarial one.
- Neighborhood Search (NS): They use gradient-based optimization (MI-FGSM) to slightly adjust the transfer matrix $T$ within a small $\epsilon$ range, making the attack more potent against the substitute model.
- Initialization Reset (IR): To avoid getting stuck in local optima, they repeat the selection process $K$ times.
Datasets
- ADE20K: Used to construct the "Distribution of color Distributions" (DoD) library for 150 semantic classes.
- ImageNet-compatible Dataset: A standard benchmark of 1,000 images used for evaluating attack success and transferability across various CNN and Vision Transformer (ViT) architectures.
Key Insights and Ideas
- Flexibility is the Key to Transferability: By using a library of real distributions, NCF can explore a much wider (and more effective) adversarial space than methods that rely on small, arbitrary perturbations.
- Optimization Works for Color, Too: A major contribution is showing that standard gradient-based optimization (like MI-FGSM), usually used for pixel-level noise, can be effectively applied to fine-tune global color transfer matrices.
- Defenses are "Blind" to Color Shifts: Traditional adversarial defenses (like JPEG compression or feature denoising) are designed to remove high-frequency noise. Because NCF applies global, natural-looking color shifts, these defenses often fail completely or even increase the attack's effectiveness by distorting key object features. Visualization showing that common defenses like JPEG and NRP fail to remove NCF perturbations and instead distort the image.
Key Results
NCF demonstrates a massive leap in black-box performance:
- Fooling Standard Models: NCF outperformed state-of-the-art (SOTA) methods by 15.0% to 32.9% on average when attacking normally trained models.
- Evading Defenses: Against models protected by various defense mechanisms, NCF maintained a lead of 10.0% to 25.3% over competitors.
- Cross-Architecture Success: The attack transfers remarkably well from CNNs to Vision Transformers (ViTs), achieving a 56.4% success rate when transferring from Mobile-V2 to XCiT-N12, whereas previous SOTA methods hovered around 22%.
- Naturalness: Despite the significant color changes, NIMA (Neural Image Assessment) scores confirm that NCF images remain as perceptually natural as the original clean images. Visual comparison of NCF against other unrestricted color attacks. NCF achieves significant color shifts while maintaining high naturalness.
Limitations and Future Work
- Discrete Library: Currently, the color library provides only 20 discrete distributions per class. The authors suggest that moving toward a continuous color space could further expand the attack's flexibility and effectiveness.
- Semantic Dependency: The attack relies on accurate semantic segmentation. While they showed NCF is robust to different segmentation models, errors in masking could theoretically impact the naturalness of the result.
Summary updated