[Paper Review] Order-Disorder: Imitation Adversarial Attacks for Black-box Neural Ranking Models
This paper proposes a black-box adversarial attack on neural passage ranking models using a two-stage approach: first, it trains a ranking imitation model to transparentize the target model via pairwise learning on query-passage triplets; second, it generates highly transferable, camouflaged adversarial triggers using a novel gradient-based Pairwise Anchor-based Trigger (PAT) generator. The method achieves 99.2% attack success rate with minimal, imperceptible perturbations, exposing critical vulnerabilities in black-box ranking systems.
Neural text ranking models have witnessed significant advancement and are increasingly being deployed in practice. Unfortunately, they also inherit adversarial vulnerabilities of general neural models, which have been detected but remain underexplored by prior studies. Moreover, the inherit adversarial vulnerabilities might be leveraged by blackhat SEO to defeat better-protected search engines. In this study, we propose an imitation adversarial attack on black-box neural passage ranking models. We first show that the target passage ranking model can be transparentized and imitated by enumerating critical queries/candidates and then train a ranking imitation model. Leveraging the ranking imitation model, we can elaborately manipulate the ranking results and transfer the manipulation attack to the target ranking model. For this purpose, we propose an innovative gradient-based attack method, empowered by the pairwise objective function, to generate adversarial triggers, which causes premeditated disorderliness with very few tokens. To equip the trigger camouflages, we add the next sentence prediction loss and the language model fluency constraint to the objective function. Experimental results on passage ranking demonstrate the effectiveness of the ranking imitation attack model and adversarial triggers against various SOTA neural ranking models. Furthermore, various mitigation analyses and human evaluation show the effectiveness of camouflages when facing potential mitigation approaches. To motivate other scholars to further investigate this novel and important problem, we make the experiment data and code publicly available.
Motivation & Objective
- To investigate the vulnerability of black-box neural passage ranking models to adversarial attacks, especially under limited model transparency.
- To develop a transferable adversarial attack method that does not require white-box access to the target model.
- To generate adversarial triggers that are both effective and imperceptible by incorporating fluency and semantic consistency constraints.
- To evaluate the robustness of the attack under mitigation strategies and human perception.
- To publicly release code and data to encourage further research into defense mechanisms for neural ranking systems.
Proposed method
- Train a ranking imitation model using pairwise BERT ranker on triplets (query, positive candidate, negative candidate) extracted from the target model’s ranking lists, without requiring relevance scores.
- Leverage the imitation model’s gradient to guide the generation of adversarial triggers that manipulate ranking order via a pairwise objective function.
- Design a Pairwise Anchor-based Trigger (PAT) generator that tailors triggers to each candidate passage using anchor-based optimization to maximize rank disruption.
- Integrate a next-sentence prediction loss and a language model fluency constraint into the objective function to ensure semantic consistency and naturalness of the triggers.
- Inject the generated triggers into the beginning, middle, or end of passage texts and evaluate transferability to the original black-box model.
- Use human evaluation and mitigation analyses to validate the imperceptibility and robustness of the triggers against potential defenses.
Experimental results
Research questions
- RQ1Can a black-box neural passage ranking model be effectively reverse-engineered using only its ranking outputs through a ranking imitation model?
- RQ2How effective is the proposed PAT trigger generator in transferring adversarial perturbations to the target model with minimal, imperceptible changes?
- RQ3To what extent do fluency and semantic consistency constraints improve the camouflage of adversarial triggers?
- RQ4How does trigger position (front, middle, end) affect attack success rate and imperceptibility?
- RQ5Can the proposed attack remain effective under mitigation strategies such as input pruning or adversarial training?
Key findings
- The ranking imitation model achieves 89.9 MRR@10 on TREC DL 2019, closely matching the target model’s 90.1, demonstrating strong transferability.
- The PAT-based attack achieves a 99.2% attack success rate when triggers are inserted at the end of passages, with 17.2% of irrelevant passages ranked within the top 100.
- Triggers generated with fluency and consistency constraints are significantly more natural and less detectable, as confirmed by human evaluation.
- The attack remains effective even when the language model fluency or next-sentence prediction loss is removed, though performance drops slightly.
- The method outperforms baselines in both attack success rate and trigger imperceptibility, especially when triggers are injected at the end of passages.
- Human evaluation confirms that PAT-generated triggers are more fluent and semantically consistent than those from baselines, enhancing camouflage effectiveness.
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.