← Back to AI Engineering Mind Map
⚡Flashcard Drill➔
🤖 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.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of Product Quantization (PQ).
Use Cases
In production engineering, what are the primary use cases for Product Quantization (PQ) and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
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
🎯
Verify Mastery: Practice Exam Questions for "Product Quantization (PQ)"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.
🎯 Drill This Card Now➔
← Previous CardScalar Quantization (SQ8/SQ4)Next Card →ADC Asymmetric Distance Computation

🔗 More AI Engineering Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/AI_Engineering/card/product-quantization-pq