Elamur Research

Billion-scale similarity search with GPUs

Paper · 2017 · Jeff Johnson, Matthijs Douze and Hervé Jégou

Summary

A large collection of images becomes searchable by similarity when each image has a numerical representation: a vector describing its content. Given another image, the search system compares its vector with the stored collection and returns nearby entries. This operation sounds straightforward, but its cost becomes substantial when the database contains a billion vectors. Billion-scale similarity search with GPUs investigates how graphics processors can handle that workload efficiently. The paper addresses both exhaustive search, which checks every candidate, and approximate search, which saves time and memory while accepting some missed neighbours.

The central difficulty is that search combines very different kinds of computation. Evaluating distances provides abundant parallel arithmetic. Keeping only the best candidates is less cooperative: familiar selection procedures can involve serial updates, irregular movement of data or repeated visits to a large array. The authors introduce WarpSelect, a procedure that retains candidate values and their positions inside GPU registers. Its small queues perform inexpensive local filtering, with collective sorting and merging reserved for occasions when the retained candidates require reorganisation. This arrangement consumes the input in a single traversal and can accept scores as another computation produces them.

WarpSelect is part of a broader design for arranging search around GPU execution and storage. Exhaustive search uses matrix multiplication for the expensive dot products, then combines distance completion with result selection. Compressed search uses IVFADC, an established indexing approach in which coarse groups narrow the candidate collection and product quantization encodes the remaining vector detail. Lookup tables replace much of the repeated coordinate arithmetic. The authors also explain how temporary arrays, query batches and work distributed across devices affect the complete operation. Their contribution concerns the coordination of these components, as well as the selection algorithm itself.

The measurements establish substantial improvements under specified conditions. At k = 100, WarpSelect reaches 55% of the performance ceiling derived from input-memory bandwidth. For Sift1B, the authors report R@10 = 0.376 with 17.7 µs of search time per query, using 8-byte vector encodings on a single GPU. The earlier GPU comparison gives R@10 = 0.35 and 150 µs. The paper identifies an 8.5× speed advantage at these operating points. Other experiments cover exact retrieval, clustering and Deep1B search. The results also reveal boundaries: selecting more results lowers efficiency, and a fused execution arrangement that helps exhaustive search offers much less benefit during compressed scanning.

The largest application constructs a graph whose edges connect each vector with nearby entries. An experiment covering 95 million Yfcc100M images achieves neighbourhood accuracy above 0.8 in 35 minutes, counting index preparation as well as searches. For a collection containing 1 billion vectors, the reported construction takes less than 12 hours; the machine uses 4 GPUs of the Maxwell Titan X generation. The graph subsequently supports a visual demonstration in which a route between images avoids abrupt local changes. The released implementation, Faiss, makes the search algorithms available for reuse and comparison. These results demonstrate what carefully organised numerical search can accomplish on the specified hardware; they do not imply that every similarity task receives the same acceleration or that approximate answers become exact.

Interesting ideas

Treat storage placement as an algorithmic decision. WarpSelect’s candidate collection occupies registers throughout processing. Achieving that requires a structure whose register accesses can be determined during compilation and whose values can move through predictable lane exchanges. The benefit comes from designing the computation around the fastest available storage, rather than choosing a conventional structure first and deciding where to put it afterwards. Other bounded parallel computations could follow this approach when their persistent state is small enough. The relevant tradeoff includes register consumption and the amount of concurrent work that remains possible.

Use local thresholds to postpone collective repairs. Each lane can reject an incoming value without immediately consulting or reorganising the complete result set. Promising arrivals accumulate in short queues until a condition signals that the warp must consolidate them. This works because the algorithm maintains explicit relationships between local queue heads, the shared candidate queue and the values that must remain recoverable. Similar designs could help streaming computations in which most observations do not change the answer. Their correctness depends on proving that a cheap rejection cannot discard something needed later.

Spend precision according to an object’s role. ADC preserves the incoming query while representing persistent database entries through compact codes. That division is useful because storage pressure comes mainly from the collection that must remain resident, whereas queries can be processed in batches. Distances are estimated without reconstructing every candidate. The reusable idea is to examine whether both sides of a comparison need the same representation. A persistent catalogue and a transient request may justify different storage choices, provided the resulting approximation is measured against an appropriate reference.

Expose candidate coverage as a parameter. IVFADC separates an initial routing decision from comparisons within selected regions. Its probe count specifies how many coarse groups receive detailed attention. This creates an observable relationship between search effort and missed neighbours. Other candidate-selection systems could benefit from making such coverage controls explicit, especially when an early filter determines which answers remain possible. The setting should accompany evaluation results and operational records, because changing coverage changes the search procedure’s effective promise.

Factor a score by its dependencies. The distance calculation contains quantities associated with quantizer entries, quantities that vary with a query and quantities attached to a coarse group. Moving each term to the stage where it actually changes avoids unnecessary repetition inside the busiest loop. This reasoning can transfer to ranking functions with reusable components. It must include a memory budget: precomputing every reusable value may consume storage that the candidates themselves need. The paper’s optional precomputed tables illustrate why arithmetic savings and practical usefulness require separate judgments.

Evaluate an optimisation at the boundary users care about. The authors compare selection primitives independently, but also time complete searches and graph construction. Their graph evaluation includes preparing the index, and its quality check uses exact neighbours for a sample. They likewise test fusion in different search arrangements and reject one version when its overall benefit is limited. This combination is useful elsewhere: a component benchmark explains a mechanism, while a complete-task measurement establishes whether that mechanism improves the intended operation at an acceptable quality level.

Deep dive: Billion-scale similarity search with GPUs

Understand how GPU registers, efficient selection and compressed vectors enable fast similarity search across billion-entry collections. · about 77 minutes to read

How Mova uses it

Mova’s connection to this research is a set of engineering proposals for its Rust implementation. The relevant stages are world, tree, learn and back. The paper supplies ways to represent candidates compactly, restrict detailed comparison, retain promising scores and evaluate approximation. It does not establish that these mechanisms are already implemented in Mova. Any adoption would need evidence from Mova’s own files, execution paths and tests.

The shared concern is transparent candidate handling. An efficient numerical search can help a language system consider fewer objects or store their searchable descriptions more economically. Transparency requires that the objects themselves remain identifiable, that pruning settings can be inspected and that errors can be compared with a reference procedure. The numerical machinery would support those requirements only if Mova preserved the necessary records around it.

Compact searchable knowledge in world

Compiled knowledge associated with WordNet senses or Wikidata entities could include vectors for candidate discovery. Those vectors might be stored as short codes while the corresponding explicit IDs remained available. This would apply the paper’s distinction between numerical representation and returned identity to knowledge representation.

A coded entry would still designate a particular knowledge object. Its approximate distance from a query would provide a reason to consider it, while its identifier would allow Mova to retrieve the actual sense or entity. Compression would alter the material used for candidate ranking, instead of making the identity itself approximate.

ADC offers a concrete arrangement for that proposal. Mova could retain a detailed query representation, score stored candidates through tables derived from compact codes, and resolve the selected candidates to IDs afterward. The paper demonstrates this separation for vector search. It does not show that a nearby entity or sense vector is necessarily the correct linguistic interpretation.

That difference determines the tests. A reference lookup could score the same collection using its uncompressed representations. A compact configuration could then be checked for recovered candidates, changed rankings, storage requirements and execution cost. A separate linguistic test would be needed to determine whether the retained candidates support correct decisions.

The relevant compiled files would therefore need to keep the relationship between codes and IDs unambiguous. Search settings and quantizer definitions would belong to the representation’s specification. A result whose numerical score is reproducible but whose original knowledge identity cannot be recovered would fail the transparency objective behind this proposal.

Coarse routing for ontology and verb-class lookup

A second possibility in world follows IVFADC’s staged candidate restriction. Mova could identify a few broad ontology regions or verb classes before spending effort on finer distinctions within them. The benefit would come from reducing the detailed comparisons performed for a request.

The analogy needs care. IVFADC groups vectors through a learned coarse quantizer. An ontology class or linguistic verb class has a different justification. Mova could borrow the computational separation between routing and detailed scoring without claiming that these categories are interchangeable with numerical clusters.

The number of groups inspected would be a named configuration value. Recording that value would help explain why a candidate was never compared with the query. A failure could arise because routing excluded the relevant group, because detailed scoring preferred another candidate, or because a later stage chose incorrectly.

Tests could vary the routing breadth while holding the candidate collection and evaluation cases fixed. The resulting cost and agreement observations would show whether a narrower search is acceptable. The paper’s contribution is the structure of this tradeoff and the visibility of its control parameter; it supplies no established operating point for Mova.

Retaining dependency-head candidates in tree

Within gparse, an arc-scoring computation could potentially pass scores straight to a bounded selector. In dependency parsing, the candidates here would be possible heads for a token. If the next operation needs only a restricted candidate set, writing every arc score into a complete matrix may create avoidable intermediate storage.

A GPU version could investigate maintaining the strongest candidates while producing scores, following WarpSelect’s integration pattern. Token identities, head identities and scores would have to travel together. The resulting candidate set would remain inspectable even if the complete matrix were absent.

This is a conditional proposal. The paper does not show that Mova’s parser uses the same computation layout or that candidate selection is its dominant cost. It also demonstrates that fusion can reduce parallelism or save little time in a pipeline whose bottleneck lies elsewhere.

A useful implementation comparison would therefore measure scoring and selection together. It would check temporary storage and total cost, but also compare the parser’s final decisions with those obtained from a more complete candidate set. Pruning a possible head is consequential because a later decision process cannot recover an arc that it never receives.

The proposal concerns retaining promising local candidates. It does not establish that a locally preferred head produces the best complete parse. Mova’s parsing stages would remain responsible for whatever structural constraints and subsequent decisions their task requires.

Selecting a fast configuration in learn

The graph experiments suggest an evaluation practice for silver-data production. Mova could choose a fixed sample, process it with a slower reference parser configuration and compare faster configurations against that reference. Each candidate configuration would receive both a cost measurement and an agreement measurement.

Such a record would make the pipeline choice reviewable. It could identify the configuration, sample and comparison criterion, allowing a later run to be interpreted against the same reference. The important transfer is the joint examination of speed and approximation quality.

Agreement should retain its precise meaning. A careful reference procedure can provide a stable target without supplying unquestionable linguistic truth. Matching it shows that an accelerated configuration preserves its decisions to the measured extent. It does not establish that every shared decision is correct.

The paper’s exact-neighbour sample serves the corresponding numerical purpose. Mova could reuse the evaluation pattern while choosing a parsing criterion appropriate to its own stages. No equivalence between neighbour recall and parser agreement is implied.

Explainable reformulation paths in back

A graph over sentences or meaning structures could provide candidate reformulations. Nodes would be explicit formulations, and edges would represent locally similar alternatives. Given a source and a desired destination, a search could seek a sequence whose individual transitions remain small.

The paper’s image-path example motivates this possibility. Its objective discourages a route containing a particularly large local jump. For Mova, such a graph might make an extended reformulation easier to inspect because the intermediate choices would remain visible.

A semantic parsing representation could permit examination of the structural changes between adjacent nodes. A sentence-level graph could expose the corresponding wording changes. Either arrangement would need an explanation of what the distance actually measures.

Small distance alone cannot certify a paraphrase. A route might alter meaning, introduce an unsuitable expression or accumulate changes across otherwise modest steps. Mova would need tests for the linguistic properties that must survive each transition and the complete route.

The graph proposal therefore provides a candidate space and a way to organise gradual movement through it. It does not replace checks on meaning preservation. Its transparency would come from inspectable nodes, explicit transitions and recorded decisions about which changes are allowed.

The problem and its context

Once content becomes vectors, it still has to be searched

The introduction begins with collections of complex content whose useful descriptions are numerical. Images and videos may lack enough metadata for convenient structured queries. Text can also be represented through learned numerical features. Similarity between these representations offers a way to retrieve related material without requiring an explicit relational description of every item.

The paper cites word2vec as a text example, through Distributed Representations of Words and Phrases. Its image examples include convolutional features and descriptors intended for finding instances. These representations differ in their origins, but they produce the same kind of computational object: a real-valued vector.

According to the authors, such vectors often occupy 50 to 1000+ dimensions. Each coordinate contributes to a numerical comparison. The meaning of the coordinates depends on the representation, but the search procedure can operate on their values without interpreting each coordinate separately.

This creates a useful separation of responsibilities. Representation construction determines what information the vectors retain. Search determines how a query can locate candidates according to a specified numerical criterion. The paper addresses the latter responsibility.

For an image query, the desired candidates may be visually related images. Another application mentioned by the authors looks for vectors receiving strong responses from a linear classifier. The general operation is broader than a particular image-distance task: compute many candidate scores and retain those with the appropriate ordering.

That places the research within information retrieval and search. Its immediate target, however, is the numerical operation underlying retrieval. It does not improve the representation’s semantic adequacy or supply a task-level definition of relevance.

Even after representation construction has finished, numerical manipulation remains expensive. Repeated queries revisit a large collection. Clustering assigns many vectors to representatives. Graph construction applies neighbour search throughout the database. The availability of vectors therefore begins another computational problem rather than ending the original one.

GPU arithmetic is only part of the opportunity

The authors argue that GPUs are already involved in producing many of the representations under discussion. Some computations demand considerable arithmetic or data bandwidth. Others are hard to distribute without incurring communication costs or compromising the resulting representations.

The introduction refers to ImageNet Classification with Deep Convolutional Neural Networks in this account of demanding representation computation. The broader point is that scientific workstations may already possess hardware suited to generating numerical descriptions. Using that hardware effectively for subsequent search is a separate design challenge.

