大语言模型的充要水印
Necessary and Sufficient Watermark for Large Language Models
AI总结:
针对现有 LLM 水印损害文本质量的问题,本文提出 NS-Watermark,将最低可区分约束转化为优化问题并高效求解,在保持自然性的同时提升检测与翻译性能。
摘要:
近年来,大语言模型(LLM)在各类 NLP 任务中取得了显著性能。它们能够生成与人类所写文本难以区分的文本。LLM 如此出色的性能增加了其被用于恶意目的的风险,例如生成虚假新闻文章。因此,有必要开发区分 LLM 所写文本与人类所写文本的方法。水印是实现这一目标最有效的方法之一。尽管现有水印方法已经成功检测出 LLM 生成的文本,但它们会显著降低生成文本的质量。在本研究中,我们提出 Necessary and Sufficient Watermark(NS-Watermark,充要水印),用于在不降低文本质量的情况下向生成文本中嵌入水印。更具体地说,我们推导了为区分文本由 LLM 还是人类撰写而需要施加于生成文本的最低限度约束。随后,我们将 NS-Watermark 表述为一个约束优化问题,并提出一种高效算法来求解该问题。通过实验,我们证明 NS-Watermark 能够比现有水印方法生成更自然的文本,并更准确地区分 LLM 所写文本与人类所写文本。特别是在机器翻译任务中,NS-Watermark 相比现有水印方法最高可高出 30 个 BLEU 分数。
英文摘要:
In recent years, large language models (LLMs) have achieved remarkable performances in various NLP tasks. They can generate texts that are indistinguishable from those written by humans. Such remarkable performance of LLMs increases their risk of being used for malicious purposes, such as generating fake news articles. Therefore, it is necessary to develop methods for distinguishing texts written by LLMs from those written by humans. Watermarking is one of the most powerful methods for achieving this. Although existing watermarking methods have successfully detected texts generated by LLMs, they significantly degrade the quality of the generated texts. In this study, we propose the Necessary and Sufficient Watermark (NS-Watermark) for inserting watermarks into generated texts without degrading the text quality. More specifically, we derive minimum constraints required to be imposed on the generated texts to distinguish whether LLMs or humans write the texts. Then, we formulate the NS-Watermark as a constrained optimization problem and propose an efficient algorithm to solve it. Through the experiments, we demonstrate that the NS-Watermark can generate more natural texts than existing watermarking methods and distinguish more accurately between texts written by LLMs and those written by humans. Especially in machine translation tasks, the NS-Watermark can outperform the existing watermarking method by up to 30 BLEU scores.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。