Abstract
Large Language Model (LLM) inference is constrained by memory bandwidth and compute intensity. While existing accelerators optimize at the value level, MCBP introduces a bit-slice-grained approach to exploit hidden redundancy and sparsity. By decomposing integers into individual bits, MCBP uncovers significant opportunities for computation reduction and data compression. Our evaluation shows that MCBP achieves a 9.43× speedup and 31.1× better energy efficiency than an NVIDIA A100 GPU.
Introduction: The Bottlenecks of LLM Inference
LLM inference faces three primary hardware bottlenecks: massive General Matrix Multiplication (GEMM) operations, high weight-loading costs from off-chip memory, and the rapidly expanding Key-Value (KV) cache. Traditional accelerators attempt to mitigate these through value-level optimizations, such as skipping zero-valued computations. However, these methods are often too coarse-grained to capture the full spectrum of redundancy present in LLM workloads.
As shown in Figure 3(a), the latency breakdown for Llama-7B shifts significantly as prompt length increases, with KV cache loading becoming a dominant factor at longer contexts. Existing state-of-the-art (SOTA) accelerators (Figure 3(b)) typically address only a subset of these bottlenecks independently, whereas MCBP targets all three through bit-level comprehensive optimization.
Methodology: Bit-Slice-Grained Optimization
MCBP (Memory-Compute Efficient Accelerator) shifts the optimization paradigm from the value level to the bit-slice (BS) level. This approach is based on the observation that bit-level sparsity is significantly higher than value-level sparsity, and bit-patterns repeat frequently within large matrices.
The architecture employs three core techniques illustrated in Figure 6:
- BRCR (BS-Repetitiveness-enabled Computation Reduction): MCBP identifies identical bit-slice vectors within groups. Since a 4-bit slice has only 16 possible patterns, repetitions are frequent. By performing the computation once and reusing the result via a Content Addressable Memory (CAM), MCBP can eliminate over 70% of redundant GEMM operations.
- BSTC (BS-Sparsity-enabled Two-State Coding): Exploiting the Gaussian distribution of LLM weights, BSTC compresses data by focusing on the high-order bits, which are frequently zero. This reduces memory traffic significantly.
- BGPP (Bit-Grained Progressive Prediction): To address the KV cache bottleneck, MCBP predicts token importance progressively from the most significant bits (MSB) to the least significant bits (LSB). Irrelevant keys are identified early and dropped, saving bandwidth and compute.
Evaluation and Results
The researchers evaluated MCBP across 26 benchmarks using models like Llama-7B/13B, Qwen-7B, and OPT-1B3.
Performance and Efficiency
MCBP demonstrates substantial gains over both general-purpose hardware and specialized accelerators:
- Vs. NVIDIA A100: 9.43× speedup and 31.1× higher energy efficiency.
- Vs. SOTA Accelerators: Energy savings of 35× over Spatten, 5.2× over FACT, and 3.2× over SOFA.
Memory and Redundancy
The bit-slice approach reveals that bit-level sparsity is, on average, 10.1× higher than traditional value-level sparsity. This insight allowed MCBP to achieve an average memory traffic reduction of 75.8%. Furthermore, the progressive KV loading (BGPP) can drop up to 50% of KV cache traffic with negligible impact on model accuracy (less than 1% drop).
Conclusion
MCBP demonstrates that moving beyond value-level optimizations to bit-slice-level granularity unlocks significant performance and efficiency gains for LLM inference. By comprehensively addressing GEMM, weight loading, and KV cache bottlenecks through bit-level sparsity and repetitiveness, MCBP sets a new benchmark for specialized LLM hardware.
Summary updated