Distance evaluation appears promising because many comparisons can proceed independently. A batch of queries against a collection supplies repeated arithmetic over regular arrays. Matrix multiplication offers an efficient route for a major part of this computation.

But a search algorithm contains operations that do not resemble matrix multiplication. Candidate selection may follow branches based on previously observed values. Intermediate results may be too large to retain. Workers may spend time coordinating instead of evaluating useful comparisons.

A GPU’s aggregate capabilities cannot compensate automatically for such arrangements. The paper treats the execution structure and memory hierarchy as constraints that should shape the algorithm. Register layout, shared-memory use, contiguous reads and the granularity of independent work all affect the result.

This is the research problem at the intersection with GPU and parallel computing. The authors seek an implementation in which the difficult stages also fit the hardware, allowing the regular arithmetic to translate into a fast complete operation.

Their performance argument draws on Roofline. A computation is constrained by the resources needed to execute it. For an input selector, reading the values already establishes an unavoidable cost. A useful optimisation target is therefore a clearly defined hardware boundary, rather than an unspecified idea of GPU speed.

Why exact methods become difficult at the target scale

Exact neighbour retrieval has an unambiguous numerical promise: return the closest database vectors under the chosen distance. An exhaustive calculation can satisfy it by considering every entry. Exact indexes seek to avoid some comparisons without losing the guarantee.

The authors identify high dimensionality as an obstacle to both approaches at billion-scale collection sizes. Exhaustive computation requires too much work, while exact indexing does not make the target problem sufficiently cheap. This motivates approximate retrieval.

Approximation relaxes the answer requirement. A method may inspect only part of the collection, represent candidates with reduced detail, or combine these choices. It must then be evaluated by how much of the exact answer it recovers at a specified cost.

Memory is another obstacle. A collection of full floating-point vectors can exceed the capacity of a GPU before the implementation allocates temporary distances or output structures. Search over compact representations therefore serves a capacity purpose as well as a speed purpose.

The introduction separates compact encodings into binary approaches and quantization approaches. Both can permit candidate comparison without reconstructing full database vectors. Avoiding reconstruction is important because otherwise compression might merely move the cost from storage into every search.

The authors choose product quantization based on the earlier comparisons they cite. They also describe overheads associated with non-exhaustive retrieval over binary codes. These observations support their chosen starting point; they do not constitute a universal rejection of binary representations.

Product quantization provides many possible reconstructed vectors through combinations of small dictionaries. That makes a large effective representation set possible without explicitly storing all its combinations. The same factorisation supports efficient distance estimation.

The paper’s contribution is closely tied to this existing structure. Rather than inventing product quantization, the authors arrange its operations so that compressed search works efficiently within GPU storage and execution limits.

An established index still needs a suitable implementation

IVFADC combines a coarse grouping of vectors with more detailed codes for their residuals. A query first chooses coarse groups, then scores encoded entries within those groups. This creates a relatively simple sequence of routing, table preparation, scanning and selection.

The authors discuss several refinements to product-quantization search. Their concern is whether the refinements’ control and storage requirements can be implemented efficiently on a GPU.

The inverted multi-index uses a multi-sequence procedure that the paper regards as difficult to map efficiently. The authors recognise its usefulness for operating points prioritising speed over accuracy, while choosing another arrangement for their implementation.

OPQ receives a more favourable assessment because it can precede the index as a linear transformation of the input. Its work does not require replacing the core scanning procedure with a more complicated query-time control structure.

Other approaches, including LOPQ and polysemous codes, are considered too complex for efficient implementation in this setting. The authors also identify parameter restrictions in a SIMD-oriented IVFADC implementation, particularly its use of relatively few coarse representatives.

These judgments explain why the design does not simply adopt every available indexing improvement. An algorithm may reduce candidate work while making the remaining work harder to execute efficiently. The final cost depends on both quantities.

The resulting approach favours an index with operations that can be expressed through regular arithmetic, small tables and sequential list traversal. More recent indexing ideas are not automatically preferable if their overheads interfere with the hardware arrangement.

Existing selection methods create an awkward mismatch

Keeping the smallest candidate values is a distinct problem from calculating those values. The paper calls this k-selection. It takes an input sequence and returns a small ordered subset with the original positions attached.

Several existing GPU selection approaches revisit their input. Some divide values into partitions, determine thresholds or perform truncated sorting. Repeated scans can be costly when the input is a large global-memory array.

Partitioning introduces other difficulties. The destination of a value may depend on the data, requiring extra work to determine write locations. Synchronisation and irregular transfers can consume time that is absent from a simple arithmetic count.

Some search arrangements cannot provide a reusable complete input array at all. Distances may exist only briefly as intermediate values, or only a tile may be stored at a time. An input stream may also have an initially unknown length. These cases favour a selector that does not depend on revisiting old input.

A small bounded heap is a common CPU choice. It maintains current winners and updates them when a better value arrives. The authors note that the state can fit comfortably in nearby cache for small result sets.

The difficulty on a GPU is the update pattern. A heap’s path depends on its existing values and the new candidate. Different lanes can take different paths, making the instruction stream less uniform and memory movement less predictable.

Parallel priority queues provide another option, but the paper describes costs from small sorts, movement based on data and coordination through kernel execution. The resulting structure can expose more concurrency while still paying substantial overhead.

The fgknn selection procedure provides an important influence. Its merge-based candidate handling suggests a useful parallel operation. WarpSelect retains that inspiration while changing where the state lives, how queues are organised and when collective work occurs.

The graph application makes every stage consequential

A nearest-neighbour graph records local relationships throughout a collection. Each vector is a node, with directed edges leading to its selected neighbours. Constructing it therefore requires neighbour retrieval for the database entries themselves.

The task magnifies implementation overheads. A modest inefficiency repeated across the collection becomes a large construction cost. Extra storage for temporary arrays or graph-building structures may also become prohibitive.

The authors discuss NN-Descent as an earlier graph-construction approach. They identify its additional memory use and random access to the underlying vectors as difficulties for their target scale. Their concern includes the working structures beyond the dataset and completed graph.

Their chosen construction instead uses the searchable index repeatedly. Every vector becomes a query, and the returned IDs provide its outgoing edges. The index compresses the database and permits sequential access to selected candidate lists.

Calling this an all-collection construction does not make its answers exact. The queries still use approximate retrieval when IVFADC supplies the neighbours. The construction is exhaustive in which database items receive searches, while each search may inspect a restricted candidate set.

The paper later evaluates graph quality with exact answers for a sample. That evaluation follows naturally from the application: an entire exact graph would be expensive, but a stable subset can reveal the quality lost through compression and list restriction.

Index preparation also belongs to the construction cost. A graph cannot be obtained from query speed alone if the searchable structure first needs to be built. This motivates the authors’ complete-operation timing boundary.

The method, step by step

Define the numerical answer before choosing the implementation

The search task begins with a vector x and a database containing ℓ vectors. Every vector has d real-valued coordinates. Under Euclidean distance, the result identifies the k entries nearest to x.

L = k-argmin over i = 0, …, ℓ − 1 of ‖x − yᵢ‖₂

The symbol yᵢ denotes database vector i. The norm ‖·‖₂ gives Euclidean length, so the expression inside selection measures the distance from x to yᵢ. The result L contains database positions. The notation k-argmin asks for positions associated with the k smallest distances.

The paper favours this distance because of its role in the representations being searched and its useful algebra. Squaring non-negative distances preserves their order, allowing later computations to use squared distance without changing which neighbours are selected.

Selection is defined independently of vectors. Its input can be any suitable array of scores. The routine returns the retained values and the positions from which they came, ordered by value.

The scores use 32-bit floating-point representation. Positions can use 32- or 64-bit integers. This separation matters because selecting a numerical value is insufficient unless the corresponding database object can also be identified.

Equivalent values have no required internal tie order. A valid result can therefore differ in the ordering of equal-scoring candidates without violating the specified task.

The problem statement also allows different comparison directions. For a similarity criterion whose preferred values are large, the selector would retain the largest values instead. The detailed search development nevertheless uses Euclidean distance.

Queries are normally grouped into batches. The quantity n_q denotes the number processed together. Each query has its own candidate values and selected answer, providing independent problems that can run concurrently.

The selection formulation permits different input lengths across these problems. That flexibility becomes useful when queries inspect inverted lists of unequal size. The method must accommodate the actual distribution of entries, rather than assume every group is equally populated.

Follow preparation and querying as separate phases

The approximate method requires a trained representation and an encoded database before it can answer queries. Coarse representatives determine list membership. Fine dictionaries encode residual detail. Query-time work then chooses lists and evaluates the codes they contain.

Preparing and searching a compressed vector collection

The steps in order.

Preparing and searching a compressed vector collectionStep 1: Learn coarse representatives and residual dictionaries1. Learn coarse representatives and residual dictionariesStep 2: Group database codes by coarse assignment2. Group database codes by coarse assignmentStep 3: Rank coarse representatives for each query3. Rank coarse representatives for each queryStep 4: Construct tables for residual distance contributions4. Construct tables for residual distance contributionsStep 5: Scan selected groups and reduce candidate scores5. Scan selected groups and reduce candidate scoresStep 6: Merge winners and recover database identities6. Merge winners and recover database identities

Preparation establishes the finite sets of possible approximations. Encoding assigns each database entry to one of those possibilities. The stored index then supports repeated queries without repeating the full training process.

Different stages introduce different numerical guarantees. Query-to-centroid distances can be evaluated exactly. Restricting the chosen lists excludes database entries from further consideration. Fine codes approximate the entries that remain.

Keeping these effects separate helps explain accuracy. A candidate may be missing because its list was not searched, or because the approximation changed its ranking. The same observed retrieval error can therefore arise through different mechanisms.

The exact-search implementation remains important inside this approximate pipeline. Finding the nearest coarse representatives is itself an exhaustive comparison against a smaller collection. Quantizer training also contains nearest-representative assignment.

A fast exact operation consequently has more than an isolated baseline role. It supports preparation and routing for the approximate index, while also serving applications whose complete database is small enough for exhaustive retrieval.

Convert exhaustive comparison into matrix multiplication

For a batch, the authors expand squared distance into components that can be computed efficiently. The key identity separates each vector’s norm from the interaction between query and candidate.

‖xⱼ − yᵢ‖₂² = ‖xⱼ‖₂² + ‖yᵢ‖₂² − 2⟨xⱼ, yᵢ⟩

Here xⱼ is query j and yᵢ is database entry i. A squared norm sums squared coordinates. The inner-product brackets denote the sum of coordinatewise products.

Collecting queries as rows of X and database vectors as rows of Y turns all pairwise inner products into a matrix multiplication.

D′ = −2XYᵀ

The matrix D′ contains the scaled inner-product contribution for each query–database pair. The transpose Yᵀ places database vectors in the orientation required for multiplication.

The implementation delegates this calculation to cuBLAS GEMM. Its new work concerns how the remaining distance terms and selection connect to that multiplication.

Database norms can be calculated in advance. Query norms can also be obtained separately. Within a particular query row, the query norm is identical for every candidate, so it has no effect on the ranking.

The following kernel therefore reads D′, adds the appropriate database norm and immediately submits the value to selection. There is no need to write a separate completed-distance array before retaining the neighbours.

The fusion has a precise scope. It combines the completion of the distance expression with the consumption of that value by selection. It does not combine the selector with the internal GEMM calculation.

That distinction reflects the authors’ judgment about an already optimised multiplication kernel. Integrating row-wise selection there might reduce its efficiency. The chosen design instead preserves GEMM and makes its immediate successor more economical.

D′ is written during multiplication and read by the fused consumer. The method therefore retains pairwise intermediate traffic, while avoiding another pass that would arise from separating distance completion and selection.

Bound intermediate storage through tiling

The complete partial-distance matrix can exceed GPU memory. The authors divide the query batch into tiles, with t_q queries in a tile. Each tile supplies an independent search against the database.

The implementation overlaps work from concurrent tiles using streams. Its stated temporary-memory growth reflects this arrangement.

temporary memory = O(2ℓt_q)

The database contains ℓ entries, and t_q is the query-tile size. O describes the scaling of memory use. The factor 2 corresponds to the concurrent tiles discussed in the paper.

Tiling reduces peak working storage without reducing the comparisons needed for an exact answer. This distinction is important: memory feasibility and arithmetic cost are related but separate concerns.

The database direction can also be tiled. When input arrives from CPU memory, pinned buffers allow transfers to overlap with device execution. The aim is to keep useful copying and computation in progress together.

A larger tile supplies more independent arithmetic and uses more intermediate memory. A smaller tile bounds storage more tightly but may expose less work. The method therefore includes scheduling decisions alongside the distance formula.

This becomes a recurring pattern. The authors preserve enough parallel work to use the GPU while limiting how much unfinished output is present at once.

Approximate a vector through coarse structure and residual detail

IVFADC uses quantizers, which map vectors to members of finite representative sets. The coarse mapping approximates the broad location of a database vector. A second mapping encodes the difference left over.

y ≈ q(y) = q₁(y) + q₂(y − q₁(y))

The original vector is y. Its approximate reconstruction is q(y). The mapping q₁ selects a coarse representative from C₁. Subtracting that representative produces a residual, which q₂ approximates using C₂.

The coarse representative supports routing as well as reconstruction. Entries with the same assignment belong to the same inverted list. The residual code distinguishes entries within that broad region.

The paper describes a typical coarse-dictionary size related to collection size.

