potentialpaper

Cluster with Auctions for Vector Search

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

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

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$\times$ 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.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:45 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
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.

Final justification

I thank the authors for their submission.

The authors provided a strong rebuttal addressing the questions and concerns raised by the reviewers. Although some concerns were only partially addressed, the reviewers appreciated the rebuttal, and two reviewers decided to raise their scores. Following the rebuttal, the reviews are borderline positive.

Although I see some limitations of the submitted work, based on the reviewers' feedback and the discussion during the rebuttal phase which are borderline positive, my final recommendation is to accept the submission.

I would strongly encourage the authors to incorporate the feedback and address the points raised during the rebuttal discussion in the final camera ready.

Area Chair HQic · Meta-reviewOpenReview ↗
Read meta-review
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.

Final justification

I thank the authors for their submission.

The authors provided a strong rebuttal addressing the questions and concerns raised by the reviewers. Although some concerns were only partially addressed, the reviewers appreciated the rebuttal, and two reviewers decided to raise their scores. Following the rebuttal, the reviews are borderline positive.

Although I see some limitations of the submitted work, based on the reviewers' feedback and the discussion during the rebuttal phase which are borderline positive, my final recommendation is to accept the submission.

I would strongly encourage the authors to incorporate the feedback and address the points raised during the rebuttal discussion in the final camera ready.

1 comment
Authors · CommentOpenReview ↗

We thank the AC for the thoughtful assessment and constructive suggestions. We address each point in turn.

  1. Construction time by cluster size. We agree. The 10M/65K construction time was missing; we measured 39m07s. We will add it and move the complete per-configuration construction-time table to the main paper, as requested.

  2. Comparison with state-of-the-art ANN methods. We agree that CwA should be compared with state-of-the-art ANN methods on both search performance and index-construction cost. The new CPU and GPU search results are reported in our response to Reviewer 1. For ID search on CPU, we compare with GLASS, a state-of-the-art HNSW method, and DiskANN. For OOD search, we compare with RoarGraph, the OOD graph method used in RetrievalAttention. At recall@10 = 0.90, GLASS and DiskANN remain faster than CwA on the ID benchmarks, while CwA is faster than RoarGraph on both OOD benchmarks and substantially improves over its matched K-Means pipeline. On one H100, CwA is also faster than CAGRA on SIFT, Text-to-Image, and LAION, and slower on DEEP. The GLASS, DiskANN, and RoarGraph indexes are constructed on CPU: selected GLASS builds take 6–15s on SIFT and 10–12s on DEEP, while DiskANN takes 6–22s and 9–13s, respectively. RoarGraph construction takes 42–73s on Text-to-Image and 57–143s on LAION. CwA has a clearly higher construction cost, which we will state explicitly as a limitation. We will add these practical search and construction comparisons to the main body of the paper.

  3. Methods from approximate-attention. We appreciate this suggestion. The RoarGraph comparison reported in point 2 connects our evaluation to the query-distribution-aware index used in RetrievalAttention.

  4. Training queries. We agree that our description of the training-query provenance was not sufficiently clear. LAION and Text-to-Image provide training-query pools, from which we sample. For SIFT and DEEP, we use vectors from the corresponding billion-scale source datasets that are outside the indexed subset, after deduplication against the index and evaluation queries. Evaluation queries are held out throughout. We use 5M training queries at 1M scale, 20M at 10M, and 50M at 100M. Their nearest-neighbor labels are generated offline; this cost is included in the construction times in point 1. We will state this provenance explicitly and discuss the requirement for representative queries and offline labels more clearly in the limitations.

  5. Matched-router ablations. The complete ablation table is in our response to Reviewer 3. We ran the requested ablations by training the same query-aware router as CwA, with the same queries and supervision, on K-Means, NeuralLSH, and tuned Balanced K-Means (Exclusive Lasso) [Li et al., AAAI 2018]. K-Means with this router improves over native K-Means. Balanced K-Means improves further over K-Means with the same router on every applicable dataset, confirming that balanced clustering helps; however, CwA remains better wherever this control is available. Balance therefore contributes but does not fully explain CwA’s gains. We will include these ablations in the revised paper.

  6. Limitations. We will expand the limitations section to state the need for representative training queries and offline nearest-neighbor labels, the high construction cost, sensitivity to query-distribution drift, and the need to retrain when changing the number of clusters. The mismatch experiment in our response to Reviewer 1 directly quantifies the query-drift limitation.

  7. Recall plots. We will replace fixed-operating-point tables in the main paper with recall–QPS and recall–distance-computation plots, including the new practical ANN baselines.

  8. Changing the number of clusters. The number of clusters |C| fixes both the partition cardinality and the router output dimension. A model trained for one |C| therefore cannot be reused unchanged at another; our results across cluster counts use separately trained models. For a fixed model, the number of probed clusters remains adjustable at search time.

