HBQ: 정확한 LLM 추론을 위한 하드웨어 효율 인지 설계 기반 계층적 스케일링 블록 양자화
HBQ: Hierarchical Scaling Block Quantization with Hardware-Efficiency-Aware Design for Accurate LLM Inference
한국어 초록
블록 양자화(Block Quantization, BQ)는 대규모 언어 모델(LLM)을 효율적으로 배포하기 위한 유망한 접근법으로, 정확도 저하를 제어하면서 저정밀도 연산을 가능하게 한다. 스칼라 가중치 전용 양자화(weight-only quantization, WoQ)와 비교하여 BQ는 가중치와 활성화를 모두 양자화하므로 더 높은 하드웨어 효율과 통합 데이터패스(datapath) 상의 종단 간(end-to-end) 추론을 제공하지만, 비트 폭, 블록 크기, 스케일링, 수치 형식에 걸친 설계 공간은 아직 충분히 탐구되지 않았다. 우리는 설계 공간 탐색(design space exploration, DSE)을 통해 하드웨어 및 벤치마크 결과를 제시한다. 그 결과, 블록 크기를 키우면 역양자화(dequantization)와 누산(accumulation) 비용이 분산되어 하드웨어 효율은 향상되지만 정확도는 저하됨을 확인했다. 이러한 트레이드오프는 기존 BQ 방법의 한계로 작용한다. 이 통찰에 기반하여 우리는 계층적 블록 양자화(Hierarchical Block Quantization, HBQ)를 제안한다. 작은 블록과 기존의 2의 거듭제곱(Power-of-Two, PoT) 또는 정수 기반 스케일링을 사용하는 기존 방법 [1], [2]과 달리, HBQ는 큰 블록을 사용해 효율을 극대화하고 2단계 양자화를 위해 오버헤드가 낮은 유효숫자(significand, SIG) 스케일링을 도입한다. SIG 스케일링은 양자화 수준을 효과적으로 할당하고 활성화와 가중치의 서로 다른 분포를 고려함으로써, 기존 PoT 및 INT 방식보다 큰 블록에서 발생하는 오차를 더 효과적으로 보정한다. HBQ-A(accurate)는 W4A5만으로 W4A16 수준의 정확도를 달성하면서 NVFP4보다 적은 실리콘 면적을 요구한다. HBQ-E(efficient)는 기존의 모든 BQ 방법보다 높은 정확도를 유지하면서 하드웨어 비용을 17% 추가로 줄인다. 우리는 HBQ를 가중치, 활성화, KV 캐시에 적용한 28nm ASIC 가속기를 구현했으며, EMA(external memory access) 에너지를 더욱 줄이기 위해 새로운 부분합(partial-sum) BQ 기법을 통합했다. 최신 WoQ와 비교했을 때 HBQ는 동일한 정확도 수준에서 면적/에너지 효율이 각각 $2.3\times$/$4.6\times$ 높으며, 기존 BQ 방법 대비 시스템 에너지는 $1.6$--$3.3\times$ 감소하고 속도는 $1.5$--$3.0\times$ 향상되면서도 가장 높은 정확도를 제공한다.
원문 초록
Block Quantization (BQ) is a promising approach for efficient deployment of large language models (LLMs), enabling low-precision computation with controlled accuracy degradation. Compared to scalar weight-only quantization (WoQ), BQ quantizes both weight and activation, offering higher hardware efficiency and end-to-end inference on a unified datapath, but its design space, spanning bit-width, block size, scaling, and numeric formats, remains underexplored. We provide hardware/benchmark results through design space exploration (DSE). We find that increasing block size improves hardware efficiency by amortizing dequantization and accumulation costs, but degrades accuracy. This trade-off limits conventional BQ methods. Motivated by this insight, we propose Hierarchical Block Quantization (HBQ). Unlike prior methods [1], [2], which use small blocks and conventional Power-of-Two (PoT) or integer-based scaling, HBQ uses large blocks to maximize efficiency and introduces low-overhead significand (SIG) scaling for second-level quantization. By allocating quantization levels effectively and accounting for distinct activation and weight distributions, SIG scaling compensates for large-block errors more effectively than prior PoT and INT schemes. HBQ-A (accurate) achieves W4A16-level accuracy using only W4A5 while requiring less silicon area than NVFP4. HBQ-E (efficient) further reduces hardware cost by 17% while maintaining higher accuracy than all existing BQ methods. We implemented a 28nm ASIC accelerator applying HBQ to weights, activations, and KV cache, and integrated a novel partial-sum BQ scheme to further reduce EMA energy. Compared to state-of-the-art WoQ, HBQ delivers $2.3\times$/$4.6\times$ higher area/energy efficiency at the same accuracy level; $1.6$--$3.3\times$ system energy reduction and $1.5$--$3.0\times$ speedup over prior BQ methods while providing best accuracy.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2609.00450v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.