|C₁| ≈ √ℓ

The notation |C₁| counts coarse representatives, and ℓ counts database vectors. The relationship describes a usual choice, rather than a mandatory property of the index.

K-means trains the coarse representatives. Encoding then assigns database vectors to their chosen representatives and computes their residuals.

Each list entry also needs a database ID. The paper discusses IDs occupying 4 or 8 bytes, which affects the usefulness of very short fine encodings. Code compression alone cannot remove the cost of identifying an entry.

The authors express their fine-code storage consideration through dictionary capacity.

log₂|C₂| > 4 × 8

C₂ contains the possible fine reconstructions. Its base-2 logarithm expresses how many bits are needed to identify one. The comparison reflects the paper’s argument that a fine code should not be shorter than the identification storage already required.

This is a design judgment about the complete entry format. It encourages consideration of both codes and IDs when evaluating the memory benefit of a particular representation.

Preserve query detail with asymmetric scoring

ADC compares the incoming query with reconstructed database approximations. The database remains encoded; the query retains its original numerical detail.

L_ADC = k-argmin over i = 0, …, ℓ − 1 of ‖x − q(yᵢ)‖₂

The result L_ADC identifies the candidates with the smallest estimated distances. The query is x, while q(yᵢ) denotes the approximation represented by database entry i.

The asymmetry concerns representation, rather than the direction of a mathematical distance. Only the stored side undergoes the database quantization used in this expression.

This arrangement is attractive when the persistent collection dominates memory. Queries need not all remain resident indefinitely, while every searchable database entry needs a representation.

ADC on its own can examine every compressed entry. IVFADC adds an earlier candidate restriction by selecting coarse representatives near the query.

L_IVF = τ-argmin over c ∈ C₁ of ‖x − c‖₂

The variable c ranges over the coarse set C₁. The parameter τ specifies how many representatives are selected, and L_IVF contains those representatives.

The coarse comparison uses exact distances. Its purpose is to identify which inverted lists receive further attention. The approximation arises when all other lists are excluded.

The final retrieval rule combines this restriction with ADC.

L_IVFADC = k-argmin over i satisfying q₁(yᵢ) ∈ L_IVF of ‖x − q(yᵢ)‖₂

L_IVFADC is the returned approximate answer. The condition admits only entries assigned to selected coarse representatives. The score still compares the query with a quantized database approximation.

The resulting inverted index stores groups defined by coarse assignment. Searching selected groups becomes a linear scan of their encoded members.

The parameter τ controls candidate coverage. More probing can recover entries from regions that a narrower search would omit, but it requires more scanning. It cannot restore information removed by a coarse fine-code representation.

Construct the fine representation from independent parts

Product quantization divides the residual coordinates into blocks. Each block has its own small quantizer. Combining their choices supplies the fine representation.

The paper uses b for the block count. Its formulation requires d to divide into the chosen blocks, with b taking an even value. This keeps the partition compatible with the stated representation.

A sub-quantizer typically contains 256 representatives. Its selected index fits in a byte. The entire fine code therefore consists of b bytes.

|C₂| = 256ᵇ

The quantity |C₂| counts possible complete fine reconstructions. The exponent b reflects the independent choices across sub-quantizers.

The implementation does not store that many full vectors. It stores the small dictionaries whose combinations define them. This distinction is what makes the representation manageable.

The paper also expresses the stored bytes as positional digits.

code(y) = q⁰(y⁰) + 256q¹(y¹) + … + 256ᵇ⁻¹qᵇ⁻¹(yᵇ⁻¹)

The sub-vector at position r is yʳ. In this storage expression, qʳ(yʳ) identifies its selected dictionary entry. The powers of 256 place each byte in its corresponding position.

A dictionary index must be distinguished from the vector it names. Reconstruction places the selected representative blocks into their coordinate ranges. The positional expression describes the code, rather than arithmetic addition of those blocks.

K-means supplies the sub-dictionaries. Encoding chooses an entry independently for each block. The dictionaries remain relatively small because their individual representative counts are limited.

The GPU implementation accepts b values in multiples of 4 through 64. Actual use also depends on whether the distance-table arrangement fits the available shared memory.

The benefit is therefore joint compression and computational structure. A compact sequence of dictionary choices also tells the scanner how to estimate distance through independent contributions.

Replace repeated coordinate work with precomputed contributions

Within an inverted list, the coarse representative is fixed. The query and database vector can both be described relative to that representative.

y − q₁(y) = [ỹ¹, …, ỹᵇ]

The symbols ỹ¹ through ỹᵇ denote the database residual’s coordinate blocks. The mapping q₁ supplies the current list’s coarse representative.

The corresponding query residual uses the same coarse representative.

x − q₁(y) = [x̃¹, …, x̃ᵇ]

The blocks x̃¹ through x̃ᵇ partition the query residual. They change with the query and with the list being examined.

Squared distance separates over these disjoint blocks.

‖x − q(y)‖₂² = ‖x̃¹ − q¹(ỹ¹)‖₂² + … + ‖x̃ᵇ − qᵇ(ỹᵇ)‖₂²

The mapping qʳ selects a representative vector for block r. Each term measures that block’s contribution to the complete approximate distance.

For a fixed query and list, a block can use only one of 256 representative choices. The implementation evaluates all those possibilities in advance and stores them in a table.

There are b such tables. A candidate’s code selects an entry from each, and the scanner adds the retrieved contributions. It does not need to reconstruct the complete candidate.

The paper compares the work for n candidate distances. Direct coordinate evaluation uses n × d multiply-adds in its accounting. The lookup approach prepares tables with 256 × d multiply-adds, followed by n × b lookup-and-add operations.

Here n counts candidates, d is dimensionality and b is the number of blocks. Preparation becomes worthwhile because its results are reused while scanning the list.

The change also alters the bottleneck. Less coordinate arithmetic remains, but indexed table reads become essential. The implementation must place those tables where the GPU can access them efficiently.

This is why product quantization is more than a space-saving encoding. Its factorisation supplies the computational shortcut used during search.

Share table work across lists when memory permits

Preparing separate tables for every selected list repeats some calculations. The authors use a further algebraic decomposition to identify reusable quantities.

‖x − q(y)‖₂² = ‖q₂(r)‖₂² + 2⟨q₁(y), q₂(r)⟩ + ‖x − q₁(y)‖₂² − 2⟨x, q₂(r)⟩

The residual r stands for y − q₁(y). The vector q₂(r) is its fine approximation. The other terms use the query x and coarse representative q₁(y).

The first terms depend on the quantizer representatives but not on the query. Their values can be stored in advance for reuse.

size(T) = |C₁| × 256 × b

T denotes the precomputed structure. Its size grows with the coarse representative count, the sub-quantizer representative count and the number of blocks.

Another term is the query’s distance from the coarse representative. Coarse routing has already calculated that information, so detailed scoring can reuse it.

The final inner product depends on the query and fine representative but not on which inverted list is currently scanned. Its preparation can therefore be shared across the selected lists.

Without this arrangement, the paper gives τ × d × 256 multiply-adds for table preparation across the probed lists. With it, preparation requires 256 × d multiply-adds and τ × b × 256 additions.

The saving comes from assigning calculations to their actual dependencies. Query-independent work belongs before queries; list-independent work should not recur for each list.

The stored structure can nevertheless be too large for GPU memory. The implementation enables this decomposition only when capacity allows it. Reducing repeated arithmetic is useful only if the additional tables fit alongside the searchable collection and working memory.

Understand why registers change the selection design

Nvidia’s execution structure groups 32 lanes into a warp. These lanes follow a shared instruction stream. If they take different paths, useful execution can become less uniform.

Registers provide fast lane-local storage. The architecture discussion allows up to 255 registers of 32-bit width per lane. Their locations must be determined during compilation.

Blocks collect warps and provide shared memory. The paper describes up to 48 KiB of shared memory per block for the relevant arrangement. Larger arrays reside in global memory and can communicate across blocks and kernels.

The authors describe a typical bandwidth relationship of 250 : 6.25 : 1 across register, shared and global storage. The figures motivate retaining frequently manipulated candidate state in registers.

That choice has costs. Register use can limit how many blocks occupy a streaming multiprocessor concurrently. Shared-memory consumption creates a related constraint. The fastest local storage does not provide unlimited capacity without affecting scheduling.

The authors therefore distinguish occupancy from complete performance. Keeping more useful state nearby can be advantageous even when fewer blocks execute together. The correct balance depends on the work performed.

Compile-time register addressing is especially important. A structure that follows arbitrary pointers or chooses arbitrary register positions at runtime does not fit naturally. Predictable comparison networks offer an alternative.

WarpSelect consequently changes the data structure to suit the storage. Its queues and exchange patterns make structured register use possible, rather than attempting a direct translation of a conventional heap.

Distribute a logical array among lane registers

The lane-stride arrangement treats registers across a warp as a collective array. Adjacent logical elements occupy adjacent lanes. Further groups occupy additional register positions within those lanes.

lane j stores {aⱼ, a₃₂₊ⱼ, …, aℓ₋₃₂₊ⱼ}

The symbol j identifies the lane, and ℓ is the logical array length for this layout. The length is taken as a multiple of 32.

An element’s address separates into a register position and a lane.

register position = ⌊i/32⌋

The index i identifies the logical element. The floor operation chooses which register position within a lane contains it.

lane position = i mod 32

The remainder identifies the lane. The register position must be known during assembly, while lane choice can be determined during execution.

Warp shuffle instructions exchange values between lanes. Comparisons involving elements already in the same lane can use local registers; other comparisons obtain the required values through shuffles.

This supplies warp-wide structured storage without consuming shared memory. It also connects an abstract sorting network to concrete operations over lanes and registers.

The paper uses butterfly permutations extensively. Their role is to move values according to regular exchange patterns needed by the comparison network.

Sort and merge through predetermined comparisons

Sorting networks replace data-dependent traversal with a fixed pattern of comparisons. Each comparison places its pair in the required order. Independent comparisons occupy the same parallel stage.

The authors start from Batcher’s bitonic construction. Its regularity is suitable for vector execution, but its usual array-size restrictions are inconvenient for the queues they want.

For a conventional power-of-two sort, the stage count is expressed as follows.

stages = 1/2 × [(log₂ℓ)² + log₂ℓ]

The length ℓ is the number of elements. The expression counts parallel stages, rather than every comparison across all participating lanes.

WarpSelect frequently combines already ordered sequences. The authors adapt the network for monotonic inputs and for lengths that need not match the conventional shapes.

Their reasoning introduces imaginary padding elements placed where they need not move. Any comparison involving those elements can be omitted. The actual procedure therefore avoids doing work merely to accommodate padding.

merge stages = ⌈log₂(max(ℓ_L, ℓ_R))⌉ + 1

The sorted input lengths are ℓ_L and ℓ_R. The maximum chooses the larger, and the ceiling rounds upward.

The paper’s example merges lengths 5 and 3 using 4 parallel stages. It illustrates how an irregular shape can be handled without retaining every comparison from a larger padded problem.

The corresponding full-sort expression uses rounded logarithms.

sort stages = 1/2 × [⌈log₂ℓ⌉² + ⌈log₂ℓ⌉]

The ceiling accommodates an arbitrary input length ℓ within the construction.

This flexibility matters because local buffering and result capacity should be selected for performance. A conventional relationship forcing 32t = k would require t = 32 at k = 1024. The authors’ preferred queues are shorter.

Odd-size networks therefore support an algorithmic choice, rather than merely broadening the accepted input format. They let the retained structures match the workload more closely.

Keep promising values in complementary queues

Each warp handles a selection problem. Input arrives in groups of 32, with neighbouring lanes responsible for neighbouring values. Global-memory reads can consequently be coalesced.

Each lane maintains a short thread queue containing t values. Its descending order places the largest retained local value at the head. That head provides a rejection threshold.

A second structure spans the warp. This warp queue has ascending order and represents the current shared set of k promising values. Its largest member provides a threshold for deciding whether local buffering requires consolidation.

Both structures begin with sentinel values such as positive infinity. Candidate positions accompany values through every update.

The warp queue’s internal capacity is rounded to a multiple of 32 when necessary. That accommodates lane-stride storage without changing the requested answer size.

During processing, useful values can reside in either structure. The shared queue alone is not yet the complete answer. Local queues deliberately hold candidates that have not been consolidated.

The maintained conditions make rejection safe. Thread-queue heads remain outside the currently required minimum set and above the shared candidates. All values still needed for the answer remain somewhere in the combined storage.

This permits delayed coordination. Most arrivals can be handled with a small local decision, while the warp-wide structure is repaired only when its conditions require it.

Update locally and consolidate when a ballot requires it

A lane first compares an incoming value with its thread-queue head. A worse value can be discarded. An accepted value is inserted into the short sorted queue, displacing the former head.

The warp then checks whether any updated head has fallen below the shared queue’s largest value. A ballot instruction gathers that condition across lanes.

If the condition is absent, processing continues. The queues still preserve enough information for safe rejection and eventual output.

If it is present, the warp reorganises its retained values. The thread queues are interpreted collectively as a lane-stride array, sorted, and merged with the ordered warp queue.

Although each thread queue already has local order, exploiting that order directly would require a transposition across the register layout. The authors judge its shuffle cost comparable to sorting the aggregate without that intermediate rearrangement.

They therefore sort the combined local material afresh, then use the odd-size merge against the warp queue. This preserves existing order where the physical arrangement makes it profitable.

After consolidation, the best k values occupy the warp queue. Remaining retained values return to thread queues with the filtering conditions restored.

