Permute-and-Flip:一种面向 LLM 的最优稳定且可加水印的解码器
Permute-and-Flip: An optimally stable and watermarkable decoder for LLMs
AI总结:
本文提出 Permute-and-Flip 解码器及配套密码学水印方案,在保持稳定性与可检测性的同时,将质量—稳定性权衡较采样最高提升 2 倍,并显著降低困惑度。
摘要:
在本文中,我们提出了一种名为 Permute-and-Flip(PF)解码器的新型解码方法。它具有与标准采样解码器相似的稳定性,但其质量—稳定性权衡经证明比采样最高好 2 倍,且绝不会劣于任何其他解码器。我们还设计了一种密码学水印方案,该方案类似于 Aaronson(2023)的 Gumbel 水印,但天然为 PF 解码器量身定制。该水印方案不会改变待采样分布,同时只要生成文本具有高熵,就允许任意低的假阳性率和高召回率。我们的实验表明,PF 解码器(及其带水印版本)在困惑度方面显著优于朴素采样(及其 Gumbel 水印版本),同时保持相同的稳定性(和可检测性),因此使其成为一种很有前景的 LLM 解码新方法。代码可在 https://github.com/XuandongZhao/pf-decoding 获取。
英文摘要:
In this paper, we propose a new decoding method called Permute-and-Flip (PF) decoder. It enjoys stability properties similar to the standard sampling decoder, but is provably up to 2x better in its quality-stability tradeoff than sampling and never worse than any other decoder. We also design a cryptographic watermarking scheme analogous to Aaronson (2023)'s Gumbel watermark, but naturally tailored for PF decoder. The watermarking scheme does not change the distribution to sample, while allowing arbitrarily low false positive rate and high recall whenever the generated text has high entropy. Our experiments show that the PF decoder (and its watermarked counterpart) significantly outperform(s) naive sampling (and its Gumbel watermarked counterpart) in terms of perplexity, while retaining the same stability (and detectability), hence making it a promising new approach for LLM decoding. The code is available at https://github.com/XuandongZhao/pf-decoding
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。