We thank the AC again for this constructive guidance, which will help us make the paper’s assumptions, practical trade-offs, and empirical scope clearer.

Reviewer cqkmOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
2/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
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

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.

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.

3 comments
Authors · CommentOpenReview ↗

We thank the reviewer for the thoughtful questions and the opportunity to provide clarification. We agree that our presentation could have made the distinct roles of query-aware routing, query-aware partitioning, and hard balance clearer. They serve three distinct functions:

  1. Query-aware routing chooses which clusters to probe.
  2. Query-aware partitioning uses query–neighbor supervision to change which database vectors are grouped together.
  3. Hard balance keeps cluster sizes uniform, reducing variation in the work per probed cluster and hence query latency variance in both ID and OOD settings. It does not adapt the index to the OOD query distribution.

K-Means and the learned baselines in our submission—NeuralLSH [Dong et al., ICLR 2020], USP [Fahim et al., EDBT 2023], and BLISS [Gupta et al., KDD 2022]—learn their database partitions from database vectors. Adding a query-aware router to such a partition improves cluster selection, but it cannot change cluster membership. CwA uses query–neighbor supervision for both routing and partitioning: it trains the router on the query distribution and adapts the database partition under the same query-dependent objective. Accordingly, the first two components concern query-distribution adaptation, whereas hard balance serves a separate systems role.

Ablations. We directly test the reviewer’s hypothesis that the gain comes only from training a model on query data. K-Means + matched router keeps the database-trained K-Means partition but trains the same router as CwA with the same queries and nearest-neighbor supervision. It therefore uses query data while omitting CwA’s query-aware partition update. Balanced K-Means (Exclusive Lasso) [Li et al., AAAI 2018] augments K-Means with a soft penalty on cluster imbalance. We tune the relative penalty strength, fix the resulting database-trained partition, and train the same query-aware router as CwA. This control tests whether soft balanced clustering combined with query-aware routing is sufficient to explain CwA’s gains. We likewise pair the NeuralLSH partition [Dong et al., ICLR 2020] with the matched router. At |C| = 256 and h = 0, we report recall@10 after scanning 0.5% of the database, or 5k distance computations per query. Balanced K-Means is unavailable for the inner-product Text-to-Image benchmark.

Method SIFT DEEP Text-to-Image LAION
Native K-Means 0.562 0.598 0.525 0.453
Native Balanced K-Means 0.571 0.607 — 0.437
K-Means + matched router 0.568 0.611 0.576 0.540
Balanced K-Means + matched router 0.574 0.620 — 0.552
NeuralLSH + matched router 0.521 0.578 0.546 0.578
CwA 0.590 0.643 0.655 0.676

Native K-Means versus K-Means with the matched router shows the benefit of training the router on queries. Comparing K-Means with the matched router to CwA shows the additional benefit of adapting the partition with query supervision: CwA improves on every dataset. Together, these comparisons support separate benefits from query-aware routing and query-aware partitioning. Balanced K-Means improves over K-Means with the matched router on every applicable dataset, confirming that soft balancing helps, but remains below CwA. Thus, balance combined with query-aware routing does not fully explain CwA’s gain. CwA also improves over NeuralLSH with the matched router. We thank the reviewer and the AC for prompting this ablation: it provides a useful disentanglement of the respective roles of routing, partition adaptation, and balance, and we will include it in the revised paper.

