Adversarial Attacks against Neural Ranking Models via In-Context Learning
Not on the map. Why?
Abstract (arXiv)
While neural ranking models (NRMs) have shown high effectiveness, they remain susceptible to adversarial manipulation. In this work, we introduce Few-Shot Adversarial Prompting (FSAP), a novel black-box attack framework that leverages the in-context learning capabilities of Large Language Models (LLMs) to generate high-ranking adversarial documents. Unlike previous approaches that rely on token-level perturbations or manual rewriting of existing documents, FSAP formulates adversarial attacks entirely through few-shot prompting, requiring no gradient access or internal model instrumentation. By conditioning the LLM on a small support set of previously observed harmful examples, FSAP synthesizes grammatically fluent and topically coherent documents that subtly embed false or misleading information and rank competitively against authentic content. We instantiate FSAP in two modes: FSAP-IntraQ, which leverages harmful examples from the same query to enhance topic fidelity, and FSAP-InterQ, which enables broader generalization by transferring adversarial patterns across unrelated queries. Our experiments on the TREC 2020 and 2021 Health Misinformation Tracks, using four diverse neural ranking models, reveal that FSAP-generated documents consistently outrank credible, factually accurate documents. Furthermore, our analysis demonstrates that these adversarial outputs exhibit strong stance alignment and low detectability, posing a realistic and scalable threat to neural retrieval systems. FSAP also effectively generalizes across both proprietary and open-source LLMs.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 29 of its 44 references that are in the map. First posted on arXiv 21 Aug 2025.
Builds on
29 of 44 references.
References · 29
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,605
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2022A Survey on In-context Learningcited by 721
- 2020Document Ranking with a Pretrained Sequence-to-Sequence Modelcited by 376
- 2020Overview of the TREC 2019 deep learning trackcited by 286
- 2022OPT-IML: Scaling Language Model Instruction Meta Learning through the Lens of Generalizationcited by 236
- 2021Overview of the TREC 2020 deep learning trackcited by 196
- 2023Can LLM-Generated Misinformation Be Detected?cited by 177
- 2023LLM Lies: Hallucinations are not Bugs, but Features as Adversarial Examplescited by 177
- 2023On the Risk of Misinformation Pollution with Large Language Modelscited by 128
17 more
- 2021Advances in adversarial attacks and defenses in computer vision: A surveycited by 127
- 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffoldingcited by 117
- 2022PRADA: Practical Black-Box Adversarial Attacks against Neural Ranking Modelscited by 44
- 2019A Survey of Black-Box Adversarial Attacks on Computer Vision Modelscited by 37
- 2022Order-Disorder: Imitation Adversarial Attacks for Black-box Neural Ranking Modelscited by 37
- 2023TrojLLM: A Black-box Trojan Prompt Attack on Large Language Modelscited by 31
- 2024Exploring the Deceptive Power of LLM-Generated Fake News: A Study of Real-World Detection Challengescited by 30
- 2022The Many Faces of Adversarial Riskcited by 28
- 2020One word at a time: adversarial attacks on retrieval modelscited by 23
- 2024Evaluation of LLM Vulnerabilities to Being Misused for Personalized Disinformation Generationcited by 20
- 2023Topic-oriented Adversarial Attacks against Black-box Neural Ranking Modelscited by 18
- 2023Towards Imperceptible Document Manipulations against Neural Ranking Modelscited by 18
- 2022BERT Rankers are Brittle: a Study using Adversarial Document Perturbationscited by 16
- 2022PromptAttack: Prompt-based Attack for Language Models via Gradient Searchcited by 15
- 2024Multi-granular Adversarial Attacks against Black-box Neural Ranking Modelscited by 14
- 2024EMPRA: Embedding Perturbation Rank Attack against Neural Ranking Modelscited by 5
- 2025Fake News Detection After LLM Laundering: Measurement and Explanationcited by 4
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025Evaluating the Robustness of Retrieval-Augmented Generation to Adversarial Evidence in the Health Domaincited by 6
- 2025Quantitative Certification of Agentic Tool Selectioncited by 2
- 2026Retrieval-Augmented Generation Must Move Beyond Factual Grounding to Represent Diverse Opinionscited by 1
- 2026Led to Mislead: Adversarial Content Injection for Attacks on Neural Ranking Modelscited by 0
- 2026Led to Mislead: Adversarial Content Injection for Attacks on Neural Ranking Models2 May 2026
- 2026Retrieval-Augmented Generation Must Move Beyond Factual Grounding to Represent Diverse Opinions13 Apr 2026
- 2025Quantitative Certification of Agentic Tool Selection5 Oct 2025
- 2025Evaluating the Robustness of Retrieval-Augmented Generation to Adversarial Evidence in the Health Domain4 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2025RobustMask: Certified Robustness against Adversarial Neural Ranking Attack via Randomized Masking
- 2024Ranking Manipulation for Conversational Search Engines
- 2024Attack-in-the-Chain: Bootstrapping Large Language Models for Attacks Against Black-box Neural Ranking Models
- 2023Token-Level Adversarial Prompt Detection Based on Perplexity Measures and Contextual Information
- 2023Hijacking Large Language Models via Adversarial In-Context Learning
- 2024Human-Interpretable Adversarial Prompt Attack on Large Language Models with Situational Context
- 2026Unifying Adversarial Robustness and Training Across Text Scoring Models
- 2025Selective Adversarial Attacks on LLM Benchmarks