research(nightly): 2026-05-08 Locally-Adaptive Vector Quantization (LVQ)#446
Draft
CrossGen-ai wants to merge 1 commit intoruvnet:mainfrom
Draft
Conversation
Single-level (LVQ-8) and two-level residual (LVQ-8x8) per-vector scalar quantization with asymmetric L2/dot kernels and a reranking-friendly flat index. Pure-Rust, #![forbid(unsafe_code)], all files <500 LOC. Real benchmark (200K x 128 on Apple M4 Max): - LVQ-8: 27.3% memory, recall@10 = 0.942 - LVQ-8x8 (10x): 54.7% memory, recall@10 = 1.000 10/10 tests pass under cargo test -p ruvector-lvq --release. See ADR-193 and docs/research/nightly/2026-05-08-lvq-locally-adaptive-vq/.
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.
Summary
Adds a working Rust PoC for Locally-Adaptive Vector Quantization (LVQ) —
the per-vector 8-bit scalar compression scheme from Intel's Scalable Vector
Search (Aguerrebere et al., VLDB 2024) — as a new workspace crate
`crates/ruvector-lvq`. Includes a two-level residual variant (LVQ-8x8) that
matches fp32 recall at half the memory.
Real benchmarks (Apple M4 Max, n=200K, d=128, k=10)
Test plan
Notes
This branch is on a fork (`CrossGen-ai/RuVector`) because the nightly
research bot does not have push access to `ruvnet/RuVector`. PR is opened
draft so the upstream maintainers can decide whether to merge or rebase.