LGV: Boosting Adversarial Example Transferability from Large Geometric Vicinity

Martin Gubri, Maxime Cordy, Mike Papadakis, Yves Le Traon, Koushik Sen

Abstract

We propose transferability from Large Geometric Vicinity (LGV), a new technique to increase the transferability of black-box adversarial attacks. LGV starts from a pretrained surrogate model and collects multiple weight sets from a few additional training epochs with a constant and high learning rate. LGV exploits two geometric properties that we relate to transferability. First, models that belong to a wider weight optimum are better surrogates. Second, we identify a subspace able to generate an effective surrogate ensemble among this wider optimum. Through extensive experiments, we show that LGV alone outperforms all (combinations of) four established test-time transformations by 1.8 to 59.9 percentage points. Our findings shed new light on the importance of the geometry of the weight space to explain the transferability of adversarial examples.

Introduction: The Challenge of Black-Box Attacks

Adversarial attacks typically involve finding tiny perturbations to an image that cause a Deep Neural Network (DNN) to misclassify it. In a "white-box" setting, where the attacker knows the model's weights, this is straightforward. However, real-world attacks are usually "black-box": the attacker doesn't know the target model's architecture or weights.

To solve this, attackers use a surrogate model to craft the attack, hoping it will transfer to the target. The problem is that adversarial examples often "overfit" to the specific quirks and sharp loss spikes of the surrogate. Because the target model's loss landscape is slightly shifted compared to the surrogate—a phenomenon known as the Surrogate-Target Misalignment Hypothesis—an attack that hits a narrow peak on the surrogate might completely miss the mark on the target.

The Surrogate-Target Misalignment Hypothesis: Attacks targeting sharp peaks in the surrogate loss landscape often fail to transfer because the target model's landscape is slightly shifted.

Methodology: Large Geometric Vicinity (LGV)

The authors introduce LGV (Large Geometric Vicinity), which operates in two distinct phases:

  1. Weight Collection: Starting from a pretrained surrogate model, 5–10 additional training epochs are performed using a constant, high learning rate. This high learning rate is crucial—it pushes the model out of its initial narrow local minimum into a "wider geometric vicinity." Multiple sets of weights (e.g., 4 per epoch) are saved along this trajectory.
  2. Iterative Attack: When crafting the adversarial image (using a standard method like I-FGSM), the attack does not rely on a single model. Instead, at each iteration, a weight set is randomly sampled from the collected collection to compute the gradient.
LGV Training Schedule: The process involves a regular training phase followed by a weight collection phase at a high learning rate to find flatter optima.

This approach is computationally efficient, requiring less than 8% of the original training time, and requires no knowledge of the target model.

Experimental Setup

The method was evaluated using a random subset of 2,000 images from ImageNet that were correctly classified by all target models. The target suite included eight diverse architectures: ResNet-50, ResNet-152, ResNeXt-50, WideResNet-50, DenseNet-201, VGG19, Inception v1, and Inception v3. This setup allowed for testing both intra-architecture and inter-architecture transferability.

Key Insights: The Geometry of Transferability

  • Flatness is King: A central finding is the link between weight-space geometry and transferability. LGV finds "flat" optima. Because these peaks are wide, an adversarial example designed to maximize the surrogate's loss remains effective even if the target model's loss landscape is slightly shifted.
  • The Power of the Subspace: Using Principal Component Analysis (PCA), the authors demonstrated that the weights collected by LGV form a dense, meaningful subspace. Directions in this subspace with higher variance are more informative for transferability, particularly between similar architectures.
  • Escaping the Basin: Standard training aims for the lowest possible loss, often landing in sharp "basins." By using a high learning rate at the end, LGV intentionally sacrifices a small amount of accuracy to explore the broader "vicinity," which proves to be a superior region for generating transferable attacks.

Results and Performance

LGV significantly outperformed established techniques such as Momentum (MI), Input Diversity (DI), and Ghost Networks (GN). On its own, LGV improved transfer success rates by 1.8 to 59.9 percentage points depending on the target.

Furthermore, LGV exhibits strong synergy with other methods. Combining LGV with Input Diversity and Momentum (LGV+DI+MI) often yielded the highest success rates across all tested architectures. Even against notoriously difficult targets like Inception v3, LGV significantly boosted the attack success rate compared to a standard ResNet-50 surrogate.

Limitations and Future Work

While highly effective, LGV has some constraints:

  • Method Incompatibility: LGV does not combine well with "Ghost Networks" or the "Skip Gradient Method." These are likely "cheap proxies" for the geometric sampling that LGV performs explicitly, making them redundant.
  • Training Requirement: LGV requires a few extra training epochs on the surrogate. It cannot be used if the attacker only has access to a static model file without the ability to perform further training.

Future research may explore the "volume" of the weight space further, as understanding the relationship between weight volume and predictive functions could lead to even more robust adversarial techniques.

Summary updated

BibTeX
@inproceedings{gubri2022lgv,
  author = {Martin Gubri and Maxime Cordy and Mike Papadakis and Yves Le Traon and Koushik Sen},
  title = {{LGV: Boosting Adversarial Example Transferability from Large Geometric Vicinity}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19772-7\_35},
}
Figure