arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.12813cs.SE
收藏

代码理解模型背后的缩放定律

Scaling Laws Behind Code Understanding Model

Jiayi Lin, Hande Dong, Yutao Xie, Lei Zhang

AI总结:

本文研究了代码理解任务的缩放定律,通过大量实验验证测试误差随模型规模增大呈幂律下降,并训练了1.5B参数的CoLSBERT模型,大幅超越先前工作。

摘要:

缩放定律正在成为许多机器学习领域的基本定律。也就是说,当增加训练数据、模型规模和计算资源时,测试误差呈幂律下降。然而,该定律是否适用于代码理解任务尚未得到充分研究,且当前大多数用于代码理解的语言模型约有100M参数,与大型语言模型相比相对“较小”。本文中,我们进行了大量实验,通过改变训练数据、模型规模和计算资源来研究代码理解任务的缩放定律。我们验证了代码理解模型的测试误差在使用更大模型时呈幂律下降,表明缩放定律适用于代码理解任务。此外,我们将不同规模的模型应用于两个下游代码理解任务,发现性能随模型规模增大而提升。最后,我们在大型数据集上利用更多计算资源训练了一个名为CoLSBERT的1.5B参数的大规模代码理解模型,其以大幅优势超越了先前的工作。论文发表时我们将发布代码和CoLSBERT模型。

英文摘要:

The scaling law is becoming a fundamental law in many machine learning areas. That is, test error falls off with the power law when increasing training data, model size, and computing resource. However, whether this law is suitable for the task of code understanding is not well studied, and most current language models for code understanding are about 100M parameters, which are relatively "small" compared to large language models. In this paper, we conduct extensive experiments to investigate the scaling law for the code understanding task by varying training data, model size, and computing resource. We validate that the test error of code understanding models falls off with the power law when using larger models, indicating that the scaling law is suitable for the code understanding task. Besides, we apply different scales of models to two downstream code understanding tasks, and find that the performance increases with larger scale of models. Finally, we train a large-scale code understanding model named CoLSBERT with 1.5B parameters on a large dataset using more computing resource, which outperforms previous work by a large margin. We will release our code and the CoLSBERT model when our paper is published.

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

↑