Linde–Buzo–Gray algorithm explained

The Linde–Buzo–Gray algorithm (named after its creators Yoseph Linde, Andrés Buzo and Robert M. Gray, who designed it in 1980)[1] is an iterative vector quantization algorithm to improve a small set of vectors (codebook) to represent a larger set of vectors (training set), such that it will be locally optimal. It combines Lloyd's Algorithm with a splitting technique in which larger codebooks are built from smaller codebooks by splitting each code vector in two. The core idea of the algorithm is that by splitting the codebook such that all code vectors from the previous codebook are present, the new codebook must be as good as the previous one or better. [2]

Description

The Linde–Buzo–Gray algorithm may be implemented as follows:

algorithm linde-buzo-gray is input: set of training vectors training, codebook to improve old-codebook output: codebook that is twice the size and better or as good as old-codebook new-codebookfor each old-codevector in old-codebook do insert old-codevector into new-codebook insert old-codevector + into new-codebook where is a small vector return lloyd(new-codebook, training)

algorithm lloyd is input: codebook to improve, set of training vectors training output: improved codebook do previous-codebookcodebook clusters ← divide training into |codebook| clusters, where each cluster contains all vectors in training who are best represented by the corresponding vector in codebook for each cluster cluster in clusters do the corresponding code vector in codebook ← the centroid of all training vectors in cluster while difference in error representing training between codebook and previous-codebook > return codebook

Notes and References

  1. 10.1109/TCOM.1980.1094577. 0090-6778. 28. 1. 84–95. Linde. Y.. Buzo. A.. Gray. R.. An Algorithm for Vector Quantizer Design. IEEE Transactions on Communications. 2023-12-28. 1980. 18530691.
  2. Book: 1. Springer. 978-1-4613-6612-6. Gray. R.. Gersho. A.. Vector Quantization and Signal Compression. 1992. 10.1007/978-1-4615-3626-0.