arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.04315cs.AIcs.CL
收藏

大语言模型的致密化定律

Densing Law of LLMs

Tsinghua University(清华大学);ModelBest Inc.(ModelBest公司)

Chaojun Xiao, Jie Cai, Weilin Zhao, Guoyang Zeng, Biyuan Lin, Jie Zhou, Zhi Zheng, Xu Han, Zhiyuan Liu, Maosong Sun

AI总结:

本文提出“容量密度”指标统一衡量 LLM 的性能与效率,并发现开源基础 LLM 的容量密度约每三个月翻倍的致密化定律。

摘要:

大语言模型(LLM)已成为人工智能领域的里程碑,其性能会随着模型规模的增加而提升。然而,这种扩展给训练和推理效率带来了巨大挑战,尤其是在资源受限环境中部署 LLM 时,而且扩展趋势正变得越来越不可持续。本文提出“容量密度”概念,将其作为评估不同规模 LLM 质量的新指标,并从有效性和效率两方面描述 LLM 的发展趋势。为计算给定目标 LLM 的容量密度,我们首先引入一组参考模型,并建立一条扩展定律,以根据这些参考模型的参数规模预测其下游性能。随后,我们将目标 LLM 的有效参数规模定义为参考模型达到同等性能所需的参数规模,并将容量密度形式化为有效参数规模与目标 LLM 实际参数规模之比。容量密度为同时评估模型有效性和效率提供了统一框架。我们进一步分析近期开源基础 LLM 后揭示了一条经验定律(致密化定律):LLM 的容量密度随时间呈指数增长。更具体地说,使用若干广泛采用的基准进行评估时,LLM 的容量密度大约每三个月翻一番。该定律为指导未来 LLM 发展提供了新视角,强调了提升容量密度、以最小计算开销获得最优结果的重要性。

英文摘要:

Large Language Models (LLMs) have emerged as a milestone in artificial intelligence, and their performance can improve as the model size increases. However, this scaling brings great challenges to training and inference efficiency, particularly for deploying LLMs in resource-constrained environments, and the scaling trend is becoming increasingly unsustainable. This paper introduces the concept of ``\textit{capacity density}'' as a new metric to evaluate the quality of the LLMs across different scales and describes the trend of LLMs in terms of both effectiveness and efficiency. To calculate the capacity density of a given target LLM, we first introduce a set of reference models and develop a scaling law to predict the downstream performance of these reference models based on their parameter sizes. We then define the \textit{effective parameter size} of the target LLM as the parameter size required by a reference model to achieve equivalent performance, and formalize the capacity density as the ratio of the effective parameter size to the actual parameter size of the target LLM. Capacity density provides a unified framework for assessing both model effectiveness and efficiency. Our further analysis of recent open-source base LLMs reveals an empirical law (the densing law)that the capacity density of LLMs grows exponentially over time. More specifically, using some widely used benchmarks for evaluation, the capacity density of LLMs doubles approximately every three months. The law provides new perspectives to guide future LLM development, emphasizing the importance of improving capacity density to achieve optimal results with minimal computational overhead.

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

↑