arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.21637cs.CLcs.LG
收藏

通过释义反转缓解针对机器文本检测器的释义攻击

Mitigating Paraphrase Attacks on Machine-Text Detectors via Paraphrase Inversion

Lawrence Livermore National Laboratory(劳伦斯利弗莫尔国家实验室);Johns Hopkins University(约翰斯·霍普金斯大学)

Rafael Rivera Soto, Barry Chen, Nicholas Andrews

AI总结:

针对释义攻击会降低机器文本检测器性能的问题,提出将释义文本反转还原为近似原文本的方法,利用少量数据学习模型释义偏差,泛化性良好,结合释义检测器可有效防御攻击,多检测器多领域下AUROC平均提升22%。

摘要:

利用指令微调语言模型或专用释义模型可轻松生成高质量释义。尽管该能力有多种良性应用,但释义攻击——即对机器生成文本应用释义——已被证实会显著降低机器文本检测器的性能。这促使我们研究释义反转这一新问题:给定释义后的文本,目标是恢复原始文本的近似版本。近似结果与原始文本越接近,机器文本检测器的表现就越好。我们提出一种方法,将该问题构建为从释义文本还原为原始文本的翻译任务,这需要文本及对应释义的样本来训练反转模型。幸运的是,只要有原始文本语料库和一个或多个释义模型,就能轻松生成此类训练数据。我们发现GPT-4、Llama-3等语言模型在释义时存在偏差,反转模型仅需少量数据就能学习到这些偏差。或许出人意料的是,我们还发现这类模型泛化能力良好,甚至能适配训练时未见过的释义模型。最后,我们证明,与释义文本检测器结合使用时,我们的反转模型可有效防御释义攻击,总体而言,在七个机器文本检测器和三个不同领域上,我们的方法使AUROC平均提升了22%。

英文摘要:

High-quality paraphrases are easy to produce using instruction-tuned language models or specialized paraphrasing models. Although this capability has a variety of benign applications, paraphrasing attacks$\unicode{x2013}$paraphrases applied to machine-generated texts$\unicode{x2013}$are known to significantly degrade the performance of machine-text detectors. This motivates us to consider the novel problem of paraphrase inversion, where, given paraphrased text, the objective is to recover an approximation of the original text. The closer the approximation is to the original text, the better machine-text detectors will perform. We propose an approach which frames the problem as translation from paraphrased text back to the original text, which requires examples of texts and corresponding paraphrases to train the inversion model. Fortunately, such training data can easily be generated, given a corpus of original texts and one or more paraphrasing models. We find that language models such as GPT-4 and Llama-3 exhibit biases when paraphrasing which an inversion model can learn with a modest amount of data. Perhaps surprisingly, we also find that such models generalize well, including to paraphrase models unseen at training time. Finally, we show that when combined with a paraphrased-text detector, our inversion models provide an effective defense against paraphrasing attacks, and overall our approach yields an average improvement of +22% AUROC across seven machine-text detectors and three different domains.

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

↑