Repository navigation
Conversation
dcondrey
marked this pull request as ready for review
November 6, 2026 20:46
… blocked intersection, grouped batches)
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/filter/warm(algorithm keywarm): WARM's label-filtered index (writerslogic_warm.FilteredIndex, Rust). Source: https://github.com/writerslogic/warm (Apache-2.0), pinned by the singleARG WARM_COMMITinneurips23/filter/warm/Dockerfile(cc846be0b61c946db3943282daa044333bf604d5, WARM main after writerslogic/warm#434 merged; the per-class measurements below were taken at its parent branch commit8d48984f, and the submitted pin was also built and run). The wheel is built withmaturin build --release --features pythonon a pinned Rust 1.99.0 toolchain.Files:
Dockerfile,config.yaml(1 build configuration; 4 search configurations on yfcc-10M; therandom-filter-sCI configuration),warm.py(Warm(BaseFilterANN)), and the CI list entry in.github/workflows/neurips23.yml. The adapter readsDATASETSto load the dataset and does not replace any harness dataset class.Algorithm
ivf_min(1,500) members also keep k-means lists over their own members and a membership bitset when they have at leastbitset_min(20,000) members.brute_max(600) members, or the intersection with the other labels is small enough, every match is scored exactly. Otherwise the label's lists are probed nearest-centroid first, members that lack the other query labels are skipped, and probing stops oncetargetmatches have been scored.rerankare rescored exactly on the uint8 rows (exact integer L2, ties broken on the smaller id).targetandrerankare set per query class: single-label or multi-label query, and the rarest label's size band (edges 5,000, 30,000, 150,000 members), 8 classes in all. Queries are grouped by label set within a batch.Details and sweeps:
docs/benchmarks/BIG-ANN-FILTER.mdin the WARM repository.Configuration
Build:
ivf_min 1500, cluster_size 500, max_lists 4096, bitset_min 20000, copy_minunbounded,pq_m 48, threads 8.Search: four configurations, all with
brute_max 600, intersect_max 1000000, prefetch 32, class edges 5000/30000/150000 and thererankandtargetsper class listed inconfig.yaml. They differ only in some per-classtargetsandreranksentries:Multi-label reranks are 48 in every class.
How the per-class settings were chosen
The public queries were split into two halves with a fixed seed. The
(target, rerank)pair of each class was chosen on one half from that class's time-versus-recall front (a Lagrangian selection over the per-class fronts). The other half was used only to check the choice. In-process, over the whole query set, configs 1, 2 and 3 scored recall 0.9034, 0.9020 and 0.9018 on the held-out half (0.9043, 0.9031 and 0.9027 on the selection half). Config 4 scored 0.9073 held out (0.9082 on the selection half). The official-protocol runs below used all 100,000 public queries.Measured results (not the organisers' evaluation)
All runs are Azure Standard_E8bds_v5 or GCP Ice Lake VMs. The Azure Standard_E8bds_v5 has the same Xeon 8370C CPU as the organisers' Standard_D8lds_v5 but is not that VM (the D8lds_v5 size had no quota). These are not official results and not a leaderboard placement; QPS and timing on the official VM are for the organisers to measure.
python run.py --neurips23track filter --algorithm warm --dataset yfcc-10M(Docker mode, 100,000 public queries). Recall@10 is the same in every run. QPS per search configuration (configs as in the table above):8d48984f8d48984f8d48984f8d48984f8d48984finstall.pycc846be0(submitted pin)install.pyneurips23base with a wheel built outside the image and copied in.oom_kill 0. The image was built from the previous filter image with the WARM clone checked out at8d48984fand the wheel rebuilt; it was not built from this PR's updated Dockerfile.python install.py --neurips23track filter --algorithm warmfrom this branch's Dockerfile as written, with no change to the Dockerfile or wrapper. Image build 138 s (pin8d48984f, branch commit4284b9b) and 154 s (pincc846be0). Harness build time 411.3 s and 411.2 s, index size 5.42e6 KB, complete elapsed time 432 s per run. Peak RSS summed over the container's processes 10.64 GiB (largest single-process high-water mark 10.66 GiB), cgroup peak 11.63 GiB of 16 GiB,oom_kill 0. These two runs are one run each at the pins listed.benchmark/runner.pyreceives the host's available memory as the container limit for every track (main.pypasses it in; the8 GiBline for streaming is not reached). A first filter run with no limit was aborted. The Azure runs applied a one-line change torunner.py(if mem_limit is None:replaced byif True:, with the filter limit set to 16 GiB) so that the container had the 16 GiB limit stated inneurips23/README.md. This is a harness change in our runs, not part of this PR.run.py,plot.pyanddata_export.pyonrandom-filter-swith this branch's image exit 0 (2 results).cc846be0row is lower than the8d48984frow on configs 1 and 4 and the two builds have the same recall.6091c519, one configuration at 5000:1750) measured 47,920 and 45,768 QPS at recall 0.9064 on the GCP host; it is replaced by this entry.Commands (Linux, Azure D8lds_v5 procedure)
(
show_operating_points.pytakes the file with--csv; the README's positional form does not parse.)Not checked
cc846be0build differs in speed from the8d48984fbuild beyond run-to-run spread (one run each; the per-class measurements and tuning were done at8d48984f; the commits between them are two lint-titled fixes and the merge, whose effect on results was not measured separately).random-filter-sCI job on GitHub-hosted runners for this head (the same dataset ran with exit 0 throughrun.py,plot.pyanddata_export.pyon Azure).