arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.00469cs.IR
收藏

利用位置偏差实现查询无关的生成式内容在搜索中的应用

Exploiting Positional Bias for Query-Agnostic Generative Content in Search

Andrew Parry, Sean MacAvaney, Debasis Ganguly

AI总结:

本文揭示了神经排序模型中transformer注意力机制的位置偏差可被利用,通过查询无关的方式注入促销内容而不影响排序,并提出了一种简单有效的补偿方法来缓解该弱点。

摘要:

近年来,神经排序模型(NRMs)在文本检索中已被证明显著优于其词汇对应模型。在传统搜索流程中,多种特征的组合导致了定义明确的行为。然而,随着神经方法作为引擎最终评分组件或独立系统日益普及,它们对恶意文本以及更普遍的语义扰动的鲁棒性需要得到更好的理解。我们假设,transformer注意力机制可以通过搜索模型中的位置偏差引发可利用的缺陷,从而导致一种可能超越单一查询或主题的泛化攻击。我们通过展示非相关文本——例如促销内容——可以轻易注入文档而不会对其在搜索结果中的位置产生不利影响来证明此类缺陷。与以往基于梯度的攻击不同,我们以查询无关的方式展示了这些偏差。在此过程中,即使不了解主题相关性,我们仍然可以通过控制注入位置来减少非相关内容注入的负面影响。我们的实验使用模拟的与主题相关的促销文本进行,这些文本通过向LLMs提供目标文档的主题上下文自动生成。我们发现,对非相关文本进行上下文化处理进一步减少了负面影响,同时可能规避现有的内容过滤机制。相比之下,词汇模型被发现对此类内容注入攻击更具鲁棒性。随后,我们研究了一种简单而有效的补偿方法,以弥补神经排序模型在搜索中的弱点,验证了我们关于transformer偏差的假设。

英文摘要:

In recent years, neural ranking models (NRMs) have been shown to substantially outperform their lexical counterparts in text retrieval. In traditional search pipelines, a combination of features leads to well-defined behaviour. However, as neural approaches become increasingly prevalent as the final scoring component of engines or as standalone systems, their robustness to malicious text and, more generally, semantic perturbation needs to be better understood. We posit that the transformer attention mechanism can induce exploitable defects through positional bias in search models, leading to an attack that could generalise beyond a single query or topic. We demonstrate such defects by showing that non-relevant text--such as promotional content--can be easily injected into a document without adversely affecting its position in search results. Unlike previous gradient-based attacks, we demonstrate these biases in a query-agnostic fashion. In doing so, without the knowledge of topicality, we can still reduce the negative effects of non-relevant content injection by controlling injection position. Our experiments are conducted with simulated on-topic promotional text automatically generated by prompting LLMs with topical context from target documents. We find that contextualisation of a non-relevant text further reduces negative effects whilst likely circumventing existing content filtering mechanisms. In contrast, lexical models are found to be more resilient to such content injection attacks. We then investigate a simple yet effective compensation for the weaknesses of the NRMs in search, validating our hypotheses regarding transformer bias.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