On the necessity of alternating optimization. The situation is analogous to K-Means, which alternates between continuous centroid updates and discrete point assignments. CwA likewise jointly optimizes two variables under the same query-dependent objective: the continuous router parameters and the discrete assignment of database vectors to clusters. With the partition fixed, we improve this objective by training the router with gradient descent. With the router fixed, the objective defines a score matrix between database vectors and clusters. Assigning each database vector to exactly one cluster while optimizing the total score yields a linear-assignment problem, which we solve with the parallel auction algorithm [Bertsekas, 1989]. Fixed per-cluster quotas additionally enforce hard balance; this is a guarantee of the partition update, not its primary purpose. One could instead encourage balance with a soft penalty, but because the auction efficiently solves the assignment under these quotas, we retain them, obtaining a hard cluster-size guarantee without tuning a penalty coefficient. Alternation therefore coordinates the continuous router update with the discrete partition update; balance is a separate guarantee of the latter.

Authors · CommentOpenReview ↗

Dear Reviewer,

We wanted to briefly follow up as the discussion period approaches its end. In response to your questions about OOD performance and balanced clustering, we explained how query-aware routing, query-aware partitioning, and hard balance play distinct roles in CwA. We also reported matched-router ablations with K-Means, NeuralLSH, and exclusive-lasso balanced clustering, and discussed the motivation for alternating between gradient descent on the probing function and the auction update of the database partition.

We would appreciate knowing whether this addresses your concerns about OOD performance and the motivation for alternating optimization. If any specific point remains unresolved, we would be happy to clarify it or provide a targeted additional analysis where feasible during the remaining discussion period.

Thank you again for your time and consideration.

Best regards, The Authors

Reviewer cqkm · CommentOpenReview ↗

Thank you for the ablation study on the clustering settings.For the alternating part, it is fair that it is already an efficient optimization without tuning. I will raise my score as my main concerns are now addressed

Reviewer EicBOpenReview ↗
Rating
5/6
Confidence
5/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
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.

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).

Formatting concerns

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

2 comments
Authors · CommentOpenReview ↗

We thank the reviewer for the careful assessment and for identifying two experiments that directly test the practical and scientific scope of the contribution.

Secondary scoring. We agree that secondary scoring is the natural serving configuration for partition-based ANN. The submission used exact list scans to isolate partition quality from compression error. To evaluate CwA in a practical IVF pipeline, we now apply identical Flat, PQ [Jégou et al., TPAMI 2011], and 9-bit RaBitQ [Gao et al., PACMMOD 2025] list scorers to CwA and each baseline. The table reports single-thread end-to-end CPU QPS on an Intel Xeon Platinum 8462Y at recall@10 = 0.8, |C| = 1024, and h = 2; the CPU used in the submission was unavailable. PQ performs exact reranking of its 100 best candidates, while RaBitQ does so for its 12 best candidates. Both costs are included in QPS.

Dataset Fine scorer Native NeuralLSH Native K-Means CwA (h=2)
SIFT Flat 4,946 5,127 5,200
SIFT PQ8+R100 5,892 6,072 6,443
SIFT RaBitQ-9 10,332 10,438 10,979
LAION Flat 100 914 2,699
LAION PQ8+R100 218 1,412 3,102
LAION RaBitQ-9 712 2,853 4,834

With either compressed scorer, CwA outperforms both baselines on both datasets. Thus, CwA’s advantage persists after compression at the evaluated operating points.

Router/partition decomposition. We also perform the requested ablation by fixing the K-Means partition and training the same CwA router with the same query distribution and supervision. At |C| = 256 and h = 0, the table reports recall@10 after scanning 0.5% of the database, or 5k distance computations per query.

