This paper presents a significant step forward in transfer-based adversarial attacks, introducing a theoretically grounded and computationally efficient method called Maximin Expected Flatness (MEF). By rethinking how we optimize the "flatness" of a loss landscape, the authors achieve state-of-the-art transferability across diverse architectures and defenses at a fraction of the usual computational cost.
TL;DR
MEF improves adversarial transferability by optimizing for zeroth-order average-case flatness within worst-case neighborhoods. It resolves the exploration-exploitation imbalance of previous methods and uses a novel gradient-reuse strategy to outperform current state-of-the-art attacks while being twice as fast.
What Problem Does This Paper Address?
Adversarial examples—inputs designed to fool neural networks—often fail to "transfer" from the white-box surrogate model they were created on to a black-box target model. Recent research suggests that crafting adversarial examples in "flat" regions of the loss landscape (where small perturbations don't drastically change the loss) improves this transferability.
However, existing flatness-enhanced attacks suffer from two main issues:
- Fragmented Definitions: There is no unified theory. Some methods optimize for "worst-case" flatness (minimizing the maximum loss in a neighborhood), while others target "average-case" flatness (minimizing expected loss).
- Optimization Imbalance: The authors show that worst-case methods tend to "over-explore," leading to oscillatory updates, while average-case methods "over-exploit," getting trapped in suboptimal local plateaus.
Methods
The authors bridge these gaps with a two-pronged approach:
1. Theoretical Foundation
They introduce the Adversarial Transferability Gap (ATG) and prove (Theorem 1) that suppressing multi-order flatness variations and cross-model gradient discrepancies minimizes this gap. Crucially, they demonstrate that zeroth-order flatness is the dominant factor for transferability, especially in ReLU-based networks, providing a principled reason to focus on loss values rather than complex higher-order derivatives.
2. The MEF Attack
Building on this theory, the MEF attack employs a hierarchical optimization strategy:
- Maximin Objective: It identifies high-loss "worst-case" sub-regions (exploration) and then applies average-case smoothing within them to stabilize gradient estimation (exploitation).
- Neighborhood Conditional Sampling (NCS): An efficient sampling method that uses gradients to guide the search for these critical regions.
- Gradient Balancing Optimization (GBO): To solve the computational overhead of nested optimization, GBO reuses gradients from the outer maximization for the inner minimization steps. This eliminates the need for extra backpropagation, significantly reducing the "attack budget" required.
Datasets
The authors conducted extensive evaluations using:
- ImageNet-compatible dataset: 1,000 images used as a standard benchmark.
- Models: A massive suite of 33 models, including standard CNNs (ResNet, Inception, VGG), Vision Transformers (ViT), MLP-Mixers, and various defended models (Adversarial Training, DiffPure, etc.).
- Real-world Targets: Six commercial vision APIs (Google Cloud, Amazon Rekognition, etc.) and four Multimodal Large Language Models (MLLMs) like LLaVA and Qwen2.5-VL.
Key Insights and Ideas
- The Exploration-Exploitation Trade-off: Figure 2 in the paper illustrates a "aha moment": worst-case methods have very low inter-update gradient similarity (they jump around), while average-case methods have very high similarity (they get stuck). MEF finds the "Goldilocks" zone.
- Zeroth-Order Efficiency: By proving that higher-order terms diminish exponentially, the authors justify why simply looking at the loss values in a neighborhood is more effective and cheaper than calculating Hessians or gradient norms.
- Architecture-Agnostic Flatness: MEF focuses on the geometry of the loss landscape rather than specific model features, which is why it transfers so well even between fundamentally different architectures like CNNs and Transformers.
Key Results
- Superior ASR: MEF surpasses the previous state-of-the-art (PGN) by 4% in Attack Success Rate (ASR) while using only half the computational budget. At an equal budget, the gain increases to 8%.
- Efficiency: MEF achieves a 2.4x speedup over PGN and has a smaller memory footprint.
- Defense Bypassing: When combined with standard input augmentation, MEF achieves a 15% additional gain against models equipped with advanced defenses.
- Cross-Task Transfer: MEF successfully fooled commercial APIs (e.g., 79.4% T-1 accuracy on Google Cloud Vision) and MLLMs, misdirecting them into generating incorrect semantic descriptions (e.g., identifying a "bagel" as a "wooden spoon").
Limitations and Future Work
While MEF significantly narrows the gap, the authors note that strictly bridging the structural discrepancy between fundamentally different models (like local convolutions in CNNs vs. global self-attention in Transformers) remains an open challenge. Furthermore, there is an inherent trade-off between transferability and visual stealth; transfer-based attacks generally require larger perturbations than white-box ones to ensure they generalize to unknown targets. Future work may involve exploring "agnostic priors" to further reconcile cross-domain transferability with visual imperceptibility.
The code for MEF is available at: https://github.com/SignedQiu/MEFAttack.
Summary updated