arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.14929cs.LGcs.AR
收藏

一种面向硬件的、分层的后训练量化方法用于大语言模型

A Hardware-Aware, Per-Layer Methodology for Post-Training Quantization of Large Language Models

Earl Killian

AI总结:

本文提出了一种面向硬件的分层后训练量化方法,通过优化代码本和硬件效率,实现4.5-6位/权重的近无损精度,展示了小原子块与精心选择的精度可替代传统FP8。

摘要:

Scaled Outer Product (SOP) 是一种后训练量化方法,用于大语言模型权重,旨在在具有每层LUT解码的硬件上实现近无损保真度,每权重4.5-6位。该方法结合了每层搜索固定和动态代码本对,通过每块选择位选择,带符号的每块缩放,激活加权余弦选择,以及敏感层的多选背包促进,以及异常值和稀疏残差修正。固定代码本包括NF4、BOF4、Split87和SH4;每层优化的代码本(DD4)存储在LUT SRAM中。提出了一种新的硬件高效LUT输出格式(HIF)以提高性能、能耗和成本。在六个公开模型家族中,推荐的FP6操作点(E2M3sUE4M4,6.5 bpw)在1.5 bpw更低的存储成本下,比传统每层-POT FP8基线(E4M3,8.0 bpw)具有更低的权重重建误差,证明了经过精心选择的缩放精度的块缩放小原子可替代传统部署的FP8。在4.5-6 bpw范围内进行全面评估,包括层促进和稀疏残差修正,详见配套论文。

英文摘要:

Scaled Outer Product (SOP) is a post-training quantization methodology for large language model weights, designed to deliver near-lossless fidelity at 4.5--6 bits per weight on hardware with per-layer LUT decode. The methodology combines per-layer search of fixed and dynamic codebook pairs selected by a per-block selection bit, signed per-block scales, activation-weighted cosine selection, and multiple-choice knapsack promotion of sensitive layers with outlier and sparse-residual correction. Fixed codebooks include NF4, BOF4, Split87, and SH4; per-layer optimized codebooks (DD4) are hosted in LUT SRAM. A new hardware-efficient LUT output format (HIF) is proposed to improve performance, energy, and cost. Across six open model families, the recommended FP6 operating point (E2M3sUE4M4, 6.5 bpw) achieves lower weight reconstruction error than the conventional per-layer-POT FP8 baseline (E4M3, 8.0 bpw) at 1.5 bpw lower storage cost, demonstrating that block-scaled small atoms with carefully chosen scale precision can replace conventionally-deployed FP8. Full evaluation across the 4.5--6 bpw range, including layer promotion and sparse residual correction, is reported in a companion paper.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