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

分析针对序列到序列相关性模型的对抗性攻击

Analyzing Adversarial Attacks on Sequence-to-Sequence Relevance Models

Andrew Parry, Maik Fröbe, Sean MacAvaney, Martin Potthast, Matthias Hagen

AI总结:

该研究针对序列到序列相关性模型面临的提示注入对抗攻击风险,分析了人工模板和LLM改写的查询无关提示注入对多类模型的影响,实验证实此类攻击可操纵seq2seq模型,对仅编码器模型也有轻度影响,而BM25不受影响。

摘要:

诸如monoT5之类的现代序列到序列相关性模型可通过交叉编码有效捕捉查询与文档之间复杂的文本交互。然而,提示中使用的自然语言标记(例如monoT5的Query、Document和Relevant)为恶意文档提供了攻击途径,使其可通过提示注入(例如添加“true”之类的目标词)操纵自身的相关性得分。由于检索评估尚未考虑此类可能性,我们分析了通过人工构建模板和基于大语言模型(LLM)的文档改写实现的与查询无关的提示注入对若干现有相关性模型的影响。我们在TREC Deep Learning track上开展的实验表明,对抗性文档可轻易操纵不同的序列到序列相关性模型,而作为典型词汇模型的BM25则不受影响。值得注意的是,此类攻击也会影响仅编码器相关性模型(这类模型不依赖自然语言提示标记),不过影响程度较轻。

英文摘要:

Modern sequence-to-sequence relevance models like monoT5 can effectively capture complex textual interactions between queries and documents through cross-encoding. However, the use of natural language tokens in prompts, such as Query, Document, and Relevant for monoT5, opens an attack vector for malicious documents to manipulate their relevance score through prompt injection, e.g., by adding target words such as true. Since such possibilities have not yet been considered in retrieval evaluation, we analyze the impact of query-independent prompt injection via manually constructed templates and LLM-based rewriting of documents on several existing relevance models. Our experiments on the TREC Deep Learning track show that adversarial documents can easily manipulate different sequence-to-sequence relevance models, while BM25 (as a typical lexical model) is not affected. Remarkably, the attacks also affect encoder-only relevance models (which do not rely on natural language prompt tokens), albeit to a lesser extent.

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

↑