← All questions
Retrieval & EmbeddingsHard· Quantization· Binary Quantization

How does Binary Quantization (BQ) compare to Product Qu...

Binary Quantization (BQ) fixes its cells as the orthants of the space, meaning it requires no training and is immune to corpus shift. PQ, conversely, fits k-means to the actual data density. If your system includes a full-precision rescoring stage, the first stage only needs to produce a high-quality shortlist. BQ’s computational efficiency (popcount) allows for a deeper scan at the same latency, which can often outperform PQ in that specific role.

Code playground (Python)