An incomplete final input group is handled by updating only lanes that have valid values. A final consolidation ensures that promising candidates still buffered locally are included in the output.

The per-array routine needs no coordination with other warps. Enough independent arrays can supply GPU-wide parallel work. Known long inputs can also be decomposed recursively to avoid assigning too much work to an isolated warp.

Explain why queue length is a performance parameter

A longer local queue can absorb more promising arrivals before consolidation. But its insertions cost more, it occupies more registers and its aggregate sorting work grows.

The paper separates execution into input handling, local insertion and collective repair.

total cost = N₁C₁ + N₂C₂ + N₃C₃

The N terms count events, and the C terms measure their costs. These cost labels are unrelated to the representative sets used in quantization.

Every full input group requires a read and threshold comparison.

N₁ = ℓ/32

The input length is ℓ. The expression uses the divisible-length setting considered in the analysis.

Local insertion grows with queue length.

C₂ = O(t)

The parameter t is the thread-queue capacity. O describes the growth of the work instead of a measured duration.

Collective repair includes sorting the local aggregate and merging it with the shared candidates.

C₃ = O(t log(32t)² + k log(max(k, 32t)))

The requested result count is k. Across the warp, local queues contain 32t values.

For the random-input setting, the expected event counts have logarithmic dependence on input length.

N₂ = O(k log ℓ)

N₂ counts groups that require insertion work. As the scan progresses, a new arrival becomes less likely to improve the retained set.

N₃ = O(k log ℓ/t)

N₃ counts collective repairs. Larger local queues reduce their frequency, while increasing the cost of other operations.

The practical choice balances these effects. The authors select t empirically: 2 for k ≤ 32, 3 for k ≤ 128, 4 for k ≤ 256 and 8 for k ≤ 1024. Their reported choices do not depend on ℓ.

These settings are implementation decisions supported by experiments. The cost argument explains why a balance exists, but does not independently establish the best short queue for every possible workload.

Interpret the average-case argument carefully

The appendix analyses random permutations of distinct values. It asks how frequently a newly encountered value belongs to the smallest k within the prefix observed so far.

α(n,k) = {1 if n ≤ k; k/n if n > k}

The function α gives that probability. The position n identifies the current arrival. Before more than k values have appeared, every arrival qualifies.

For later arrivals, random ordering makes each prefix position equally likely to hold a member of its smallest set. The probability therefore declines as the prefix grows.

The lane analysis uses w for warp width and c for the number of groups. It approximates local qualification by considering how much combined input the queues effectively represent.

1 − (1 − (k+t)/(wc))ʷ ≈ (k+t)/c

The expression estimates the chance that some lane triggers insertion. The parameter t is local capacity, and w lanes contribute to the combined event.

Summing such probabilities leads to the expected insertion relationship.

N₂ ≈ (k+t)log c = O(k log(ℓ/w))

The total stream length is ℓ. The group count corresponds to ℓ/w in this analysis.

For collective repairs, the appendix begins with a single lane and counts arrivals that enter successive minimum sets. It introduces a probability distribution over that count and derives recurrences that can be evaluated with dynamic programming.

The simplest case connects to harmonic numbers.

π(ℓ,1,1,1) = Hℓ = 1 + 1/2 + 1/3 + … + 1/ℓ

The function π denotes expected repair count. Its arguments specify stream length, result size, local capacity and lane count. Hℓ is the corresponding harmonic number.

With a larger result set but the same single-element local capacity, the expectation becomes:

π(ℓ,k,1,1) = k + k(Hℓ − Hk)

The harmonic terms describe the declining qualification probabilities after the initial k arrivals.

Larger local capacity groups qualifying arrivals before repairs. Multiple lanes complicate the calculation because simultaneous triggers share a collective operation.

π(ℓ,k,t,w) ≤ π′(ℓ,k,t,w) = O(wk log(ℓ/w)/t)

The auxiliary π′ ignores the reduction caused by overlapping triggers and supplies an upper bound. The appendix develops this part with k ≥ w.

The argument explains why expensive reorganisation can remain infrequent on the assumed inputs. It is an average-case account, not a promise that every ordering of search distances produces the same event counts.

Arrange compressed scans around shared and global memory

The index stores codes separately from IDs. Scoring needs the codes, while most scanned entries never become results. Delaying ID retrieval avoids fetching identification data for every rejected candidate.

Only selected entries need their final IDs resolved. The paper allows these IDs to remain in CPU memory because the required reads are sparse relative to candidate scanning.

Distance lookup tables occupy shared memory. Code bytes choose table entries, making access indexed rather than sequential. Their repeated use makes placement consequential.

The architecture-specific table limit is 48 sub-quantizers with 32-bit entries, or 96 with 16-bit entries. These capacities constrain actual configurations alongside the implementation’s code-length range.

Codes themselves are laid out as consecutive b-byte entries within lists. The scanner combines linear global-memory reads with indexed shared-memory reads.

When the larger precomputed decomposition is unavailable, a separate kernel prepares tables before scanning. When enabled, reusable terms reduce that preparation. The scan consumes the resulting tables in either arrangement.

This mixture explains why compressed search has a different performance balance from exhaustive matrix-based search. Candidate arithmetic is reduced, while table gathers and list reads remain substantial.

Preserve parallelism while reducing partial outputs

Each query–list pair can be processed independently. Assigning separate blocks to these pairs supplies many tasks, but writing every candidate score produces a potentially excessive temporary array.

The authors bound this work through query tiling and staged selection.

temporary memory = O(2t_qτ maxᵢ|Iᵢ|)

The tile contains t_q queries, τ lists are probed, and Iᵢ denotes list i. The longest list appears in the bound. Concurrent streams account for the factor 2.

Giving a single warp all selected lists for a query would move towards the opposite extreme. It could leave insufficient independent selection work.

The implementation uses partial reductions before the final answer.

t_q × τ × maxᵢ|Iᵢ| → t_q × f × k → t_q × k

The factor f describes subdivision. Intermediate sets retain k candidates from subdivisions before another selection combines them.

The arrangement limits output while keeping more work independent. It does not require preserving every computed score until the final reduction.

WarpSelect also permits a fused alternative in which a block scans all selected lists for a query and retains candidates immediately. Registers leave shared memory available for distance tables.

The authors test that possibility but choose the multi-pass arrangement. Fusion improves timing by at most 15%, and some sizes lose parallelism without additional decomposition.

The reason lies in the work that remains. Table gathers and code scanning consume substantial time; avoiding score writes removes only part of the cost. The simpler layout therefore remains preferable in their implementation.

Reuse exact assignment during quantizer training

Training the coarse quantizer requires assigning training vectors to centroids. This is nearest-neighbour retrieval with a single returned result.

The exact-search machinery can perform those assignments efficiently. Training vectors supply queries, and current centroids supply the searchable collection.

For k = 1, the implementation uses a parallel reduction rather than WarpSelect. The distinction matters because clustering supports the broader layout without demonstrating a benefit from the complete queue-based selector in that special case.

The product sub-dictionaries are also trained through k-means. Once available, they encode each residual block by choosing a representative.

OPQ can precede quantization as a linear transformation. It changes the coordinates presented to the encoder while leaving the subsequent storage and scanning organisation recognisable.

The method therefore permits different combinations of transformed dimension, coarse dictionary size and code length. Each combination defines a representation and resource budget whose accuracy must be measured.

Separate memory distribution from query distribution

Replication places a complete index on multiple GPUs. Each device answers part of the query batch.

queries per replica = n_q/R

The number of replicas is R. Each has the same database, so individual query answers require no cross-replica candidate merge.

The results are assembled according to their original query positions. With sufficient batch work, the paper describes favourable scaling; small batches can reduce efficiency.

Sharding instead divides the database among devices.

database entries per shard = ℓ/S

The collection has ℓ entries and S shards. Every shard receives the query batch and searches its own database portion.

Its answers are partial. A further selection must combine them into final neighbours, creating overhead absent from pure query distribution.

Sharding may nevertheless be necessary because the complete index exceeds a device’s memory. It solves capacity as well as distributing comparisons.

The mechanisms can coexist.

device count = S × R

The system uses S shards with R replicas. This permits enough shards to hold the index, followed by replication to increase query throughput.

The paper also observes that the general distribution principle can extend across machines. The practical distinction remains the same: dividing queries and dividing candidates create different communication and result-combination requirements.

Turn repeated searches into a graph and a path

Graph construction queries the index with its own database vectors. Returned neighbours become outgoing edges associated with each query’s identity.

The resulting graph reflects the chosen approximation settings. Evaluating every database item does not eliminate list restriction or compression error.

Exact searches on a sample provide a reference for neighbourhood overlap. This checks the quality of the constructed relationships without requiring an exact graph for the entire collection.

The image application obtains its descriptors from a ResNet, citing Deep Residual Learning for Image Recognition. Its inspectable image collection is YFCC100M.

After construction, graph traversal can connect a specified source image with a destination. The paper favours a route that avoids a particularly large local transition.

minimise over P the maximum d(pᵢ,pᵢ₊₁) along P

The path P begins at source S and ends at destination D. Its consecutive nodes are pᵢ and pᵢ₊₁, and d measures their distance.

The objective controls the largest step. It does not directly request the fewest edges or the smallest total accumulated distance.

Connectivity is required for such a route to exist. The authors report the necessary connected structure for their example, rather than offering a general connectivity guarantee for approximate neighbour graphs.

The illustrated flower sequence makes the objective tangible: intermediate images provide gradual transitions between endpoints. Its meaning still depends on the representation defining those distances.

This application completes the computational chain. Training establishes finite representatives, encoding makes the database compact, routing limits detailed work, tables reduce scoring arithmetic and selection retains identities for graph edges. Traversal then uses those stored relationships for a different operation. Each stage has a defined role, and the paper’s method makes their combined execution practical by matching those roles to the GPU’s arithmetic, memory and parallel organisation.

Experiments and results

The experiments examine several levels of the search system. Timing a selector in isolation reveals the cost of maintaining a short answer while reading many candidates. Exact retrieval tests how that selector works alongside matrix multiplication. Compressed retrieval adds quantization, list selection and table access. Graph construction then asks whether the complete arrangement remains practical when every database entry becomes a query. These measurements support different conclusions, so their timing boundaries and accuracy criteria need to remain distinct.

The usual experimental machine has Intel Xeon E5-2680v2 processors running at 2.8GHz, together with 4 Maxwell Titan X GPUs. The software environment uses CUDA 8.0. Some tests employ a single device; others use several devices for additional capacity or throughput. The large graph-scaling comparison also uses Maxwell M40 hardware. As a consequence, the paper’s results describe several execution arrangements rather than one configuration applied unchanged throughout.

The central performance claim concerns useful work under stated resource constraints. Faster execution matters only if the search still returns an acceptable neighbourhood, and compression matters only if the whole index fits its intended storage budget. The experiments accordingly alternate between measurements that hold the numerical task fixed and measurements that compare approximate operating points. Reading them together explains both the implementation’s advantages and the conditions attached to those advantages.

A selector benchmark with distances removed

To evaluate WarpSelect independently, the authors supply arrays of random values rather than distances calculated from image features. This removes table preparation, quantization and matrix multiplication from the timed operation. Every implementation receives the same kind of selection problem: inspect each row, retain its smallest values and preserve their original positions. The test therefore addresses a narrowly defined computational component before considering its contribution to complete retrieval.

The comparison includes a selection procedure extracted from fgknn and another extracted from TBiS. The fgknn procedure uses buffered candidate handling and a hierarchical organisation. TBiS relies on truncated bitonic sorting. Both originate in earlier GPU retrieval implementations, making them relevant alternatives to the proposed primitive. However, the isolated comparison does not measure the complete search systems from which they were taken.

The input has 10,000 independent rows. Requested result sizes are k = 100 and k = 1000, while row lengths range from 1000 through 128,000. Entries occupy 32-bit floating-point storage. The smallest stated input occupies 40 MB, and the largest occupies 5.12 GB. These dimensions provide enough independent problems to exercise device-wide execution while varying how much input each selection problem must consume.

The experiment keeps its input and output on a Titan X. Its timing therefore measures work after the arrays are already available in device memory. It excludes an initial transfer from host storage, just as it excludes whatever computation originally produced the values. That boundary is appropriate for evaluating a reusable device operation, especially one intended to consume intermediate scores. It should not be confused with the elapsed time of an external request that includes data preparation and transfer.

Memory consumption distinguishes the alternatives before speed is considered. TBiS needs enough auxiliary storage that the authors cannot test it beyond ℓ = 48,000. The other methods reach longer rows within the available device capacity. This is a practical constraint rather than a missing timing result that can safely be extrapolated: temporary storage determines whether a procedure can execute the intended workload at all.

For ℓ = 128,000, WarpSelect is faster than fgknn by 1.62× when retaining k = 100. At k = 1000, its reported advantage becomes 2.01×. The larger relative advantage does not mean that maintaining a larger answer becomes cheap. It means that the alternatives incur still greater costs under that setting. Indeed, the authors observe that TBiS can surpass fgknn for long inputs when the requested result set is larger.

The paper also evaluates selection against an input-bandwidth ceiling. A procedure reading an array must obtain its values from memory, even if every other part of the computation were free. Peak global-memory bandwidth therefore supplies an idealised minimum scan time. At k = 100, WarpSelect achieves 55% of that ceiling. At k = 1000, the corresponding figure is 16%.

