arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.09835cs.CL
收藏

探究Transformer语言模型中的低秩训练:效率与扩展性分析

Investigating Low-Rank Training in Transformer Language Models: Efficiency and Scaling Analysis

EPFL(洛桑联邦理工学院);Google DeepMind(谷歌DeepMind)

Xiuying Wei, Skander Moalla, Razvan Pascanu, Caglar Gulcehre

AI总结:

本文针对Transformer语言模型的前馈网络(FFN)从头进行低秩参数化训练,发现该方法在大幅减少参数和加速计算的同时能保持有效性,并据此构建了在困惑度和吞吐量上超越现有中大型Transformer的结构化网络。

摘要:

最先进的LLM通常依赖于高计算成本的规模扩展,这激发了一项研究议程,即在不显著影响性能的情况下减少参数量和成本。我们的研究聚焦于基于Transformer的LLM,具体是将低秩参数化应用于计算密集的前馈网络(FFNs),这部分相比注意力块较少被研究。与以往工作不同,我们探索了大规模(高达1.3B参数)的低秩参数化,在Transformer语言模型而非卷积架构中应用,并且是从头开始训练。在大型RefinedWeb数据集上的实验表明,低秩参数化在训练期间既高效(例如,用32%的参数实现2.6倍的FFN加速)又有效。有趣的是,这些结构化FFN比原始模型展现出更陡峭的扩展曲线。受此发现启发,我们开发了宽且结构化的网络,在困惑度和吞吐量性能上超越了当前的中型和大型Transformer。

英文摘要:

State-of-the-art LLMs often rely on scale with high computational costs, which has sparked a research agenda to reduce parameter counts and costs without significantly impacting performance. Our study focuses on Transformer-based LLMs, specifically applying low-rank parametrization to the computationally intensive feedforward networks (FFNs), which are less studied than attention blocks. In contrast to previous works, (i) we explore low-rank parametrization at scale, up to 1.3B parameters; (ii) within Transformer language models rather than convolutional architectures; and (iii) starting from training from scratch. Experiments on the large RefinedWeb dataset show that low-rank parametrization is both efficient (e.g., 2.6$\times$ FFN speed-up with 32\% parameters) and effective during training. Interestingly, these structured FFNs exhibit steeper scaling curves than the original models. Motivated by this finding, we develop the wide and structured networks surpassing the current medium-sized and large-sized Transformer in perplexity and throughput performance. Our code is available at https://github.com/CLAIRE-Labo/StructuredFFN/tree/main.

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

↑