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

Mugi:用于高效大语言模型的价值级并行

Mugi: Value Level Parallelism For Efficient LLMs

University of Central Florida(佛罗里达中央大学);Carnegie Mellon University(卡内基梅隆大学)

Daniel Price, Prabhu Vellaisamy, John Shen, Di Wu

AI总结:

Mugi通过价值级并行提升大语言模型的效率与可持续性,实现更高的吞吐量和能效,同时降低碳排放。

摘要:

价值级并行(VLP)已被提出以提高大批次、低精度对称激活与权重之间通用矩阵乘法(GEMM)的效率。在基于Transformer的大语言模型(LLMs)中,存在超越激活-权重GEMM的更复杂的操作。在本文中,我们探讨了VLP如何帮助LLMs。首先,我们将VLP推广到非线性近似,从而在端到端LLM的准确性、性能和效率上优于现有的非线性近似方法。我们的VLP近似采用以值为中心的方法,其中重要值被赋予更高的精度。其次,我们优化了VLP用于小批次GEMM,以高效地处理不对称输入,这利用了及时的LLM优化,包括仅权重量化、键值(KV)缓存量化和组查询注意力。最后,我们设计了一种新的VLP架构,Mugi,以封装上述创新并支持完整的LLM工作负载,同时提供更好的性能、效率和可持续性。我们的实验结果表明,Mugi可以在非线性softmax操作上提供显著的改进,吞吐量和能效提高高达45倍和668倍,在LLMs上提高2.07倍和3.11倍,并减少LLM操作的运营碳排放1.45倍,以及减少隐含碳排放1.48倍。

英文摘要:

Value level parallelism (VLP) has been proposed to improve the efficiency of large-batch, low-precision general matrix multiply (GEMM) between symmetric activations and weights. In transformer based large language models (LLMs), there exist more sophisticated operations beyond activation-weight GEMM. In this paper, we explore how VLP benefits LLMs. First, we generalize VLP for nonlinear approximations, outperforming existing nonlinear approximations in end-to-end LLM accuracy, performance, and efficiency. Our VLP approximation follows a value-centric approach, where important values are assigned with greater accuracy. Second, we optimize VLP for small-batch GEMMs with asymmetric inputs efficiently, which leverages timely LLM optimizations, including weight-only quantization, key-value (KV) cache quantization, and group query attention. Finally, we design a new VLP architecture, Mugi, to encapsulate the innovations above and support full LLM workloads, while providing better performance, efficiency and sustainability. Our experimental results show that Mugi can offer significant improvements on throughput and energy efficiency, up to $45\times$ and $668\times$ for nonlinear softmax operations, and $2.07\times$ and $3.11\times$ for LLMs, and also decrease operational carbon for LLM operation by $1.45\times$ and embodied carbon by $1.48\times$.

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

↑