arXiv:2410.21637cs.CLcs.LG2024-10ACL被引 5

用反向重构技术提升机器文本检测器抗改写攻击能力

Mitigating Paraphrase Attacks on Machine-Text Detectors via Paraphrase Inversion

  • 将改写文本逆向还原为原始文本,提升检测精度
  • 在7个检测器3个领域上平均提升22%的AUROC
  • 仅需少量数据即可学习模型改写偏见,泛化能力强

高质量的改写文本可通过指令微调的语言模型或专用改写模型轻松生成。尽管该能力有诸多有益用途,但针对机器生成文本的改写攻击会显著降低机器文本检测器的性能。为此,我们提出一种新型的改写逆向技术:给定改写后的文本,目标是恢复其原始文本的近似版本。恢复越接近原稿,检测器性能越好。我们将该问题建模为从改写文本到原始文本的翻译任务,并利用原始文本与对应改写文本的成对数据进行训练。此类训练数据可借助原始语料库和一个或多个改写模型轻松生成。我们发现GPT-4和Llama-3等语言模型在改写时存在可被逆向模型学习的偏差,且仅需少量数据即可实现。更令人意外的是,该模型具备良好泛化能力,包括对训练中未见过的改写模型也有效。最终,结合改写文本检测器,我们的逆向模型能有效防御改写攻击,在七个机器文本检测器和三个不同领域上整体平均提升22%的AUROC。

原文摘要 · Abstract (English)

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.

文本检测改写攻击逆向重构

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。