Anchoring Adversarial Trajectories to Data Manifolds: A Bilevel Transfer Optimization Framework

Yaohua Liu, Yifan Guo, Jiaxin GaoNeurIPS 2026

TL;DR

When crafting adversarial examples on a surrogate model to fool an unseen black-box victim, standard gradient updates tend to wander off into weird, high-dimensional noise—causing the attack to overfit to the surrogate's quirks and fail on the victim. This paper introduces MABT (Manifold Anchored Bilevel Transfer), a framework that acts like a geometric guardrail, keeping perturbations anchored to the natural image manifold while learning a clever starting point. The result is a massive leap in attack transferability across totally different neural architectures, achieved without sluggish second-order math.

What Problem Does This Paper Address?

Imagine trying to navigate a mountain range in the dark using a slightly inaccurate map. In transfer-based adversarial attacks, we tweak an image using gradients from a known surrogate model, hoping that the resulting perturbation will also fool an unknown victim model.

Why do these attacks so often fail to transfer? The authors frame this as a geometric problem. Natural images don't fill up all of pixel space; they live on a low-dimensional surface—a data manifold—capturing real-world semantics (edges, textures, shapes). Along this surface, different models (even CNNs vs. Vision Transformers) tend to share similar decision boundaries because they've learned the same underlying visual concepts.

Figure 1: Motivation. (a) Manifold hypothesis: Natural images concentrate near a low-dimensional manifold M capturing intrinsic semantics, where decision boundaries of diverse models tend to partially align. (b) Off-manifold divergence: Standard iterative attacks inherently drift into high- dimensional noise away from M; in this region, boundaries are less consistent, so the trajectory may cross the surrogate boundary but miss the victim boundary. (c) Manifold anchoring: MABT uses a manifold-anchoring projector with a geometry-aligned initialization to suppress off-manifold deviations while preserving task-relevant semantics to cross shared boundaries.

However, standard iterative attacks (like PGD) follow raw pixel-space gradients. Even inside a tiny $\ell_p$ perturbation budget, these updates accumulate high-frequency, orthogonal noise that pulls the image off the manifold. Out there in the mathematical wilderness, decision boundaries diverge wildly across architectures. You cross the surrogate’s boundary, pat yourself on the back, and completely miss the victim’s boundary. Previous works tried fixing isolated pieces of the pipeline (like adding momentum or random crops), without explicitly steering the trajectory itself back onto the manifold.

Methods

To keep attacks grounded in shared semantics, the authors propose Manifold Anchored Bilevel Transfer (MABT), built on three core pillars:

  1. Manifold Anchoring Projector (MAP): Instead of evaluating the surrogate loss on raw perturbed pixels, MABT passes the perturbed state through a "semantic rectifier" $\mathcal{P}_{\mathcal{M}}$ first. MAP suppresses unstable, off-manifold noise while preserving the perturbation budget. Crucially, MAP is a plug-and-play interface: it can be instantiated with dirt-cheap explicit priors (like spatial resizing or bit-depth reduction), learned denoisers (DnCNN), or heavy-duty Latent Diffusion Models.
  2. Distributional Bilevel Optimization (DBO): Rather than starting the attack from zero or random noise, MABT learns a geometry-aligned initialization. It frames this as a two-level game:
  3. Lower-level: Run a manifold-anchored attack from initialization $\boldsymbol{\xi}$ to find an adversarial perturbation.
  4. Upper-level: Update $\boldsymbol{\xi}$ so that the resulting perturbation maximizes expected loss across a local Gaussian distribution of surrogate weight variants—preventing overfitting to a single checkpoint.
  5. Linear-Time Hessian-Free Solver: Normally, bilevel optimization requires differentiating through the inner optimization loop, unleashing nightmarish second-order Hessian matrices. MABT sidesteps this using a regularized gap function and a clever one-step probing trick, estimating the needed hypergradients using only standard first-order gradients.

Datasets

