arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.22922cs.LGcs.AI
收藏

面向LLM的可扩展参数与内存高效预训练:最新算法进展与基准测试

Scalable Parameter and Memory Efficient Pretraining for LLM: Recent Algorithmic Advances and Benchmarking

Department of Electrical and Computer Engineering, University of Minnesota(明尼苏达大学电气与计算机工程系);Peking University(北京大学);School of Mathematics and Statistics, University of Sydney(悉尼大学数学与统计学学院)

Athanasios Glentis, Jiaxiang Li, Qiulin Shang, Andi Han, Ioannis Tsaknakis, Quan Wei, Mingyi Hong

AI总结:

本文综述了高效预训练的最新方法,对代表性内存高效预训练方法进行了基准测试,并提出权重重构和动量重置两种技术,在1B模型上以减少约25%内存实现更低困惑度。

摘要:

得益于在多个领域处理多样化任务的卓越能力,大型语言模型(LLMs)以前所未有的速度发展,一些最新模型包含数万亿个参数。这种增长伴随着巨大的计算挑战,特别是在训练和微调所需的内存和计算资源方面。为了解决这些问题,人们探索了许多方法,例如 LoRA。尽管这些方法在微调方面很有效,但由于需要学习海量数据集,将它们应用于预训练则更具挑战性。受此问题启发,我们旨在解决以下问题:参数或内存高效的方法能否在实现与全模型训练相当的性能的同时提高预训练效率?如何缩小性能差距?为此,本工作的贡献如下。(1) 我们首先进行了一项全面的调查,总结了高效预训练的最新方法。(2) 我们对几种具有代表性的内存高效预训练方法进行了基准评估,以全面评估它们在不同模型规模下的性能。我们观察到,在适当选择优化器和超参数的情况下,正如预期的那样,全秩训练提供了最佳性能。我们还注意到,在低秩方法中引入高秩更新是提高其性能的关键。(3) 最后,我们提出了两种实用技术,即权重重构和动量重置,以增强高效预训练方法的性能。我们观察到,将这些技术应用于低秩方法(在 1B 模型上)可以实现比流行的内存高效算法(如 GaLore 和 Fira)更低的困惑度,同时使用大约减少 25% 的内存。

英文摘要:

Fueled by their remarkable ability to tackle diverse tasks across multiple domains, large language models (LLMs) have grown at an unprecedented rate, with some recent models containing trillions of parameters. This growth is accompanied by substantial computational challenges, particularly regarding the memory and compute resources required for training and fine-tuning. Numerous approaches have been explored to address these issues, such as LoRA. While these methods are effective for fine-tuning, their application to pre-training is significantly more challenging due to the need to learn vast datasets. Motivated by this issue, we aim to address the following questions: Can parameter- or memory-efficient methods enhance pre-training efficiency while achieving performance comparable to full-model training? How can the performance gap be narrowed? To this end, the contributions of this work are the following. (1) We begin by conducting a comprehensive survey that summarizes state-of-the-art methods for efficient pre-training. (2) We perform a benchmark evaluation of several representative memory efficient pre-training approaches to comprehensively evaluate their performance across model sizes. We observe that with a proper choice of optimizer and hyperparameters, full-rank training delivers the best performance, as expected. We also notice that incorporating high-rank updates in low-rank approaches is the key to improving their performance. (3) Finally, we propose two practical techniques, namely weight refactorization and momentum reset, to enhance the performance of efficient pre-training methods. We observe that applying these techniques to the low-rank method (on a 1B model) can achieve a lower perplexity than popular memory efficient algorithms such as GaLore and Fira, while simultaneously using about 25% less memory.

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

↑