Docsity

Self-Organizing Maps: A Neural Model for Topographic Data Representation - Prof. Y. Choe, Study notes of Computer Science

Toggle sidebar
bg1
Slide09
Haykin Chapter 9: Self-Organizing
Maps
CPSC 636-600
Instructor: Yoonsuck Choe
Spring 2008
1
Introduction
•Self-organizing maps (SOM) is based on competitive learning,
where output neurons compete with each other to be activated
(Kohonen, 1982).
•The output neuron that activates is called the winner-takes-all
neuron.
•Lateral inhibition is one way to implement competition for map
formation (von der Malsburg 1973).
•In SOM, neurons are placed on a lattice, on which a meaningful
coordinate system for different features is created (feature map).
•The lattice thus forms a topographic map where the spatial
location on the lattice is indicative of the input features.
2
SOM and the Cortical Maps
•The development of SOM as a neural model is motivated by the
topographical nature of cortical maps.
•Visual, tactile, and acoustic inputs are mapped in a topographical
manner.
– Visual: retinotopy (position in visual field), orientation, spatial
frequency, direction, ocular dominance, etc.
– Tactile: somatotopy (position on skin)
– Acoustic: tonotopy (frequency)
3
Two Models
KohonenWillshaw−von der Malsburg
Weight
vector
input vector
•Willshaw-von der Malsburg model: input neurons arranged in
2D lattice, output in 2D lattice. Lateral excitation/inhibition
(Mexican hat) gives rise to soft competition. Normalized Hebbian
learning. Biological motivation.
•Kohonen model: input of any dimension, output neurons in 1D,
2D, or 3D lattice. Relaxed winner-takes-all (neighborhood).
Competetive learning rule. Computational motivation.
4
pf3
pf4
pf5
pf8

Partial preview of the text

Download Self-Organizing Maps: A Neural Model for Topographic Data Representation - Prof. Y. Choe and more Study notes Computer Science in PDF only on Docsity!

Slide

Haykin Chapter 9: Self-Organizing

Maps

CPSC 636-

Instructor: Yoonsuck Choe Spring 2008

1

Introduction

  • Self-organizing maps (SOM) is based on competitive learning , where output neurons compete with each other to be activated (Kohonen, 1982).
  • The output neuron that activates is called the winner-takes-all neuron.
  • Lateral inhibition is one way to implement competition for map formation (von der Malsburg 1973).
  • In SOM, neurons are placed on a lattice , on which a meaningful coordinate system for different features is created ( feature map ).
  • The lattice thus forms a topographic map where the spatial location on the lattice is indicative of the input features.

2

SOM and the Cortical Maps

  • The development of SOM as a neural model is motivated by the topographical nature of cortical maps.
  • Visual, tactile, and acoustic inputs are mapped in a topographical manner. - Visual : retinotopy (position in visual field), orientation, spatial frequency, direction, ocular dominance, etc. - Tactile : somatotopy (position on skin) - Acoustic : tonotopy (frequency)

Two Models

Willshaw−von der Malsburg Kohonen

Weightvector

input vector

  • Willshaw-von der Malsburg model : input neurons arranged in 2D lattice, output in 2D lattice. Lateral excitation/inhibition (Mexican hat) gives rise to soft competition. Normalized Hebbian learning. Biological motivation.
  • Kohonen model : input of any dimension, output neurons in 1D, 2D, or 3D lattice. Relaxed winner-takes-all (neighborhood). Competetive learning rule. Computational motivation. 4

SOM Overview

SOM is based on three principles:

  • Competition : each neuron calculates a discriminant function. The neuron with the highest value is declared the winner.
  • Cooperation : Neurons near-by the winner on the lattice get a chance to adapt.
  • Adaptation : The winner and its neighbors increase their discriminant function value relative to the current input. Subsequent presentation of the current input should result in enhanced function value.

Redundancy in the input is needed!

5

Redundancy, etc.

  • Unsupervised learning such as SOM require redundancy in the data.
  • The following are intimately related: - Redundancy - Structure (or organization) - Information content relative to channel capacity

6

Redundancy, etc. (cont’d)

Left Right Structure No Yes Redundancy No Yes

Info<Capacity No Yes

Consider each pixel as one random variable.

Redundancy, etc. (cont’d)

0.1 0 0.2^ 0.

0.4^ 0.

0.6^ 0.

0.8^ 0.

1

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

randdat.dat

0.2 0 0.4^ 0.

0.8^1

1.2^ 1.

1.6^ 1.

0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.

randdat2.dat

Left Right Structure No Yes Redundancy No Yes

Info<Capacity No Yes

Consider each axis as one random variable.

Typical Neighborhood Functions

Gaussian Neighborhood exp(-(xx+yy)/2)

-4 (^) -2 (^0 ) 4 -4^ -^

0 2

4

0.1^ 0.2 0 0.3^ 0.4^ 0.

0.6^ 0.7^ 0.