These percentages answer a different question from the comparison with fgknn. Relative timing says which tested implementation finishes sooner. The bandwidth comparison estimates how far an implementation remains from a necessary data-access cost. WarpSelect can strengthen its lead over a competitor while becoming less efficient against this hardware reference. That is what happens as the retained set grows and the sorting and merging structures require more work.

The authors associate the decline with larger local queues and more expensive network operations. The input stream is still read once, but processing each competitive arrival involves more candidate maintenance. Register storage removes repeated access to slower working memories; it does not remove comparisons, exchanges or the resource consequences of a larger retained structure. The benchmark thus supports both the effectiveness of the design and its intended emphasis on relatively small answers.

Clustering measures the assignment layout

K-means provides an application of exact nearest-centroid assignment. During an assignment step, training vectors are compared with the current centroids, and each receives its closest representative. This uses the same distance machinery as exact retrieval, although only one result is required. The paper handles that special case with a parallel reduction. The clustering experiment therefore evaluates the broader computation layout rather than the queue-based behaviour of WarpSelect.

The digit collection is MNIST8m, containing 8.1M grayscale images. Each image has 28x28 pixels and becomes a vector with 784 coordinates. The competing GPU implementation is BIDMach, which the authors cite as an efficient alternative to several distributed clustering implementations. Both tested procedures perform 20 iterations, keeping the iterative workload comparable.

The reported overall conclusion is that the authors’ implementation runs more than 2× faster. Both procedures use cuBLAS, so access to an optimised multiplication routine does not by itself explain their complete execution times. The surrounding work still includes arranging inputs, completing distances and reducing candidates to assignments. The paper credits part of its gain to combining distance completion with the assignment reduction.

Using replicas across devices provides another measurement. With 4096 centroids, the configuration using 4 GPUs achieves 3.16× acceleration. That result is consistent with a substantial supply of independent assignment queries: separate devices can process different training vectors against the same current representatives. It also shows that the acceleration remains below a perfectly proportional relationship between device count and elapsed time.

The authors explicitly qualify the workload. When relatively few centroids are needed, a practitioner would commonly select a random training subset instead of processing the entire collection repeatedly. The experiment is useful for exposing assignment performance, but it does not establish that this full-data procedure is the preferred clustering strategy. Its strongest evidence concerns the efficiency of a specified numerical operation.

A separate comparison reaches a larger clustering problem. The cited CPU approach handles 10^8 vectors, each with 128 coordinates, and seeks 85k centroids. Its approximate clustering stage takes 46 minutes, but preparing the encoded representation requires at least 56 minutes. The authors report exact k-means in 52 minutes using 4 GPUs, without that encoding preparation.

This comparison makes preparation costs consequential. A faster central stage may not produce a faster complete procedure if it depends on substantial preliminary work. Here, the GPU arrangement changes the practical balance enough to make exact assignment competitive with an approximate CPU route. The result does not isolate hardware from algorithm choice, but it does establish an important engineering possibility: approximation is not automatically the cheapest complete solution.

It also connects retrieval performance with index construction. The coarse quantizer needs centroids, and obtaining them requires assignment work. Accelerating that stage can reduce the expense of preparing the structure that later serves approximate queries. Search and training are therefore linked operationally, even though the clustering measurements do not test every aspect of the eventual index.

Exact retrieval shows where selection overhead went

Sift1M supplies the exact-search benchmark. Its database contains ℓ = 10^6 vectors, dimensionality is d = 128, and the query batch has n_q = 10^4 entries. Exhaustive retrieval requires evaluating the relevant query–database comparisons without restricting the candidate collection or replacing entries with product-quantized approximations. This gives a setting in which implementation changes can improve speed while preserving the exact numerical objective.

The matrix-multiplication component accounts for 1.28 Tflop in the paper’s description. The authors state that current GPUs can perform this multiplication in less than a second. The subsequent operations therefore deserve close attention: an inefficient selector could consume much of the benefit obtained from fast arithmetic. The benchmark separates multiplication from distance completion and candidate retention to expose that risk.

A simple comparison procedure fully sorts each query’s candidate array with thrust::sort_by_key. It is more than 10× slower than the specialised methods under discussion. Full sorting determines the order of candidates that retrieval will discard, so it performs work beyond the required answer. The measurement illustrates why using an available general operation can be costly even when its output contains everything the task needs.

The authors compare their complete exact-search arrangement with a bound based on their GEMM tiling. That reference includes the multiplication and an idealised read of its partial output at peak bandwidth. Their method reaches 85 % of the corresponding attainable performance. The meaning of this percentage is specific: it concerns the stated decomposition and memory-access assumption, rather than a universal fraction of the GPU’s arithmetic capacity.

The multiplication itself remains a separate source of inefficiency. With d = 128, cuBLAS has a relatively small reduction dimension and does not use the hardware as efficiently as it might for other matrix shapes. Improving selection cannot remove that limitation. The paper’s near-bound result therefore concerns the overhead added around an existing multiplication arrangement, whose own performance still depends on the dimensions.

The direct fusion comparison is especially informative. Separating distance completion from selection introduces another traversal of the partial matrix. In the tested exact-search procedure, that version is at least 25% slower. The answer requirement remains unchanged, so the timing difference supports an explanation based on intermediate memory traffic rather than weaker retrieval accuracy.

This result also sets the scope of the fusion claim. The partial matrix is still produced by GEMM and consumed afterwards. The improvement comes from combining adjacent operations after multiplication, not from eliminating all pairwise intermediate data. That distinction matters when comparing the paper with an imagined implementation that never stores any score matrix: such an implementation is not what this exact-search experiment establishes.

Sift1M compares recall under the same time allowance

Approximate retrieval introduces a quality dimension. The Sift1M comparison with Wieschollek and colleagues fixes the stated search allowance at 0.02 ms per query on a Titan X. The question is then how frequently the exact closest database entry appears in the returned results. This comparison favours neither implementation merely for spending more time on a broader candidate search.

At that allowance, the earlier GPU method reports R@1 = 0.51 and R@100 = 0.86. The authors obtain R@1 = 0.80 and R@100 = 0.95. These are retrieval probabilities under the benchmark’s nearest-neighbour reference. R@1 requires the closest entry to occupy the first returned position. R@100 allows that same entry to occur within the larger returned set.

Sift1M R@1 with a search allowance of 0.02 ms per query

The proposed search retrieves the exact closest entry more frequently under the stated equal-time condition.

Sift1M R@1 with a search allowance of 0.02 ms per queryWieschollek et al.: 0.51Wieschollek et al.0.51Proposed GPU search (this paper): 0.80Proposed GPU search (this paper)0.80
The numbers
System or settingR@1
Wieschollek et al.0.51
Proposed GPU search (this paper)0.80

The larger cutoff must not be interpreted as recovery of an entire exact neighbourhood. R@100 concerns whether the single closest entry appears within the returned candidates. The graph experiment later uses a different measure, comparing several returned edges with several exact neighbours. The distinction affects what each accuracy figure can establish.

This experiment demonstrates a quality advantage at a reported time point. It does not by itself supply the full relationship between recall and time for both implementations. Nor does it establish downstream image-task performance. The reference is numerical proximity in the benchmark representation, which is the appropriate target for this search evaluation but a narrower target than human judgments of relevance.

Sift1B compares billion-entry search with compact encodings

The Sift1B experiment contains 1 billion SIFT features and n_q = 10^4 queries. Here the comparison emphasises similar retrieval quality under the same memory use. The authors use m = 8 bytes for each vector encoding on a single GPU. Their reported operating point combines R@10 = 0.376 with 17.7 µs of query time.

Wieschollek and colleagues report R@10 = 0.35 and 150 µs per query at the compared setting. The paper states an 8.5× timing advantage for its implementation. Its recall is also higher, so the speed gain is not obtained by accepting a worse value of the reported retrieval metric. Nevertheless, the recall values are unequal and should remain visible alongside the timing claim.

Sift1B query time with an encoding budget of 8 bytes per vector

The proposed implementation searches faster at the compared operating points while returning the closest entry more reliably.

Sift1B query time with an encoding budget of 8 bytes per vectorWieschollek et al., R@10 = 0.35: 150Wieschollek et al., R@10 = 0.35150Proposed GPU search, R@10 = 0.376 (this paper): 17.7Proposed GPU search, R@10 = 0.376 (thispaper)17.7
The numbers
System or settingµs per query
Wieschollek et al., R@10 = 0.35150
Proposed GPU search, R@10 = 0.376 (this paper)17.7

The encoding budget is central to interpreting the scale. The database is represented through compact codes rather than full real-valued vectors. Detailed comparisons occur only within selected coarse lists. The result therefore establishes the effectiveness of compressed approximate retrieval, not the feasibility of exhaustive exact comparison over the same billion-entry collection within that query time.

The complete implementation earns the result. It combines coarse search, lookup preparation, encoded scanning and candidate selection. The experiment does not assign the full 8.5× improvement to WarpSelect in isolation. Its component benchmark supports the selector’s contribution, while the billion-scale measurement evaluates how several design choices cooperate in the final search.

Memory matching also deserves precise language. The paper compares vector-encoding settings and similar accuracy, instead of presenting an exhaustive accounting of every possible implementation field under every configuration. The important supported conclusion is that the proposed search reaches its stated recall and timing at the compared storage setting. Stronger claims about all possible equal-memory operating points would require additional measurements.

Deep1B uses both sharding and replication

Deep1B changes the feature collection while retaining the billion-entry scale. It contains CNN image representations, with n_q = 10^4 queries in the retrieval experiment. The authors apply OPQ, use d = 80, and choose m = 20 for the encoded representation. The coarse dictionary has |C₁| = 2^18 members.

The stated dataset-storage allowance is comparable to the 20 GB used by the work introducing Deep1B. That index exceeds the capacity of one GPU in the experimental setup. The authors therefore distribute it across devices using S = 2 and R = 2. Shards divide the indexed entries, while replicas divide the query workload.

Their result is R@1 = 0.4517 at 0.0133 ms per searched vector. The dataset paper’s CPU comparison uses one thread and reports R@1 = 0.45 with 20 ms per vector. These values demonstrate a substantial difference in the capability of the compared execution arrangements, at closely related retrieval quality and a comparable collection-storage setting.

Deep1B search time at the reported comparable-recall settings

The sharded and replicated GPU configuration obtains similar recall with substantially less search time than the cited CPU run.

Deep1B search time at the reported comparable-recall settingsSingle-thread CPU, R@1 = 0.45: 20Single-thread CPU, R@1 = 0.4520Proposed multi-GPU search, R@1 = 0.4517 (this paper): 0.0133Proposed multi-GPU search, R@1 = 0.4517(this paper)0.0133
The numbers
System or settingms per vector
Single-thread CPU, R@1 = 0.4520
Proposed multi-GPU search, R@1 = 0.4517 (this paper)0.0133

The authors acknowledge that the execution resources differ. This is not a controlled test in which the same hardware runs competing algorithms. It is evidence about what a machine equipped with the described GPUs can accomplish. Treating the timing gap as a pure algorithmic effect would erase an explicit condition of the experiment.

The result also demonstrates why the two distribution mechanisms matter separately. Sharding is needed to hold the index; replication increases available query-processing capacity. Merely stating that the experiment uses 4 GPUs would hide these different roles and the additional selection required when answers from shards are combined.

The representation settings are specific to this retrieval test. Deep1B graph construction later uses d = 120 after OPQ and considers different code budgets. The shared dataset name does not make the experimental configurations interchangeable. Each result belongs to its own transformation, encoding and device arrangement.

Graph evaluation measures a complete construction

The graph experiments time preparation of the IVFADC index together with searches for the database entries. Their principal output is a graph with k = 10 outgoing neighbours per entry. This expands the measurement beyond queries against a previously prepared structure. The relevant cost is obtaining the graph from the starting collection.

The Yfcc100M experiment uses 95 million images. Their features come from a ResNet layer immediately before the final layer and undergo PCA reduction to d = 128. The index uses 2^16 coarse representatives. Tested PQ encodings occupy 16, 32 or 64 bytes per vector, allowing the authors to examine how a richer stored description changes the quality–cost relationship.

For Deep1B graph construction, OPQ produces d = 120. The coarse dictionary contains |C₁| = 2^18 entries, and the evaluated code lengths are m = 20 and m = 40. These settings establish another set of representation choices within the same overall construction method. The paper varies the number of probed lists from 1 through 256 for each encoding.

Quality comes from an exact reference on 10,000 sampled images. For each sampled query, the measure asks what fraction of its returned neighbours belong to its exact set of 10 closest entries. This assesses local neighbourhood recovery rather than inclusion of only the single closest entry. It is therefore suited to evaluating the graph’s outgoing relationships.

The sampled reference makes exact checking manageable while retaining a stable comparison. The approximate graph is built across the collection, but exact searches need only cover the evaluation subset. The experiment consequently provides evidence about aggregate neighbourhood quality without requiring a complete exact graph as its reference object.

For Yfcc100M, the reported arrangement uses S = 1 and R = 4. It obtains accuracy exceeding 0.8 in 35 minutes. Both the quality threshold and the timing boundary matter: the result concerns approximate neighbourhood overlap, and its elapsed time includes building the searchable structure. It is stronger evidence for construction feasibility than query throughput alone would provide.

For Deep1B, the discussion reports a lower-quality construction taking 6 hours and a more accurate construction taking roughly half a day. The abstract gives a completion time below 12 hours for a graph over 1 billion vectors, using the machine’s 4 Maxwell Titan X devices. These statements do not attach a precise numerical accuracy to every Deep1B timing mentioned.

