arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.01481cs.LGcs.CL
收藏

大语言模型中上下文长度扩展的内在熵

Intrinsic Entropy of Context Length Scaling in LLMs

Institute for Interdisciplinary Information Sciences, Tsinghua University(清华大学交叉信息研究院);Carnegie Mellon University(卡内基梅隆大学);CPHOS;University of Washington(华盛顿大学)

Jingzhe Shi, Qinwei Ma, Hongyi Liu, Hang Zhao, Jeng-Neng Hwang, Lei Li

AI总结:

本研究提出'内在熵'理论,通过实验验证长上下文对语言模型的影响,揭示训练数据集大小与最佳上下文长度的关系。

摘要:

近年来,长上下文语言模型引起了广泛关注。已有研究探讨了长上下文对语言模型性能的影响:一些研究发现长无关上下文可能损害性能,而另一些实验则总结出相关长上下文带来的损失减少可视为扩展定律。这要求对长上下文如何影响语言建模有更深入的理解。在本工作中,我们(1)提出使用'内在熵'来解释上下文长度对语言建模的影响;(2)在自然语言和合成数据上进行实验,验证我们提出的理论假设和推导。我们的理论框架可以提供实际见解,例如建立训练数据集大小决定最佳上下文长度,并为某些情况设定上下文长度扩展的界限。我们希望我们的工作能激发新的长上下文语言模型,以及未来研究语言模型物理性质的工作。

英文摘要:

Long Context Language Models have drawn great attention in the past few years. There has been work discussing the impact of long context on Language Model performance: some find that long irrelevant context could harm performance, while some experimentally summarize loss reduction by relevant long context as Scaling Laws. This calls for a more thorough understanding of how long context impacts Language Modeling. In this work, we (1) propose to use `Intrinsic Entropy' for explaining the impact of context length on language modeling; and (2) conduct experiments on natural language and synthetic data, validating our proposed theoretical assumptions and deductions. Our theoretical framework can provide practical insights such as establishing that training dataset size dictates an optimal context length and bounds context length scaling for certain cases. We hope our work may inspire new long context Language Models, as well as future work studying the physics of Language Models.

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

↑