RQ-MoE: Residual Quantization via Mixture of Experts for Efficient Input-Dependent Vector Compression

Zhengjia Zhong, Shuyan Ke, Zaizhou Lin, Jiaqi Song, Hongyi Lan +1 more
5/14/2026
3 citations
cs.LGcs.AI
moe

Official code: KDEGroup/RQ-MoE (3 stars, Python, MIT, last commit 2026-05-24).

Abstract

Vector quantization is a fundamental tool for compressing high-dimensional embeddings, yet existing multi-codebook methods rely on static codebooks that limit expressiveness under heterogeneous data geometry. While recent dynamic quantizers like QINCo adapt codebooks to individual inputs and improve expressiveness, their strict sequential dependencies create decoding bottlenecks.

Show full abstract

We propose Residual Quantization via Mixture of Experts (RQ-MoE), a framework combining a two-level MoE with dual-stream quantization to enable input-dependent codebook adaptation for efficient vector quantization. RQ-MoE enables dynamic codebook construction and decouples instruction from quantization, facilitating parallel decoding. Theoretically, we show that standard Residual Quantization and QINCo can be recovered as constrained special cases of RQ-MoE, and derive a guideline for setting expert dimensionality in RQ-MoE. Extensive experiments show that RQ-MoE achieves state-of-the-art or on-par performance in reconstruction and retrieval, while providing 6x-14x faster decoding than prior vector quantization methods. The implementation is available at https://github.com/KDEGroup/RQ-MoE.

View on arXivView PDF

Code Implementations(1)

KDEGroup/RQ-MoEOfficial100%
MIT

Source code for ICML'26 paper "RQ-MoE: Residual Quantization via Mixture of Experts for Efficient Input-Dependent Vector Compression".

30Python, ShellMay 1, 20266 months agoMIT
residual-quantizationvector-compression

Similar Papers

Cite this paper

@article{zhong2026rqmoe,
  title  = {RQ-MoE: Residual Quantization via Mixture of Experts for Efficient Input-Dependent Vector Compression},
  author = {Zhengjia Zhong and Shuyan Ke and Zaizhou Lin and Jiaqi Song and Hongyi Lan and Hui Li},
  year   = {2026},
  eprint = {2605.14359},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.14359v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.14359.svg)](https://codeofpaper.com/paper/2605.14359)

Discussion