ArticleslgStudy

computer science

Learning vector quantization

Learning vector quantization is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Learning vector quantization rather than just read about it. In short: In computer science, learning vector quantization (LVQ) is a prototype-based supervised classification algorithm. LVQ is the supervised counterpart of vector quantization systems.

Learning vector quantization — main illustration
Learning vector quantization — illustration

Key takeaways

  • Learning vector quantization belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Learning vector quantization to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Learning vector quantization from memory before moving on to harder problems.

Reference excerpt

In computer science, learning vector quantization (LVQ) is a prototype-based supervised classification algorithm. LVQ is the supervised counterpart of vector quantization systems. 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.

Definition An LVQ system is represented by prototypes W=(w(i),...,w(n)) 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. 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) and references therein. LVQ can be a valuable aid in classifying text documents.

Algorithm The algorithms are presented as in. Set up:

Let the data be denoted by xi∈ℝD, and their corresponding labels by yi∈{1,2,…,C}. The complete dataset is {(xi,yi)}i=1N. The set of code vectors is wj∈ℝD. The learning rate at iteration step t is denoted by αt. The hyperparameters w and ϵ are used by LVQ2 and LVQ3. The original paper suggests ϵ∈[0.1,0.5] and w∈[0.2,0.3].

LVQ1 Initialize several code vectors per label. Iterate until convergence criteria is reached.

Sample a datum xi, and find out the code vector wj, such that xi falls within the Voronoi cell of wj. If its label yi is the same as that of wj, then wj←wj+αt(xi−wj), otherwise, wj←wj−αt(xi−wj).

LVQ2 LVQ2 is the same as LVQ3, but with this sentence removed: "If wj and wk and xi have the same class, then wj←wj−αt(xi−wj) and wk←wk+αt(xi−wk).". If wj and wk and xi have the same class, then nothing happens.

LVQ3

Initialize several code vectors per label. Iterate until convergence criteria is reached.

Sample a datum xi, and find out two code vectors wj,wk closest to it. Let dj:=‖xi−wj‖,dk:=‖xi−wk‖. If min⁡(djdk,dkdj)>s, where s=1−w1+w, then If wj and xi have the same class, and wk and xi have different classes, then wj←wj+αt(xi−wj) and wk←wk−αt(xi−wk). If wk and xi have the same class, and wj and xi have different classes, then wj←wj−αt(xi−wj) and wk←wk+αt(xi−wk). If wj and wk and xi have the same class, then wj←wj−ϵαt(xi−wj) and wk←wk+ϵαt(xi−wk). If wk and xi have different classes, and wj and xi have different classes, then the original paper simply does not explain what happens in this case, but presumably nothing happens in this case. Otherwise, skip. Note that condition min⁡(djdk,dkdj)>s, where s=1−w1+w, precisely means that the point xi falls between two Apollonian spheres.

References

Further reading Somervuo, Panu; Kohonen, Teuvo (1999). "Self-organizing maps and learning vector quantization for feature sequences". Neural Processing Letters. 10 (2): 151–159. doi:10.1023/A:1018741720065. Nova, David; Estévez, Pablo A. (2014-09-01). "A review of learning vector quantization classifiers". Neural Computing and Applications. 25 (3): 511–524. arXiv:1509.07093. doi:10.1007/s00521-013-1535-3. ISSN 1433-3058.

External links lvq_pak official release (1996) by Kohonen and his team

Worked examples

Example 1 — a first encounter with Learning vector quantization

Start with the simplest possible case. Write down what Learning vector quantization claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Learning vector quantization before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Learning vector quantization ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Learning vector quantization

In research
Learning vector quantization appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Learning vector quantization in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Learning vector quantization is common in secondary-school and first-year university syllabi. It links to neighbouring topics Artificial neural networks, Classification algorithms, Machine learning algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Learning vector quantization outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Learning vector quantization” →

How to study Learning vector quantization in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Learning vector quantization means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Learning vector quantization out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Learning vector quantization in simple terms?

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

Why does Learning vector quantization matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Learning vector quantization?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Learning vector quantization.

Tags

  • Artificial neural networks
  • Classification algorithms
  • Machine learning algorithms

Keep exploring