跳到正文
arXiv (Robotics + Hardware + Signal)· Robin Geens, Thomas Debelle, Marian Verhelst, Chao Fang·· 5 天前AI 评分30

Kameleo:面向位串行LLM加速器的运行时激活精度选择方案

Kameleo: In-Situ Activation-Precision Selection for Bit-Serial LLM Accelerators

AI 导读

Kameleo是一款在加速器运行时根据所处理数据自动选择激活精度的位串行LLM加速器,用逐GEMM的局部代理替代全模型困惑度离线校准。在4个LLM和7个数据集上,它以1%困惑度预算内实现MXU预填充周期2.11-2.34倍缩减,接近在评测数据本身离线校准的配置。选择硬件仅增加3.7%面积,使变长尾数在无法逐模型逐负载离线校准的实际部署中可行。

正文 · 原文

arXiv:2611.25971v1 Announce Type: new 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.

来源:arXiv (Robotics + Hardware + Signal) · arxiv.org