数据源与状态仍在导航菜单中
arxiv.org·2026/10/23
为什么重要 针对低比特量化“省内存不省计算”问题,算法-硬件协同设计提升了精度灵活性与吞吐,对 LLM 推理硬件设计有参考价值。
仅权重量化保持 LLM 激活为浮点,并将权重存储为低比特整数,使主要工作负载变为浮点-整数(FP-INT)通用矩阵乘法。近期量化器在混合精度下达到 2-3-bit 平均比特,但硬件尚未跟上:GPU 在 tensor-core 乘加之前将权重反量化为 FP16,而位并行 FP-INT 加速器在单一权重精度下运行,因此更少的比特节省了内存却不能节省计算。
本文提出 FIGFLEX,一种算法-硬件协同设计的混合精度加速器,其位并行数据通路在精度下降时扩展吞吐量。FIGFLEX 贡献包括(1)对 FP-INT 乘法的 shift-add、radix-4 重构,将乘加融合为统一的精度灵活的部分积缩减,并大约将部分积减半,同时有一个新的 INT3 优化,在该精度下回收空闲的数据通路 radix-4 叶子;(2)一个混合精度量化器,根据 GPTQ 无法补偿的误差为每个通道组分配比特宽度,并使用每输入通道列缩放,其二次幂归一化使缩放后的激活保持在 FP16 亚正常范围之外,使量化模型可直接映射到 FIGFLEX 的数据通路上,并具有与在 GPU 上相同的精度。
在 LLaMA-2-7B 上,FIGFLEX 在 3-bit 和 2-bit 平均精度下获得 5.85 和 8.77 的 WikiText-2 困惑度,低于 GPTQ、AWQ、SliM-LLM、AMQ 和 QuIP#(无需微调),同时在 3-bit 混合精度模型的线性 GEMM 上,与 AxCore 和 FIGLUT 相比,每面积全芯片吞吐量分别提高 1.56x 和 1.42x。
Weight-only quantization keeps LLM activations in floating point and stores weights as low-bit integers, turning the dominant workload into floating-point-integer (FP-INT) general matrix multiplication.
Recent quantizers reach a 2-3-bit average with mixed precision, but hardware has not kept pace: GPUs dequantize weights to FP16 before the tensor-core multiply-accumulate, and bit-parallel FP-INT accelerators run at a single weight precision, so fewer bits save memory but not computation.
In this paper, we present FIGFLEX, an algorithm-hardware co-designed mixed-precision accelerator whose bit-parallel datapath scales throughput as precision falls.
FIGFLEX contributes (1) a shift-add, radix-4 reformulation of FP-INT multiplication that fuses the multiply-accumulate into a unified, precision-flexible partial-product reduction and roughly halves the partial products, together with a novel INT3 optimization that reclaims the idle datapath radix-4 leaves at that precision; and (2) a mixed-precision quantizer that assigns each channel group its bit-width according to the error GPTQ cannot compensate, with a per-input-channel column scaling whose power-of-two normalization keeps the scaled activations out of the FP16 subnormal range, so that the quantized model maps directly onto FIGFLEX's datapath with the same accuracy as on a GPU.
On LLaMA-2-7B, FIGFLEX attains 5.85 and 8.77 WikiText-2 perplexity at 3- and 2-bit average precision, lower than GPTQ, AWQ, SliM-LLM, AMQ, and QuIP# (without fine-tuning), while delivering 1.56x and 1.42x higher whole-chip throughput per area on the linear GEMMs of a 3-bit mixed-precision model than AxCore and FIGLUT, respectively.
原版排版与图表 · 手机无法内嵌时可在浏览器打开。PDF 插件内选文不能传给网页助手。