Repository navigation
Conversation
Author
|
Repinned WARM to the v0.7.4 tag ( |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
neurips23/sparse/warm(algorithm keywarm): WARM's sparse inner-product index (writerslogic_warm, Rust). Source: https://github.com/writerslogic/warm (Apache-2.0), pinned by the singleARG WARM_COMMITinneurips23/sparse/warm/Dockerfile(0f81061bb0bd45edb8c78793dd6162062c709055, WARM main; runs 1 and 2 below were taken at the earlier branch commitc1731145, which has the same index code, and run 3 at the submitted pin). The wheel is built withmaturin build --release --features pythonon a pinned Rust 1.99.0 toolchain.Files:
Dockerfile,config.yaml(1 build configuration; 8 search configurations on sparse-full; one each on sparse-small and sparse-1M),warm.py(Warm(BaseSparseANN)), and the CI list entry in.github/workflows/neurips23.yml.Algorithm
A blocked inverted index in the style of Seismic, with three additions.
block_fraction0.25, about 4 documents per block).summary_coords(256) coordinates with the largest summed block maxima are kept as u8 columns, so the upper bound of every block of a list is computed in one AVX2 pass. The part of a document outside those columns is bounded by its L2 norm (Cauchy-Schwarz), scaled by the search parameterresidual.query_cutlargest terms. In each walked list theseed(2) blocks with the best bounds are scored first so the heap threshold rises early. Blocks whose bound is below the current k-th score divided byheap_factorare skipped.col_cutdrops summary columns whose weighted scale is below that fraction of the list's largest.tailtimes the query norm times that tail norm is below the k-th score. Only survivors read the full forward row (u16 ids, u8 values, one f32 scale per row), in prefetched batches ofbatchdocuments.Configuration
Build:
{"block_fraction": 0.25, "summary_coords": 256, "sketch_len": 40}.Search (sparse-full): eight configurations over
query_cut5 to 6,heap_factor1.04 to 1.1,tail0.25 to 0.28,col_cut0.06 to 0.1,batch16 or 24, all withresidual0.12 andseed2. They are listed inconfig.yaml.The search parameters were chosen on one half of the public queries (even rows) and checked on the other half; the two halves agreed within 0.002 recall and 3% QPS. The runs below used all 6,980 public queries.
Measured results (not the organisers' evaluation)
GCP n2-custom-8-16384 (Ice Lake, 8 vCPU, 16 GiB), Docker mode, image built by
python install.py --neurips23track sparse --algorithm warmfrom this branch, thenpython run.py --neurips23track sparse --algorithm warm --dataset sparse-full. Recall is the harness value (benchmark.plotting.metrics.get_recall_values). This is not the organisers' Azure Standard_D8lds_v5, so these are not official results and not a leaderboard placement; QPS on the official VM is for the organisers to measure.--force)--force)In run 3 the other six configurations scored 25,738 to 27,104 QPS at recall 0.9037 to 0.9094. Run 3 built the image from this head with
install.py(the build log shows the checkout of the pinned commit); the sparse-small configuration also ran with exit 0.Memory, polled every 2 s during run 1 and run 2 (run 3 read the same within 0.5 GB):
run.pyset on this VM. No OOM kill occurred in either run.Not checked
data_export.pyon this VM: it stopped on a missing ground-truth file of another dataset, so recall was computed from the result files with the harness'sget_recall_values.