可扩展的无 MatMul 语言建模
Scalable MatMul-free Language Modeling
AI总结:
本文提出无 MatMul 的 LLM 架构,在最高 2.7B 参数规模保持接近 Transformer 的性能,并显著降低训练与推理的内存、能耗。
摘要:
大型语言模型(LLM)已从根本上改变了我们处理机器学习扩展的方式。然而,这些模型带来了巨大的计算和内存挑战,主要原因是其注意力层和前馈(FFN)层依赖矩阵乘法(MatMul)。我们证明,可以从 LLM 中消除 MatMul 操作,同时保持强劲性能,即使在十亿参数规模下也是如此。我们的无 MatMul 模型在最高达 2.7B 参数的模型上进行了测试,可与最先进的预训练 Transformer 相媲美,并且随着模型规模增大,性能差距会缩小。我们的方法显著节省内存:一种 GPU 高效实现使训练期间的内存消耗最高降低 61%,推理期间降低超过 10 倍。当适配到多芯片神经形态系统时,该模型利用异步处理实现比边缘 GPU 高 4 倍的吞吐量,而能耗降低 10 倍。
英文摘要:
Large Language Models (LLMs) have fundamentally altered how we approach scaling in machine learning. However, these models pose substantial computational and memory challenges, primarily due to the reliance on matrix multiplication (MatMul) within their attention and feed-forward (FFN) layers. We demonstrate that MatMul operations can be eliminated from LLMs while maintaining strong performance, even at billion-parameter scales. Our MatMul-free models, tested on models up to 2.7B parameters, are comparable to state-of-the-art pre-trained Transformers, and the performance gap narrows as model size increases. Our approach yields significant memory savings: a GPU-efficient implementation reduces memory consumption by up to 61% during training and over 10x during inference. When adapted for a multi-chip neuromorphic system, the model leverages asynchronous processing to achieve 4x higher throughput with 10x less energy than edge GPUs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。