[Paper Review] Query Attack via Opposite-Direction Feature:Towards Robust Image Retrieval
This paper proposes Opposite-Direction Feature Attack (ODFA), a white-box adversarial attack tailored for image retrieval that targets intermediate deep features rather than class predictions. By maximizing feature distance in the representation space, ODFA achieves high attack success rates, significantly degrading retrieval performance with imperceptible perturbations, and demonstrates strong transferability in black-box settings.
Most existing works of adversarial samples focus on attacking image recognition models, while little attention is paid to the image retrieval task. In this paper, we identify two inherent challenges in applying prevailing image recognition attack methods to image retrieval. First, image retrieval demands discriminative visual features, which is significantly different from the one-hot class prediction in image recognition. Second, due to the disjoint and potentially unrelated classes between the training and test set in image retrieval, predicting the query category from predefined training classes is not accurate and leads to a sub-optimal adversarial gradient. To address these limitations, we propose a new white-box attack approach, Opposite-Direction Feature Attack (ODFA), to generate adversarial queries. Opposite-Direction Feature Attack (ODFA) effectively exploits feature-level adversarial gradients and takes advantage of feature distance in the representation space. To our knowledge, we are among the early attempts to design an attack method specifically for image retrieval. When we deploy an attacked image as the query, the true matches are prone to receive low ranks. We demonstrate through extensive experiments that (1) only crafting adversarial queries is sufficient to fool the state-of-the-art retrieval systems; (2) the proposed attack method, ODFA, leads to a higher attack success rate than classification attack methods, validating the necessity of leveraging characteristics of image retrieval; (3) the adversarial queries generated by our method have good transferability to other retrieval models without accessing their parameters, i.e.,the black-box setting.
Motivation & Objective
- To address the lack of robustness evaluation in image retrieval systems, especially under adversarial perturbations.
- To identify the limitations of existing classification-based adversarial attack methods when applied to image retrieval tasks.
- To develop a targeted attack method that directly manipulates deep features to degrade retrieval ranking performance.
- To validate the effectiveness of feature-level attacks in both white-box and black-box settings for retrieval models.
- To demonstrate that adversarial queries alone can effectively fool state-of-the-art retrieval systems without modifying the database.
Proposed method
- ODFA formulates a white-box attack that targets the intermediate deep features of the retrieval model, rather than the final classification head.
- It introduces a loss function that maximizes the angular distance between the original and perturbed query features in the representation space.
- The attack uses iterative optimization with small step sizes to generate imperceptible perturbations that push the query feature toward the opposite direction of its original feature vector.
- The method explicitly considers the feature distance metric to ensure that the perturbed query is misclassified in terms of similarity ranking.
- It is designed to be transferable, enabling effective black-box attacks on unseen retrieval models without access to their internal parameters.
- The approach is evaluated on multiple datasets and retrieval models, including both classification-based and ranking-based architectures.
Experimental results
Research questions
- RQ1Can adversarial attacks be effectively applied to image retrieval systems, which rely on feature similarity rather than class prediction?
- RQ2Why do standard classification-based adversarial attack methods fail when applied to image retrieval tasks?
- RQ3Can a feature-level attack that manipulates deep representations achieve higher success rates than class-based attacks in image retrieval?
- RQ4Does the proposed ODFA method exhibit strong transferability to black-box retrieval models?
- RQ5Can adversarial queries alone degrade the performance of state-of-the-art retrieval systems without modifying the database?
Key findings
- On the Market-1501 dataset, ODFA reduced Recall@1 from 92.70% to 34.00% and mAP from 77.14% to 21.52% using only adversarial queries.
- On the Cifar-10 dataset, ODFA achieved a Top-1 accuracy drop to 0.34% and Top-5 accuracy drop to 1.29% when attacking a WideResNet-28 model.
- ODFA outperformed the Fast Gradient Sign Method (FGSM) in attack success rate across all evaluated benchmarks, confirming the necessity of retrieval-specific design.
- The method demonstrated strong transferability, successfully attacking unseen retrieval models in black-box settings without access to model parameters.
- Visualization of feature space showed that adversarial examples consistently moved to the opposite direction of the original feature, validating the core mechanism of ODFA.
- The perturbations were visually imperceptible, confirming that the attack maintains stealthiness while significantly degrading retrieval performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.