如何用最少算力训练出最优蛋白语言模型
Training Compute-Optimal Protein Language Models
- 通过大规模数据探索模型规模与训练量的最优平衡点
- 发现重复使用Uniref数据会导致过拟合,引入宏基因组数据提升多样性
- 提出可迁移的缩放规律,适合在有限算力下优化蛋白模型
我们研究了蛋白语言模型的最优训练方法,该领域在生物研究中备受关注,但最佳实践指导有限。多数模型依赖大量算力直至性能饱和,主要关注模型规模扩大,而非在性能与算力预算间实现高效平衡。本研究基于包含9.39亿条蛋白序列的大规模数据集,训练了超过300个参数量从350万到107亿不等、使用500亿至2000亿唯一标记的模型,以探究模型规模、训练标记数与目标之间的关系。首先,发现因果语言模型(CLM)存在收益递减现象,而掩码语言模型(MLM)在重复使用常用数据库Uniref时出现过拟合。为此,我们引入宏基因组蛋白序列以增强数据多样性,避免平台或过拟合。其次,获得了适用于蛋白质序列数据特性的Transformer模型上CLM与MLM的缩放规律。第三,观察到从CLM到MLM的迁移缩放现象,进一步证明了基于估算有效迁移标记数的迁移有效性。最后,为验证缩放规律,我们在下游任务中对比了ESM-2和PROGEN2的大规模版本,涵盖蛋白生成以及结构与功能相关任务,所有评估均在少于或等同预训练算力预算下完成。
原文摘要 · Abstract (English)
We explore optimally training protein language models, an area of significant interest in biological research where guidance on best practices is limited. Most models are trained with extensive compute resources until performance gains plateau, focusing primarily on increasing model sizes rather than optimizing the efficient compute frontier that balances performance and compute budgets. Our investigation is grounded in a massive dataset consisting of 939 million protein sequences. We trained over 300 models ranging from 3.5 million to 10.7 billion parameters on 5 to 200 billion unique tokens, to investigate the relations between model sizes, training token numbers, and objectives. First, we observed the effect of diminishing returns for the Causal Language Model (CLM) and that of overfitting for the Masked Language Model~(MLM) when repeating the commonly used Uniref database. To address this, we included metagenomic protein sequences in the training set to increase the diversity and avoid the plateau or overfitting effects. Second, we obtained the scaling laws of CLM and MLM on Transformer, tailored to the specific characteristics of protein sequence data. Third, we observe a transfer scaling phenomenon from CLM to MLM, further demonstrating the effectiveness of transfer through scaling behaviors based on estimated Effectively Transferred Tokens. Finally, to validate our scaling laws, we compare the large-scale versions of ESM-2 and PROGEN2 on downstream tasks, encompassing evaluations of protein generation as well as structure- and function-related tasks, all within less or equivalent pre-training compute budgets.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。