Mugi: Value Level Parallelism For Efficient LLMs
Daniel Price, Prabhu Vellaisamy, John Shen, Di Wu
TL;DR
This work expands value level parallelism (VLP) from large-batch GEMM to the nonlinear operations and small-batch GEMMs dominant in transformer-based LLMs by introducing Mugi, a unified VLP architecture. It formulates a value-centric nonlinear approximation and optimizes asymmetric, small-batch GEMM through grouping attention, weight-only quantization, and KV-cache quantization, reusing the same compute array for both nonlinear and GEMM tasks. The results show substantial gains in throughput and energy efficiency (up to 45× and up to 668× for nonlinear softmax-related tasks; up to 2.07× throughput and 3.11× energy efficiency for LLM workloads) and meaningful reductions in operational and embodied carbon (approximately 1.45× and 1.48×). These findings demonstrate a practical, scalable path to more sustainable, high-performance LLM inference by tightly integrating nonlinear approximation with GEMM acceleration in a single architecture.
Abstract
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$.
