arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.04858cs.LGcs.CLcs.CR
收藏

在具有对语言生成系统的黑盒访问权限下逆向工程解码策略

Reverse-Engineering Decoding Strategies Given Blackbox Access to a Language Generation System

Google Deepmind(谷歌DeepMind);University of Toronto(多伦多大学)

Daphne Ippolito, Nicholas Carlini, Katherine Lee, Milad Nasr, Yun William Yu

AI总结:

本文提出了在黑盒访问条件下逆向工程语言生成系统解码策略的方法,揭示了该方法对检测生成文本及发现解码设置偏差的重要意义,并在多个开源模型和生产系统上验证了攻击有效性。

摘要:

神经语言模型越来越多地部署在 API 和网站中,允许用户传入提示词并接收生成的文本。许多这类系统不公开生成参数。在本文中,我们提出了逆向工程用于生成文本的解码方法(即 top-$k$ 或 nucleus sampling)的方法。我们发现有发现所使用的解码策略的能力对于检测生成文本具有重要意义。此外,发现解码策略的过程可以揭示由于选择严重截断模型预测分布的解码设置而引起的偏差。我们在几个开源语言模型系列以及生产系统(例如 ChatGPT)上执行了我们的攻击。

英文摘要:

Neural language models are increasingly deployed into APIs and websites that allow a user to pass in a prompt and receive generated text. Many of these systems do not reveal generation parameters. In this paper, we present methods to reverse-engineer the decoding method used to generate text (i.e., top-$k$ or nucleus sampling). Our ability to discover which decoding strategy was used has implications for detecting generated text. Additionally, the process of discovering the decoding strategy can reveal biases caused by selecting decoding settings which severely truncate a model's predicted distributions. We perform our attack on several families of open-source language models, as well as on production systems (e.g., ChatGPT).

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

↑