Skip to main content
QUICK REVIEW

[Paper Review] Adversarial Attack and Defense in Deep Ranking

Mo Zhou, Le Wang|arXiv (Cornell University)|Jun 7, 2021
Adversarial Robustness in Machine LearningComputer Science41 references6 citations
TL;DR

This paper proposes two novel adversarial attacks—Candidate Attack and Query Attack—targeting deep ranking models by manipulating embeddings to alter ranking order through perturbations. It introduces an anti-collapse triplet defense that improves robustness against these attacks, significantly enhancing model resilience while maintaining performance on benign data across multiple benchmarks.

ABSTRACT

Deep Neural Network classifiers are vulnerable to adversarial attack, where an imperceptible perturbation could result in misclassification. However, the vulnerability of DNN-based image ranking systems remains under-explored. In this paper, we propose two attacks against deep ranking systems, i.e., Candidate Attack and Query Attack, that can raise or lower the rank of chosen candidates by adversarial perturbations. Specifically, the expected ranking order is first represented as a set of inequalities, and then a triplet-like objective function is designed to obtain the optimal perturbation. Conversely, an anti-collapse triplet defense is proposed to improve the ranking model robustness against all proposed attacks, where the model learns to prevent the positive and negative samples being pulled close to each other by adversarial attack. To comprehensively measure the empirical adversarial robustness of a ranking model with our defense, we propose an empirical robustness score, which involves a set of representative attacks against ranking models. Our adversarial ranking attacks and defenses are evaluated on MNIST, Fashion-MNIST, CUB200-2011, CARS196 and Stanford Online Products datasets. Experimental results demonstrate that a typical deep ranking system can be effectively compromised by our attacks. Nevertheless, our defense can significantly improve the ranking system robustness, and simultaneously mitigate a wide range of attacks.

Motivation & Objective

  • To investigate the vulnerability of deep ranking models to adversarial perturbations, which remain underexplored despite known risks in classification.
  • To design targeted adversarial attacks—Candidate Attack and Query Attack—that manipulate ranking outcomes by perturbing candidates or queries.
  • To develop a defense mechanism that prevents model collapse during adversarial training and enhances robustness against multiple attack types.
  • To propose an empirical robustness score that comprehensively evaluates defense performance across diverse attack scenarios.
  • To demonstrate that standard adversarial training methods fail for ranking due to model collapse, necessitating new defense strategies.

Proposed method

  • Represent the desired ranking order as a set of inequalities to guide adversarial perturbation generation.
  • Design a triplet-like objective function to optimize perturbations that shift embeddings toward desired ranking positions.
  • Use Projected Gradient Descent (PGD) to efficiently generate adversarial examples that satisfy the ranking constraints.
  • Propose an Embedding-Shifted Triplet (EST) defense to suppress embedding shifts caused by attacks.
  • Introduce an anti-collapse triplet defense that prevents positive and negative samples from collapsing in embedding space during training.
  • Evaluate defenses using a comprehensive empirical robustness score incorporating multiple attack types and datasets.

Experimental results

Research questions

  • RQ1Can adversarial perturbations effectively manipulate the ranking order in deep ranking models by modifying either the query or candidate images?
  • RQ2Why does standard adversarial training fail for deep ranking models, and what causes model collapse in this context?
  • RQ3Can a defense mechanism be designed to prevent embedding shifts caused by adversarial attacks without degrading performance on clean data?
  • RQ4How effective is the proposed anti-collapse triplet defense in improving robustness across diverse attack types and datasets?
  • RQ5Does the empirical robustness score provide a reliable and comprehensive evaluation of defense performance in ranking systems?

Key findings

  • The proposed Candidate Attack and Query Attack successfully manipulate ranking outcomes on MNIST, Fashion-MNIST, CUB200-2011, CARS196, and Stanford Online Products.
  • Standard adversarial training leads to model collapse in deep ranking, where positive and negative samples are pulled too close in embedding space.
  • The anti-collapse triplet defense significantly improves robustness, reducing attack success rates (e.g., CA+ and QA- attacks) while maintaining high performance on benign examples.
  • The empirical robustness score effectively captures defense performance across multiple attack types, revealing that stronger attacks lead to better defense learning.
  • Using FGSM instead of PGD for adversarial data generation results in lower robustness, confirming that attack strength directly impacts defense effectiveness.
  • The anti-collapse triplet defense outperforms EST defense in both robustness and generalization, with improvements in R@1, mAP, and NMI across all datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.