Back to AI Engineering Mind Map
中文·English
🤖 AI EngineeringID: product-quantization-pq

Product Quantization (PQ)

PQ 乘积量化与码本聚类
🎯Core Definition
Product Quantization (PQ) is a lossy vector compression algorithm based on orthogonal subspace decomposition; it divides a DD-dimensional space into MM orthogonal lower-dimensional subspaces (d=D/Md^* = D/M), runs K-Means clustering independently in each subspace to produce K=256K=256 centroids as a Codebook, and encodes each sub-vector into an 8-bit centroid index (1 Byte), compressing the entire vector into just MM bytes.
💡Use Cases
Core indexing and storage compression for 100M to billion-scale vector retrieval systems, notably in Faiss IVF-PQ, Milvus, and DiskANN.
Key Problems Solved
Conventional scalar quantization tops out at 4x~8x compression; PQ leverages joint subspace clustering to compress a 1536-dim FP32 vector (6144 bytes) down to M=64M=64 bytes (96x reduction), making billion-scale vector ANN search feasible on a single machine.
🎯5 High-Frequency Exam Points
1
Derive how PQ parameters (MM subspaces, KK centroid counts) dictate compression ratio and reconstruction error?
2
Why does applying OPQ (Optimized Product Quantization) orthogonal rotation before PQ significantly reduce quantization error?
3
For a 1024-dim FP32 vector with M=32,K=256M=32, K=256, what is the compressed size in bytes and theoretical compression ratio?
4
Compare Symmetric Distance Computation (SDC) vs Asymmetric Distance Computation (ADC) in PQ precision and compute cost?
5
How does Residual Vector Quantization (RVQ) perform multi-stage cascaded quantization to improve recall over standard PQ?
Updated 2026-08-14
🎯
Test Your Knowledge: Practice Questions for "Product Quantization (PQ)"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardScalar Quantization (SQ8/SQ4)Next CardADC Asymmetric Distance Computation

🔗 More AI Engineering Knowledge Cards

Vector Distance Metrics & L2 NormalizationIVF Inverted File IndexingHNSW Multi-Layer Skip GraphHNSW Heuristic Search & Routing