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

CoLA:通过低秩激活实现大语言模型的计算高效预训练

CoLA: Compute-Efficient Pre-Training of LLMs via Low-Rank Activation

University of California at Santa Barbara(加州大学圣巴巴拉分校);University at Albany, SUNY(阿尔巴尼大学,SUNY);Argonne National Laboratory(阿贡国家实验室)

Ziyue Liu, Ruijie Zhang, Zhengyang Wang, Mingsong Yan, Zi Yang, Paul Hovland, Bogdan Nicolae, Franck Cappello, Sui Tang, Zheng Zhang

AI总结:

针对大语言模型预训练计算资源消耗高的问题,提出利用低秩激活特性的CoLA及内存优化版CoLA-M,用自编码器替换全尺寸层,在保持全秩性能的同时大幅提升训练与推理效率、降低成本。

摘要:

大语言模型(LLM)中全尺寸多层感知机(MLP)与注意力机制的投影层导致模型规模庞大,预训练阶段会消耗大量计算资源。我们通过实验观察到,预训练LLM的激活呈现低秩特性。基于这一发现,我们提出CoLA及其内存高效实现版本CoLA-M,用计算高效的自编码器替换这些全尺寸层,这类自编码器能在整个训练过程中自然强制激活保持低秩。这一根本性架构改动消除了激活冗余,显著提升了模型容量与训练效率。在参数规模从6000万到70亿的LLaMA模型上开展的实验表明,CoLA将计算成本降低了2倍,训练吞吐量提升了1.86倍,同时保持了全秩水平的性能。CoLA-M进一步压缩了内存成本且不损失吞吐量,提供了一种在参数、计算和内存效率上综合更优的预训练方案。所生成的LLM体积也缩小了2倍,能在资源受限平台上以更低内存成本实现更快推理。

英文摘要:

The full-size MLPs and the projection layers in attention introduce tremendous model sizes of large language models (LLMs), consuming extensive computational resources in pre-training. We empirically observe that the activations of pre-trained LLMs exhibit low-rank property. Motivated by such observations, we propose CoLA and its memory-efficient implementation, CoLA-M, to replace these full-size layers with compute-efficient auto-encoders that naturally enforce low-rank activations throughout training. This fundamental architectural change eliminates the activation redundancy and significantly boosts model capacity and training efficiency. Experiments on LLaMA models with 60 million to 7 billion parameters show that CoLA reduces the computing cost by $\bf 2\pmb{\times}$ and improves training throughput by $\bf 1.86\pmb{\times}$ while maintaining full-rank level performance. CoLA-M further squeezes memory cost without sacrificing throughput, offering a pre-training approach with collectively superior parameter, computing, and memory efficiency. The LLMs produced are also $\bf 2\pmb{\times}$ smaller, enabling faster inference with lower memory cost on resource-constrained platforms.

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

↑