[Paper Review] Learning Discrete Representations via Constrained Clustering for Effective and Efficient Dense Retrieval
RepCONC proposes a novel method for dense retrieval that learns discrete representations via constrained clustering, jointly optimizing dual-encoders and Product Quantization (PQ) to enable efficient, end-to-end training. By modeling quantization as a constrained clustering problem with a uniform clustering constraint, RepCONC achieves superior retrieval effectiveness, memory efficiency (index size <0.5GB), and CPU-compatible speed, outperforming state-of-the-art baselines in both accuracy and efficiency on ad-hoc retrieval benchmarks.
Dense Retrieval (DR) has achieved state-of-the-art first-stage ranking effectiveness. However, the efficiency of most existing DR models is limited by the large memory cost of storing dense vectors and the time-consuming nearest neighbor search (NNS) in vector space. Therefore, we present RepCONC, a novel retrieval model that learns discrete Representations via CONstrained Clustering. RepCONC jointly trains dual-encoders and the Product Quantization (PQ) method to learn discrete document representations and enables fast approximate NNS with compact indexes. It models quantization as a constrained clustering process, which requires the document embeddings to be uniformly clustered around the quantization centroids and supports end-to-end optimization of the quantization method and dual-encoders. We theoretically demonstrate the importance of the uniform clustering constraint in RepCONC and derive an efficient approximate solution for constrained clustering by reducing it to an instance of the optimal transport problem. Besides constrained clustering, RepCONC further adopts a vector-based inverted file system (IVF) to support highly efficient vector search on CPUs. Extensive experiments on two popular ad-hoc retrieval benchmarks show that RepCONC achieves better ranking effectiveness than competitive vector quantization baselines under different compression ratio settings. It also substantially outperforms a wide range of existing retrieval models in terms of retrieval effectiveness, memory efficiency, and time efficiency.
Motivation & Objective
- To address the high memory and computational cost of dense retrieval models, which rely on large dense vector indexes and exhaustive nearest neighbor search.
- To enable end-to-end training of dual-encoders and quantization methods by making the non-differentiable quantization operation differentiable through constrained clustering.
- To improve retrieval effectiveness and efficiency by ensuring balanced, distinguishable discrete representations through a uniform clustering constraint.
- To support fast, approximate nearest neighbor search on CPUs using a vector-based inverted file system (IVF) with compact indexes.
- To achieve state-of-the-art performance in retrieval effectiveness, memory efficiency, and time efficiency simultaneously.
Proposed method
- RepCONC models quantization as a constrained clustering process, where document embeddings are clustered around PQ centroids with a clustering loss.
- It introduces a uniform clustering constraint to prevent vector concentration in a few clusters, ensuring quantized vectors remain distinguishable.
- The constraint is relaxed into an optimal transport problem to enable efficient approximate optimization during end-to-end training.
- The method jointly trains dual-encoders and PQ centroids using backpropagation, allowing full end-to-end optimization of both components.
- It employs a vector-based inverted file system (IVF) to enable fast, non-exhaustive vector search on CPUs, reducing latency.
- During inference, the uniform constraint is dropped to maintain efficiency, while the learned centroids and assignments enable fast approximate nearest neighbor search.
Experimental results
Research questions
- RQ1Can constrained clustering with a uniformity constraint improve the effectiveness of discrete representations in dense retrieval?
- RQ2Can end-to-end joint optimization of dual-encoders and PQ be achieved despite the non-differentiability of quantization?
- RQ3Does RepCONC achieve better retrieval effectiveness, memory efficiency, and time efficiency compared to state-of-the-art vector quantization baselines?
- RQ4Can RepCONC enable efficient CPU-based retrieval without sacrificing ranking performance?
- RQ5How does the uniform clustering constraint affect cluster distribution and representation quality?
Key findings
- RepCONC achieves MRR@10 of 0.340 at 48 bytes per passage (BPP), outperforming JPQ (0.332) and DPQ (0.305) under the same compression ratio.
- The model reduces index size to less than 0.5GB, significantly smaller than COIL (60GB), ColBERT (162GB), uniCOIL (1.3GB), and DeepImpact (1.5GB).
- RepCONC enables efficient CPU-based retrieval with IVF, achieving high performance without requiring expensive GPU acceleration.
- The ablation study confirms that the uniform clustering constraint is critical: removing it leads to unbalanced cluster distributions and performance degradation.
- With dynamic hard negatives, RepCONC further improves MRR@10 to 0.340 at 48 BPP, demonstrating the effectiveness of joint optimization.
- The constrained clustering approach produces more balanced cluster assignments than unconstrained training, approaching the distribution of OPQ while maintaining end-to-end differentiability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.