arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.24970cs.LGcs.AI
收藏

PRECOCIAL:通过迭代搜索学习加速的代码课程预训练

PRECOCIAL: Pretraining with Code Curriculums via Iterative Search for Accelerated Learning

Cornell University(康奈尔大学);Cisco Research(思科研究)

Edward Gu, Ali Payani, Kevin Ellis

AI总结:

PRECOCIAL是自动优化合成预训练数据生成程序的方法,通过保留单网络预训练提升效率,在多数据集上比现有方法更优,且程序可跨域迁移,提升下游任务性能。

摘要:

由符号程序生成的完全合成预训练数据可用于启动自然任务的下游训练,例如语言建模,但迄今为止生成程序都是手动设计的。我们提出PRECOCIAL,一种自动优化合成预训练数据生成程序的方法。从初始生成器程序开始,大型语言模型(LLM)迭代重写该程序,每次重写都通过以下方式评分:在其数据上预训练随机初始化的Transformer,并在下游任务上微调。由于每次评分都需要训练,PRECOCIAL在整个搜索过程中保留单个网络,对每个被接受的程序继续其预训练,而非为每个候选程序训练新网络,因此效率显著更高。在四个语言和代码数据集上,在固定微调预算下,优化后的程序比手动设计的课程、已发表的程序生成器、随机程序变异以及LLM在搜索第一次迭代中编写的程序达到更低的困惑度,且达到与手动设计课程相同的困惑度时,微调步骤减少9-33%。在相同评估次数和更低成本下,PRECOCIAL最终的困惑度也比为每个候选程序训练新网络的FunSearch和AlphaEvolve更低。我们还观察到,从一个领域优化的程序生成器可迁移到其他领域的数据集。此外,优化后的程序在四个不同的推理和问题解决任务上实现了更好的下游性能。

英文摘要:

Fully synthetic pretraining data generated by symbolic programs can bootstrap downstream training on naturalistic tasks, such as language modeling, but the generating programs have so far been designed by hand. We introduce PRECOCIAL, a method for automatically optimizing programs that generate synthetic pretraining data. Starting from an initial generator program, an LLM iteratively rewrites the program, and each rewrite is scored by pretraining a randomly-initialized transformer on its data and fine-tuning it on the downstream task. Because every score requires training, PRECOCIAL keeps a single network for the entire search, continuing its pretraining for each accepted program instead of training a new network per candidate, making it significantly more efficient. On four language and code datasets, at a fixed fine-tuning budget, optimized programs reach lower perplexity than hand-designed curricula, published procedural generators, random program mutation and the program the LLM writes in the first iteration of the search, and reach the same perplexity as the hand-designed curricula with 9-33% fewer fine-tuning steps. PRECOCIAL also ends with lower perplexity than FunSearch and AlphaEvolve, which train a new network for every candidate, at the same number of evaluations and a lower cost. We also observe that an optimized program generator from one domain transfers to datasets in other domains. Additionally, optimized programs allow for better downstream performance on four different reasoning and problem-solving tasks.

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

↑