acceptodds
Published as a conference paper at NeurIPS 2026

Cluster with Auctions for Vector Search

Swann BESSA, Pierre Fernandez, Gergely Szilvasy, Matthijs Douze, Herve Jegou

Abstract

Large-scale approximate nearest neighbor search commonly relies on partitions for indexing: database vectors are partitioned into clusters, and for each query a probing function selects the clusters to be scanned. The query probing function and the database partition are rarely treated as separate entities: most techniques assign queries with the same assignment function as the database vectors, which is suboptimal especially when database and query distributions differ. This paper introduces CwA (Cluster with Auctions), which addresses this limitation by jointly learning a balanced database partition and a neural probing function. CwA optimizes search performance directly for the query distribution. It minimizes its objective by alternating two steps: (i) gradient descent on the neural network of the probing function, and (ii) a large-scale combinatorial optimization of the cluster assignment for the database vectors. We solve the latter with a parallelizable auction algorithm that balances the partition by design. To further scale CwA, we extend the method to a Cartesian product of clusters that increases the partition’s granularity. When database and query distributions differ, CwA achieves up to 4.7 throughput over the state of the art at equal recall. In the in-distribution (ID) setting, even a simple linear probing function trained with CwA outperforms competing deep neural methods.

Keywords:
Paris

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_cqkmOpenReview ↗
Rating
4
Clarity
2
Confidence
3
Originality
3
Quality
2
Significance
3
Read review
Summary

The paper studies clustering problem for ANNS. To make cluster balanced and ensure that each point and its nearest neighbors are in the same cluster, they model this as a capacitated linear assignment problem. Then they design a optimization objective with constraint. To solve the optimazation problem, they use a alternating optimization combining gradient descent and auction alogirhtm. The experiment on 4 common million scale datasets shows the advances of proposed method.

Strengths and weaknesses

Strengths

S1: modeling the cluster building as capacitated linear assignment problem is interesting, as it opens up more useful optimization strategies.

S2: the experiments use wide range of baselines and also further test the proposed clustering on common HNSW index.

Weaknesses

W1: the claimed that the method addresses OOD is not well supported. This seems to be because the model is trained on query data, just like other methods. There is also limited discussion on how balanced clusters actually help solve the OOD problem.

W2: the motivation for alternating optimization with gradient descent and auction is not clear to me. There are many other tricks to balance cluster , e.g., converting hard constraint into the penalty of loss function om gradient descent.

Questions

Q1: why and how does balanced clustering solve the OOD? If the paper argues that imbalance leads to worst-case OOD queries, could you provide more evidence?

Q2: why is alternating optimization necessary? Can the two methods be applied separately during training? If so, what are the ablation results?

Limitations

yes

Paper formatting concerns

The citations in the paper use a numeric format (e.g., [1]), but the reference list does not include these corresponding numbers. This inconsistency reduces readability.

Final justification

Modeling the cluster building as a capacitated linear assignment problem is an interesting approach, and the additional ablation study on clustering has resolved my main concerns. However, the overall training/optimization process still incurs a non-negligible computational cost. Specifically, while practical indexing algorithms (e.g., HNSW in the paper, NSG, DPG, etc.) can be implemented with the same indexing cost using only CPU, the proposed algorithm requires significant GPU resources (e.g., 8 H100), which somehow limits its usage.

Reviewer_EicBOpenReview ↗
Rating
5
Clarity
4
Confidence
5
Originality
3
Quality
3
Significance
3
Read review
Summary

The task the article considers is partitioning-based approximate nearest neighbor search (ANNS). Specifically, a partition function assigns the database points into clusters, and a routing function routes the query point into clusters that are then explored by evaluating the similarity between the query point and the database points belonging to the selected clusters.

While typically a same function is used for both partitioning and routing (for instance, in kk-means a function assigning a point to the cluster whose centroid is closest to it), the proposed method learns distinct partition and routing functions via alternating optimization. Specifically, partitioning is formulated as a capacitated linear assignment problem that is solved via an auction algorithm, and either a linear model or 2-layer neural network is used as a routing function. The scores used to route the queries are learned by minimizing their cross-entropy with clusterwise frequencies of the nearest neighors of the training queries.