The additional scaling experiment doubles the replica set and uses 8 Maxwell M40 GPUs. The authors describe their performance as broadly comparable to the Titan X. Acceleration is roughly 1.6× at m = 20 and roughly 1.7× at m = 40. More devices help, but total construction time does not decrease in perfect proportion to the added hardware.

These curves make configuration part of the result. A graph does not have one intrinsic construction speed independent of its requested quality. Code length affects the fidelity of encoded candidates; probe count affects which candidates are considered. The experiments reveal useful operating choices rather than establishing a universal speed for approximate graph building.

Earlier constructions establish context rather than a common ranking

The cited NN-Descent construction covers 36.5 million vectors with 384 coordinates. Its reported execution uses 128 CPU servers and takes 108.7 hours. The authors use this example to indicate the scale of earlier graph-building efforts. Different input characteristics and hardware prevent it from serving as a tightly controlled comparison with their own graph runs.

Memory provides another part of the contrast. The paper gives Deep1B graph storage as 80 GB and the underlying vector collection as 384 GB. NN-Descent also requires additional working storage and random vector access. The authors argue that these demands complicate its application to the collections under consideration, even though it could in principle construct or refine their graphs.

The earlier GPU example uses exact GEMM-based search over 20 million vectors, each with 15,000 coordinates. It requires 32 Tesla C2050 devices and runs for 10 days. The authors estimate 200 days for applying that computation pattern to Deep1B on the earlier cluster. That estimate follows an assumed relationship with multiplication cost; it is not an observed Deep1B execution.

These comparisons support the motivation for compressed retrieval. They show why a straightforward exact construction can be impractical and why memory demands matter alongside arithmetic. They do not establish that every possible CPU or GPU graph algorithm has been evaluated under equivalent conditions.

A path makes the graph’s relationships visible

The final application traverses a graph between chosen images. Its objective favours a route without a particularly large adjacent-image distance. The displayed flower sequence uses a graph with k = 15 and follows 20 seconds of propagation. This differs from the k = 10 setting used for the main construction-quality measurements.

The example demonstrates a use of the completed relationships. Search creates local edges; subsequent traversal combines those edges into a route between specified endpoints. A collection containing many related flower images supplies intermediate possibilities, allowing the visual changes to appear gradual. The graph therefore becomes a reusable resource beyond answering independent nearest-neighbour queries.

This remains a qualitative demonstration. The paper reports neither a numerical human-coherence score nor a comparison between alternative path objectives. Image mappings are unavailable for Deep1B, so the inspectable path comes from Yfcc100M. The evidence establishes that the graph supports the stated operation and produces an interpretable example, rather than proving a general property of perceptual smoothness.

What the ablations show

There is no exhaustive experiment that removes every proposed component independently. Instead, the paper combines direct interventions, comparisons between implementations, parameter sweeps and resource-based analyses. These forms of evidence differ in causal strength. Some isolate a particular choice; others establish that a collection of choices works well together.

The distinction matters because the implementation changes several things at once. Register storage, queue organisation, comparison networks and the absence of cross-warp coordination all contribute to the proposed selector. A faster complete routine does not automatically reveal how much improvement belongs to each feature. The paper supplies a credible architectural explanation, but its measurements should not be expanded into a finer attribution than they support.

Exact-search fusion isolates an avoidable pass

The most direct intervention changes the treatment of GEMM’s partial output. One version completes distances and immediately updates selection. The other separates those operations and consequently traverses the intermediate matrix again. Both versions pursue the same exact-neighbour result, so the comparison does not depend on accepting additional approximation.

The separated version takes at least 25% longer. That observation directly supports the value of avoiding the extra pass in this layout. It shows that the cost of an intermediate array is not merely its allocated capacity. Writing or reading that array at an additional stage can materially affect the time needed for the complete search.

The finding also explains why the selector’s integration properties matter. A primitive that requires an independent reusable input array would make this arrangement harder to realise. WarpSelect can consume values after the missing distance term has been added, allowing the result-maintenance operation to sit close to the arithmetic that supplies its input.

The experiment does not establish that maximal fusion is preferable. Multiplication remains separate, and the authors question whether combining row-wise selection with a well-tuned GEMM would preserve its efficiency. The demonstrated gain belongs to a particular boundary between operations, chosen to remove traffic while respecting an efficient existing arithmetic component.

Compressed-search fusion has a smaller opportunity

The analogous IVFADC experiment assigns a block to the selected lists of a query and performs selection while scanning them. This avoids returning most intermediate distances to global memory. Because selection occupies registers, it can coexist with distance tables in shared memory. The design is feasible, but feasibility alone does not determine whether it is worthwhile.

The best reported timing improvement is at most 15%. For some problem sizes, the arrangement would also expose too little independent work unless divided further. The authors consequently leave it out of their selected implementation. This negative result qualifies the attractive intuition that eliminating intermediate writes must produce a large improvement.

Their explanation points to code reads and table gathers. Those operations remain even when score output disappears. If they consume a substantial share of execution, reducing another category of traffic has limited influence. The new work assignment can additionally concentrate activity into fewer blocks, offsetting some of the benefit through reduced parallel execution.

Read beside the exact-search comparison, this experiment establishes a conditional principle. Fusion helps when the removed traffic matters enough and the revised scheduling retains sufficient concurrency. The paper gives evidence for that condition in one layout and weaker evidence in another. Its implementation choices follow the measured balance instead of applying one strategy everywhere.

Result size changes the work behind each accepted candidate

The selector measurements provide a controlled change in k. Inputs follow the same random-value procedure, and the batch organisation remains comparable. Asking for a larger output means maintaining a larger candidate structure throughout the scan. This lets the authors inspect a cost that a fixed small-k benchmark would conceal.

Efficiency against the bandwidth ceiling falls from 55% at k = 100 to 16% at k = 1000. The authors associate that movement with larger queues and sorting or merging networks. The result reinforces the algorithm’s intended regime: a small answer relative to a long input can be maintained efficiently, but expanding the answer introduces substantial additional work.

This observation does not mean that registers cease to help. WarpSelect still compares favourably with the tested alternatives. It means that proximity to the input-scan limit depends on how much computation must accompany each scan. A bandwidth reference becomes less attainable as maintaining the selected set consumes more execution resources.

The measurements do not fully separate the causes of that cost. There is no complete breakdown assigning time independently to local insertion, shuffles, collective merging and occupancy effects. The reported explanation is consistent with the algorithm’s structure, while a more detailed attribution would require further instrumentation or controlled variants.

Queue tuning demonstrates useful freedom in the network design

Local capacity t controls how much promising data can accumulate before collective repair. Longer queues reduce repair frequency under the analysis but make insertions and sorting more expensive. They also consume additional registers. The best choice must balance these effects rather than maximise buffering.

The authors report t = 2 for k ≤ 32, t = 3 for k ≤ 128, t = 4 for k ≤ 256 and t = 8 for k ≤ 1024. These settings were selected experimentally on nearest-neighbour workloads. They are presented without dependence on ℓ, providing a compact practical configuration rule for the tested implementation.

The values support the usefulness of networks that accept irregular sizes. A more restrictive construction would require t = 32 when k = 1024. The selected configuration uses a much shorter local structure. Supporting arbitrary merge lengths therefore permits an important performance choice rather than merely accommodating unusual input dimensions.

However, the paper does not publish a comprehensive response surface over all queue lengths, selection sizes and datasets. Its reported choices are practical recommendations grounded in the authors’ experiments. They do not prove that the same capacities minimise execution time for every distribution of candidate scores or every device configuration.

The selector comparison evaluates a combined architecture

WarpSelect and the fgknn procedure differ in more than their memory placement. They also differ in buffering, hierarchy, coordination and the handling of comparison networks. The timing comparison establishes that WarpSelect’s combined arrangement performs better on the tested inputs. It cannot identify the independent contribution of each difference.

For example, an otherwise identical version retaining its structures in shared memory is not reported across the full benchmark. Neither is an otherwise matched version that restores cross-warp coordination. Without those variants, the argument for individual choices rests partly on the architecture discussion and cost reasoning, rather than on separate measured increments.

That is a limitation of attribution, not a reason to dismiss the result. A coherent design can be valuable even when its components interact too closely for a simple additive account. The correct conclusion is that the complete register-based organisation succeeds under the reported conditions, with several plausible mechanisms explaining that success.

The distinction also discourages an overly narrow reading of the headline. Replacing one selector in an unrelated pipeline would not necessarily reproduce the full-search advantage. The surrounding implementation must still supply suitable values, enough independent work and a memory arrangement that allows the selector’s strengths to matter.

Probing and code length examine different approximations

The graph experiments sweep probe count from 1 through 256 while considering several encodings. This reveals a quality–cost relationship instead of evaluating only one chosen point. Exact sampled neighbours make the quality change observable. Without that reference, faster scanning could simply mean silently discarding more useful candidates.

Probe count primarily changes coverage. Additional coarse lists allow consideration of vectors that were previously excluded. Code length changes the retained detail of vectors already represented in the index. These mechanisms interact, but they address different reasons that an exact neighbour might be missed.

A richer code cannot help a candidate whose list is never searched. Broader probing cannot fully repair a ranking distortion caused by an insufficient fine representation. The experimental design therefore gives readers a useful way to understand why there are multiple configuration controls. Search effort and representation fidelity are related decisions, not interchangeable descriptions of one setting.

The paper does not assign every failed neighbour to one cause. Its curves evaluate the resulting combinations. That is enough to support choosing among practical operating points, while leaving a more detailed error analysis open. In particular, the curves do not establish a universal rule that one encoding or probing level is best for every collection.

Device scaling tests the complete workload

Replication exposes independent query batches to separate GPUs, so favourable scaling is plausible. The reported 3.16× clustering acceleration with 4 devices confirms that this can work effectively for a sufficiently substantial assignment problem. It does not remove the costs of preparing inputs, coordinating iterations or assembling outputs.

Graph construction shows a different scaling pattern. Doubling replicas produces approximately 1.6× acceleration for m = 20 and approximately 1.7× for m = 40. The complete construction includes work beyond a single isolated query scan, and the resulting improvement is sublinear. These observations place useful limits on projecting performance from device count alone.

Sharding adds another distinction. It partitions candidates, not just queries, and requires combining partial answers. Its purpose may be to make the index fit at all. The paper’s analysis therefore gives no reason to expect an identical acceleration pattern from sharding and replication, even when both use the same number of devices.

Together, these comparisons show why a system measurement belongs to its execution arrangement. Capacity, query throughput and result-merging cost change through different mechanisms. Reporting the arrangement makes the result interpretable; omitting it would make the device count look more explanatory than it actually is.

Limitations

The evidence is strongest for the numerical workloads the authors define: small-result selection, Euclidean retrieval over dense vectors, quantizer assignment and approximate graph construction. The paper establishes substantial implementation improvements in those settings. It does not demonstrate that every application using vectors inherits the same timing, accuracy or scaling behaviour.

The qualifications below distinguish constraints explicitly discussed by the authors from consequences a reader can infer from the evaluation design. That distinction is useful because an acknowledged implementation boundary and an unmeasured deployment question have different status. Both matter, but neither should be presented as an experimental failure unless the paper actually tests it.

Authors’ stated limits: retained state and memory capacity

WarpSelect supports k ≤ 1024. Its efficiency already declines substantially as k grows within that range. This is a deliberately bounded selector for a common retrieval regime, where the answer is small compared with the scanned input. It is not presented as a general replacement for unrestricted sorting or selection at arbitrary output sizes.

The choice of registers also imposes a structural requirement. Their indexing must be resolved during compilation. The comparison networks and lane-stride layout make that possible, but an arbitrary dynamically addressed data structure would not fit the same arrangement. The implementation’s success depends on choosing an algorithm compatible with this storage constraint.

Register consumption affects concurrent execution. Holding more state nearby can reduce the number of blocks available on a streaming multiprocessor. The authors explicitly recognise that occupancy and speed need not move together. Their design benefits when faster state access outweighs the loss of some concurrency, a balance that cannot be assumed independently of the workload.

Distance tables introduce a separate capacity limit. For the discussed architectures, shared memory accommodates at most 48 sub-quantizers with 32-bit entries or 96 with 16-bit entries. These figures concern the table arrangement, while the implementation separately supports specified code lengths. A valid configuration must satisfy both restrictions rather than treating either as the sole limit.

The optional precomputed structure also consumes potentially prohibitive memory. Its growth with coarse representatives and sub-quantizers can compete with storage needed by the database itself. The authors consequently enable the corresponding decomposition only when capacity permits. Its arithmetic advantage is conditional on an affordable storage cost.

These constraints show why compression does not eliminate memory engineering. Smaller persistent entries make large collections possible, but query tables, temporary arrays, identifiers and selected results still occupy space. The paper manages those costs through particular layouts; it does not make them disappear.

Authors’ stated limits: fusion and execution balance

Exact retrieval retains a partial pairwise matrix between GEMM and selection. The authors consider integrating row-wise selection into a tuned multiplication routine unlikely to help without reducing overall efficiency. Their chosen fusion therefore begins after multiplication, combining the remaining distance contribution with candidate retention.

This limits what can be claimed about intermediate storage. The procedure avoids an additional completed-distance pass, but it is not a complete score-streaming exact search with no pairwise matrix. Tiling bounds the working array; it does not change the total comparisons required by exhaustive retrieval.

The compressed fused layout encounters another explicit boundary. Its measured gain is small enough that the authors reject it, and some workloads would need further decomposition to preserve parallelism. Their results demonstrate that a register-resident selector enables integration, while the value of integration still depends on the producer’s access pattern and scheduling needs.