0.9^1

  • Gaussian: h(j, i(x)) = exp(−‖rj − ri(x)‖^2 / 2 σ^2 )
  • Flat: h(j, i(x)) = 1 if ‖rj − ri(x)‖ ≤ σ, and 0 otherwise.
  • σ is called the neighborhood radius.
  • rj is the location of unit j on the lattice.

13

Training Tips

  • Start with large neighborhood radius. Gradually decrease radius to a small value.

σ(n) = σ 0 exp

„ n

  • Start with high learning rate η.

Gradually decrease η to a small value.

η(n) = η 0 exp

n

14

Two Phases of Adaptation

  • Self-organization or ordering phase : High learning rate, large neighborhood radius (entire map).
  • Convergence phase : Low learning rate, small neighborhood radius (one or zero).

Performance Measures

  • Quantization Error Average distance between each data vector and its BMU.

Q = 1

N

X^ N

j=

‖ xj − wi(xj ) ‖

  • Topographic Error The proportion of all data vectors for which first and second BMUs are not adjacent units.

T = 1

N

X^ N

j=

u(xj ),

u( x ) = 1 if the 1st and 2nd BMUs are not adjacent u( x ) = 0 otherwise.

SOM Summary

Essential ingredients of SOM: Hebbian learning rule (with forgetting term)

  • Input generated according to a certain probability distribution on a continuous input space.
  • Topology of network form on the discrete lattice.
  • Time-varying neighborhood function around the winner.
  • Time-varying leanring rate.

17

SOM Summary (cont’d)

Properties of SOM

  • Approximation of the input space : The collection of weight vectors provides a good approximation of the input space.
  • Topological ordering : Spatial location on the lattice correspond to a certain feature of input patterns. Near-by neurons on the lattice represent similar input features.
  • Density matching : More neurons are recruited to represent dense area in the input space.
  • Feature selection : Select best features to approximate the underlying distribution.

18

Example: 2D Input / 2D Output

  • Train with uniformly random 2D inputs. Each input is a point in Cartesian plane.
  • Nodes: weight vectors (x and y coordinate).
  • Edges: connect immediate neighbors on the map.

Different 2D Input Distributions

  • What would the resulting SOM map look like?
  • Why would it look like that?

SOM Demo

Jochen Fr ¨ohlich’s Neural Networks with JAVA page:

http://fbim.fh- regensburg.de/˜saj39122/jfroehl/diplom/e-index.html

Check out the Sample Applet link.

25

SOM Demo: Traveling Salesman Problem

Using Fr ¨ohlich’s SOM applet:

  • 1D SOM map ( 1 × n, where n is the number of nodes).
  • 2D input space.
  • Initial neighborhood radius of 8.
  • Stop when radius < 0.001.
  • Try 50 nodes, 20 input points.

Click on [Parameters] to bring up the config panel. After the

parameters are set, click on [Reset] in the main applet, and then

[Start learning].

26

SOM Demo: Space Filling in 2D

Using Fr ¨ohlich’s SOM applet:

  • 1D SOM map ( 1 × n, where n is the number of nodes).
  • 2D input space.
  • Initial neighborhood radius of 100.
  • Stop when radius < 0.001.
  • Try 1000 nodes, and 1000 input points.

SOM Demo: Space Filling in 3D

Using Fr ¨ohlich’s SOM applet:

  • 2D SOM map (n × n, where n is the number of nodes).
  • 2D input space.
  • Initial neighborhood radius of 10.
  • Stop when radius < 0.001.
  • Try 30 × 30 nodes, and 500 input points. Limit the y range to 15.

Also try 50 × 50 , 1000 input points, and 16 initial radius.

Vector Quantization

  • Vector quantization exploits the structure in the input distribution for the purpose of dta compression.
  • In vector quantization, the input space is partitioned into a number of distinct regions and for each region a reconstruction vector is defined.
  • A new input is then represented by the reconstruction vector representing the region it falls into.
  • Since only the index of the reconstruction vector need to be stored or transmitted, significant saving is possible in terms of storage space and bandwidth.
  • The collection of reconstruction vectors is called the code book.

29

Vector Quantization (cont’d)

  • A vector quantizer that minimizes encoding distortion is called a Voronoi or nearest-neighbor quantizer.
  • SOM provides an approximate method for calculating the Voronoi tessellation.

30

Learning Vector Quantization

  • Train with SOM in unsupervised mode.
  • Then, tune the weight vectors in a supervised mode: - If class of the input vector and the class of the best matching weight vector match ,

wc(n + 1) = wc(n) + αn[xi − wc(n)]

- If class of the input vector and the class of the best matching weight vector do not match ,

wc(n + 1) = wc(n) − αn[xi − wc(n)]

Other Topics

  • Different ways of visualization using SOM.
  • Contextual map (or semanics map).
  • SOM viewed as - Abstract neuroscientific model of the cortex - Vector quantizer
  • Difficulty of analysis (convergence, etc.)
  • Use in modeling cortical map formation.