In the in-distribution setting, where the queries and the database points are drawn from the same distribution, the proposed method slightly outperforms kk-means and earlier learned routing and partitioning methods. In the out-of-distribution setting, the performance difference is larger.

Strengths and weaknesses

Quality and Significance:

The main weakness of the article is that the experiments do not demonstrate the impact of the proposed method for practical ANNS. In the experiments of the paper, similarities between the query and all the database points of the selected clusters are evaluated. However, in practice SOTA partition-based ANNS methods score the points of the selected clusters for instance via product quantization (Jegou et al., 2011), anisotropic quantization (Guo et al., 2020), low-rank regression (Jaasaari et al., 2024), or randomized quantization (Gao et al., 2024), and evaluate the similarities only to the highest-scoring points. While the results provided article are a promising first step, they do not yet demonstrate that the performance increase compared to baselines also remains in the setting where the secondary scoring step is added.

On in-distribution datasets, the performance improvement compared to basic kk-means is negligible. Since the proposed method is significantly slower to train than kk-means its main significance is for out-of-distribution data in a setting where the query distribution differs significantly from the database distribution. While this limits the scope of the contribution, OOD setting in itself is still interesting and has practical use cases, making the contribution valuable to the community.

An important ablation experiment is missing. As demonstrated again in the in-distribution experiments, basic kk-means as a partitioning method for ANNS is notoriously hard to beat. It is important to know, which part of the improvement comes from the learned routing model, and which from the supervised partitioning via an auction method. To find this out, a simple experiment where a learned routing function is combined with a kk-means partitioning could be performed.

Clarity

The paper is well-written, mathematical notation is precise, and enough details about the proposed method and the experimental setup are provided.

Originality

As acknowledged in the article, learned routing and partitioning methods for partition-based ANNS have been suggested in the earlier literature. However, this article seems to be first where distinct routing and partitioning functions are used and jointly optimized. Thus, the approach is novel as far as I am aware.

References

Gao, Jianyang, and Cheng Long. "Rabitq: Quantizing high-dimensional vectors with a theoretical error bound for approximate nearest neighbor search." Proceedings of the ACM on Management of Data 2.3 (2024): 1-27.

Guo, Ruiqi, et al. "Accelerating large-scale inference with anisotropic vector quantization." International Conference on Machine Learning. PMLR, 2020.

Jegou, Herve, Matthijs Douze, and Cordelia Schmid. "Product quantization for nearest neighbor search." IEEE transactions on pattern analysis and machine intelligence 33.1 (2011): 117-128.

Jääsaari, Elias, Ville Hyvönen, and Teemu Roos. "Lorann: Low-rank matrix factorization for approximate nearest neighbor search." Advances in Neural Information Processing Systems 37 (2024): 102121-102153.

Questions
  • Can you provide experiments with the secondary scoring step, for instance by using PQ (Jegou et al., 2011), added?
  • Can you provide an ablation experiment where you combine the learned routing function with a kk-means partitioning to show which part of the performance improvement is due to learned routing function and which part is due to the supervised partitioning?

References

Jegou, Herve, Matthijs Douze, and Cordelia Schmid. "Product quantization for nearest neighbor search." IEEE transactions on pattern analysis and machine intelligence 33.1 (2011): 117-128.

Limitations

Yes.

Paper formatting concerns

Numbers are used in the citations, but are missing from the bibliography. This makes checking the references very inconvenient.

Final justification

The additional experiments provided by the authors during the author response period address my main concerns (1. comparison to baselines with a SOTA scoring function added to the pipeline; 2. ablation: comparison to k-means partitioning).

Reviewer_mpkmOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
2
Quality
2
Significance
3
Read review
Summary

This paper proposes CwA, a partition-based indexing method for large-scale approximate nearest neighbor search. The key idea is to decouple the database partition from the query probing function, and to jointly optimize them for the query distribution. The database vectors are assigned to balanced clusters through a large-scale auction-based combinatorial optimization, while a neural probing function is trained by gradient descent to select relevant clusters for each query. The paper further introduces a product-cluster extension to scale the method to finer-grained partitions.

Strengths and weaknesses

Strengths:

