arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.02063cs.CLcs.AIcs.LG
收藏

低维投影注意力实现大型语言模型的可扩展高效训练

Scalable Efficient Training of Large Language Models with Low-dimensional Projected Attention

Tsinghua University(清华大学);Shanghai AI Laboratory(上海人工智能实验室)

Xingtai Lv, Ning Ding, Kaiyan Zhang, Ermo Hua, Ganqu Cui, Bowen Zhou

AI总结:

本文提出低维投影注意力(LPA),仅将低维模块应用于注意力层,在130M至3B参数规模下验证其可扩展性,相比标准Transformer节省12.4%时间并提升5%性能。

摘要:

同时提高大型语言模型(LLMs)的有效性和效率是一个关键但具有挑战性的研究目标。在本文中,我们发现低秩预训练通常被视为会损害性能的高效方法,但当缩减的参数被精确地针对时,它可以具有可扩展的有效性。具体来说,仅将低维模块应用于注意力层——解决了这一问题,并同时增强了有效性和效率。我们将这种结构称为低维投影注意力(LPA),并提供了解释性分析。通过在130M、370M参数规模以及扩展到3B的广泛实验,我们验证了LPA的有效性和可扩展性。我们的结果表明,与标准Transformer相比,LPA模型在时间上可节省高达12.4%,同时在测试困惑度(ppl)和下游任务上实现了约5%的提升。

英文摘要:

Improving the effectiveness and efficiency of large language models (LLMs) simultaneously is a critical yet challenging research goal. In this paper, we find that low-rank pre-training, normally considered as efficient methods that will compromise performance, can be scalably effective when reduced parameters are precisely targeted. Specifically, applying the low-dimensional module only to the attention layer -- resolves this issue and enhances both effectiveness and efficiency. We refer to this structure as Low-dimensional Projected Attention (LPA) and provide an explanatory analysis. Through extensive experimentation at parameter scales of 130M, 370M, and scaling up to 3B, we have validated the effectiveness and scalability of LPA. Our results show that LPA model can save up to 12.4% in time while achieving an approximate 5% improvement in test perplexity (ppl) and on downstream tasks compared with the vanilla Transformer.

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

↑