Graph
IVF-PQ

🎯IVF-PQ

NEW

Also known as: Inverted File with Product Quantization

An approximate nearest neighbor index combining inverted lists with product quantization to compress vectors and accelerate large-scale similarity search.

DESCRIPTION

IVF-PQ partitions vectors into inverted lists using coarse quantization, then applies product quantization to compress residuals or vectors. It balances accuracy, memory footprint, and speed for billion-scale search. Typical parameters include number of lists, probes, and PQ codebooks. IVF-PQ is widely implemented in FAISS and vector databases.

ALTERNATIVE DEFINITIONS

FAISS Wiki

IVF-PQ combines an inverted file index with product quantization to perform efficient approximate search on large datasets.

Explicitly emphasizes efficiency on large-scale datasets.

Source

Milvus

IVF_PQ is an index type that combines IVF and PQ to achieve efficient and memory-friendly search for massive datasets.

Highlights memory efficiency for massive-scale use.

Source

Approximate Nearest Neighbor Vector Index FAISS Product Quantization Residual Quantization Centroid Cluster Analysis Vector Search

COMPETING TERMS

HNSW IVF-Flat

KNOWLEDGE AREAS

AI Data Storage & Operations Infrastructure MLOps Data Services

TARGET AUDIENCE

AI Engineer MLOps Engineer Data Engineer Software Developer Solution Architect Cloud Architect

EXTERNAL SOURCES

  • Wikipedia - Product quantization
  • FAISS - Official FAISS index overview
  • Milvus - Milvus IVF_PQ index guide
  • Weaviate - Vector index configuration reference

TOP QUESTIONS

When should you use IVF-PQ?

Use IVF-PQ when datasets are large and memory is constrained, and you need fast approximate nearest neighbor search with acceptable recall.

Category: HowTo

How does IVF-PQ compare to HNSW?

HNSW often yields higher recall at higher memory cost; IVF-PQ is more memory-efficient and tunable via probes and codebooks.

Category: Alternatives

What parameters matter in IVF-PQ?

Number of lists (nlist), probes (nprobe), and PQ code size determine speed, recall, and memory footprint.

Category: Requirements

What are common mistakes with IVF-PQ?

Using too few lists or probes can underperform; poor training of centroids or codebooks yields low recall.

Category: Mistakes

How do you train an IVF-PQ index?

Cluster coarse centroids, learn PQ codebooks on representative samples, then add database vectors and tune probes.

Category: HowTo

Is IVF-PQ suitable for dynamic updates?

It supports insertions; however, heavy deletions or frequent retraining can impact performance and accuracy.

Category: Opinion

What’s the biggest misunderstanding about IVF-PQ?

That compression inevitably ruins accuracy; careful tuning can maintain strong recall while reducing memory.

Category: Misunderstanding

What is a hot topic around IVF-PQ?

Hybrid indexes and hardware acceleration (GPU, SIMD) for billion-scale vector search are prominent.

Category: Topic

How do you evaluate IVF-PQ performance?

Measure recall@k, latency, QPS, and memory versus baselines like IVF-Flat and HNSW using standardized benchmarks.

Category: Management