BitLLM: Efficient Low-Bit, Conversion-Hiding LLM Decoding on Mobile GPUs
Hangyu Zheng, Zhihao Shu, Kunxiong Zhu, Minghai Qin, Xiaolong Ma, Gagan Agrawal, Wei Niu
Abstract
The rapid scaling of large language models (LLMs) has unlocked remarkable capabilities across various domains. However, deploying LLMs on mobile devices remains challenging because of their high computational and memory requirements. Low-bit quantization (e.g., 4-bit weights, 8-bit activations) can reduce model size while preserving accuracy, but its practical efficacy on mobile GPUs has been limited so far. In this paper, we identify that the performance gap stems primarily from frequent data type conversions between quantized and floating-point values, and dynamic and inefficient memory access patterns caused by the growing Key-Value (KV) cache during autoregressive decoding. We introduce BitLLM, a mobile inference engine that addresses type conversion overhead and suboptimal memory accesses in quantized LLMs. Our approach features an adaptive layout and packing strategy for the KV cache that ensures efficient memory access throughout LLM decoding. This is coupled with an integer-native execution pipeline that defers and overlaps type conversion outside the compute hot path, keeping the critical MatMul stages in the integer domain. Implemented on off-the-shelf mobile GPUs, BitLLM outperforms leading engines, i.e., LLAMA.CPP, MNN-LLM, LiteRT-LM, and MLC-LLM, achieving average speedups of 1.78×, 1.73×, 1.58×, and 1.47×, respectively, across various models and quantization levels. Under long-context generation, BitLLM reduces average energy consumption (per token) by up to 88.9%.
Create a lesson
Related papers
ZipFusion: Fusing Lossless KV Decompression with Attention for Efficient LLM Decoding
Shared title terminology · Yuetao Chen, Peng Wang, Hong Xu
How AI Load Swings Reduce Datacenter Power Conversion Efficiency
Shared title terminology · Heetarth Joshi, Ali Alenezi, Fang Chen Lin et al.
A Hybrid GPU and Processing-Near-Memory Architecture with Shared DRAM for Efficient Prefill-Decode Disaggregation
Shared title terminology · Sanghyeok Han, Inseong Choi, Byungkuk Yoon et al.
FOREST: Coordinating Tree-based HBF, RRAM, and HBM for Efficient Speculative LLM Inference
Shared title terminology · Hao Ding, Zheng Shi, Dongxue Zhao et al.
Acceleration of Sparse and Irregular Workloads through Energy-Efficient Stream Extensions
Shared title terminology · Paul Scheffler
CarrierKV: An Edge LLM Accelerator with Positional Carrier Decomposition for Low-Bit KV Cache
Shared title terminology · Junyi Luo, Xinting Jiang, Ruichen Qi et al.