A Generative Victim Model for Segmentation

Aixuan Li, Jing Zhang, Jiawei Shi, Yiran Zhong, Yuchao DaiarXiv 2024 · DOI

Abstract

This paper introduces a "Generative Victim Model" (GVM) that generates adversarial attacks for image segmentation without requiring a pre-trained segmentation model. By leveraging the score-estimation capabilities of diffusion models, the researchers create highly transferable attacks that target the underlying data distribution rather than specific network architectures. This approach bridges the transferability gap between disparate architectures like ResNet and Vision Transformers.

Introduction

Adversarial attacks typically rely on a "victim model" (VM) to generate perturbations. In white-box settings, the attacker requires full access to the model's weights. In black-box settings, they either need thousands of queries to probe the model or a surrogate model to mimic it. However, these methods are task-specific and model-dependent. For example, attacking a segmentation system usually requires a pre-trained segmentation model to calculate gradients. This creates a significant transferability gap where an attack designed for one architecture might fail against another. This research explores whether effective adversarial attacks can be generated using the internal logic of image generation instead of a task-specific classifier.

Methodology

The core innovation is treating a generative diffusion model as the victim. The authors rethink the attack using a score-based formulation derived from Bayes' rule. Instead of minimizing the likelihood of a correct label $y$ given image $x$ ($p(y|x)$), they decompose the term into the conditional score (image + mask) and the unconditional score (image only).

Comparison of adversarial attack paradigms: (a) White-box, (b) Query-based Black-box, (c) Transfer-based Black-box, and (d) the proposed Generative Victim Model (GVM) approach.

The Generative Victim Model (GVM)

Inspired by Classifier-Free Guidance (CFG) in image generation, the GVM calculates a "conditional segmentation score" by subtracting the unconditional score from the conditional score of a diffusion model. The attack pipeline initializes a perturbation and iteratively updates it using these generative scores. Because the diffusion model learns the manifold of real images and masks, the resulting perturbations push the victim model toward low-density regions of the data distribution, which are inherently difficult for any model to classify correctly.

Experimental Setup

The researchers evaluated their approach across three distinct segmentation tasks:

  • Camouflaged Object Detection (COD): Evaluated using the COD10K dataset for victim models and NC4K for training the generative score estimator.
  • Semantic Segmentation: Utilized PASCAL VOC 2012, with a split training set to ensure surrogate and victim models remained independent.
  • Salient Object Detection (SOD): Aggregated multiple datasets (SOD, DUT, ECSSD, PASCAL-S, SOC) for training and tested on DUTS.

Results and Discussion

The GVM approach demonstrated superior transferability and efficiency across all tasks. In COD tasks, when transferring attacks from a ViT surrogate to a ResNet50 victim, the proposed method significantly outperformed standard attacks like MI-FGSM and DI²-FGSM. Notably, the method achieved better results than the "Square Attack" while using 100x fewer queries (0.1k vs 10k).

Qualitative comparison of adversarial attacks on Camouflaged Object Detection (COD) across different architectures (ResNet50, VGG, PVTv2). The GVM (Ours) produces significantly more disrupted masks than baseline methods.

Qualitative results show that GVM-generated attacks cause victim models to completely miss objects or produce nonsensical, fragmented segmentation masks. The attack remained effective even against models that had undergone adversarial training, a common defense that typically defeats standard transfer attacks. The "low-density hypothesis" was confirmed: transferability is highest when attacks point toward regions where the ground truth distribution is sparse.

Conclusion and Future Work

The Generative Victim Model represents a shift toward victim-agnostic adversarial research. By understanding the data distribution via a generative model, universal perturbations can be created to confuse diverse architectures. While the method excels in binary tasks, it faces challenges in multi-class semantic segmentation where generative scores do not always map perfectly to specific categorical misclassifications. Future work will explore the deep correlation between score-based density and specific categorical loss functions to improve multi-class performance.

Summary updated

BibTeX
@misc{li2024generative,
  author = {Aixuan Li and Jing Zhang and Jiawei Shi and Yiran Zhong and Yuchao Dai},
  title = {{A Generative Victim Model for Segmentation}},
  year = {2024},
  eprint = {2412.07274},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.07274},
}
Figure