(1) The large-scale approximate nearest neighbor search is an important problem. The main idea of decoupling the database partition from the query probing function is well motivated.

(2) The method provides a principled alternating optimization framework: the probing function is trained by gradient descent, while the database partition is updated through a capacitated auction-based assignment problem. The balanced assignment is useful for reducing cluster-size imbalance and query latency variance.

(3) The method is evaluated at multiple scales, including 1M, 10M, and 100M vector, and the paper includes variants such as CWA-HNSW and CWA-PROD for practical scalability.

Weaknesses:

(1) The method is not query-oblivious. It requires access to a representative set of training queries, which is a strong assumption for a general-purpose ANN indexing method. More importantly, it further assumes that the ground-truth nearest neighbors of these training queries are available.

(2) The paper includes comparisons with IVF-HNSW, but this is not a comparison against a full graph-based ANN index over database vectors.

Questions

(1) How sensitive is CwA to a mismatch between the training-query distribution and the test-query distribution?

(2) Could the authors provide a comparison with full graph-based ANN indices, such as HNSW or DiskANN, built directly over the database vectors?

Limitations

No. The paper discusses some limitations, such as the fixed-database setting and the use of a single partition, but I do not think it adequately addresses the strongest limitation of the method. See the first weakness.

Paper formatting concerns

I have no such concerns.

Final justification

My main concern remains that CwA relies on representative deployment queries and offline nearest-neighbor supervision, which limits its generality. However, the authors have addressed my second concern with additional comparisons against full graph-based ANN methods, and their final experiment provides a concrete mitigation for query-distribution shift. While this does not remove the underlying assumption, it reduces my concern about practicality. Considering these additional results, I raise my rating slightly.

Comments on the paper

1 comment
Meta-review

The paper proposes a partition-based indexing method for large-scale approximate nearest neighbor search, where the data partition and query probing function are jointly optimized.

The idea of jointly optimizing the data partition and query probing function is natural and interesting, and the paper presents extensive experimental evaluations of the proposed approach. However, I noticed several major weaknesses, some of which were also raised by the reviewers, that should be addressed:

  1. The time required to build the index (including the training time) should be clearly stated in the main body of the paper. In particular, the index construction time should be reported for the various cluster sizes used in the experimental results.

  2. The index construction cost is substantial and requires significant computational resources (e.g., 8 GPUs for the 10M and 100M datasets), which may be impractical in many real-world settings. In contrast, state-of-the-art ANN methods, which include graph-based approaches, can often be built efficiently on CPUs. The authors should compare both index build time and the search time–accuracy trade-off with other state-of-the-art ANN methods. Without such comparisons, it is difficult to assess the practical benefits of the proposed method.

  3. Additionally, there exist query-distribution-aware ANN methods studied in the context of approximate attention (take a look at https://arxiv.org/pdf/2409.10516 and its follow up works); including such approaches as baselines would further strengthen the empirical evaluation.

  4. The number of queries required to train the probing function is on the order of millions. The authors should clarify where these queries are obtained from. Are they sampled from the same distribution as the datasets or are they part of the datasets themselves? Furthermore, training on such a large number of queries may be impractical in many applications, and the paper should discuss this aspect in greater detail.

  5. For an apples-to-apples comparison, the authors should implement NeuralLSH and K-means (as well as other clustering approaches, including balanced clustering methods) while training the query probing function using the query distribution. Such comparisons would provide a clearer understanding of the benefits obtained specifically from jointly optimizing the partitioning and probing functions.

  6. The authors should clearly discuss the limitations of the proposed approach, including its high training cost, the requirement of large amounts of query data, and any other practical limitations they deem relevant.

  7. Regarding the experimental evaluation, the paper should include recall-versus-QPS and recall-versus-distance comparison plots in the main body of the paper. These plots would provide a more comprehensive picture of the performance trade-offs offered by the proposed method.

  8. Does the parameter (K) need to be fixed during training? If the model is trained with one value of (K), can it be used effectively during search with a different value? It would be helpful if the authors could discuss how sensitive the performance of the proposed approach is to the choice of (K).

I encourage the authors to address each of the concerns raised above, as well as any additional points raised by the reviewers. I thank the authors for their submission and the reviewers for their thoughtful evaluations.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.