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

VeLoRA:利用秩-1子词元投影实现内存高效训练

VeLoRA: Memory Efficient Training using Rank-1 Sub-Token Projections

Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Roy Miles, Pradyumna Reddy, Ismail Elezi, Jiankang Deng

AI总结:

VeLoRA提出将词元投影到秩-1子空间并压缩中间激活,以极低内存成本实现LLM微调与预训练,在VTAB-1k上超越QLoRA并在C4上取得竞争力性能。

摘要:

大型语言模型(LLMs)近年来已成为处理众多语言任务的有力工具。尽管取得了成功,但这些模型的训练和微调在计算和内存方面仍然过于昂贵。本文识别并刻画了利用梯度下降实现有效模型收敛所需的关键组成部分。在此过程中,我们发现用于实现反向传播的中间激活可以被过度压缩,而不会导致任何性能下降。这一结果引导我们提出了一种廉价且内存高效的算法,可用于LLMs的微调和预训练。所提算法在前向传播过程中,仅需将词元划分为更小的子词元,再将其投影到一个固定的一维子空间上。随后在反向传播过程中对这些特征进行粗略重建,以实现更新规则。我们在VTAB-1k微调基准上验证了该算法的有效性,并证明其与许多最先进的PEFT方法具有互补性。此外,在微调LLaMA方面,我们优于QLoRA,并在大规模C4数据集上展现出与其他内存高效预训练方法相比具有竞争力的性能。

英文摘要:

Large language models (LLMs) have recently emerged as powerful tools for tackling many language-processing tasks. Despite their success, training and fine-tuning these models is still far too computationally and memory intensive. In this paper, we identify and characterise the important components needed for effective model convergence using gradient descent. In doing so we find that the intermediate activations used to implement backpropagation can be excessively compressed without incurring any degradation in performance. This result leads us to a cheap and memory-efficient algorithm for both fine-tuning and pre-training LLMs. The proposed algorithm simply divides the tokens up into smaller sub-tokens before projecting them onto a fixed 1-dimensional subspace during the forward pass. These features are then coarsely reconstructed during the backward pass to implement the update rules. We confirm the effectiveness of our algorithm as being complimentary to many state-of-the-art PEFT methods on the VTAB-1k fine-tuning benchmark. Furthermore, we outperform QLoRA for fine-tuning LLaMA and show competitive performance against other memory-efficient pre-training methods on the large-scale C4 dataset.

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

↑