본문 바로가기

A Speculative Trellis Decoder for Lossless LLM Weight Decompression

문서 유형
연구출판물 · 학술지 논문
등재
SCIEScopus
저널 순위
JCR Q2Scopus Q1
피인용
Web of Science 0Scopus 0
JCR IF
JCR 2024 3.1
ISSN
1063-8210

저자

  1. 유인재제1저자교신저자Pusan Natl Univ, Sch Elect & Elect Engn, Busan 46241, South Korea

초록

Large language model (LLM) inference is memory-bandwidth-bound, with weight loading dominating latency. Lossless Huffman compression reduces transfer volume without accuracy loss, but variable-length codes (VLCs) impose sequential decoding dependencies that limit throughput. We present a speculative trellis decoder that exploits the bimodal code-length distribution of Huffman-coded LLM weights-where two consecutive code lengths cover 76%-91% of all symbols-to decode multiple symbols per cycle through parallel speculative evaluation. A unified 8-bit datapath handles BF16 exponents, FP8, and INT8 formats, and per-tensor dynamic reconfiguration adapts speculative parameters via memory-mapped I/O (MMIO) at a negligible runtime cost (<0.005% of decode time). A baseline canonical decoder commits one symbol every cycle, so throughput never falls below one symbol per cycle (SPC). Synthesized at 28 nm and characterized with gate-level power analysis, the decoder achieves 2.47-2.87 SPC on BF16 exponents and 1.77-1.88 SPC on FP8/INT8, reducing per-symbol energy by 30%-55% and decoder count by up to 57% relative to sequential canonical Huffman decoding. Workload characterization across six LLM checkpoints spanning 7B-70B parameters-including mixture-of-experts (MoEs) and state-space models (SSMs)-confirms that the bimodal property and the resulting throughput (up to 2.94 SPC) persist across model scales and architecture families.

키워드

DecodingModelingCodesLarge language modelsSymbolsTensorsInformation ratesThroughputArchitectureComputer architectureCanonical Huffman codinghardware acceleratorlarge language models (LLMs)lossless compressionmemory bandwidthspeculative decodingvariable-length codes (VLCs)

식별자

Scopus EID
2-s2.0-105053019694
WoS UID
001899286400001