大数定律的奴隶:生成式语言模型中困惑度的渐近等分性质
Slaves to the Law of Large Numbers: An Asymptotic Equipartition Property for Perplexity in Generative Language Models
AI总结:
本研究证明语言模型生成的长文本困惑度渐近收敛于平均熵,定义典型集并细化至语法正确文本,表明其输出范围受强烈约束,可用于合成文本检测与成员推断。
摘要:
我们证明了由语言模型生成的长文本的困惑度具有一种新的渐近非等分性质,并提供了来自开源模型的支持性实验证据。具体而言,我们表明,由语言模型生成的任何大型文本的对数困惑度必须渐近收敛到其词元分布的平均熵。这定义了一个“典型集”,所有由语言模型生成的长合成文本都必须属于该集合。我们将“典型集”的概念细化,仅包含语法正确的文本。然后,我们证明,对于非常一般的语法定义,这个细化的典型集是所有可能语法正确文本的一个逐渐消失的小子集。这意味着语言模型在其可能的行为和输出范围上受到强烈约束。我们对语言模型输出的统计特性不做任何简化假设(如平稳性),因此我们的结果无需任何近似即可直接应用于实际的现实世界模型。我们讨论了典型集概念在检测合成文本和训练数据集成员推断等问题上的可能应用。
英文摘要:
We prove a new asymptotic un-equipartition property for the perplexity of long texts generated by a language model and present supporting experimental evidence from open-source models. Specifically we show that the logarithmic perplexity of any large text generated by a language model must asymptotically converge to the average entropy of its token distributions. This defines a ``typical set'' that all long synthetic texts generated by a language model must belong to. We refine the concept of ''typical set'' to include only grammatically correct texts. We then show that this refined typical set is a vanishingly small subset of all possible grammatically correct texts for a very general definition of grammar. This means that language models are strongly constrained in the range of their possible behaviors and outputs. We make no simplifying assumptions (such as stationarity) about the statistics of language model outputs, and therefore our results are directly applicable to practical real-world models without any approximations. We discuss possible applications of the typical set concept to problems such as detecting synthetic texts and membership inference in training datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。