Exploiting Positional Bias for Query-Agnostic Generative Content in Search

Andrew Parry, Sean MacAvaney, Debasis Ganguly

Presented at ACL 2024, this research identifies a significant vulnerability in modern search engines: positional bias in Neural Ranking Models (NRMs). While neural models generally outperform traditional keyword-based search, they can be manipulated into ignoring non-relevant or promotional content if that content is strategically placed within a document. This exploitation, termed "attention bleed-through," allows attackers to use Large Language Models (LLMs) to generate on-topic promotional content that remains "hidden" from ranking penalties.

The Vulnerability: Attention Bleed-through

In traditional lexical search (e.g., BM25), ranking is primarily driven by term frequency and document length. Adding irrelevant text typically triggers a penalty through length normalization. However, modern NRMs like monoT5 or ColBERT use Transformer architectures that prioritize context over simple word counts.

Figure 4: Comparison of document injection types and their impact on NRM vs. Lexical ranking.

The researchers discovered that these models are susceptible to "attention bleed-through." Because Transformers utilize attention mechanisms, the perceived relevance of a high-quality sentence can "bleed" onto the sentence immediately following it. By injecting promotional text—either static or LLM-generated contextualized text—immediately after a highly relevant (salient) section, attackers can maintain a document's high rank while successfully delivering an advertisement or misinformation.

Comparing Neural and Lexical Ranking

The study contrasted the behavior of NRMs with traditional models using the MSMARCO and TREC Deep Learning datasets.

  • NRM Invariance: NRMs, particularly monoT5, proved surprisingly invariant to contextualized promotional text. If the injected content "sounds" like the rest of the document, the model often fails to distinguish the pollution from the original content.
  • Lexical Robustness: Interestingly, the "older" BM25 model was more resilient. Its mathematical foundations naturally penalize document length increases that do not contribute new query-relevant terms, regardless of how well the text is written.
  • Positioning Matters: Injecting text at the beginning of a document can drop its rank by up to 18 places in monoT5. However, moving that same text to a position following a salient sentence significantly reduces this penalty.

Empirical Evidence of Positional Bias

To quantify this effect, the authors measured the Average Model Rank Score (MRS) across different token distances relative to salient content.

Figure 5: Average MRS across different token distances for Relevant, Related, and Non-Relevant content.

The data shows that for relevant and related content, the ranking penalty is minimized when the injection occurs near salient text. This confirms that the model's attention mechanism essentially smears the "goodness" of the relevant text onto the "bad" injected text, effectively masking the presence of promotional content from the ranker.

Mitigation and Defense

To address this vulnerability, the researchers proposed a model-agnostic mitigation strategy. They developed a RoBERTa-based classifier trained on the Propaganda Techniques Corpus (PTC) to detect promotional language. By using this classifier to generate a "propaganda score," they could penalize the NRM's ranking score. This defense successfully recovered ranking performance, improving nDCG@10 by up to 0.101 for certain neural models.

Conclusion

As search engines increasingly rely on neural architectures, understanding their inherent biases becomes critical. This research demonstrates that while NRMs are more sophisticated than their lexical predecessors, their reliance on attention mechanisms creates new avenues for query-agnostic attacks. Future work will likely explore how these biases might be exploited for more malicious purposes, such as spreading misinformation that bypasses automated search filters.

Summary updated

BibTeX
@inproceedings{parry2024exploiting,
  author = {Andrew Parry and Sean MacAvaney and Debasis Ganguly},
  title = {{Exploiting Positional Bias for Query-Agnostic Generative Content in Search}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.656},
}
Figure