Finite Scalar Quantisation

Instead of choosing a whole vector from a learned codebook, we can give each coordinate a few allowed levels. Combining those choices produces a discrete code with a different way of controlling the available representations.

14 sections · 14 questions · 4 coding challenges

1 / 14

Could a Small Grid Replace a Learned Catalogue of Codes?

BOTIE

A learned vector codebook introduces its own training difficulties. Some entries may be used rarely or never, and the system needs to learn both the representation and the catalogue of allowed replacements. We can ask whether the discrete structure can be specified more simply.

Mentzer and colleagues' 2023 finite scalar quantisation work used a small number of bounded scalar dimensions, rounding each to a fixed set of levels. The combinations of those levels provide an implicit codebook rather than a separately learned list of vectors.

Picture a grid of allowed coordinates. The encoder learns where to place an input, and rounding selects a grid point. The decoder learns what to reconstruct from that choice. Fixing the grid removes the need to learn individual codebook entries, but it does not eliminate quantisation error or guarantee that every combination will be useful for the data.

Sources for this history