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

DeepSpeed 数据效率:通过高效数据采样与路由提升深度学习模型质量与训练效率

DeepSpeed Data Efficiency: Improving Deep Learning Model Quality and Training Efficiency via Efficient Data Sampling and Routing

Microsoft(微软)

Conglong Li, Zhewei Yao, Xiaoxia Wu, Minjia Zhang, Connor Holmes, Cheng Li, Yuxiong He

AI总结:

DeepSpeed Data Efficiency 框架通过课程学习式数据采样和随机逐层 token 丢弃路由,在 GPT-3 1.3B 预训练中以 12.5 倍更少数据/成本保持 95% 模型质量,显著提升训练效率。

摘要:

深度学习模型的最新进展以高昂的训练成本为代价。模型规模的不断增大是根本原因之一,但另一个较少被强调的事实是,数据规模实际上正以与模型规模相似的速度增长,而训练成本与两者均成正比。与快速演进的模型架构相比,如何高效利用训练数据(尤其是对于昂贵的基础模型预训练)既缺乏探索,又因缺少专注于数据效率能力的便捷框架而难以实现。为此,我们提出了 DeepSpeed Data Efficiency,这是一个能更好地利用数据、提高训练效率并改善模型质量的框架。具体而言,我们提出并组合了两种数据效率技术:通过通用课程学习库实现的高效数据采样,以及通过一种新颖的随机逐层 token 丢弃技术实现的高效数据路由。对于 GPT-3 1.3B 语言模型预训练,我们的工作在保持基线模型质量 95% 的同时,实现了 12.5 倍的数据/时间/成本降低(若在 Azure 上租用,成本为 3.7K 美元,而基线使用完整数据和成本为 46.3K 美元)。对于 GPT-3 1.3B 和 BERT-large 预训练,我们的工作还可以在数据/时间/成本最多减少 2 倍的情况下达到相同的模型质量,或在相同数据/时间/成本下实现更好的模型质量。DeepSpeed Data Efficiency 易于使用和调优,使我们能够轻松将其应用于其他任务并验证其收益,包括 GPT-3 MoE 模型预训练和小规模 GPT-2/ViT 微调。

英文摘要:

Recent advances on deep learning models come at the price of formidable training cost. The increasing model size is one of the root causes, but another less-emphasized fact is that data scale is actually increasing at a similar speed as model scale, and the training cost is proportional to both of them. Compared to the rapidly evolving model architecture, how to efficiently use the training data (especially for the expensive foundation model pretraining) is both less explored and difficult to realize due to the lack of a convenient framework that focuses on data efficiency capabilities. To this end, we present DeepSpeed Data Efficiency, a framework that makes better use of data, increases training efficiency, and improves model quality. Specifically, we propose and combine two data efficiency techniques: efficient data sampling via a general curriculum learning library, and efficient data routing via a novel random layerwise token dropping technique. For GPT-3 1.3B language model pretraining, our work achieves 12.5x less data/time/cost (\$3.7K if rent on Azure), while still maintaining 95% of model quality compared to baseline with full data and cost (\$46.3K). For GPT-3 1.3B and BERT-large pretraining, our work can also achieve the same model quality with up to 2x less data/time/cost, or achieve better model quality under same data/time/cost. DeepSpeed Data Efficiency is easy to use and tune, enabling us to easily apply it and verify its benefit on additional tasks including GPT-3 MoE model pretraining and small-scale GPT-2/ViT finetuning.

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

↑