Asymmetric Quantization: Near-Lossless Retrieval with 97% Storage Reduction
TL;DR Highlight
Storing only document vectors as 1-bit cut storage 32x with just a 0.61 NDCG@10 drop.
Who Should Read
Search or RAG infrastructure developers struggling with storage cost and cold-start time of multi-vector (late interaction) retrieval
Core Mechanics
- Documents are stored, queries run once
- Document vectors are stored, replicated, cached, rehydrated and scored repeatedly, so they dominate long-term cost.
- Queries are short-lived and never stored in the index, so compressing them saves almost nothing.
- Binary documents, int8 queries
- Document vectors are kept only as sign bits while queries stay int8.
- Raw per-document storage drops from 393 KiB in fp32 to 12.28 KiB, a 32x (about 97%) reduction.
- Only a 0.61-point quality drop
- On their internal benchmarks, average NDCG@10 goes from 90.26 (fp32) to 89.65 (int8 query × binary doc).
- They say Wholembed v3 is trained with this tradeoff in mind, so it is robust to the quantization.
- Binarizing the query too breaks quality
- binary×binary scores 83.06, 7.20 points below fp32.
- It reads the same document bytes as int8×binary, so only the query precision explains the gap.
- Scoring needs no multiplies
- With document signs as +1/-1, score = 2 × (sum of query values at positive bits) − total query sum.
- On an ARM machine, median latency fell from 14.20 ms (fp32) to 3.71 ms (int8×binary), 3.82x faster.
- int8×int8 is essentially lossless
- NDCG@10 is 90.27 versus 90.26 for fp32, within measurement noise.
- Document storage drops 4x to 98.25 KiB and scoring is 3.2x faster.
Community Reactions
- Opinion that 'near lossless' is misleading
- One commenter said calling ~90% retrieval accuracy 'near lossless' is a stretch.
- They argued lossiness is binary and cannot be papered over with 'close enough'.
- Request for concrete quality-loss examples
- A commenter worried that rare words with fine meaning distinctions might be hurt more than the numbers suggest.
- They wanted real failure examples beyond aggregate scores.
- Comparison to BitNet
- A commenter noted the strategy resembles BitNet's int8 activations with binary or ternary weights.
- They also said binary×binary should be fast in theory via XNOR and popcount, but in practice it is slow unless heavily optimized.
How to Apply
- Calculate your index's per-document storage today
- Multiply vectors per document × dimensions × bytes to get the fp32 raw size.
- Plug in int8 (1 byte) and binary (1/8 byte) to tabulate the 4x and 32x savings.
- Compare four precision pairings on your data
- Run float/float, int8/int8, int8/binary and binary/binary and measure NDCG@10.
- Check whether the int8/binary drop is acceptable on your own eval set.
- Compress documents, keep queries precise
- Limit compression to the stored document vectors.
- Keep query vectors at int8 or higher to preserve the magnitude information ranking needs.
- Check the model tolerates quantization first
- Before moving to 1-bit document vectors, confirm your embedding model was trained to be robust to quantization.
- If not, start with int8×int8.
Try It
# Python (pip install numpy) — simplified version of the paper's method: verify the int8×binary scoring identity on random data
import numpy as np
rng = np.random.default_rng(0)
d = 128
q = rng.integers(-127, 128, size=d).astype(np.int32) # int8 query token
doc = rng.normal(size=d) # fp32 document token
b = np.where(doc >= 0, 1, -1) # sign bits: +1/-1
score_dot = int(q @ b)
score_trick = int(2 * q[b == 1].sum() - q.sum())
print(score_dot, score_trick, score_dot == score_trick)Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls