ECCV 2026

Learning with Bilevel-Minimax Optimization for Efficient and Reliable Transfer Attacks

Yaohua Liu1, Yifan Guo2, and Jiaxin Gao3,*

1The University of Hong Kong2Dalian University of Technology3The Hong Kong Polytechnic University

BMAT overview combining transferable loss-landscape optimization, ImageNet classification results, and semantic segmentation results.
Figure 1. BMAT shifts the attack toward a more transferable region of the loss landscape and improves transferability across ImageNet classification and semantic segmentation benchmarks.

Loss landscape. In contrast to a flatter but weakly transferable region obtained by VTA, BMAT finds a direction with a stronger transferable loss response.

Classification. The grouped bars summarize average ASR improvements over the CNN, robust-ensemble, and Transformer victim families.

Segmentation. The radial plots report mIoU reductions across Cityscapes and ADE20K; lower values indicate stronger transfer attacks.

30+victim models across CNNs, robust ensembles, and Transformers
24classification attack variants evaluated on ImageNet
+23.28%average ASR gain over all classification variants
up to twofold mIoU reduction in cross-model segmentation transfer

Overview

BMAT learns how to seed an attack trajectory, rather than optimizing a perturbation against a fixed surrogate alone.

It couples initialization, perturbation generation, and surrogate adaptation in a finite-step bilevel-minimax procedure. The resulting attack improves transfer across image classification, semantic segmentation, and a prompt-free Segment Anything Model evaluation.

Method

Coordinate the entire attack trajectory.

BMAT pipeline showing the bilevel-minimax formulation, Soft Weight Modulator, and Implicit Gradient Approximator.

Figure 2. BMAT learns an initialization perturbation at the outer level while the inner response jointly adapts perturbations and surrogate soft weights. Fast BMAT retains this learned seed and uses standard projected sign updates for efficient attacks.

SWMJointly adapts perturbations and soft surrogate weights to seek gradients that generalize beyond a fixed surrogate.

IGAUses an implicit hypergradient to learn an initialization perturbation without unrolling the complete inner optimization.

Fast BMATUses the learned seed for efficient standard sign/projection updates at deployment time.

Image Classification

Consistent gains across victim families.

ImageNet ASR under a ResNet-50 surrogate. Each value aggregates the camera-ready results over four CNN, three robust-ensemble, or three Transformer victims.

Base attackerCNN (4)Ensemble (3)Transformer (3)Overall (10)
Base+ BMATBase+ BMATBase+ BMATBase+ BMATGain
PGD20.0928.028.4311.589.3512.5013.3718.43+5.06
MI31.2242.4513.0521.0914.9519.4920.8929.15+8.26
VMI41.1951.2519.3427.6120.8325.2028.5336.34+7.82
SI25.9833.2910.5113.0012.3814.9317.2621.70+4.43
TI22.1128.669.2912.059.4711.1314.4718.42+3.95
DI42.2848.8919.0321.5016.8519.0727.6831.73+4.05

BMAT-enhanced results. ASR (%) ↑; higher is better. Gain is in percentage points. The complete 24-variant table is reported in the paper.

Optimization Dynamics

Coordinated updates improve transfer.

SWM smooths sharp, surrogate-specific regions, while IGA moves the initial perturbation toward an attack trajectory with a stronger feature shift.

BMAT analysis showing surrogate loss flattening and initialization perturbations evolving toward stronger feature shifts.

Figure 3. SWM locally moderates the surrogate landscape and IGA moves the initialization perturbation toward a trajectory with a larger feature shift, which is associated with stronger cross-model transfer.

Semantic Segmentation

Transfer extends beyond classification.

Cityscapes mIoU ↓; lower indicates a stronger attack. BMAT is evaluated with CNN and Transformer surrogate structures against ten cross-model victims.

SurrogateMethodCNN victims
mean mIoU
Transformer victims
mean mIoU
FCNMI3.9433.28
MI + BMAT3.0832.47
DLV3-R50MI4.7138.19
MI + BMAT2.5435.57
SegformerMI23.3420.52
MI + BMAT11.8520.11

BMAT-enhanced results. Averages are computed from the full Cityscapes table in the paper.

Semantic segmentation attack visualizations for CNN and Transformer victim models on Cityscapes.
Figure 4. Qualitative Cityscapes results. The transferred adversarial examples disrupt both CNN- and Transformer-based semantic segmentation predictions.

Foundation Model Transfer

Attacking SAM without prompts.

Adversarial examples are crafted on a Segformer surrogate and transferred to SAM without prompt guidance. BMAT causes evident failures in building boundaries, windows, and road-side structures.

Prompt-free Segment Anything Model attack comparison using a Segformer surrogate. BMAT causes strong segmentation errors across two Cityscapes scenes.
Clean images and clean SAM segmentations are followed by transfer attacks from PGD, SegPGD, CosPGD, NI, MI, EBAD, and BMAT. The comparison is qualitative because SAM is evaluated without prompts.

Citation

BibTeX

@inproceedings{liu2026bmat,
  title={Learning with Bilevel-Minimax Optimization for Efficient and Reliable Transfer Attacks},
  author={Liu, Yaohua and Guo, Yifan and Gao, Jiaxin},
  booktitle={European Conference on Computer Vision},
  year={2026}
}