ArticleslgStudy

computer science

Competitive learning

Competitive learning 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 Competitive learning rather than just read about it. In short: Competitive learning is a form of unsupervised learning in artificial neural networks, in which nodes compete for the right to respond to a subset of the input data. A variant of Hebbian learning, competitive learning works by increasing the specialization of each node in the network.

Competitive learning — main illustration
Competitive learning — illustration

Key takeaways

  • Competitive learning 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 Competitive learning to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Competitive learning from memory before moving on to harder problems.

Reference excerpt

Competitive learning is a form of unsupervised learning in artificial neural networks, in which nodes compete for the right to respond to a subset of the input data. A variant of Hebbian learning, competitive learning works by increasing the specialization of each node in the network. It is well suited to finding clusters within data. Models and algorithms based on the principle of competitive learning include vector quantization and self-organizing maps (Kohonen maps).

Principle There are three basic elements to a competitive learning rule:

A set of neurons that are all the same except for some randomly distributed synaptic weights, and which therefore respond differently to a given set of input patterns A limit imposed on the "strength" of each neuron A mechanism that permits the neurons to compete for the right to respond to a given subset of inputs, such that only one output neuron (or only one neuron per group), is active (i.e. "on") at a time. The neuron that wins the competition is called a "winner-take-all" neuron. Accordingly, the individual neurons of the network learn to specialize on ensembles of similar patterns and in so doing become 'feature detectors' for different classes of input patterns. The fact that competitive networks recode sets of correlated inputs to one of a few output neurons essentially removes the redundancy in representation which is an essential part of processing in biological sensory systems.

Architecture and implementation

Competitive Learning is usually implemented with Neural Networks that contain a hidden layer which is commonly known as “competitive layer”. Every competitive neuron is described by a vector of weights 𝐰i=(wi1,..,wid)T,i=1,..,M and calculates the similarity measure between the input data 𝐱n=(xn1,..,xnd)T∈ℝd and the weight vector 𝐰i . For every input vector, the competitive neurons “compete” with each other to see which one of them is the most similar to that particular input vector. The winner neuron m sets its output om=1 and all the other competitive neurons set their output oi=0,i=1,..,M,i≠m. Usually, in order to measure similarity the inverse of the Euclidean distance is used: ‖𝐱−𝐰i‖ between the input vector 𝐱n and the weight vector 𝐰i.

Example algorithm Here is a simple competitive learning algorithm to find three clusters within some input data. 1. (Set-up.) Let a set of sensors all feed into three different nodes, so that every node is connected to every sensor. Let the weights that each node gives to its sensors be set randomly between 0.0 and 1.0. Let the output of each node be the sum of all its sensors, each sensor's signal strength being multiplied by its weight. 2. When the net is shown an input, the node with the highest output is deemed the winner. The input is classified as being within the cluster corresponding to that node. 3. The winner updates each of its weights, moving weight from the connections that gave it weaker signals to the connections that gave it stronger signals. Thus, as more data are received, each node converges on the centre of the cluster that it has come to represent and activates more strongly for inputs in this cluster and more weakly for inputs in other clusters.

See also Ensemble learning Neural gas Pandemonium architecture

References

Further information and software Draft Report "Some Competitive Learning Methods" pdf(contains descriptions of several related algos) DemoGNG - Java simulator for competitive learning methods

Worked examples

Example 1 — a first encounter with Competitive learning

Start with the simplest possible case. Write down what Competitive learning 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 Competitive learning 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 Competitive learning 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 Competitive learning

In research
Competitive learning 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 Competitive learning 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
Competitive learning is common in secondary-school and first-year university syllabi. It links to neighbouring topics Artificial neural networks, Unsupervised learning, so understanding it makes those chapters shorter.
In everyday life
Look for Competitive learning 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 “Competitive learning” →

How to study Competitive learning in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Competitive learning 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 Competitive learning out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Competitive learning in simple terms?

Competitive learning is a form of unsupervised learning in artificial neural networks, in which nodes compete for the right to respond to a subset of the input data. A variant of Hebbian learning, competitive learning works by increasing the specialization of each node in the network.

Why does Competitive learning 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 Competitive learning?

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 Competitive learning.

Tags

  • Artificial neural networks
  • Unsupervised learning

Keep exploring