Introduction
Modern search engines increasingly rely on Neural Ranking Models (NRMs) to deliver relevant content. While these models have significantly improved search quality, they also introduce new security vulnerabilities. Traditional adversarial attacks in Information Retrieval (IR) typically focus on "paired attacks," where a document is modified to rank higher for a single specific query. However, real-world search engine optimization (SEO) often targets broader topics rather than isolated keywords.
This paper introduces the Topic-oriented Adversarial Ranking Attack (TARA), a more practical and challenging threat model. In TARA, an attacker seeks a single, human-imperceptible perturbation that promotes a document across an entire cluster of related queries. Furthermore, the attack must operate in a "black-box" setting, where the internal parameters of the ranking model are unknown, and the document corpus may be dynamic.
The RELEVANT Framework
To address the TARA task, the authors propose RELEVANT (REinforcement Learning-based Adversarial raNking aTtack). This framework treats the adversarial process as a Markov Decision Process (MDP), where an agent learns to optimize document perturbations through interaction with a surrogate environment.
1. Surrogate Model Training
Because the target NRM is a black box, RELEVANT first trains a surrogate model (based on BERT) to approximate the target's ranking behavior. This surrogate provides the necessary feedback for the reinforcement learning agent, bridging the gap between the attacker and the hidden ranking logic.
2. Reinforcement Learning Agent
The RL agent is tasked with selecting and applying perturbations. It operates using two primary mechanisms:
- Trigger Generation: The agent generates a short sequence of words (a "trigger") to be prepended to the document.
- Word Substitution: The agent identifies high-impact words within the document and replaces them with synonyms that increase the document's perceived relevance to the target topic.
3. Topic-Oriented Reward Function
The core innovation of RELEVANT is its reward function. Unlike standard attacks that reward performance on a single query, RELEVANT calculates rewards based on the minimum improvement across a group of queries. This ensures the perturbation is effective for the entire topic. Additionally, the framework incorporates "naturalness constraints" using language models and grammar checkers to ensure the modified document remains fluent and avoids detection by spam filters.
Experimental Evaluation
The researchers evaluated RELEVANT using two newly constructed benchmark datasets:
- Q-MS MARCO: Derived from MS MARCO and ORCAS click logs, featuring 200 topic-based query clusters.
- Q-ClueWeb09: Based on ClueWeb09-B, utilizing TREC subtopics to form 50 query groups.
Key Findings
- Effectiveness: RELEVANT demonstrated superior performance over existing baselines like PAT and PRADA. On Q-MS MARCO, the framework achieved a 100% Query Success Rate (QSR@50%), meaning every target document was successfully promoted for at least half of the queries in its assigned topic.
- Rank Improvement: The framework achieved significant rank boosting, moving documents up an average of 36.7 positions on MS MARCO and 32.1 positions on ClueWeb09 with only a 5-word trigger.
- Transferability: The "surrogate gap" proved to be surprisingly small. Attacks optimized against the surrogate model transferred effectively to the black-box target, suggesting that different NRMs often share similar vulnerabilities.
- Stealthiness vs. Performance: There is an inherent trade-off between the aggressiveness of an attack and its detectability. While unconstrained attacks are more powerful, RELEVANT’s naturalness-constrained perturbations were rated by humans as significantly more fluent and harder to distinguish from original content.
Discussion and Future Directions
The success of topic-oriented attacks highlights a significant "economy of scale" for adversarial SEO. A single successful edit that influences dozens of queries is far more efficient than managing individual perturbations for every keyword. Moreover, the RL-based approach proved resilient in dynamic settings where the search index changes over time, as the agent learns to exploit the underlying ranking logic rather than static document states.
Future research may explore adaptive perturbation sizes, character-level attacks (such as typosquatting), and more sophisticated defense mechanisms. The authors suggest that adversarial training—incorporating these types of topic-oriented perturbations into the training phase of NRMs—is a critical step toward building more robust and secure search engines.
Summary updated