CubicQuant: 1-8비트 가중치를 사용한 고처리량 LLM 추론을 위한 매개변수형 비균일 코드북
CubicQuant: Parametric Non-Uniform Codebooks for High-Throughput LLM Inference with 1-8-Bit Weights
한국어 초록
대규모 언어 모델(LLM) 추론을 위한 가중치(weight) 양자화(quantization)는 적응형 재구성 레벨과 효율적인 GPU 실행에 충분할 만큼 규칙적인 표현 사이에서 균형을 이루어야 합니다. 균일 정수는 각 그룹을 선형 격자로 제한합니다. 저비트 부동소수점 형식은 고정된 지수-가수 구조를 사용하는 반면, 학습된 코드북은 불규칙한 디코딩과 추가 메타데이터를 대가로 유연성을 얻습니다. 본 논문에서는 각 가중치 그룹 내에서 재구성 레벨을 적응시키는 동시에 조밀한 정수 코드 스트림을 보존하는 매개변수형 비균일 스칼라 형식인 CubicQuant를 소개합니다. 두 개의 형태 매개변수와 하나의 스케일로 지정되는 단조 3차 곡선은 균일한 간격의 크기 코드를 비균일 레벨로 매핑합니다. 이 형식군은 1-8비트 가중치 페이로드를 포괄하며, 대칭 균일 정수 양자화를 정확한 특수 사례로 포함하고, 페이로드 너비 B와 그룹 크기 G에 대해 가중치당 B + 64/G 비트의 유효 너비를 갖습니다. 본 연구에서는 균등(Uniform), 가우시안(Gaussian), 라플라스(Laplace) 분포 하에서의 모집단 왜곡을 유도하고, 연속 및 Dynamic-A8-carrier 인식 피팅 목표를 정형화하며, 직접 패킹된 가중치의 GPU 실행을 설명합니다. G=128의 유한 그룹과 분포당 15,360개 샘플에 대해, W4 CubicQuant는 최적으로 클리핑된 4비트 균일 정수 양자화 대비 재구성 RMSE를 균등 샘플에서 3.90%, 가우시안 샘플에서 13.49%, 라플라스 샘플에서 28.14% 감소시켰습니다. 가장 우수한 것으로 열거된 4비트 유한 부동소수점 형식과 비교했을 때의 감소율은 각각 3.90%, 9.44%, 6.27%였습니다. 예비 H200 커널(kernel) 측정 결과 워크로드에 따른 교차 현상이 나타났습니다. 폭이 좁은 GEMV에서는 model-dtype 실행이 더 빠른 반면, 행 수가 증가함에 따라 Dynamic A8이 더 유리해집니다. 이러한 결과는 해당 형식의 표현적 가능성과 직접 실행 가능성을 입증하지만, 다운스트림 모델(model) 품질 및 장치 간 엔드투엔드 성능 평가는 여전히 해결해야 할 과제로 남아 있습니다.
원문 초록
Weight quantization for large-language-model inference must balance adaptive reconstruction levels with representations regular enough for efficient GPU execution. Uniform integers constrain each group to a linear grid. Low-bit floating-point formats use a fixed exponent-mantissa structure, while learned codebooks gain flexibility at the cost of irregular decoding and additional metadata. We introduce CubicQuant, a parametric non-uniform scalar format that preserves a dense integer code stream while adapting reconstruction levels within each weight group. A monotonic cubic curve, specified by two shape parameters and one scale, maps uniformly spaced magnitude codes to non-uniform levels. The family spans 1-8-bit weight payloads, contains symmetric uniform integer quantization as an exact special case, and has effective width B + 64/G bits per weight for payload width B and group size G. We derive population distortion under Uniform, Gaussian, and Laplace distributions, formulate continuous and Dynamic-A8-carrier-aware fitting objectives, and describe direct packed-weight GPU execution. For finite groups of G=128 with 15,360 samples per distribution, W4 CubicQuant reduced reconstruction RMSE relative to optimally clipped four-bit uniform integer quantization by 3.90% on Uniform, 13.49% on Gaussian, and 28.14% on Laplace samples. Relative to the best enumerated four-bit finite floating-point format, the reductions were 3.90%, 9.44%, and 6.27%. Preliminary H200 kernel measurements show a workload-dependent crossover: model-dtype execution is faster for narrow GEMV, while Dynamic A8 becomes favorable as row count grows. The results establish the format's representational promise and direct executability; downstream model quality and cross-device end-to-end performance remain open evaluation questions.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2608.06763v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.