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

反向大型语言模型以实现高效的训练和微调

Reversing Large Language Models for Efficient Training and Fine-Tuning

Department of Computer Science, University of British Columbia(计算机科学系,不列颠哥伦比亚大学);Department of Computer Science, Ben Gurion University(计算机科学系,本· Gurion大学);EarthDynamics AI;Department of Earth, Ocean and Atmospheric Sciences, University of British Columbia(地球、海洋和大气科学系,不列颠哥伦比亚大学)

Eshed Gal, Moshe Eliasof, Javier Turek, Uri Ascher, Eran Treister, Eldad Haber

AI总结:

本研究提出可逆架构以高效训练和微调LLM,通过时间可逆动力学减少内存消耗,提升吞吐量,并通过微调将现有模型转换为可逆架构。

摘要:

大型语言模型(LLMs)以其昂贵且耗时的训练而闻名。因此,通常通过微调预训练的LLM的权重来解决特定任务,将预训练的LLM视为基础模型。在本工作中,我们引入了内存高效的可逆架构,受对称和辛微分方程的启发,并研究了其理论性质。与标准基线架构不同,所提出的模型利用时间可逆的动力学在反向传播中检索隐藏状态,从而避免存储激活值。这一特性使内存消耗大幅减少,允许在相同可用内存下处理更大的批量数据,从而提高吞吐量。此外,我们提出了一种高效的方法,将现有的非可逆LLM转换为可逆架构,通过微调,使我们的方法能够利用现有预训练模型。我们的结果表明,在多个数据集和基准上,性能与现有方法相当或有所提高,构建了一条可扩展且高效的路径,以减少从头开始训练和微调LLM相关的内存和计算成本。

英文摘要:

Large Language Models (LLMs) are known for their expensive and time-consuming training. Thus, oftentimes, LLMs are fine-tuned to address a specific task, given the pretrained weights of a pre-trained LLM considered a foundation model. In this work, we introduce memory-efficient, reversible architectures for LLMs, inspired by symmetric and symplectic differential equations, and investigate their theoretical properties. Different from standard, baseline architectures that store all intermediate activations, the proposed models use time-reversible dynamics to retrieve hidden states during backpropagation, relieving the need to store activations. This property allows for a drastic reduction in memory consumption, allowing for the processing of larger batch sizes for the same available memory, thereby offering improved throughput. In addition, we propose an efficient method for converting existing, non-reversible LLMs into reversible architectures through fine-tuning, rendering our approach practical for exploiting existing pre-trained models. Our results show comparable or improved performance on several datasets and benchmarks, on several LLMs, building a scalable and efficient path towards reducing the memory and computational costs associated with both training from scratch and fine-tuning of LLMs.

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

↑