The authors follow standard adversarial transfer protocols, evaluating on 5,000 correctly classified images sampled from the ImageNet validation set. No new datasets are introduced; instead, this subset serves as a unified testbed across 2 surrogates (ResNet-50, VGG-19), 12 diverse victims (6 CNNs, 3 robust ensembles, 3 Vision Transformers), and 5 defense mechanisms.

Key Insights and Ideas

  • Cheap anchoring goes a remarkably long way: You don't need a massive diffusion model to stay near the manifold. Simple spatial resizing (Resize) used as the MAP operator nearly doubles baseline PGD success rates with virtually zero compute or memory overhead.
  • More purification isn't always better: Stronger generative priors (like Stable Diffusion v1.5) push transferability slightly higher, but overly aggressive purification can accidentally scrub away useful adversarial signals. DBO solves this by adapting the starting point specifically to whatever MAP operator you choose.
  • Flatter loss landscapes = better transfer: Visualizing the loss surfaces reveals that baseline attacks create needle-sharp loss peaks on surrogates that completely collapse on victims. MABT finds wide, elevated loss basins that persist across both CNNs and Transformers.
  • No auxiliary "pseudo-victims" needed: Unlike recent initialization-learning attacks (e.g., BETAK) that require extra white-box models during optimization, MABT relies purely on intrinsic data geometry and local weight sampling of a single surrogate.
Figure 2: Feature space divergence. We quantify victim-side feature shift during the attack process as 1 −cos(fclean, fadv), where x1 →x10 denotes the adversarial trajectory over 10 attack iterations. Compared with GAA [16]+AWT [6], MABT in- duces substantially larger semantic shifts on victim models, with relative gains of 99.8% on Trans- formers and 32.9% on CNNs.

Key Results

MABT acts as a universal booster across 10 baseline attackers and 28 configurations:

  • Untargeted Transfer: On a ResNet-50 surrogate, integrating MABT lifts the overall average Attack Success Rate (ASR) across 16 configurations from 22.52% to 39.28% (a 74.4% relative gain). Paired with GAA+GHOST, it hits 55.87% average ASR across all 12 victims (up from 29.80%).
  • Cross-Architecture & Defenses: MABT shines when crossing the CNN-to-Transformer divide, inducing 99.8% larger relative feature shifts on ViTs compared to strong baselines (GAA+AWT). It also consistently boosts ASR against 5 defenses (including JPEG compression, Randomized Smoothing, and HGD).
  • Beating Initialization Baselines: On GAA, MABT reaches 49.33% ASR compared to 33.26% for BETAK—a 48.32% relative improvement without needing BETAK's auxiliary victim model.

Limitations and Future Work

The authors note that their empirical evaluation is currently restricted to image classification. Extending manifold-anchored bilevel trajectories to denser, structured prediction tasks—such as object detection or semantic segmentation—remains an open direction for future research.

Summary updated

Abstract

A key bottleneck in adversarial transfer is a *trajectory-level geometric disconnect*: ambient gradients often drift away from the intrinsic data manifold, causing surrogate-specific overfitting. To rectify this, we propose *Manifold Anchored Bilevel Transfer (MABT)*, a unified framework that anchors adversarial trajectories to the shared semantic subspace. MABT introduces a relaxed manifold-anchoring operator as a semantic rectifier to suppress off-manifold noise. With this constraint, we cast transfer attack generation as a distributional bilevel optimization problem that learns a geometry-aligned initialization by maximizing expected adversarial loss across surrogate variants. We further develop a Hessian-free solver with linear-time complexity to handle the resulting hierarchy. Experiments demonstrate improved transferability for **10** baseline attackers across **28** attack configurations, diverse victim architectures, and defense mechanisms. The official repository is available at https://github.com/callous-youth/MABT.
BibTeX
@inproceedings{liu2026anchoring,
  author = {Yaohua Liu and Yifan Guo and Jiaxin Gao},
  title = {{Anchoring Adversarial Trajectories to Data Manifolds: A Bilevel Transfer Optimization Framework}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=LvhItGvox7},
}
Figure