arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.14919cs.CLcs.AIcs.LG
收藏

预测任务性能的上下文感知缩放定律

Predicting Task Performance with Context-aware Scaling Laws

UC Santa Cruz(加州大学圣克ruz分校);Washington University in St. Louis(华盛顿大学圣路易斯分校);Databricks(Databricks公司);Google DeepMind(谷歌DeepMind);UC Berkeley(加州大学伯克利分校)

Kyle Montgomery, David Park, Jianhong Tu, Michael Bendersky, Beliz Gunel, Dawn Song, Chenguang Wang

AI总结:

提出一个可解释的上下文感知缩放定律框架,联合建模训练计算量和上下文对下游任务性能的影响,在Llama-2模型上验证了其准确性和泛化能力,为高效长上下文LLM设计提供指导。

摘要:

缩放定律通过将交叉熵损失等上游指标与模型大小、训练数据和计算量等设计因素联系起来,改变了我们对大型语言模型的理解。然而,这些传统定律无法捕捉下游任务性能,而上下文在其中起着关键作用。在这项工作中,我们提出了一个直接、可解释的框架,该框架将下游性能联合建模为训练计算量和所提供上下文的函数。我们通过将框架拟合到Llama-2-7B和Llama-2-13B的扩展上下文变体在65,500个独特实例上的观测下游性能来实证验证我们的框架,这些实例涵盖三个任务:算术推理、常识推理和机器翻译。我们的结果表明,我们的框架能够准确建模分布内的下游性能,在训练计算量的三个数量级范围内泛化,并随着上下文量的增加可靠地外推性能。这些发现为训练计算量与上下文利用之间的相互作用提供了宝贵的见解,为设计更高效的长上下文LLM以应对多样化下游任务提供了指导。我们的代码可在https://github.com/wang-research-lab/context-scaling获取。

英文摘要:

Scaling laws have transformed our understanding of large language models by linking upstream metrics like cross-entropy loss to design factors such as model size, training data, and compute. However, these conventional laws fail to capture downstream task performance, where context plays a critical role. In this work, we propose a straightforward, interpretable framework that jointly models downstream performance as a function of the training compute and the provided context. We empirically validate our framework by fitting it on the observed downstream performance of extended-context variants of Llama-2-7B and Llama-2-13B across 65,500 unique instances spanning three tasks: arithmetic reasoning, common sense reasoning, and machine translation. Our results demonstrate that our framework accurately models in-distribution downstream performance, generalizes across three orders of magnitude in training compute, and reliably extrapolates performance as the amount of context increases. These findings offer valuable insights into the interplay between training compute and context utilization, providing guidance for designing more efficient long-context LLMs for diverse downstream tasks. Our code is available at https://github.com/wang-research-lab/context-scaling.

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

↑