Kameleo: In-Situ Activation-Precision Selection for Bit-Serial LLM Accelerators
Robin Geens, Thomas Debelle, Marian Verhelst, Chao Fang
Abstract
Weight-only quantization keeps the activations of large language models (LLMs) in a higher-precision format, pushing the on-chip inference cost to the activation arithmetic. Bit-serial, variable-length accelerators offer a promising path to reduce this cost by lowering activation precision while preserving model quality. They process only the mantissa bits that each layer needs. The length has to be chosen per layer and operator, and today it is chosen by offline calibration: a search driven by the perplexity of the full model on a representative dataset. The search is repeated for every model and workload, and its result degrades silently on other data. This paper presents Kameleo, an accelerator that selects the activation precision at runtime, on the accelerator, from the data it is processing. Kameleo replaces the global perplexity by a local proxy that compares the output of each GEMM at reduced and at full precision. It exploits the fact that a bit-serial datapath produces this comparison almost for free, because the reduced-precision result is an intermediate state of the full-precision computation. Two passes over the first tokens of a workload set the precision of every GEMM. On four LLMs and seven datasets, Kameleo stays within a 1% perplexity budget at a 2.11-2.34x reduction of prefill cycles on the matrix multiplication unit (MXU), close to the reduction of configurations calibrated offline on the evaluation data itself. Calibrated configurations transferred to other data, in contrast, often violate the budget. The selection hardware adds only 3.7% to the accelerator area. Kameleo thereby makes variable-length mantissas feasible in real deployments, where offline calibration for every model and workload is not.
Create a lesson
Related papers
Hardware Acceleration of Vision-Language-Action Models with Weight Precision Rising over the Flow Steps
Shared title terminology · Robin Geens, Simon Haepers, Jonas Crols et al.
Accelerating 3D Gaussian Splatting Training through Selective Freezing and Computation Caching
Shared title terminology · He Zhu, Zhiheng Dai, Zihan Liu et al.
Exploring the Potential of Ultra-Low-Bit Inference on LLM Accelerators
Shared title terminology · Hao Wang, Yang Shi, Jiageng Shi 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.
Scalable fault vulnerability analysis for ReRAM-based process-in-memory CNN accelerators
Shared title terminology · Aniseh Dorostkar, Hamed Farbeh, Hamid R. Zarandi et al.