arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.15481cs.LG
收藏

在欧几里得和双曲神经网络上的稀疏谱训练与推理

Sparse Spectral Training and Inference on Euclidean and Hyperbolic Neural Networks

Center for Complex Network Intelligence (CCNI), Tsinghua Laboratory of Brain and Intelligence (THBI), Department of Psychological and Cognitive Sciences(复杂网络智能中心(CCNI)、清华脑智能实验室(THBI)、心理与认知科学系);Department of Computer Science(计算机科学系);Department of Biomedical Engineering, Tsinghua University, China(生物医学工程系,清华大学,中国)

Jialin Zhao, Yingtao Zhang, Xinghang Li, Huaping Liu, Carlo Vittorio Cannistraci

AI总结:

本文提出稀疏谱训练(SST),通过多项式采样选择性更新奇异向量并周期性重初始化低秩参数,在欧几里得和双曲神经网络上优化预训练显存,性能优于现有低秩方法且逼近全秩训练。

摘要:

神经网络参数数量不断增加对GPU显存提出了更高要求,亟需更节省显存的训练方法。先前的显存缩减训练技术,如低秩适应(LoRA)和ReLoRA,面临诸多挑战:LoRA受限于其低秩结构,在预训练等密集型任务中尤为受限;而ReLoRA则受困于鞍点问题。在本文中,我们提出了稀疏谱训练(SST),以优化预训练时的显存使用。SST更新所有奇异值,并通过以奇异值大小为权重的多项式采样方法,选择性地更新奇异向量。此外,SST采用奇异值分解来初始化并周期性地重新初始化低秩参数,与其他低秩方法相比,减少了相对于全秩训练的失真。通过在欧几里得和双曲神经网络上的各种任务进行全面测试,SST展现出其优于现有显存缩减训练方法的能力,并在多种情况下与全秩训练相当。在LLaMA-1.3B上,与全秩训练相比仅使用18.7%的可训练参数(使用相当于嵌入维度6%的秩),SST将其他低秩方法与全秩训练之间的困惑度差距缩小了97.4%。这一结果凸显了SST作为一种有效的参数高效技术在模型预训练中的价值。

英文摘要:

The growing demands on GPU memory posed by the increasing number of neural network parameters call for training approaches that are more memory-efficient. Previous memory reduction training techniques, such as Low-Rank Adaptation (LoRA) and ReLoRA, face challenges, with LoRA being constrained by its low-rank structure, particularly during intensive tasks like pre-training, and ReLoRA suffering from saddle point issues. In this paper, we propose Sparse Spectral Training (SST) to optimize memory usage for pre-training. SST updates all singular values and selectively updates singular vectors through a multinomial sampling method weighted by the magnitude of the singular values. Furthermore, SST employs singular value decomposition to initialize and periodically reinitialize low-rank parameters, reducing distortion relative to full-rank training compared to other low-rank methods. Through comprehensive testing on both Euclidean and hyperbolic neural networks across various tasks, SST demonstrates its ability to outperform existing memory reduction training methods and is comparable to full-rank training in various cases. On LLaMA-1.3B, with only 18.7\% of the parameters trainable compared to full-rank training (using a rank equivalent to 6\% of the embedding dimension), SST reduces the perplexity gap between other low-rank methods and full-rank training by 97.4\%. This result highlights SST as an effective parameter-efficient technique for model pre-training.

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

↑