Learning vector quantization

From HandWiki
Revision as of 21:06, 6 February 2024 by S.Timg (talk | contribs) (add)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In computer science, learning vector quantization (LVQ) is a prototype-based supervised classification algorithm. LVQ is the supervised counterpart of vector quantization systems.

Overview

LVQ can be understood as a special case of an artificial neural network, more precisely, it applies a winner-take-all Hebbian learning-based approach. It is a precursor to self-organizing maps (SOM) and related to neural gas and the k-nearest neighbor algorithm (k-NN). LVQ was invented by Teuvo Kohonen.[1]

An LVQ system is represented by prototypes [math]\displaystyle{ W=(w(i),...,w(n)) }[/math] which are defined in the feature space of observed data. In winner-take-all training algorithms one determines, for each data point, the prototype which is closest to the input according to a given distance measure. The position of this so-called winner prototype is then adapted, i.e. the winner is moved closer if it correctly classifies the data point or moved away if it classifies the data point incorrectly.

An advantage of LVQ is that it creates prototypes that are easy to interpret for experts in the respective application domain.[2] LVQ systems can be applied to multi-class classification problems in a natural way.

A key issue in LVQ is the choice of an appropriate measure of distance or similarity for training and classification. Recently, techniques have been developed which adapt a parameterized distance measure in the course of training the system, see e.g. (Schneider, Biehl, and Hammer, 2009)[3] and references therein.

LVQ can be a source of great help in classifying text documents.[citation needed]

Algorithm

Below follows an informal description.
The algorithm consists of three basic steps. The algorithm's input is:

  • how many neurons the system will have [math]\displaystyle{ M }[/math] (in the simplest case it is equal to the number of classes)
  • what weight each neuron has [math]\displaystyle{ \vec{w_i} }[/math] for [math]\displaystyle{ i = 0,1,...,M - 1 }[/math]
  • the corresponding label [math]\displaystyle{ c_i }[/math] to each neuron [math]\displaystyle{ \vec{w_i} }[/math]
  • how fast the neurons are learning [math]\displaystyle{ \eta }[/math]
  • and an input list [math]\displaystyle{ L }[/math] containing all the vectors of which the labels are known already (training set).

The algorithm's flow is:

  1. For next input [math]\displaystyle{ \vec{x} }[/math] (with label [math]\displaystyle{ y }[/math]) in [math]\displaystyle{ L }[/math] find the closest neuron [math]\displaystyle{ \vec{w_m} }[/math],
    i.e. [math]\displaystyle{ d(\vec{x},\vec{w_m}) = \min\limits_i {d(\vec{x},\vec{w_i})} }[/math], where [math]\displaystyle{ \, d }[/math] is the metric used ( Euclidean, etc. ).
  2. Update [math]\displaystyle{ \vec{w_m} }[/math]. A better explanation is get [math]\displaystyle{ \vec{w_m} }[/math] closer to the input [math]\displaystyle{ \vec{x} }[/math], if [math]\displaystyle{ \vec{x} }[/math] and [math]\displaystyle{ \vec{w_m} }[/math] belong to the same label and get them further apart if they don't.
    [math]\displaystyle{ \vec{w_m} \gets \vec{w_m} + \eta \cdot \left( \vec{x} - \vec{w_m} \right) }[/math] if [math]\displaystyle{ c_m = y }[/math] (closer together)
    or [math]\displaystyle{ \vec{w_m} \gets \vec{w_m} - \eta \cdot \left( \vec{x} - \vec{w_m} \right) }[/math] if [math]\displaystyle{ c_m \neq y }[/math] (further apart).
  3. While there are vectors left in [math]\displaystyle{ L }[/math] go to step 1, else terminate.

Note: [math]\displaystyle{ \vec{w_i} }[/math] and [math]\displaystyle{ \vec{x} }[/math] are vectors in feature space.

References

  1. T. Kohonen. Self-Organizing Maps. Springer, Berlin, 1997.
  2. T. Kohonen (1995), "Learning vector quantization", in M.A. Arbib, The Handbook of Brain Theory and Neural Networks, Cambridge, MA: MIT Press, pp. 537–540 
  3. P. Schneider; B. Hammer; M. Biehl (2009). "Adaptive Relevance Matrices in Learning Vector Quantization". Neural Computation 21 (10): 3532–3561. doi:10.1162/neco.2009.10-08-892. PMID 19635012. 

Further reading

External links

  • lvq_pak official release (1996) by Kohonen and his team