Dataset Native K-Means K-Means + router CwA
SIFT 0.562 0.568 0.590
DEEP 0.598 0.611 0.643
Text-to-Image 0.525 0.576 0.655
LAION 0.453 0.540 0.676

Reading the table from native K-Means to K-Means with the matched router isolates the contribution of query-aware routing. Comparing K-Means with that router to full CwA then isolates the jointly optimized partition under the same routing model.

ID results. We agree that the improvement over K-Means is more modest in the ID setting than under database–query shift, and we will temper our wording accordingly. However, K-Means is a particularly strong ID baseline, and improvements in prior learned-partitioning work, including NeuralLSH [Dong et al., ICLR 2020], have also typically been modest in this regime. On SIFT, CwA outperforms both K-Means and NeuralLSH with either compressed scorer. We therefore view the ID result as a consistent advance in an established and difficult setting, while the larger OOD gains show where separating partitioning from routing has the greatest effect.

We also thank the reviewer for flagging the missing reference numbers in the bibliography; we will correct this formatting error in the revision.

Reviewer EicB · CommentOpenReview ↗

Thank you for your response. Since the additional experiments address my main concerns, I will increase my rating to "Accept".

Reviewer mpkmOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
2/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
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.

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.

Formatting concerns

I have no such concerns.

4 comments
Authors · CommentOpenReview ↗

We thank the reviewer for identifying two points that deserve clearer treatment: the assumption of access to representative workload queries, and CwA’s performance relative to full-database graph indices.

Query obliviousness. We agree that CwA is not query-oblivious and requires representative training queries with their nearest neighbors. This is an explicit design choice. Our OOD setting concerns a mismatch between the database and deployment-query distributions, while assuming that training and deployment queries follow the same distribution. This design is motivated by the poor performance of database-only partitions under database–query shift: K-Means degrades substantially, while existing neural partitioning methods degrade even more severely, as shown in the paper (Appendix B, Figure 8). CwA addresses this limitation by adapting both the partition and probing function to the target workload.

Query mismatch ablation. Our additional experiments confirm the importance of this assumption. When trained on the database distribution and evaluated on OOD target queries, CwA underperforms K-Means across Text-to-Image and LAION for both K = 256 and K = 1024; matched training instead yields substantial gains. The table reports Recall@10 after scanning 1% of the database vectors (1% selectivity), with every method evaluated on the same target OOD queries.

Dataset K Matched CwA K-Means Mismatched CwA
LAION 256 0.815 0.595 0.402
LAION 1024 0.908 0.772 0.650
Text2Image 256 0.791 0.671 0.561
Text2Image 1024 0.912 0.841 0.732

Thus, CwA trades distributional robustness for specialization to a known workload. CwA does not claim robustness to arbitrary unseen query distributions. We will state this assumption and query-distribution drift explicitly among the limitations.

Training supervision. CwA uses nearest neighbors computed offline for representative training queries. Generating these labels and processing millions of queries are genuine construction costs, measured as k-NN graph construction in Appendix Table 5. We will surface these costs in the main paper and state access to representative training queries explicitly among the method’s assumptions and limitations.

Practical evaluation against state-of-the-art ANN methods. To complement our partition-level evaluation, we compare CwA with optimized ANN systems on CPU and GPU. For this evaluation, we use dense CwA: for each query, CwA scores all |C| learned cell representatives in one dense operation, selects the highest-scoring inverted lists, and searches only those lists. In our CPU experiments, vectors in the selected lists are scored with native multi-bit RaBitQ and optionally reranked exactly. On GPU, SIFT/DEEP use residual PQ within the selected lists followed by a short exact reranking stage [Jégou et al., TPAMI 2011], while Text2Image/LAION use 9-bit RaBitQ [Gao et al., PACMMOD 2025]. The matched K-Means control uses the same list scorer and reranking pipeline.

