提出容量密度新指标,揭示大模型效率每三个月翻倍的规律
Densing Law of LLMs
- 用参考模型构建缩放定律,计算目标模型的有效参数量
- 发现大模型容量密度每3个月约翻一倍,效率提升呈指数增长
- 适合关注模型效率优化与可持续发展的研究者和工程师
大型语言模型(LLMs)的发展标志着人工智能的重要进展,其性能随规模增大而提升。然而,这种扩展带来了训练与推理效率的巨大挑战,尤其在资源受限环境下部署时愈发不可持续。本文提出「容量密度」作为衡量不同规模模型质量的新指标,描述了模型在效能与效率上的发展趋势。通过引入一组参考模型并建立缩放定律以预测其下游性能,将目标模型的「有效参数量」定义为达到同等性能所需参考模型的参数量,并将容量密度定义为有效参数量与实际参数量之比。该指标统一评估模型效能与效率。对近期开源基础模型的分析揭示了一条经验规律(密化定律):容量密度随时间呈指数增长,使用多个常用基准测试,其值每约三个月翻倍。这一规律为未来大模型发展提供了新视角,强调提升容量密度可在最小计算开销下实现最优效果。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。