Context-Aware Transfer Attacks for Object Detection

Zikui Cai, Xinxin Xie, Shasha Li, Mingjun Yin, Chengyu Song, Srikanth V. Krishnamurthy, Amit K. Roy-Chowdhury, M. Salman Asif

Introduction

Adversarial attacks, which involve introducing subtle pixel-level perturbations to fool machine learning models, have been extensively studied in the context of image classification. However, extending these attacks to object detection presents a significant challenge. Unlike classifiers that analyze objects in isolation, object detectors leverage the spatial and semantic context of a scene. For instance, a model is more likely to identify a flat surface as a "table" if it is surrounded by "chairs." This contextual consistency acts as a natural defense; a detector might "correct" an adversarial label if it appears as an anomaly within its surroundings.

Methodology: The Context-Aware Framework

To overcome this, researchers have developed a framework that generates contextually consistent adversarial scenes. The core idea is to perturb not just a single "victim" object, but also neighboring "helper" objects to create a coherent, albeit false, narrative that the detector will accept.

Context Modeling

The first stage involves building a "Context Graph" derived from large-scale datasets like PASCAL VOC and MS COCO. This graph captures three primary relationships between object classes: co-occurrence (the probability of two classes appearing together), relative distance, and relative size.

The Context Graph Generation process models co-occurrence, distance, and size relationships between object classes.

Attack Plan Generation

When targeting a specific object, the system identifies optimal helper objects in the scene. It then assigns these helpers new labels that contextually support the target label of the victim. For example, to turn a "bird" into a "table," the attack plan might involve transforming nearby birds into "chairs."

The attack plan involves iteratively adding helper objects (e.g., turning birds into chairs) to support the mis-categorization of the victim object (bird to table).

The attack is generated iteratively. Starting with zero helpers, the system gradually adds them and queries the blackbox detector. This sequential approach makes the attack highly query-efficient, often requiring only 2 to 6 queries to succeed, compared to the thousands required by traditional gradient-estimation methods.

Experimental Results

The proposed context-aware approach was evaluated against several state-of-the-art object detectors, including RetinaNet, Libra R-CNN, and the Transformer-based DETR. The results demonstrate a significant improvement in transfer attack success rates—where an attack designed for a known surrogate model (like Faster R-CNN) is used to fool an unknown blackbox model.

On average, the context-aware method improved the fooling rate by over 10 percentage points, with some scenarios showing gains of up to 20%. On the PASCAL VOC dataset, with a perturbation constraint of $L_\infty \le 20$, the method achieved success rates between 35% and 58%, whereas context-agnostic baselines struggled to exceed 41%.

Conclusion

This research highlights that the very context object detectors rely on for accuracy can be exploited as a vulnerability. By spreading adversarial perturbations across a scene to maintain contextual consistency, attackers can significantly enhance the transferability and efficiency of their attacks. These findings suggest that future defensive strategies for object detection must account for multi-object contextual relationships rather than focusing solely on individual object robustness.

Summary updated

BibTeX
@inproceedings{cai2022context,
  author = {Zikui Cai and Xinxin Xie and Shasha Li and Mingjun Yin and Chengyu Song and Srikanth V. Krishnamurthy and Amit K. Roy-Chowdhury and M. Salman Asif},
  title = {{Context-Aware Transfer Attacks for Object Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i1.19889},
}
Figure