The three compact tables below report QPS at recall@10 = 0.90. For each method, we use the highest-throughput configuration found at this target in our hyperparameter sweep. For ID search on CPU, we compare with GLASS [Wang, 2025; HNSW: Malkov and Yashunin, TPAMI 2020], a state-of-the-art HNSW method, and DiskANN [Subramanya et al., NeurIPS 2019]. For OOD search, following the AC’s request, we compare with RoarGraph [Chen et al., PVLDB 2024], a state-of-the-art OOD method. On GPU, we compare with CAGRA [Ootomo et al., ICDE 2024], the leading GPU ANN method. Graph baselines use the VIBE benchmark configuration and hyperparameter grids [Jääsaari et al., 2025]; for CwA, we sweep the number of clusters and compression budgets.

CPU ID CwA K-Means GLASS DiskANN3
SIFT 22,932 21,430 53,570 28,013
DEEP 23,540 21,592 41,758 26,842
CPU OOD CwA K-Means RoarGraph
LAION 7,858 3,594 4,049
Text2Image 14,712 9,495 7,793
GPU dataset CwA CAGRA
SIFT 4,181,459 3,575,814
DEEP 2,975,032 3,251,156
Text2Image 1,384,134 1,121,218
LAION 959,396 439,912

The CPU ID result is expected: the advantage of graph indexes over IVF methods in this regime is well documented by the VIBE benchmark [Jääsaari et al., 2025].

The new CPU QPS measurements use one thread on an Intel Xeon Platinum 8462Y; the Intel Xeon 6342 used in the submission was unavailable. At 1M scale, GPU throughput is measured on one NVIDIA H100 80 GB GPU; CwA timings include routing, compressed list scoring, candidate selection, and exact reranking when used.

We thank the reviewer for prompting this practical evaluation and will add these state-of-the-art comparisons to the main body of the paper.

Authors · CommentOpenReview ↗

Dear Reviewer,

We wanted to briefly follow up as the discussion period approaches its end. In response to your questions, we reported an ablation measuring CwA’s sensitivity to a mismatch between the training- and deployment-query distributions. We also discussed the requirements for representative training queries and offline nearest-neighbor supervision. Finally, we provided comparisons with full-database graph indices, including HNSW, DiskANN, RoarGraph, and CAGRA.

We would appreciate knowing whether our response addresses your concerns, or whether any point would benefit from further clarification or a targeted additional analysis within the remaining discussion period.

Thank you again for your time and consideration.

Best regards, The Authors

Reviewer mpkm · CommentOpenReview ↗

Thank you for the detailed response and the additional experiments. The new comparisons with HNSW, DiskANN, RoarGraph, and CAGRA address my second concern. However, my main concern remains that CwA requires representative deployment queries and their offline ground-truth nearest neighbors. In the additional mismatch experiments, CwA performs substantially worse than K-Means in every reported setting when the training queries are not representative of the deployment queries. This dependence limits the generality and practical applicability of the method. Therefore, I maintain my original rating.

Authors · CommentOpenReview ↗

Dear Reviewer,

Thank you for highlighting this limitation. We find that CwA can preserve most of its matched-query advantage while gracefully recovering K-Means performance under query-distribution shift.

We introduce an adaptive policy that uses the original CwA router and partition for matched queries and falls back to a query-oblivious K-Means partition for detected mismatched queries. Following RoarGraph's Mahalanobis characterization of distribution shift, we use regularized Mahalanobis distance to detect queries outside the training distribution. We set the threshold to the 90th percentile of distances measured on held-out training queries: queries above this threshold use K-Means; the others use CwA. No deployment-test queries are used for calibration.

The main result is that Adaptive CwA outperforms both fixed choices on a mixed workload. The following table reports Recall@10 at 1% selectivity for an equal mixture of matched and mismatched queries.

Dataset KK Adaptive CwA CwA only K-Means only
LAION 256 0.801 0.753 0.701
LAION 1024 0.909 0.857 0.845
Text2Image 256 0.812 0.787 0.762
Text2Image 1024 0.927 0.908 0.898

