How Search Learns Where to Spend Its Work
An index makes a large collection navigable. Search decides which parts deserve attention—and past queries can teach it to spend that attention better.
Outline
With millions of records available, how does a search system decide where to look and how much to examine?
An index organizes stored records into places a query can search, using cheap clues to choose a small set of candidates for comparison. [4] Offline searches on past queries can then teach a model to choose better destinations, supply a better search vector, or predict how many partitions to inspect on later queries. [8, 9, 15]
Ask a search system for a useful passage, and it may have millions of passages available. Scoring them all spends work on every possible answer. An index gives the query cheaper clues about where to spend that work: a word leads to a list of document IDs, a representative vector leads to a cluster, and a graph connection reveals another candidate to inspect. These are different meanings of “where.” [1, 4, 6]
For a live query, the core decisions are where to look, how much to inspect, and which examined records belong in the results. A routing rule selects entrances; an exploration budget limits the lists or neighborhoods searched; comparisons among the exposed records produce the current best matches. There is also a separate way to save work once results exist: use a valid score bound to rule out candidates that cannot improve them. Skipping a region because it looks unpromising can miss a result; skipping it because a valid bound proves it cannot beat the current results preserves those results under the specified scoring rule. [4, 8, 9, 15, 16]
Learning connects this live search to work done earlier. Offline, training queries are searched against the stored collection to discover their best matches or the exploration needed to recover them. Those targets train a model whose parameters persist. Later queries use its predictions to rank destinations, alter the vector sent into an index, or choose a search budget; the selected records still have to be retrieved and compared. [8, 9, 15]
How can search inspect less
and still find the best match?
Comparing everything costs work.
The best match may be in the part you skip.
Compare everything
Every item gets a chance.
Search a small part
A promising-looking route can miss it.
Learn where to look
Past queries can guide a better route.
Following these decisions through code reveals what it means to search efficiently: spend comparisons where they are likely to recover the desired results, and omit work when a valid bound makes it unnecessary. We will first trace ordinary index navigation, then see exactly what past-query supervision changes. The final step is to connect those choices to the result we actually want: eligibility and relevance determine which records matter, while storage, placement, and scheduling determine how selected work becomes waiting time. [20, 21, 22, 23, 24]
The index creates places; the query chooses which to inspect
In a word index, each term points to a postings list: document IDs containing that term. A Boolean query such as Brutus AND Caesar takes the intersection of two lists. The lists overlap because the same document can contain both words. Stanford’s information-retrieval lecture gives a further ordering decision for multi-term AND queries: begin with the least frequent term, producing a small intermediate set that subsequent intersections can shrink. This ordering reduces the intermediate work needed to find the intersection. [1]
A vector index creates different clues. An embedding represents an item as a numerical vector; a chosen distance or similarity function defines which vectors count as close. An inverted-file index, or IVF, groups database vectors into lists and associates each list with a representative, often its centroid. Searching the representatives produces list IDs; searching those lists produces database-vector IDs. The two outputs refer to different objects. [4, 5]
Faiss’s Python IVF tutorial constructs 100 lists and asks for four results per query. In this exact excerpt, d is the vector dimension; the tutorial’s synthetic database array, xb, contains 100,000 vectors. [2]
nlist = 100
k = 4
quantizer = faiss.IndexFlatL2(d) # the other index
index = faiss.IndexIVFFlat(quantizer, d, nlist, faiss.METRIC_L2)The caller then trains the index on xb, adds xb, and receives D, I = index.search(xq, k). Training establishes the representatives; adding assigns database vectors to lists. add_with_ids asks the quantizer for each vector’s list assignment, and IndexIVFFlat::add_core stores that vector’s ID and float bytes in the assigned list. [3, 25] A query does not regroup the database. [2, 3]
Inside IndexIVF::search, the representative search produces IDs that become the next operation’s input. This exact excerpt follows them through list prefetching to search_preassigned. sub_x contains a batch of query vectors, cur_nprobe is the number of lists requested, and idx receives the representative IDs. [3]
quantizer->search(
sub_n,
sub_x,
cur_nprobe,
coarse_dis.get(),
idx.get(),
params ? params->quantizer_params : nullptr);
double t1 = getmillisecs();
invlists->prefetch_lists(
idx.get(), static_cast<int>(sub_n * cur_nprobe));
search_preassigned(
sub_n,
sub_x,
k,
idx.get(),
coarse_dis.get(),
sub_distances,
sub_labels,
false,
params,
ivf_stats);Here idx becomes a set of inverted-list keys. The consumer obtains the stored codes and IDs for each key and passes them to a scanner. Along this tutorial’s uncompressed, squared-L2 path, the scanner interprets each code as a float vector and compares that vector with the query. [26] It maintains the best k results and writes their distances and database IDs into the caller’s output arrays. The representative distances choose the lists; they do not substitute for distances to the stored items. The excerpt omits allocation and dispatch setup, and this trace does not cover every Faiss index or scanner variant. [3]
Consider a separate, hand-calculated illustration with one-dimensional vectors, squared L2 distance, and k=1. The IDs and values below are schematic data, not tutorial output or an executed trace:
Query: q = [0.0]
Stored index
list 0, representative [ 0.5]: ID 12 → [ 0.2], ID 41 → [ 0.8]
list 1, representative [-0.6]: ID 73 → [-0.1], ID 99 → [-1.1]
nprobe = 1
Representative search: squared distances 0.25 and 0.36 → list keys [0]
List scanner: ID 12 → 0.04; ID 41 → 0.64
Returned arrays: D = [[0.04]], I = [[12]]
nprobe = 2, with both lists scanned in full
List keys [0, 1] also expose ID 73 → 0.01 and ID 99 → 1.21
Returned arrays: D = [[0.01]], I = [[73]]ID 12 is the correct winner among the vectors read on the first search. ID 73 is the true nearest vector in the full database, but its list was not selected. Increasing nprobe from one to two changes which records enter the comparison, exposing the better answer without changing any stored vector or distance calculation. This is IVF’s entrance failure: exact scoring inside the selected lists cannot recover an item that never enters the comparison. Faiss’s documentation identifies precisely this failure condition. [5]
The same query. A wider search.
Keep the stored vectors and scoring rule fixed. Change only the number of lists opened.
Query: 0 · List representatives: 0.5 and −0.6 · Return one item
Squared distance 0.04
The closer representative selects list 0. The closest item sits in list 1.
Squared distance 0.01
Opening list 1 brings the closest item into the comparison.
At a larger scale, suppose a million vectors occupy 1,000 equal-sized lists and a query probes ten. With exhaustive representative search and uncompressed vectors, the simplified comparison count is 1,000 + 10 × 1,000 = 11,000: representatives plus list contents. This is arithmetic under the Faiss paper’s explicit assumptions, not a measured speedup. Real lists can be unequal, so nprobe counts lists rather than vectors, bytes, or milliseconds. The saving comes from replacing a whole-database scan with two connected operations: choose representatives, then examine the items they expose. [4]
A graph spends its budget along a route it discovers
A graph index makes each stored vector a node with links to other nodes. Instead of selecting a fixed collection of lists, the query discovers candidates by opening links from nodes it has already reached. Hierarchical Navigable Small World, or HNSW, organizes these links into layers: it first navigates the upper layers greedily, passing the best entry point down to the next layer, then conducts a broader search at the bottom. [6]
The original HNSW paper separates three roles in that bottom-layer search. A visited set records discovered nodes, a candidate queue determines which node to expand next, and a retained set holds the nearest elements found so far. Expanding a candidate exposes its unseen neighbors. A promising neighbor can enter both the candidate queue and the retained set; the retained set is trimmed to the exploration width ef. A node can therefore be evaluated without remaining in the retained results. The paper stops when the nearest queued candidate is farther away than the worst retained element. [6]
That mechanism explains why exploration width is not a literal count of all vector comparisons: one expansion can expose several neighbors, and upper-layer navigation also consumes work. The pinned Faiss implementation separates a bounded candidate frontier from the result handler. Its ordinary bounded path gives that frontier room for max(efSearch, k) entries. One stopping rule counts stored frontier distance values better than the candidate just removed and stops when that count reaches efSearch; the alternative stops after the expansion-step count exceeds efSearch. [7, 27] These are implementation-specific exploration rules, not a proof about every unseen neighborhood. [7]
In IVF, a probe budget opens a chosen number of lists. In a graph, a broader frontier keeps more routes available as the query discovers the neighborhood. The frontier describes what the current route has discovered, rather than bounding the quality of every unreached node. Its route takes shape during the query: expanding one node reveals new neighbors, and their scores change which node is expanded next. [6, 7]
Past queries can teach better directions through the same collection
The IVF example leaves a practical question: could the search choose the better list before paying to open both? Training queries provide a way to learn which destinations tend to contain their best matches. With the partitions held fixed, one method learns new representative vectors, and another predicts the best score available inside each cluster. A third approach predicts a replacement search vector for an existing index, changing both its entrance choices and its within-list ranking. Learning helps direct the search before its candidates become final results. [8, 9, 13]
A 2024 learning-to-rank method takes the first approach: keep the database partitions fixed and rank the lists that contain the desired neighbors ahead of lists that do not. It performs exact maximum-inner-product search on training queries, labels the partition containing each query’s best vector, and trains a linear scoring function Wq. Its softmax cross-entropy loss turns the list scores into probabilities and penalizes a low probability for the labeled partition. Each row of W becomes a learned representative for one partition, replacing the original representative without moving its stored vectors. This supervision comes from offline exact search, not user clicks. [8]
In the authors’ MS MARCO experiment with MiniLM embeddings and standard KMeans, probing 1% of the partitions increased top-1 accuracy from 0.779 to 0.940. The comparison holds the partitions and number of probed partitions fixed and measures whether they contain the exact best vector; it does not compare equal latency or human relevance. Queries were split 60/20/20 into training, validation, and test sets. The learned objective targets top-1; the paper also evaluates coverage of larger exact-neighbor sets. [8]
AMIPS, a 2026 method, asks a different predictive question: What is the highest inner-product score this particular cluster can supply? For cluster j, its target is max(q · y) over keys y stored in that cluster. A key is simply a stored database vector. SupportNet predicts that maximum score for each cluster; sorting its predictions chooses which clusters to search. A cluster’s average location and its best attainable match are different summaries, which gives learning something consequential to change. [9]
The distinction is visible geometrically. Scoring a centroid asks how well the cluster’s average vector aligns with the query. Scoring its best key asks how far the cluster reaches in the query’s direction. A cluster with a less aligned centroid can extend far enough to contain the strongest match; the AMIPS paper illustrates exactly this reversal. SupportNet learns to predict that best attainable score, so its routing order can differ from the centroid order even though the clusters and their stored keys remain the same. [9]
A region’s average can hide
its strongest match.
For a fixed query, each dot is one stored vector’s inner-product score. A region’s mean and its maximum can favor different regions.
Find each region’s winner
Exact search supplies a best key and its score for each training query and region.
Train SupportNet
Learn the score function and match its input derivative to the winning key.
To inspect SupportNet’s training in more detail, follow the target arrays. For every query, preprocessing finds the highest-inner-product key separately within each cluster, converts the local winner’s index back to a global row number, and stores those row numbers in topk_indices. Despite the name, that array’s second axis means one best key per cluster, not a global top-k list. [10] The data loader gathers those keys and computes their query inner products. [28]
Here is a two-cluster training example with one query. It is a constructed illustration of those array meanings; the key vectors are unit length, and the scores are calculated from the stated query:
query [B=1, d=2] = [[1.0, 0.0]]
topk_indices [B=1, c=2] = [[2, 7]]
target [B=1, c=2, d=2] = [[[0.6, 0.8], [0.8, 0.6]]]
score [B=1, c=2] = [[0.6, 0.8]]Key 2 is the best key within cluster 0; key 7 is the best within cluster 1. The score target tells the learner that cluster 1 can supply the stronger match. A hypothetical prediction [0.58, 0.77] would preserve that ordering. This is an example of the routing decision, not a reported model inference.
As long as the same key remains the unique winner, changing the query changes the maximum score according to that key’s coordinates. For a finite set of keys, the exact maximum locally equals q · winning_key, so its derivative with respect to q is the winning key. Ties can make that exact function nondifferentiable. SupportNet learns a score function and matches its input derivative to the target key; a learned approximation still makes a prediction. KeyNet instead learns the key vector directly. [9]
The training kernel obtains a predicted score and a predicted key-like vector, then measures each against its target. This exact excerpt shows the two squared-error losses and their weighted sum; the subsequent update changes the model’s parameters. [11]
query = batch["query"]
pred_score = model(query) # [batch, num_cls?]
pred_target = model.gradient(query) # [batch, num_cls?, dim]
if pred_score.ndim == 1:
pred_score = pred_score[:, None]
pred_target = pred_target[:, None]
gt_score = batch["score"] # [batch, num_cls]
gt_target = batch["target"] # [batch, num_cls, dim]
score_loss = optax.squared_error(pred_score, gt_score).mean()
target_loss = optax.squared_error(pred_target, gt_target).mean()
total_loss = score_weight * score_loss + target_weight * target_lossThe offline loop ends with updated model parameters. On a later query, the trained model predicts scores that the router can use before inspecting the keys in a selected cluster. In the router evaluation, argmax(pred_score) selects a cluster, and routing metrics compare predicted cluster scores against the exact per-cluster score targets. [11]
KeyNet directly predicts a vector near the original query’s best key; that prediction replaces the query passed to a separately constructed IVF index over the original keys. In this single-cluster training variant, “single cluster” describes the model’s supervision; the downstream IVF index still has its own partitions. The imported OTT models expose both predictions through a method named gradient: SupportNet computes input derivatives, whereas KeyNet runs a vector-valued forward pass. The shared API name does not mean both models require a backward pass at inference. [9, 12, 14]
In faiss_eval_step, the predicted vector crosses into Faiss as a NumPy array. This exact excerpt compares the original and replacement queries on the same index; the two searches may receive different probe budgets. [11]
natural_query = batch["query"] # [batch_size, dim]
projected_query = _project_queries(model, natural_query)
assert projected_query.shape == natural_query.shape
natural_query_np = jax.device_get(natural_query)
projected_query_np = jax.device_get(projected_query)
_, natural_indices_np = utils.search_index(
faiss_index, natural_query_np, k=max_k, nprobe=natural_nprobe
)
_, projected_indices_np = utils.search_index(
faiss_index, projected_query_np, k=max_k, nprobe=projected_nprobe
)_project_queries returns model.gradient(query). The helper builds an inner-product IndexIVFFlat over the original keys, then sets index.nprobe and calls index.search with whichever query it receives. Consequently, replacing the query changes both representative selection and within-list scoring. This helper does not restore the original query’s ranking with a final original-query rerank. Its returned IDs are evaluated by whether they include the original query’s exact top-1 key. [11, 13]
AMIPS’s Recall@k asks whether that single original top-1 key appears among the mapped query’s first k retrieved keys. It is not the overlap of two top-k sets. When k is 0.1% of HotpotQA’s roughly 5.2 million keys, the allowance is about 5,200 candidates. Its router experiments compare model-plus-search FLOPs—floating-point operation counts, rather than elapsed time. In the ten-cluster Quora experiment, the centroid baseline remains favorable in the low-cost regime. Learning adds inference work, so its benefit depends on how much subsequent search it saves. [9]
A good direction still needs a search budget
Choosing a promising destination answers where to look; it leaves open how far down the ranked list of destinations to go. Two queries can use the same ranking of clusters yet need different numbers of probes. QBAT learns that budget. Offline, it profiles queries with known exact neighbors, recording recall at different numbers of searched partitions. At runtime, its clustering-based predictor uses the normalized distance to the closest centroid and the spread of a selected range of centroid distances to estimate how many partitions to scan. Extracting those features requires an initial centroid search; a prediction beyond that initial pool can require expansion. [15]
The training objective determines what “enough” means. QBAT’s performance mode minimizes aggregate search budget while meeting an average recall target; difficult queries may receive less work to benefit the average. Its consistency mode instead labels each training query with the budget needed to reach the desired recall for that query. The learned predictor then estimates those labels on new queries. [15]
That last step is prediction rather than certification. The paper uses quantile regression for one predictor and evaluates consistency with mean absolute error relative to the recall target, rather than establishing that every future query will achieve it. The resulting budget controls the amount of work downstream: queries whose centroid clues suggest an easy search can scan fewer partitions, while those suggesting dispersed neighbors can receive more. The same index can therefore devote different amounts of exploration to different queries. [15]
Current results can make some remaining work unnecessary
A learned budget predicts how much exploration will be useful. Ranked word retrieval also offers a way to rule out work using the results already found. Once a top-k heap is full, its lowest retained score defines an entry threshold, τ. Suppose valid index metadata proves that every candidate in an unread block has score at most U. If U < τ, none can enter the current top-k. The strict inequality avoids a tie-breaking ambiguity. This is a deduction from an upper bound, not an estimate that the block probably contains nothing useful. [16]
Block-max methods store information that bounds term-score contributions over blocks of document IDs. In BM25, repeating a term yields diminishing score gains toward a limit; this saturation helped make score bounds practical in Lucene. Lucene retained term-frequency/document-length pairs rather than committing the index to one numeric impact score. Those pairs support bounds when scores rise with increasing term frequency and decreasing document length—the monotonicity the implementation assumes. Negative scores also conflicted with its WAND skipping logic. The guarantee belongs to the applicable scoring rule and bound. [16, 17]
For a hand-calculated example, let the current three results have scores [12, 10, 8]. A block with a valid maximum score of 7 cannot change those top three. A block with predicted score 7 but no valid maximum bound might contain a document scoring 11. The same numerical estimate has different consequences depending on what it establishes.
Preserving top hits also differs from counting all matches. A skipped block may contain documents that match the query but cannot rank highly enough. Lucene’s historical implementation report identifies the resulting hit-count issue; Elastic’s 2019 explanation says exact counting and aggregations require visiting their matches. For the bounded scoring rule, however, the current results themselves become a search clue: as better results raise the entry threshold, more blocks can be ruled out without scoring their documents individually. [16, 17, 18]
The target determines whether the saved work was worth saving
To say that a search preserves or misses results, first specify the result set it aims to recover. For approximate nearest neighbor (ANN) search, ordinary recall@k uses the exact top-k under a fixed corpus and distance function as its reference. Recall is the fraction of those reference items recovered. Averages can hide a difficult tail. VIBE’s benchmark selected the fastest configurations reaching at least 90% mean recall over its 1,000 test queries. On the 100 hardest queries by its relative-contrast measure, Glass averaged 81% on arxiv-nomic and 83% on landmark-nomic; its easiest-query averages were nearly 100%. These are subgroup means at default k=100, not guarantees or failure rates for an individual query. [19]
Filters can change the reference set itself. Searching for the best eligible items is different from finding a few globally best items and deleting the ineligible ones. Post-filtering may leave too few candidates; removing ineligible graph nodes before traversal can cut paths to eligible nodes. A study of attribute-filtered ANN distinguishes those effects from approaches that integrate filtering into the search. The search must preserve a route to the qualified candidates, not merely suppress disallowed output rows. [20]
Even complete agreement with the vector reference does not establish relevance to a person. Semantic Recall for Vector Search examines this directly: on 8.83 million MS MARCO documents, it computed exact inner-product top-100 results for 250 queries using 3,072-dimensional Gemini embeddings, then used Gemini 2.5 to judge which of those neighbors were relevant. A subset was cross-checked with Claude Haiku 4.5. The study found many close but irrelevant neighbors, whose very similar scores made their exact ordering difficult to preserve. [21]
The distinction changes what extra search effort buys. In the authors’ ScaNN tuning experiment, changing the objective from traditional recall to semantic recall reduced their bytes-read search-cost objective by 14% while maintaining the baseline’s semantic recall of 98.93%. This is an author-reported result for relevance judgments within the exact top-100, not a 14% latency gain or an improvement in generated-answer correctness. It demonstrates a concrete mechanism: retrieving more irrelevant near-ties can improve mathematical recall without retrieving more of the judged-relevant subset. [21]
Machines and storage turn selected work into waiting time
After candidate selection, execution still determines how long the query waits. On SSD, a graph record can contain a vector and its neighbor IDs, so expanding a promising candidate may require a read. The PipeANN paper distinguishes retained search breadth from I/O width—the number of reads outstanding at once. Its PipeSearch method overlaps reads with exploration and fills available pipeline slots from the current candidate pool. Because later discoveries can change which candidates are useful, concurrency can also initiate reads that turn out to be unnecessary. [22]
Distributed search introduces another handoff. In Efficient Distributed Selective Search, the broker first selects logical shards, maps them to the machines hosting them, places search requests in their queues, and later merges returned result lists. The study uses a discrete-event simulator incorporating computation, queues, and network delays. Its larger-machine configurations show why reduced total work need not imply lower latency: exhaustive search can divide work across more small shards even while selective search retains a throughput advantage. This is evidence from that simulation, not a current deployment measurement. [23]
A separate data-placement study explains why balancing total machine load is not enough. If shards commonly needed by one query share a server, that query’s tasks can contend there; spreading those shards across servers can expose more parallelism for read-heavy, data-parallel work. Choosing fewer shards answers which work to perform. Placement and scheduling determine how that work overlaps. [24]
Conclusion
An index gives a large collection a navigable structure. A search turns that structure into a particular expenditure of work: open these lists, expand these nodes, compare these records. The IVF example shows why that expenditure matters even with exact candidate scoring: changing the places inspected changes which item can win. Graph traversal makes the choice incremental, while valid score bounds let current winners rule out some remaining work.
Past-query supervision adds another resource: experience searching the collection. Offline targets teach a model which destinations contain good matches, what score a cluster can supply, what vector to send into an index, or how much exploration a query needs. Its persistent parameters carry that experience into later decisions. The collection can stay in place while the distribution of search effort changes.
This gives us a concrete way to understand a learned search method: identify the decision it changes, follow that decision to the records actually inspected, and ask what the resulting work recovers. The answer needs both a target and a cost. Recovering exact vector neighbors, finding eligible records, and satisfying relevance judgments are different targets; comparisons, bytes read, and waiting time are different costs. The opportunity is to learn navigation that spends less on unhelpful routes and more where the desired results can be found.
Limitations
The code excerpts and dataflow descriptions are static inspections of the pinned revisions; no source code, tests, training, or benchmarks were executed for this article. The toy arrays and distances are explicitly constructed illustrations. Faiss’s alternative quantizers, compressed scanners, specialized search paths, and additional scan limits can change the operation; the IVF trace here follows uncompressed vectors and the stated metric.
Learned-routing results remain author-reported. The AMIPS paper, released code, and associated first-party explanations are one research family, not independent replications. The AMIPS method assumes a representative query distribution and computes search targets offline. [9] When num_noise_samples > 0 (the default is 0), its released preprocessing augments queries before randomly splitting pooled rows, so an original query and its noisy relatives can fall on both sides; this is a code-derived evaluation risk, not a measured overlap rate or proof that every historical paper experiment used that release. [10] Generalization to changed intents or a changed key database, and the query volume needed to repay offline target-generation and training costs, remain unestablished by this article.
The cited benchmarks use different targets and cost units. VIBE’s throughput measurements use one physical CPU core and the shortest time across five runs per configuration; they are not online tail latency. Semantic relevance depends on fallible, binary LLM judgments restricted to an exact-neighbor subset, and the cited study does not evaluate generated answers. The Lucene and Elastic accounts describe historical implementations. The mechanisms explain which claims require testing, rather than supplying one universal index, probe count, or recall threshold. [17, 18, 19, 21]
Citation and numerical checks used independent AI reviewers alongside mechanical integrity checks. The receipts identify these AI judgments separately from human review.
All cited claims containing numerical expressions have verified claim/source verdicts. This summarizes the existing citation audit, not an independent numerical reproduction.
85 of 85 marker instances bound & audited: 44 stated · 41 grounded
Source-attributed numerical claims only; illustrative values and URL identifiers excluded.
The relevance-screening and writer working-set counts were not recorded; unavailable stages are omitted.
Evidence reviewed through 2026-11-09; published 2026-11-09.
These checks establish citation traceability and internal consistency. They do not independently reproduce the underlying experiments, guarantee that third-party figures are correct, or ensure that volatile values — prices, model versions, benchmark results — have not changed since retrieval.
Faiss code revision: 29782a03747addd1122bf040b6c3488c8d669fe9.
- Faiss. Python IVF-Flat tutorial.
- Faiss. IVF assignment and query-to-scanner handoff, including the quoted query handoff and list scanning and result output.
- Faiss. IVF-Flat storage.
- Faiss. Float-vector scanner.
- Faiss. HNSW bounded-search setup and expansion and stopping.
- Faiss. Frontier distance-slot counting.
- Douze et al. The Faiss Library, §5.1, especially equation 18.
- Faiss. Faiss indexes, cell-probe methods and IVF sections; frozen capture available through November 9, 2026.
- Malkov and Yashunin. Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs, Algorithms 2 and 5.
- Vecchiato et al. A Learning-to-Rank Formulation of Clustering-Based Approximate Nearest Neighbor Search, §§1, 3–4 and Table 1, 2024.
- Olausson et al. Amortized Maximum Inner Product Search with Learned Support Functions, §§1, 3–4 and appendices, 2026.
AMIPS code revision: 2a2d4d3a0f47bdb8652eb86b57381ba8728bcfb9.
- AMIPS. Per-cluster targets and augmented-pool splitting, including split order.
- AMIPS. Key gathering and score construction.
- AMIPS. Training losses and router evaluation, and projected-query Faiss consumer.
- AMIPS. Model imports and model construction.
- AMIPS. IVF construction and search helper.
OTT dependency code revision: e241ec3d428909c9978e0af9e41cb440e14249dd.
- OTT. ICNN input derivatives and KeyNet vector forward pass.
- Bae et al. QBAT: Model-based Query Budget Autotuner for Clustering-based Approximate Nearest Neighbor Search, §§4.1–4.4 and §5.2.
- Dimopoulos, Nepomnyachiy, and Suel. Optimizing Top-k Document Retrieval Strategies for Block-Max Indexes, §§1–2.
- Grand et al. From MAXSCORE to Block-Max WAND: The Story of How Lucene Significantly Improved Query Evaluation Performance, 2020, especially implementation and total-hit-count discussions.
- Elastic. Faster Retrieval of Top Hits in Elasticsearch with Block-Max WAND, 2019; historical Elasticsearch 7 / Lucene 8 explanation.
- Jääsaari et al. VIBE: Vector Index Benchmark for Embeddings, captured paper revision v3, August 23, 2026; version-pinned primary link, §§5.1–5.2, especially Figure 5.
- Attribute Filtering in Approximate Nearest Neighbor Search: An In-depth Experimental Study, §§1, 4–5.
- Kuffo et al. Semantic Recall for Vector Search, §§4–6.
- Guo and Lu. Achieving Low-Latency Graph-Based Vector Search via Aligning Best-First Search Algorithm with SSD, PipeANN, §§2–3.
- Kim et al. Efficient Distributed Selective Search, §§3–6.
- Baruah et al. Parallelism-Optimizing Data Placement for Faster Data-Parallel Computations, §1 and Figure 1.