Vector quantization

How can you store a huge library of books in a tiny closet?

Image: Comixboy at English Wikipedia, CC BY 2.5, via Wikimedia Commons

Vector quantization

How can you store a huge library of books in a tiny closet?

Imagine you have a huge collection of books, but your closet is too small to fit them all. You need a way to store them efficiently without losing any information.

Think of your books as vectors, and your closet as storage space. Product quantization helps you store your books by dividing them into smaller groups (subvectors) and finding the most representative book (centroid) for each group. This way, you can fit more books into your closet without having to store every single one.

Example

You have 100 books and 10 shelves. Instead of placing each book on a separate shelf, you group them by genre. Each shelf now holds 10 books, but you only need to remember 10 centroids (representative books) instead of 100.

Remember this

Product quantization compresses vectors by splitting them into subvectors and quantizing each, allowing you to store more information in less space.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath