RSLM: 근사 최근접 이웃 탐색을 위한 학습 불필요 벡터 양자화
RSLM: Training-Free Vector Quantization for Approximate Nearest Neighbor Search
한국어 초록
임베딩(embedding)을 차원당 1~4비트로 압축하는 학습 불필요(training-free) 벡터 양자화(quantization) 코덱 군인 RSLM(Rotated Scaled Lloyd-Max)을 도입하여, 일반적인 대규모 근사 최근접 이웃(ANN) 탐색 시스템의 메모리 비용과 메모리 대역폭을 절감하는 동시에 복잡도를 낮추고 여러 벤치마크(benchmark) 데이터셋(dataset)에서 재현율(recall)을 유지하거나 향상시킵니다. 최첨단 시스템은 조대 분할(coarse partition)을 통해 후보군을 필터링하고, 근사 점수를 계산하여 집합을 좁힌 뒤, 더 높은 정밀도(precision) 표현(종종 차원당 8비트 이상)으로 상위 후보를 재채점합니다. 당사의 상대화된 코덱은 이를 차원당 2~4비트까지 낮출 수 있습니다. 당사는 ANN 시스템의 특성을 활용하여 근사 점수 계산 단계와 재채점 단계 모두에서 전체 벡터 대신 잔차 벡터를 인코딩합니다. 최대 내적 탐색(MIPS)은 벡터 노름(norm)에 매우 민감하므로, 양자화된 벡터의 $L_2$ 노름을 보정합니다. 당사의 주요 혁신은 잔차뿐만 아니라 최종 재구성된 벡터의 $L_2$ 노름을 보정한다는 점입니다. 이러한 재스케일링은 비등방성 손실(Anisotropic loss)과 같은 복잡한 기법을 대체합니다. 잔차화 기법은 일반적인 양자화 방식에 비해 품질 대 크기 간에 더 우수한 절충점(trade-off)을 제공합니다. 당사의 고성능 구현은 선형에 가까운 복잡도를 갖는 블록 단위 계층형 고속 월시-아다마르 변환(FWHT), AVX SIMD 최적화 코드북, 그리고 완벽한 캐시 라인 정렬을 위한 스케일링 인자의 스테가노그래피 인코딩을 활용합니다.
원문 초록
By introducing RSLM (Rotated Scaled Lloyd-Max), a family of training-free vector quantization codecs compressing embeddings to 1--4 bits per dimension, we reduce memory cost and memory bandwidth of a typical large-scale Approximate Nearest Neighbor (ANN) search system, while reducing its complexity and keeping or improving recall across multiple benchmark datasets. State-of-the-art systems filter candidates using coarse partitions, approximately score them to narrow the set, and then rescore the best with higher precision representations (often >=8 bits per dimension). Our relativized codecs can bring this down to 2--4 bits per dimension. We use the properties of the ANN system to encode residual vectors instead of full vectors, both for the approximate scoring phase and the rescoring phase. Since Maximum Inner Product Search (MIPS) is very sensitive to vector norms, we correct the $L_2$ norms of quantized vectors. Our major innovation is that we correct the $L_2$ norm of the final reconstructed vector rather than just the residual. Our rescaling replaces more complicated schemes, such as Anisotropic loss. The residualization scheme gives us a more favorable quality vs size trade-off than generic quantization methods. Our high-performance implementation leverages a block-wise cascaded Fast Walsh-Hadamard Transform (FWHT) with linear-like complexity, AVX SIMD-optimized codebooks, and a steganographic encoding of scaling factors for perfect cache-line alignment.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2608.30384v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.