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

面向小型代码语言模型的课程学习

Curriculum Learning for Small Code Language Models

Ecole nationale Supérieure d’Informatique (ESI)(国立高等计算机学院);New York University Abu Dhabi (NYUAD)(纽约大学阿布扎比分校)

Marwa Naïr, Kamel Yamani, Lynda Said Lhadj, Riyadh Baghdadi

AI总结:

该研究针对小型代码语言模型复杂任务表现不佳的问题,提出结合软件代码度量的难度评估指标与新型课程学习调度策略,显著提升了百万参数量仅解码器代码模型的代码执行准确率。

摘要:

代码语言模型已成为各类编程任务的实用工具,但在处理复杂任务时往往表现不佳。本文探究了课程学习在提升这类模型性能方面的潜力。尽管此前研究表明课程学习未必能改善语言模型的性能,但我们的结果出人意料地显示,这一结论对代码语言模型可能并不成立。我们证明,设计合理的课程学习方法能显著提升小型仅解码器代码语言模型在代码执行任务上的准确率,而对代码补全的提升效果则较弱。为探究课程学习的潜力,我们训练了多个参数量均为100万的GPT模型进行下一词元预测,并在代码补全与代码执行任务上对其进行评估。我们的贡献包括:结合软件代码度量指标提出了一种新颖的代码难度评估指标,探究了课程学习对代码语言模型的有效性,以及提出了一种新型课程学习调度策略,可提升小型仅解码器语言模型在代码执行任务中的性能。本文研究结果为后续更多关于课程学习应用于代码语言模型的研究开辟了道路。

英文摘要:

Code language models have emerged as useful tools for various programming tasks, yet they often struggle when it comes to complex ones. In this paper, we explore the potential of curriculum learning in enhancing the performance of these models. While prior research has suggested that curriculum learning does not necessarily help in improving the performance of language models, our results surprisingly show that this may not be the case for code language models. We demonstrate that a well-designed curriculum learning approach significantly improves the accuracy of small decoder-only code language models on the task of code execution, while its effect on code completion is less significant. To explore the potential of curriculum learning, we train multiple GPT models with 1 million parameters each to predict the next token and evaluate them on code completion and execution tasks. Our contributions include proposing a novel code difficulty assessment metric by combining software code measures, investigating the effectiveness of Curriculum Learning for code language models, and introducing a Novel Curriculum Learning schedule that enhances the performance of small decoder-only language models in code execution tasks. The results of this paper open the door for more research on the use of curriculum learning for code language models.

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

↑