The paper also notes relatively poor cuBLAS efficiency at d = 128 in the exact-search experiment. A successful surrounding layout cannot compel every matrix shape to achieve the same multiplication throughput. This remains a limitation of the arithmetic stage after selection overhead has been reduced.

Authors’ stated limits: comparisons and scaling

The authors qualify the Deep1B comparison because the CPU and GPU resources differ. Their result demonstrates the capability of the described machine at comparable storage and recall. It does not measure an isolated algorithmic advantage under equal hardware or thread budgets.

They similarly identify the clustering workload as somewhat artificial when few centroids are requested. A training subset would often be more appropriate than repeatedly processing the full dataset. The benchmark reveals assignment efficiency, while leaving the practical choice of training sample outside its main comparison.

Replication can become inefficient for small query batches. Sharding has fixed overhead and requires another selection over partial answers. The paper therefore does not promise proportional speedup whenever more devices are added. Its graph measurements directly show sublinear gains from expanding the replica set.

The earlier exact-GPU graph estimate is also conditional. The 200-day projection assumes a relationship between execution time and GEMM work on the earlier cluster. It supports the authors’ feasibility discussion, but it is not a measured runtime and cannot establish the cost of every conceivable exact construction.

Reader’s inference: average-case reasoning has a defined distribution

The appendix assumes a randomly permuted collection of distinct values. That assumption makes competitive-arrival probabilities tractable and supports the logarithmic expected counts. Actual distance arrays may have structure determined by database layout, coarse assignments or query relationships. The paper does not show that every such array follows the same arrival process.

This matters to the cost explanation rather than necessarily to correctness. The retained-state conditions describe why candidates can be safely rejected. The random-order argument describes how frequently expensive operations are expected to occur. A correct result can coexist with a different event frequency when the input ordering changes.

The distinct-value assumption also separates the appendix from possible tied scores. The selection contract permits equal keys and leaves their relative ordering unspecified. However, the detailed expectation analysis does not cover every distribution of ties. It would therefore be unwarranted to treat its probability expressions as an exact runtime predictor for all numerical inputs.

Empirical queue tuning partly addresses this gap by using nearest-neighbour workloads. It shows that the chosen capacities work in the tested setting. Without broader distributions or adversarial orderings, it does not establish distribution-independent efficiency. That remains a practical boundary on transferring the reported percentages to another score stream.

Reader’s inference: the baselines answer different questions

The approximate comparisons use reported operating points from earlier work. They do not constitute a comprehensive rerun under one identical protocol. Sift1M fixes a time allowance, whereas Sift1B aligns storage and compares similar recall. Deep1B introduces a different hardware arrangement. Each supports a useful conclusion, but the conclusions are not interchangeable.

On Sift1B, R@10 = 0.376 is compared with R@10 = 0.35. The proposed method is better on both reported dimensions. Nevertheless, these points alone do not determine query time at exactly equal recall. A full matched-quality comparison would require additional operating points for the competing procedures.

The single-thread CPU result likewise cannot establish the advantage over a well-parallelised CPU implementation using the same host. That measurement is absent. The paper’s practical machine-level achievement remains clear, while a stronger claim about equivalent execution resources would go beyond the reported evidence.

Historical graph comparisons change collection size, dimensionality, hardware and method together. Their main value is explaining scale and feasibility. They cannot support a precise ranking independent of those differences. A larger elapsed time on another dataset is not, by itself, a controlled measure of algorithmic inferiority.

Reader’s inference: batched cost is not isolated-request delay

The experiments supply many independent queries. The selection benchmark uses 10,000 arrays, and the main approximate retrieval tests use n_q = 10^4. Such batching helps expose parallel work and amortise overhead. The reported time per query belongs to that execution pattern.

An isolated query arriving without a ready batch can have a different response time. It may not expose enough work, and its preparation or transfer costs may be more visible. The paper acknowledges small-batch scaling concerns but does not provide a complete interactive-serving study across arrival patterns or latency variation.

The same boundary applies to resident input. Keeping benchmark arrays on the GPU is appropriate for measuring a component that may consume GPU-generated values. It does not include every possible cost of an application whose data begins elsewhere. A deployment would need to decide whether the same resident-data condition holds.

The paper also concentrates on building and searching indexes instead of managing an evolving service. It does not systematically evaluate deletion, frequent insertion, retraining dictionaries or replacing an index during continued operation. Those are additional engineering questions, not capabilities established by the construction and query measurements.

Reader’s inference: numerical neighbours are a limited reference

The retrieval metrics assess agreement with exact neighbours under the chosen representation. They do not measure whether a candidate is useful for every downstream purpose. Exact numerical proximity can be a well-defined target while remaining an imperfect proxy for a user’s desired relation.

The graph metric similarly estimates local overlap on sampled queries. It does not certify the exact neighbourhood of every node. Nor does it measure how different errors affect connectivity, traversal or another graph algorithm. Two approximate graphs could have similar average overlap while differing in consequences for a particular downstream operation.

The image path offers an interpretable example, but no controlled perceptual evaluation accompanies it. Its objective controls the largest adjacent distance. That does not guarantee semantic consistency over the full route or establish that people would prefer it to routes optimised differently.

Connectivity is reported for the illustrated graph rather than proved for every approximation setting. An application requiring arbitrary endpoint traversal would need to check this property in its own constructed graph. Strong sampled neighbour recovery alone is not a general connectivity certificate.

Reader’s inference: hardware and numerical settings may change the balance

The implementation depends on Nvidia warps, register organisation and shuffle operations. The principal timings use Maxwell hardware. Architecture discussion involving a Pascal P100 does not supply a corresponding performance measurement. The exact timing relationships should therefore remain attached to the tested devices.

The transferable ideas are broader than those timings. Predictable access, nearby state and reduced intermediate traffic can remain useful elsewhere. However, the best queue capacities, work subdivision and memory tradeoffs may change when resource sizes or instruction costs change. The paper does not test that full range.

The detailed evaluation also centres on Euclidean retrieval. The selection interface can support another ordering, but that flexibility does not establish equivalent complete-search behaviour for every similarity criterion. A different score may alter arithmetic cost, approximation properties and the usefulness of the same coarse index.

Finally, the stated capacity advantages of 16-bit tables do not constitute a comprehensive accuracy comparison against 32-bit tables. The paper explains how precision affects what fits in shared memory. It does not thereby prove that all configurations preserve the same ranking or recall when table precision changes.

What came after

The later citing works span language retrieval, multilingual matching, visual representation and data infrastructure. They demonstrate that the research remained relevant beyond its original image-search experiments. Their relationship to the paper must nevertheless be described at the level the citation information supports. A citation alone does not identify a GPU kernel, an index family or a quantization configuration.

Several later titles explicitly name dense retrieval or approximate-neighbour search. Those provide a clear connection to the numerical candidate-search problem. Other titles identify broader tasks in which search may be relevant, while giving no implementation details. The distinction prevents a citation trail from becoming an invented account of technical adoption.

The lasting separation is between representation, retrieval and the decision made from retrieved candidates. The GPU work addresses efficient numerical retrieval. Later studies frequently focus on what the vectors should represent, how retrieval should be trained or what another component should do with the selected material. These contributions can complement one another without sharing every algorithmic detail.

Sentence representations create another searchable collection

Sentence-BERT studies sentence embeddings through a Siamese BERT architecture. That subject moves the represented object from an image descriptor towards a sentence. The relevant connection is that a collection of numerical sentence representations presents a candidate-comparison problem once those representations have been obtained.

The title and citation establish this relationship without specifying the retrieval implementation. They do not demonstrate use of WarpSelect, a particular product code or the same GPU execution arrangement. The earlier paper explains efficient search over vectors; Sentence-BERT addresses the representations of sentences that can make such comparisons useful.

Text and Code Embeddings by Contrastive Pre-Training names another extension of the represented material. Text and code become the subjects of embedding research. The infrastructure connection is again clear at a broad level: numerical representations need an efficient means of comparison when assembled into a searchable collection.

This relates to semantic similarity, but numerical search cannot establish semantic adequacy by itself. A fast index faithfully implements the comparison it is given, subject to its own approximations. Whether that comparison captures the intended relationship remains a separate empirical question for the representation and task.

Dense retrieval supplies candidates for larger decisions

Dense Passage Retrieval explicitly places passage retrieval within open-domain answering. Its title identifies a setting where candidate selection precedes another decision. The earlier GPU research provides methods relevant to searching a numerical collection efficiently, while the later work concerns the usefulness of retrieved passages for its answering objective.

That connection does not make neighbour recall an answer-quality measure. A system can retrieve numerical candidates quickly and still fail to supply appropriate evidence. The continuation lies in making retrieval a tractable stage of a larger computation, with separate responsibility for evaluating the task that consumes its output.

Scalable Zero-shot Entity Linking with Dense Entity Retrieval identifies entities as the retrieval targets. This is particularly compatible with the earlier distinction between scoring data and explicit IDs. The search representation can be compact or approximate while the selected result still denotes an identifiable entity.

The title establishes dense entity retrieval and scalability as concerns. It does not establish adoption of the GPU paper’s optional host-resident identifier storage. The supported relationship is the shared need to discover numerical candidates and return their identities, instead of a verified match between low-level layouts.

Approximate search enters the training procedure

Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval directly names approximate search in its learning objective. Its title connects neighbour retrieval with negative examples for contrastive training. This broadens the role of an index beyond answering queries after representation learning has finished.

The GPU paper’s contribution remains infrastructural in that connection. Efficient search can support candidate discovery, while the effect of choosing particular negatives is a different scientific question. Its image-retrieval experiments do not establish the consequences of a later text-training policy.

RocketQA focuses on an optimised training approach for dense passage retrieval. Efficiently Teaching an Effective Dense Retriever with Balanced Topic Aware Sampling likewise places teaching and sampling in the foreground. These titles indicate that retrieval quality depends on training decisions as well as search execution.

The available citation information does not specify which code lengths, probe counts or device arrangements those works used. Their continuation concerns the broader retrieval pipeline: fast candidate access can be useful, but learning what counts as a useful candidate remains an independent contribution.

Unsupervised retrieval changes where the representation comes from

Unsupervised Dense Information Retrieval with Contrastive Learning identifies an unsupervised training setting. Precise Zero-Shot Dense Retrieval without Relevance Labels similarly places the absence of relevance labels at the centre of its problem. Both titles connect explicitly to dense retrieval while changing the source of its supervision.

That change does not remove indexing costs. Once candidates have numerical representations, storing and searching them still requires choices about coverage, approximation and result selection. The earlier work supplies an account of those costs without prescribing how the representation must have been learned.

Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrieval moves attention toward preparation of representations for a corpus. Its connection belongs to the same chain from learning to indexing to retrieval. The citation does not show that product quantization has an identical accuracy effect across these later representations.

This boundary is important when transferring the earlier results. Efficient vector search is a reusable capability, whereas tolerance for compression depends on the geometry and purpose of the vectors being searched. The original image experiments cannot settle that question for every later text collection.

Late interaction changes how local matches become relevance

ColBERT names contextualised late interaction as its passage-search approach. The description associated with ColBERTv2 explains the basic arrangement: queries and passages have token-level vectors, and relevance combines strong matches found for individual query tokens.

This makes the connection more intricate than comparing one query vector with one whole-passage vector. A final relevance value depends on several local comparisons. Efficient candidate operations may remain useful, but they sit within a scoring procedure whose organisation differs from the original nearest-vector formulation.

The GPU paper contributes relevant building blocks: compact numerical storage, efficient selection and attention to intermediate traffic. The citation information does not establish that the complete late-interaction calculation is implemented through IVFADC or that it inherits the same performance measurements.

ColBERTv2’s title identifies lightweight late interaction as its direction. That makes storage and efficient comparison natural points of contact. Its exact method should still be attributed only where described, rather than inferred from the earlier paper’s compression machinery.

Retrieval becomes part of producing language

Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks explicitly connects retrieval with generation. The continuation is a larger system in which finding candidates supplies information for producing an answer. The GPU work addresses the search operation, while the later research concerns how retrieval participates in that larger task.

The concept of retrieval-augmented generation therefore introduces additional evaluation responsibilities. Finding nearby representations is insufficient to establish that generated claims are accurate or that retrieved material is used successfully. Those outcomes are outside the original paper’s numerical-search measurements.

REPLUG names retrieval augmentation in a black-box setting. Improving the Domain Adaptation of Retrieval Augmented Generation identifies adaptation as its concern. Their titles document new contexts for retrieval without specifying a shared low-level search implementation.

These works illustrate why infrastructure can have a broad citation trail. A numerical-search component can be relevant to systems with different information sources and downstream objectives. That relevance does not establish that every such system uses the same coarse routing, compressed representation or GPU primitive.

Conversation and prompt selection give retrieval different jobs

Retrieval Augmentation Reduces Hallucination in Conversation identifies conversational reliability as its objective. The citation connects numerical retrieval research with dialogue systems, but supplies no effect size or detailed account of the search configuration.

Internet-Augmented Dialogue Generation names another form of information access within conversation. Its relevance lies in the expanded role of retrieval, while the precise relationship to the earlier implementation remains unspecified by the citation information.

Learning To Retrieve Prompts for In-Context Learning changes the selected object. Retrieval chooses prompts for a subsequent process rather than necessarily retrieving passages as evidence. The computational pattern of selecting a few candidates remains recognisable even though their purpose differs.

The long-form answering task in ELI5 adds another distinction. Its description emphasises explanations beyond short-span responses. Whatever retrieval contributes, the final objective includes properties that nearest-neighbour accuracy alone cannot measure. The citation connects search infrastructure with that task without making the original paper an evaluation of explanatory answers.

