BitPrefill: W1.58A4 Tensor-Core Acceleration for Compute-Bound LLM Prefill
Fang Chen, Xuming Chen, Sanmukh Kuppannagari, Gourav Datta
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.
Create a lesson
Related papers
CHARMING: Parallel Edge AI Acceleration Across Tensor Processing and In-Memory Computation
Shared title terminology · Md Omar Faruque, Jingang Jin, João Paulo C. de Lima et al.
Splice-Core: Low-Order-Bit-Splicing GEMM for Highly Energy-Efficient AI Inference Accelerators
Shared title terminology · Prabhu Vellaisamy, Hsien-Fu Hung, Andrew Kim et al.
ReCIM-HD: A 40 nm On-Device Learning Accelerator with Hyperdimensional Computing via Importance-Based Hybrid Digital-ReRAM CIM
Shared title terminology · Keming Fan, Chang Eun Song, Soumil Jain et al.
Accelerating 3D Gaussian Splatting Training through Selective Freezing and Computation Caching
Shared title terminology · He Zhu, Zhiheng Dai, Zihan Liu et al.
Chimera: A Configurable LLM Decode Accelerator Architecture with Compute-Memory-Floorplan Co-Design for HBM-Equipped Multi-Die FPGAs
Shared title terminology · Zhiheng Chen, Yifan Zhang, Yu-An Chou et al.
Enabling Retraining-Free Accurate Inference in Analog Compute in Memory Accelerators
Shared title terminology · George Karfakis, Puneet Gupta