Adaptive CwA is best in all four settings, improving over CwA-only by 0.019--0.052 recall and over K-Means-only by 0.029--0.100. The following breakdown shows the source of this gain: the policy retains most of CwA's specialization advantage on matched queries while reverting close to K-Means on mismatched queries.

Dataset KK Matched: Adaptive Matched: CwA Mismatched: Adaptive Mismatched: K-Means
LAION 256 0.793 0.815 0.810 0.810
LAION 1024 0.895 0.908 0.923 0.923
Text2Image 256 0.780 0.791 0.845 0.855
Text2Image 1024 0.907 0.912 0.947 0.957

At the 90th-percentile threshold, the detector redirects approximately 10% of matched queries and detects 100% of mismatched LAION queries and 97.4% of mismatched Text2Image queries. Consequently, matched recall decreases by only 0.005--0.022, while mismatched recall equals K-Means on LAION and is within 0.010 on Text2Image.

The fallback maintains both the original CwA and K-Means partitions. They may reference a shared vector store, or the compressed codes may be stored in both partition orders to provide contiguous scans. Even with two 9-bit RaBitQ layouts, storage remains below one standalone RoarGraph index: 1,152 versus 2,231 bytes/vector on LAION and 450 versus 982 bytes/vector on Text2Image.

Thus, specialization need not imply brittle deployment: use CwA when the workload matches and gracefully revert to K-Means when it does not. If representative training queries are unavailable altogether, K-Means remains the appropriate default.

We appreciate that your question led us both to clarify this limitation and to develop and evaluate a concrete mitigation. If permitted, we will add the tradeoff, adaptive policy, and associated storage cost to the revised paper.

Comments on the paper

1 comment
Authors · CommentOpenReview ↗

We thank the Area Chair and reviewers for the fruitful and constructive discussion. Their feedback prompted additional experiments that provide a more complete practical evaluation and help characterize the scope and limitations of CwA.

First, we evaluated CwA in practical ANN pipelines with PQ and RaBitQ secondary scoring and exact reranking, and compared it with full-database graph methods including GLASS/HNSW, DiskANN, RoarGraph, and CAGRA. CwA’s gains persist with compressed scoring. While graph methods are faster on the CPU ID benchmarks, CwA achieves state-of-the-art GPU throughput on three of the four benchmarks, outperforming CAGRA on SIFT, Text-to-Image, and LAION. In the OOD CPU setting, CwA outperforms RoarGraph by 1.9× on LAION and 1.9× on Text-to-Image at recall@10 = 0.90, while also substantially improving over its matched K-Means pipeline. We also reported construction time for the missing configuration at 10M/65k. CwA has a clearly higher construction cost than graph-based alternatives, which we recognize as a limitation and will surface to the main paper.

Second, the matched-router ablations separate the contributions of routing, partitioning, and balance. A query-aware router improves K-Means, while CwA consistently improves further by adapting the database partition under the same supervision. Balanced K-Means and NeuralLSH with the matched router also remain below CwA. We further clarified the role of alternating optimization and the dependence on the number of clusters.

Finally, we provided further details on the provenance and cost of the representative training queries and their offline nearest-neighbor labels, and quantified sensitivity to query-distribution mismatch. As a complementary deployment safeguard, we evaluated a lightweight fallback that redirects detected shifted queries to a query-oblivious K-Means index without modifying the core CwA method. This fallback retains most of CwA’s matched-workload advantage while recovering or closely approaching K-Means under detected shift, without using deployment-test queries for calibration. We will clearly present the workload assumption and the associated costs and trade-offs.

We appreciate the Area Chair’s guidance and the reviewers’ careful engagement. The discussion enabled a broader empirical assessment and a clearer characterization of where CwA is effective and what its practical costs are. We will incorporate these results and clarifications into the final version.

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

Missing a submission?

Loading the discussion…