BitPrefill:面向计算受限LLM Prefill的W1.58A4 Tensor-Core加速方案
BitPrefill: W1.58A4 Tensor-Core Acceleration for Compute-Bound LLM Prefill
BitPrefill提出W1.58A4算子,将权重三值化、激活量化为4-bit,并在原生INT4 GEMM Tensor Core上执行线性投影,把计算受限的LLM Prefill从全精度矩阵乘转为低比特矩阵乘。
arXiv:2611.26657v1 Announce Type: new Abstract: Low-bit quantization reduces large language model (LLM) inference cost, yet implementations optimized for memory-bound decode can leave compute-bound prefill on BF16 tensor cores. This gap matters for input-heavy workloads, including long-context and multimodal applications, where prefill can account for a substantial fraction of inference latency. We propose a W1.58A4 operator that quantizes weights to ternary values and activations to 4-bit, while executing the linear projection on native INT4 general matrix multiply (GEMM) tensor cores, turning prefill from a full-precision matrix multiply into a low-bit one. We deploy the operator for BitNet-b1.58 on a single RTX 4090 and a Jetson Orin Nano edge device, and report GEMM-kernel latency, end-to-end LLMs prefill latency, and task accuracy against bf16 and BitNet/BitBLAS baselines. Our proposed kernel achieves ~1.42x acceleration compared to the original BF16 prefill phase, with negligible reduction on model accuracy.
来源:arXiv (Robotics + Hardware + Signal) · arxiv.org