Papers › Spreading vectors for similarity search

Spreading vectors for similarity search

8 Jun 2018ICLR 2019 5arXiv:1806.03198archive 2025-07-28

Alexandre Sablayrolles, Matthijs Douze, Cordelia Schmid, Hervé Jégou

Discretizing multi-dimensional data distributions is a fundamental step of modern indexing methods. State-of-the-art techniques learn parameters of quantizers on training data for optimal performance, thus adapting quantizers to the data. In this work, we propose to reverse this paradigm and adapt the data to the quantizer: we train a neural net which last layer forms a fixed parameter-free quantizer, such as pre-defined points of a hyper-sphere. As a proxy objective, we design and train a neural network that favors uniformity in the spherical latent space, while preserving the neighborhood structure after the mapping. We propose a new regularizer derived from the Kozachenko--Leonenko differential entropy estimator to enforce uniformity and combine it with a locality-aware triplet loss. Experiments show that our end-to-end approach outperforms most learned quantization methods, and is competitive with the state of the art on widely adopted benchmarks. Furthermore, we show that training without the quantization step results in almost no difference in accuracy, but yields a generic catalyzer that can be applied with any subsequent quantizer.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1806.03198")

Code

Syntology Ran 1 of 15 code samples harvested from 1 repository linked to this paper; 14 have no recorded run. Of those that ran: 1 ran · honoured contract.

By repository: community (archive-listed): 15 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

facebookresearch/spreadingvectors officialmentioned in paperpytorchNOASSERTION report
lsyhprum/brewess mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 1 ran; 1 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
14unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from lsyhprum/brewess. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

mmap_fvecs lsyhprum/brewess/lib/utils.py community (archive-listed) ran · honoured contract MIT (permissive) · 37bf4e15693c357b · report
fetch_BIGANN1M lsyhprum/brewess/lib/data.py community (archive-listed) unverified MIT (permissive) · e94561f6e0e4aa72 · report
fetch_DEEP1M lsyhprum/brewess/lib/data.py community (archive-listed) unverified MIT (permissive) · 5d8d153339d20b81 · report
fetch_SIFT1M lsyhprum/brewess/lib/data.py community (archive-listed) unverified MIT (permissive) · 01336cc0613fa115 · report
get_learning_rate lsyhprum/brewess/lib/nn_utils.py community (archive-listed) unverified MIT (permissive) · ea79a3921665cbad · report
gumbel_softmax lsyhprum/brewess/lib/nn_utils.py community (archive-listed) unverified MIT (permissive) · 63af884f867546da · report
is_parametrized lsyhprum/brewess/lib/parametrize.py community (archive-listed) unverified MIT (permissive) · c2856de162667599 · report
ivecs_read lsyhprum/brewess/lib/utils.py community (archive-listed) unverified MIT (permissive) · 7989213dfc5c4cc4 · report
mmap_bvecs lsyhprum/brewess/lib/utils.py community (archive-listed) unverified MIT (permissive) · 1c59580df5e1f28e · report
orthogonal lsyhprum/brewess/lib/parametrizations.py community (archive-listed) unverified MIT (permissive) · 4f8f3d6a905e5ea5 · report
register_parametrization lsyhprum/brewess/lib/parametrize.py community (archive-listed) unverified MIT (permissive) · fa9468c52f38c09b · report
remove_parametrizations lsyhprum/brewess/lib/parametrize.py community (archive-listed) unverified MIT (permissive) · cfc6fc75cd26e60f · report
spectral_norm lsyhprum/brewess/lib/parametrizations.py community (archive-listed) unverified MIT (permissive) · 1a154a050293ebb3 · report
to_one_hot lsyhprum/brewess/lib/nn_utils.py community (archive-listed) unverified MIT (permissive) · b26e044dc568ced8 · report
transpose lsyhprum/brewess/lib/parametrizations.py community (archive-listed) unverified MIT (permissive) · da917ddc816d2f25 · report

Tasks

Quantization

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections