UltraData-Code:从原始代码仓库到算法密集型面向任务的代码数据
UltraData-Code: From Raw Repositories to Algorithmically Dense and Task-Oriented Code Data
AI总结:
该研究提出UltraData-Code的四层代码数据体系,通过分层处理生成不同规模的代码数据,经实验验证可提升LLM代码生成性能,相关数据集与分类器已公开。
摘要:
代码生成已成为大型语言模型(LLM)的核心能力,而代码数据是开发该能力的预训练过程的核心。由于获取足够质量的公开代码变得愈发困难,进一步的进展不能仅依赖语料库扩展。分层数据管理则是对更小的数据池应用日益精准的处理,生成适配不同训练目标的数据状态。基于这一视角,我们提出UltraData-Code,它包含四个关联的数据状态:L0级为代码仓库归档,L1级为标准化自然代码,L2级为算法筛选,L3级为面向任务的合成。L0级保留代码仓库数据及来源以便重新处理;L1级应用可扩展的过滤、归一化和近重复处理,用于广泛的预训练;L2级使用语言自适应的相关性信号和质量约束,筛选出与算法高度相关的高质量文件,在11种编程语言中生成约4000亿token的UltraData-Code-L2,用于聚焦式持续预训练;L3级将筛选出的实现转化为结构化编程练习,在相同11种语言中生成约1500亿token的UltraData-Code-L3,用于面向任务的中期训练或监督微调(SFT)。在对10亿参数模型进行受控的100亿token持续预训练时,L2级在EvalPlus上的pass@1指标较L1级提升7.80个百分点(pp),在MultiPL-E上提升5.13个百分点;将一半的L2级训练token替换为L3级后,在两个基准上分别进一步提升8.42个百分点和8.07个百分点,当训练预算扩展至1000亿token时,两种提升均会增大。我们已发布数据集和分类器,以支持LLM的进一步研究。
英文摘要:
Code generation has become a core capability of large language models (LLMs), and code data is central to the pre-training process that develops it. As obtaining public code of sufficient quality becomes more difficult, further progress cannot rely on corpus expansion alone. Tiered data management instead applies increasingly targeted processing to smaller data pools, producing data states suited to different training objectives. Following this perspective, we present UltraData-Code as four connected data states spanning repository archival at L0, standardized natural code at L1, algorithmic selection at L2, and task-oriented synthesis at L3. L0 preserves repository data and provenance for reprocessing, while L1 applies scalable filtering, normalization, and near-deduplication for broad pre-training. L2 selects high-quality algorithmically relevant files using language-adaptive relevance signals and quality constraints, yielding approximately 400B tokens of UltraData-Code-L2 across 11 programming languages for focused continual pre-training. L3 converts selected implementations into structured programming exercises, yielding approximately 150B tokens of UltraData-Code-L3 across the same 11 languages for task-oriented mid-training or supervised fine-tuning (SFT). Under controlled 10B-token continual pre-training of a 1B model, L2 improves pass@1 over L1 by 7.80 percentage points (pp) on EvalPlus and 5.13pp on MultiPL-E. Replacing half of the L2 training tokens with L3 yields a further gain of 8.42pp and 8.07pp on the two benchmarks, respectively. Both gains increase when the training budget scales to 100B tokens. We have released our datasets and classifiers to support further research on LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。