Abstract
Adversarial attacks on image retrieval (IR) systems present unique challenges compared to standard classification tasks due to output complexity and information scarcity. This paper introduces QAIR, a query-efficient black-box attack that leverages a relevance-based loss function and recursive model stealing. QAIR achieves high success rates on commercial engines like Bing Visual Search with an average of only 33 queries, significantly outperforming existing decision-based methods.
Introduction
Image Retrieval (IR) systems return a ranked list of images from a database based on a query image. Unlike image classification, where an attacker aims to flip a discrete label, attacking IR systems requires manipulating a ranked list of unlabeled results. In a black-box setting, where model architecture and feature vectors are unknown, this task is particularly difficult. Existing black-box attacks often require thousands of queries, making them impractical and easily detectable by real-world systems.
Methodology
QAIR addresses the limitations of previous attacks through three primary innovations:
Relevance-based Loss
Standard black-box attacks often rely on discrete signals, such as whether an image's rank has changed. QAIR introduces a relevance-based loss function inspired by Normalized Discounted Cumulative Gain (NDCG). By treating the ranking as a probability distribution and weighting changes at the top of the list more heavily, QAIR creates a smoother loss landscape. As shown in the comparison of loss landscapes, this smoothness allows optimization algorithms to navigate the search space more effectively than traditional decision-based or count-based losses.
Recursive Model Stealing
To overcome the lack of internal model information, QAIR employs "recursive model stealing." The process begins with random noise to query the target IR system. The returned images are then used as new queries to gather more data, effectively building a "shadow gallery." This data is used to train a local surrogate model that mimics the target system's behavior, providing a starting point for the attack.
Prior-guided Gradients
The surrogate model generates initial "priors" for the adversarial perturbation. These priors are then refined using a Random Gradient-Free (RGF) optimization method. By querying the target system, the attack "rectifies" the adversarial image until the retrieval results are successfully subverted.
Experimental Evaluation
The authors evaluated QAIR on three benchmark datasets: CUB-200-2011, Stanford Online Products (SOP), and In-Shop Clothes.
Key Results
- Efficiency: QAIR requires orders of magnitude fewer queries than existing methods like OptAttack or HSJA. While those methods often exceed 5,000 queries, QAIR typically succeeds in under 100.
- Effectiveness: On the CUB-200 dataset, the Recall@1 metric dropped from 0.61 to 0.16 under attack.
- Real-world Application: Against the live Bing Visual Search engine, QAIR achieved a 98% success rate with an average of only 33 queries, highlighting the vulnerability of commercial systems.
Conclusion
QAIR demonstrates that practical, query-efficient black-box attacks on IR systems are feasible. By leveraging the information hidden in ranking signals and using recursive data collection, attackers can subvert sophisticated retrieval engines with minimal interaction. This work underscores the need for more robust defenses in the field of image retrieval.
Summary updated