Codebook Quantisation

We may need to replace a continuous vector with a compact ID. A codebook provides a fixed set of representative vectors, letting us choose a nearby entry and measure how much the replacement changes the input.

15 sections · 14 questions · 4 coding challenges

1 / 15

Could We Store the Nearest Representative Instead of Every Number?

BOTIE

A signal represented by many precise numbers can be expensive to store or transmit. If nearby vectors are similar enough for our purpose, perhaps we can replace them with one shared representative and store only its address.

Vector quantisation developed around this compression problem. Linde, Buzo and Gray's 1980 work described an iterative algorithm for designing a codebook of representative vectors. Assignment and representative updates were used together to reduce distortion.

The encoder finds the nearest codebook entry and records its index. The decoder retrieves that entry. Many different inputs can share the same code, so reconstruction loses detail. More representatives can reduce that loss while requiring more storage. The method makes the tradeoff explicit: the code identifies a representative region, not an exact copy of the original vector.

Sources for this history