arXiv:2605.06014v2 cs.LG

무작위 하다마드 변환을 이용한 양자화: 효율적인 휴리스틱의 이론적 증명

Quantizing With Randomized Hadamard Transforms: Efficient Heuristic Now Proven

Ran Ben-Basat, William Kuszmaul, Michael Mitzenmacher, Amit Portnoy, Shay Vargaftik

제출 2026-11-03

한국어 초록

균일 무작위 회전(URR)은 기울기 압축, 추론 가속, KV 캐시 압축, 모델 가중치 양자화, 벡터 데이터베이스의 근사 최근접 이웃 탐색 등에 사용되는 현대 양자화 기법에서 흔히 쓰이는 전처리 단계이다. 실제로는 URR을 직교성을 보존하면서도 빠른 구현이 가능한 무작위 하다마드 변환(RHT)으로 대체하는 경우가 많다. 남은 문제는 최악의 입력에 대한 성능이다. URR에서는 각 좌표가 이동된 베타 분포를 따르며, 이는 고차원에서 가우시안 분포로 수렴한다. 일반적으로 개별 좌표가 이러한 분포에서 크게 벗어날 수 있으므로, 최악의 경우 RHT 하나는 적합하지 않다. 본 논문은 임의의 $d$차원 입력 벡터에 RHT를 두 번 합성하면, 정규화된 회전 벡터의 고정된 각 좌표의 주변 분포가 콜모고로프 거리와 1-바serstein 거리 모두에서 표준 가우시안으로부터 $O(d^{-1/2})$ 이내에 있음을 보인다. 이어서 이 경계를 현대 압축 기법인 DRIVE와 QUIC-FL의 분석에 적용하여, RHT 두 번이 URR의 성능에 점근적으로 부합하는 성능을 달성함을 보인다. 그러나 RHT 두 번은 스칼라 양자화에는 충분하지만, 단일 좌표의 주변 분포 수렴만이 아니라 고정 크기 좌표 블록 전체의 결합 분포에 의존하는 벡터 양자화(VQ)에는 충분하지 않을 수 있다. 본 논문은 RHT를 세 번 합성하면 좌표 공분산이 감소함을 증명한다. 이는 URR에 맞게 최적화된 임의의 고정된, 유계의 다차원 VQ 코드북이 RHT 세 번을 사용할 때에도 차원이 커질수록 사라지는 가산항을 제외하면 동일한 기대 오차를 가짐을 보장한다. 마지막으로, 실제 입력은 적대적인 경우가 드물기 때문에, 입력의 모멘트에 대한 선형 시간 $O(d)$ 검사를 제안하여 런타임에 사용할 RHT 횟수를 동적으로 조절함으로써 성능을 개선한다.

원문 초록

Uniform random rotations (URRs) are a common preprocessing step in modern quantization approaches used for gradient compression, inference acceleration, KV-cache compression, model weight quantization, and approximate nearest-neighbor search in vector databases. In practice, URRs are often replaced by randomized Hadamard transforms (RHTs), which preserve orthogonality while admitting fast implementations. The remaining issue is the performance for worst-case inputs. With a URR, each coordinate is distributed as a shifted beta distribution, which converges to a Gaussian distribution in high dimensions. Generally, one RHT is not suitable in the worst case, as individual coordinates can be far from these distributions. We show that after composing two RHTs on any $d$-sized input vector, the marginal distribution of every fixed coordinate of the normalized rotated vector is within $O(d^{-1/2})$ of a standard Gaussian both in Kolmogorov distance and in $1$-Wasserstein distance. We then plug these bounds into the analyses of modern compression schemes, namely DRIVE and QUIC-FL, and show that two RHTs achieve performance that asymptotically matches URRs. However, while two RHTs suffice for scalar quantization, they may be insufficient for Vector Quantization (VQ), which depends on the joint distribution across fixed-size blocks of coordinates (as opposed to only marginal distribution convergence for single coordinates). We prove that a composition of three RHTs leads to decaying coordinate covariance. This ensures that any fixed, bounded, multi-dimensional VQ codebook optimized for URRs has the same expected error when using three RHTs, up to an additive term that vanishes with the dimension. Finally, because practical inputs are rarely adversarial, we propose a linear-time $O(d)$ check on the input's moments to dynamically adapt the number of RHTs used at runtime to improve performance.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2605.06014v2제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.