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

基于影响分数的代码大语言模型预训练数据选择实证研究

An Empirical Study on Influence-Based Pretraining Data Selection for Code Large Language Models

Peking University(北京大学)

Chengli Xing, Zhengran Zeng, Gexiang Fang, Rui Xie, Wei Ye, Shikun Zhang

AI总结:

本文探讨了影响分数过滤技术在编程数据集中的有效性,通过大规模实验评估了该方法对模型性能的提升,并分析了有益训练数据在不同阶段和任务中的差异。

摘要:

近年来,代码大语言模型(Code-LLMs)在解决编程相关任务方面表现出色。然而,现有预训练数据过滤研究多集中于通用数据集,对编程数据集关注不足。本文旨在填补这一空白,探讨在编程相关数据集上广泛应用的一般数据过滤技术——数据影响分数过滤的有效性。我们首先提出了一种计算生成编程任务中数据影响分数的方法,将多种下游编码任务转换为验证集,并利用模型在这些集上的损失作为性能指标。接着,我们从头开始在包含100十亿代码标记的数据集上预训练了一个具有十亿参数的Code-LLMs。基于此,我们进行了广泛的实证研究,评估数据影响分数过滤方法的有效性。具体而言,我们考察了该技术如何提升模型性能,调查了有益训练数据在不同训练阶段和编程任务中的特征差异,并评估了基于预测的数据影响分数过滤方法的可行性。我们的发现表明,基于验证集损失的数据影响分数过滤可以提升模型的编程性能。此外,我们观察到有益训练数据的标准在不同下游编程任务中存在显著差异。

英文摘要:

Recent advancements in code large language models (Code-LLMs) have demonstrated remarkable capabilities in resolving programming related tasks. Meanwhile, researchers have recognized that the quality of pre-training data is crucial for improving LLM performance. However, most of the existing research on pre-training data filtering has focused on general datasets, and little attention for programming datasets. In this paper, we aim to address this gap by exploring the effectiveness of a widely used general data filtering technique, i.e., data-influence-score filtering, within the context of programming-related datasets. To this end, we first introduce a method for calculating data-influence-score for generative programming tasks which involves transforming a variety of downstream coding tasks into validation sets and using the models loss on these sets as a performance metric. Next, we pre-train a Code-LLMs with 1 billion parameters from scratch on a dataset of 100 billion code tokens. Based on it, we conduct an extensive empirical study to evaluate the effectiveness of data-influence-score filtering methods. Specifically, we examine how well this technique improves model performance, investigate how the characteristics of beneficial training data vary across different training stages and programming tasks, and assess the feasibility of prediction-based data-influence-score filtering method. Our findings show that data-influence-score filtering based on validation-set-loss can enhance models programming performance. Moreover, we observe that the criteria of beneficial training data differ significantly across various downstream programming tasks.

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

↑