Introduction
Neural Ranking Models (NRMs) have fundamentally transformed information retrieval, yet they remain notoriously vulnerable to adversarial manipulation. Malicious actors often employ Search Engine Optimization (SEO) tactics to trick these models into promoting low-quality or irrelevant content. Attacking NRMs is particularly challenging in black-box settings, where internal model weights are inaccessible and attackers can only observe final ranked lists.
Traditional attack methods typically rely on "term spamming," which is easily detectable, or training computationally expensive "surrogate models." This paper introduces Attack-in-the-Chain (AttChain), a novel framework that leverages the reasoning and generative capabilities of Large Language Models (LLMs) to conduct highly effective, query-efficient, and stealthy adversarial attacks.
Methodology: The Ladder-Climbing Attack
AttChain conceptualizes the adversarial attack as a multi-step reasoning chain, or a "ladder-climbing" exercise. Instead of attempting to jump a low-ranked document to the top position in a single step, the framework iteratively improves the document's rank by mimicking higher-ranked "anchor documents."
The process involves two primary stages per round:
- Identify Nodes (Anchor Documents): The system identifies real documents currently ranked higher than the target. It employs a Zipf-based filtering strategy—inspired by human click behavior—to select a lean set of candidate anchors. An LLM then selects the most "helpful" anchors to guide the next phase of the attack.
- Perturb Documents at Nodes: The system calculates a discrepancy-oriented assignment, determining the volume of word changes based on the rank gap between the target and the anchor. The LLM is then prompted to identify key semantic phrases from the anchor and integrate them seamlessly into the target document.
This process typically repeats for five rounds, with the LLM dynamically adjusting its strategy based on the NRM's response in each iteration.
Experimental Evaluation
The researchers evaluated AttChain using two gold-standard web search benchmarks: MS MARCO (3.21 million documents) and TREC2019. The attacks were tested against three representative ranking models: BERT, PROP (a pre-trained ranking model), and RankLLM (an LLM-distilled ranker).
Performance Results
AttChain demonstrated superior performance across all tested models and datasets, significantly outperforming baselines like PRADA, PAT, and IDEM in terms of Attack Success Rate (ASR), Rank Boost, and Top-10 Rate (T10R).
- Effectiveness: AttChain achieved a near 100% ASR for "Easy" target documents. Even for "Hard" targets (documents initially ranked very low), it maintained high success rates where other methods failed.
- Rank Boosting: In many scenarios, the target document's rank improved by over 40 positions on average.
- Query Efficiency: AttChain required an average of only 25 queries to achieve its results, whereas some baselines required over 200, making it far more practical for real-world black-box attacks.
Stealthiness and Naturalness
A key innovation of AttChain is its focus on stealthiness. Unlike traditional attacks that insert repetitive keywords or gibberish, AttChain produces fluent, grammatically correct text. This makes the adversarial examples resistant to common defenses like perplexity filters or spam detectors.
Human evaluators and automated metrics confirm this high level of naturalness. On a scale where 1.0 represents a natural document, AttChain scored 0.85, nearly matching original documents (0.89) and far exceeding term-spamming methods (0.12). This suggests that the LLM is successfully "reverse-engineering" the preferences of neural rankers while maintaining human-level readability.
Conclusion
AttChain exposes a significant lack of robustness in modern Neural Ranking Models. By treating the attack as a reasoning chain, LLMs can efficiently navigate the complex decision boundaries of black-box rankers. This research highlights the urgent need for more sophisticated, semantic-based defenses to protect search integrity against LLM-driven adversarial threats.
Summary updated