research(nightly): graph-topology-aware-quant — hub-aware SQ4/SQ8 mixed precision#665
Draft
ruvnet wants to merge 1 commit into
Draft
research(nightly): graph-topology-aware-quant — hub-aware SQ4/SQ8 mixed precision#665ruvnet wants to merge 1 commit into
ruvnet wants to merge 1 commit into
Conversation
Introduces Topology-Aware Quantization (TAQ): hub nodes in the k-NN graph receive SQ8 precision and leaf nodes receive SQ4. Measured result: recall@10 0.9652 at 21% of f32 memory — 14.6pp better than uniform SQ4 at only 9% more memory, and 4% less memory than uniform SQ8. Co-Authored-By: claude-flow <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_012ZGXfCgLGFEJwKoyeuKYSC
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 nightly RuVector research for Graph-Topology-Aware Quantization (TAQ): assigning SQ8 (8-bit) precision to hub nodes and SQ4 (4-bit) precision to leaf nodes in a k-nearest-neighbor graph, achieving better recall than uniform SQ4 at lower memory than uniform SQ8.
TAQ recall ≥ SQ4 recall AND TAQ memory ≤ SQ8 memoryWhat's Included
crates/ruvector-taq/with 4 index variants and 15 passing unit testsdocs/adr/ADR-272-graph-topology-aware-quant.mddocs/research/nightly/2026-07-12-graph-topology-aware-quant/README.mddocs/research/nightly/2026-07-12-graph-topology-aware-quant/gist.mdcargo run --release -p ruvector-taq --bin benchmarkKey Benchmark Numbers
Hardware: x86_64 Linux. Rust 1.94.1. N=5,000, D=64, Q=500, K=10.
Algorithm
in_degree > threshold→ hub (SQ8), else → leaf (SQ4).Ecosystem Connections
ruvector-graph+ruvector-mincut— graph primitives for topology discoveryruvector-agent-memory— TAQ as compression backend for episodic memorycognitum-gate-kernel— edge deployment with TAQ as memory substrateruvector-proof-gate— combine for precision-upgrade access controlrvf/ RVF format — serialize TAQ index to portable cognitive packagememory_compress(),memory_search_compressed()as agent primitivesResearch doc
docs/research/nightly/2026-07-12-graph-topology-aware-quant/README.mdADR
docs/adr/ADR-272-graph-topology-aware-quant.mdBuild and Test
Generated by Claude Code