Multilingual mining applies matching across collections

Word Translation Without Parallel Data places the citation trail in cross-language lexical research. The title establishes its translation setting, but not the particular numerical-search operations used. The relation should therefore remain a documented citation connection instead of an asserted implementation history.

The titles of WikiMatrix and CCMatrix identify parallel-sentence mining from Wikipedia and the web. These tasks connect search with the discovery of cross-language material for machine translation.

Repeated candidate discovery across large collections resembles the workload pressure motivating graph construction. The desired output is different, however: useful parallel pairs rather than local graph edges under an image representation. Their quality criteria cannot be replaced with the original paper’s neighbourhood-overlap measure.

The citations establish relevance to scalable matching, without showing that these studies construct the same graph or use its bottleneck path objective. The broader continuation is the use of efficient search in discovering relationships throughout a collection.

Visual features and data infrastructure retain the connection

DINOv2 returns to the visual side through robust features learned without supervision. Its title concerns representation quality. The GPU paper concerns how numerical representations can be searched once available. Their relationship preserves the same division between creating useful vectors and manipulating a large collection efficiently.

Datasets: A Community Library for Natural Language Processing documents a citation from data infrastructure. Its title establishes that context, but gives no account of which search algorithm is incorporated. A citation in infrastructure work indicates reach without proving adoption of a particular kernel.

A Survey on Automated Fact-Checking supplies another kind of connection. A survey can cite computational infrastructure while discussing a broader field. That reference should not be turned into a claim that the survey introduces a successor to WarpSelect or evaluates the same billion-entry workloads.

Finally, Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense names retrieval in a defensive application. The title supports that application connection while leaving the index scale and implementation unspecified. It extends the range of purposes served by retrieval, whose underlying numerical costs remain distinct from the validity of the decision made afterwards.

 Institutions

 Fields, topics and concepts

 Shelves 3The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksComputer Vision and Pattern Recognition · 3,621 worksHardware and Architecture · 183 works

 Topics 1Research subjects and languages the work is about.GPU & parallel computing · 44 works

Cite

Cite as Jeff Johnson, Matthijs Douze and Hervé Jégou. 2017. Billion-scale similarity search with GPUs. arXiv:1702.08734.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1702.08734 · arXiv 1702.08734

@misc{johnson2017billion,
  title = {{Billion-scale similarity search with GPUs}},
  author = {Jeff Johnson, Matthijs Douze and Hervé Jégou},
  year = {2017},
  doi = {10.48550/arxiv.1702.08734},
  eprint = {1702.08734},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1702.08734}
}

References

48 references, from the paper's own bibliography.

  1. T. Alabi, J. D. Blanchard, B. Gordon, and R. Steinbach. Fast k-selection algorithms for graphics processing units. ACM Journal of Experimental Algorithmics, 17:4.2:4.1–4.2:4.29, October 2012. OpenAlex ↗ · Scholar ↗
  2. F. André, A.-M. Kermarrec, and N. L. Scouarnec. Cache locality is not enough: High-performance nearest neighbor search with product quantization fast scan. In Proc. International Conference on Very Large DataBases, pages 288–299, 2015. OpenAlex ↗ · Scholar ↗
  3. Y. Avrithis, Y. Kalantidis, E. Anagnostopoulos, and I. Z. Emiris. Web-scale image clustering revisited. In Proc. International Conference on Computer Vision, pages 1502–1510, 2015. OpenAlex ↗ · Scholar ↗
  4. A. Babenko and V. Lempitsky. The inverted multi-index. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, pages 3069–3076, June 2012. OpenAlex ↗ · Scholar ↗
  5. A. Babenko and V. Lempitsky. Improving bilayer product quantization for billion-scale approximate nearest neighbors in high dimensions. arXiv preprint arXiv:1404.1831, 2014. OpenAlex ↗ · Scholar ↗
  6. A. Babenko and V. Lempitsky. Efficient indexing of billion-scale datasets of deep descriptors. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, pages 2055–2063, June 2016. OpenAlex ↗ · Scholar ↗
  7. R. Barrientos, J. Gómez, C. Tenllado, M. Prieto, and M. Marin. knn query processing in metric spaces using GPUs. In International European Conference on Parallel and Distributed Computing, volume 6852 of Lecture Notes in Computer Science, pages 380–392, Bordeaux, France, September 2011. Springer. OpenAlex ↗ · Scholar ↗
  8. K. E. Batcher. Sorting networks and their applications. In Proc. Spring Joint Computer Conference, AFIPS '68 (Spring), pages 307–314, New York, NY, USA, 1968. ACM. OpenAlex ↗ · Scholar ↗
  9. P. Boncz, W. Lehner, and T. Neumann. Special issue: Modern hardware. The VLDB Journal, 25(5):623–624, 2016. OpenAlex ↗ · Scholar ↗
  10. J. Canny, D. L. W. Hall, and D. Klein. A multi-teraflop constituency parser using GPUs. In Proc. Empirical Methods on Natural Language Processing, pages 1898–1907. ACL, 2013. OpenAlex ↗ · Scholar ↗
  11. J. Canny and H. Zhao. Bidmach: Large-scale learning with zero memory allocation. In BigLearn workshop, NIPS, 2013. OpenAlex ↗ · Scholar ↗
  12. B. Catanzaro, A. Keller, and M. Garland. A decomposition for in-place matrix transposition. In Proc. ACM Symposium on Principles and Practice of Parallel Programming, PPoPP '14, pages 193–206, 2014. OpenAlex ↗ · Scholar ↗
  13. J. Chhugani, A. D. Nguyen, V. W. Lee, W. Macy, M. Hagog, Y.-K. Chen, A. Baransi, S. Kumar, and P. Dubey. Efficient implementation of sorting on multi-core simd cpu architecture. Proc. VLDB Endow., 1(2):1313–1324, August 2008. OpenAlex ↗ · Scholar ↗
  14. A. Dashti. Efficient computation of k-nearest neighbor graphs for large high-dimensional data sets on gpu clusters. Master's thesis, University of Wisconsin Milwaukee, August 2013. OpenAlex ↗ · Scholar ↗
  15. W. Dong, M. Charikar, and K. Li. Efficient k-nearest neighbor graph construction for generic similarity measures. In WWW: Proceeding of the International Conference on World Wide Web, pages 577–586, March 2011. OpenAlex ↗ · Scholar ↗
  16. M. Douze, H. Jégou, and F. Perronnin. Polysemous codes. In Proc. European Conference on Computer Vision, pages 785–801. Springer, October 2016. OpenAlex ↗ · Scholar ↗
  17. T. Ge, K. He, Q. Ke, and J. Sun. Optimized product quantization. IEEE Trans. PAMI, 36(4):744–755, 2014. OpenAlex ↗ · Scholar ↗
  18. Y. Gong and S. Lazebnik. Iterative quantization: A procrustean approach to learning binary codes. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, pages 817–824, June 2011. OpenAlex ↗ · Scholar ↗
  19. Y. Gong, L. Wang, R. Guo, and S. Lazebnik. Multi-scale orderless pooling of deep convolutional activation features. In Proc. European Conference on Computer Vision, pages 392–407, 2014. OpenAlex ↗ · Scholar ↗
  20. A. Gordo, J. Almazan, J. Revaud, and D. Larlus. Deep image retrieval: Learning global representations for image search. In Proc. European Conference on Computer Vision, pages 241–257, 2016. OpenAlex ↗ · Scholar ↗
  21. S. Han, H. Mao, and W. J. Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015. OpenAlex ↗ · Scholar ↗
  22. K. He, F. Wen, and J. Sun. K-means hashing: An affinity-preserving quantization method for learning binary compact codes. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, pages 2938–2945, June 2013. OpenAlex ↗ · Scholar ↗
  23. K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, pages 770–778, June 2016. our card
  24. X. He, D. Agarwal, and S. K. Prasad. Design and implementation of a parallel priority queue on many-core architectures. IEEE International Conference on High Performance Computing, pages 1–10, 2012. OpenAlex ↗ · Scholar ↗
  25. H. Jégou, M. Douze, and C. Schmid. Product quantization for nearest neighbor search. IEEE Trans. PAMI, 33(1):117–128, January 2011. OpenAlex ↗ · Scholar ↗
  26. H. Jégou, R. Tavenard, M. Douze, and L. Amsaleg. Searching in one billion vectors: re-rank with source coding. In International Conference on Acoustics, Speech, and Signal Processing, pages 861–864, May 2011. OpenAlex ↗ · Scholar ↗
  27. Y. Kalantidis and Y. Avrithis. Locally optimized product quantization for approximate nearest neighbor search. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, pages 2329–2336, June 2014. OpenAlex ↗ · Scholar ↗
  28. A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems, pages 1097–1105, 2012. our card
  29. F. T. Leighton. Introduction to Parallel Algorithms and Architectures: Array, Trees, Hypercubes. Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 1992. OpenAlex ↗ · Scholar ↗
  30. E. Lindholm, J. Nickolls, S. Oberman, and J. Montrym. NVIDIA Tesla: a unified graphics and computing architecture. IEEE Micro, 28(2):39–55, March 2008. OpenAlex ↗ · Scholar ↗
  31. W. Liu and B. Vinter. Ad-heap: An efficient heap data structure for asymmetric multicore processors. In Proc. of Workshop on General Purpose Processing Using GPUs, pages 54:54–54:63. ACM, 2014. OpenAlex ↗ · Scholar ↗
  32. T. Mikolov, I. Sutskever, K. Chen, G. S. Corrado, and J. Dean. Distributed representations of words and phrases and their compositionality. In Advances in Neural Information Processing Systems, pages 3111–3119, 2013. our card
  33. L. Monroe, J. Wendelberger, and S. Michalak. Randomized selection on the GPU. In Proc. ACM Symposium on High Performance Graphics, pages 89–98, 2011. OpenAlex ↗ · Scholar ↗
  34. M. Norouzi and D. Fleet. Cartesian k-means. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, pages 3017–3024, June 2013. OpenAlex ↗ · Scholar ↗
  35. M. Norouzi, A. Punjani, and D. J. Fleet. Fast search in Hamming space with multi-index hashing. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, pages 3108–3115, 2012. OpenAlex ↗ · Scholar ↗
  36. J. Pan and D. Manocha. Fast GPU-based locality sensitive hashing for k-nearest neighbor computation. In Proc. ACM International Conference on Advances in Geographic Information Systems, pages 211–220, 2011. OpenAlex ↗ · Scholar ↗
  37. L. Paulevé, H. Jégou, and L. Amsaleg. Locality sensitive hashing: a comparison of hash function types and querying mechanisms. Pattern recognition letters, 31(11):1348–1358, August 2010. OpenAlex ↗ · Scholar ↗
  38. O. Shamir. Fundamental limits of online and distributed algorithms for statistical learning and estimation. In Advances in Neural Information Processing Systems, pages 163–171, 2014. OpenAlex ↗ · Scholar ↗
  39. A. Sharif Razavian, H. Azizpour, J. Sullivan, and S. Carlsson. CNN features off-the-shelf: an astounding baseline for recognition. In CVPR workshops, pages 512–519, 2014. OpenAlex ↗ · Scholar ↗
  40. N. Sismanis, N. Pitsianis, and X. Sun. Parallel search of k-nearest neighbors with synchronous operations. In IEEE High Performance Extreme Computing Conference, pages 1–6, 2012. OpenAlex ↗ · Scholar ↗
  41. X. Tang, Z. Huang, D. M. Eyers, S. Mills, and M. Guo. Efficient selection algorithm for fast k-nn search on GPUs. In IEEE International Parallel & Distributed Processing Symposium, pages 397–406, 2015. OpenAlex ↗ · Scholar ↗
  42. B. Thomee, D. A. Shamma, G. Friedland, B. Elizalde, K. Ni, D. Poland, D. Borth, and L.-J. Li. YFCC100M: The new data in multimedia research. Communications of the ACM, 59(2):64–73, January 2016. our card
  43. V. Volkov and J. W. Demmel. Benchmarking GPUs to tune dense linear algebra. In Proc. ACM/IEEE Conference on Supercomputing, pages 31:1–31:11, 2008. OpenAlex ↗ · Scholar ↗
  44. A. Wakatani and A. Murakami. GPGPU implementation of nearest neighbor search with product quantization. In IEEE International Symposium on Parallel and Distributed Processing with Applications, pages 248–253, 2014. OpenAlex ↗ · Scholar ↗
  45. T. Warashina, K. Aoyama, H. Sawada, and T. Hattori. Efficient k-nearest neighbor graph construction using mapreduce for large-scale data sets. IEICE Transactions, 97-D(12):3142–3154, 2014. OpenAlex ↗ · Scholar ↗
  46. R. Weber, H.-J. Schek, and S. Blott. A quantitative analysis and performance study for similarity-search methods in high-dimensional spaces. In Proc. International Conference on Very Large DataBases, pages 194–205, 1998. OpenAlex ↗ · Scholar ↗
  47. P. Wieschollek, O. Wang, A. Sorkine-Hornung, and H. P. A. Lensch. Efficient large-scale approximate nearest neighbor search on the GPU. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, pages 2027–2035, June 2016. OpenAlex ↗ · Scholar ↗
  48. S. Williams, A. Waterman, and D. Patterson. Roofline: An insightful visual performance model for multicore architectures. Communications of the ACM, 52(4):65–76, April 2009. our card

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/johnson-2017-billion-scale-similarity-search-gpus/