Jump to content

Generalized Hebbian algorithm

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Cosmia Nebula (talk | contribs) at 21:20, 18 November 2024 (Theory: Oja's rule). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The generalized Hebbian algorithm (GHA), also known in the literature as Sanger's rule, is a linear feedforward neural network for unsupervised learning with applications primarily in principal components analysis. First defined in 1989,[1] it is similar to Oja's rule in its formulation and stability, except it can be applied to networks with multiple outputs. The name originates because of the similarity between the algorithm and a hypothesis made by Donald Hebb[2] about the way in which synaptic strengths in the brain are modified in response to experience, i.e., that changes are proportional to the correlation between the firing of pre- and post-synaptic neurons.[3]

Theory

Consider a problem of learning a linear code for some data. Each data is a multi-dimensional vector , and can be (approximately) represented as a linear sum of linear code vectors . When , it is possible to exactly represent the data. If , it is possible to approximately represent the data. To minimize the L2 loss of representation, should be the highest principal component vectors.

The GHA is an iterative method to learn the highest principal component vectors in a form that resembles unsupervised Hebbian learning in neural networks.

Consider a one-layered neural network with input neurons and output neurons . The linear code vectors are the connection strengths, that is, is the synaptic weight or connection strength between the -th input and -th output neurons.

The GHA learning rule is of the form[4]

where is the learning rate parameter.

Oja's rule is the special case where .

Derivation

In matrix form, Oja's rule can be written

,

and the Gram-Schmidt algorithm is

,

where w(t) is any matrix, in this case representing synaptic weights, Q = η x xT is the autocorrelation matrix, simply the outer product of inputs, diag is the function that diagonalizes a matrix, and lower is the function that sets all matrix elements on or above the diagonal equal to 0. We can combine these equations to get our original rule in matrix form,

,

where the function LT sets all matrix elements above the diagonal equal to 0, and note that our output y(t) = w(t) x(t) is a linear neuron.[1]

Stability and PCA

[5] [6]

Applications

The GHA is used in applications where a self-organizing map is necessary, or where a feature or principal components analysis can be used. Examples of such cases include artificial intelligence and speech and image processing.

Its importance comes from the fact that learning is a single-layer process—that is, a synaptic weight changes only depending on the response of the inputs and outputs of that layer, thus avoiding the multi-layer dependence associated with the backpropagation algorithm. It also has a simple and predictable trade-off between learning speed and accuracy of convergence as set by the learning rate parameter η.[5]

Features learned by GHA running on 8-by-8 patches of Caltech 101.
Features found by Principal Component Analysis on the same Caltech 101 dataset.

As an example, (Olshausen and Field, 1996)[7] performed GHA on 8-by-8 patches of photos of natural scenes, and found that it results in Fourier-like features. The features are the same as the principal components found by PCA, as expected, and that, the features are determined by the variance matrix of the samples of 8-by-8 patches. In other words, it is determined by the second-order statistics of the pixels in images. They criticized this as insufficient to capture higher-order statistics which are necessary to explain the Gabor-like features of simple cells in the primary visual cortex.

See also

References

  1. ^ a b Sanger, Terence D. (1989). "Optimal unsupervised learning in a single-layer linear feedforward neural network" (PDF). Neural Networks. 2 (6): 459–473. CiteSeerX 10.1.1.128.6893. doi:10.1016/0893-6080(89)90044-0. Retrieved 2007-11-24.
  2. ^ Hebb, D.O. (1949). The Organization of Behavior. New York: Wiley & Sons. ISBN 9781135631918. {{cite book}}: ISBN / Date incompatibility (help)
  3. ^ Hertz, John; Anders Krough; Richard G. Palmer (1991). Introduction to the Theory of Neural Computation. Redwood City, CA: Addison-Wesley Publishing Company. ISBN 978-0201515602.
  4. ^ Gorrell, Genevieve (2006), "Generalized Hebbian Algorithm for Incremental Singular Value Decomposition in Natural Language Processing.", EACL, CiteSeerX 10.1.1.102.2084
  5. ^ a b Haykin, Simon (1998). Neural Networks: A Comprehensive Foundation (2 ed.). Prentice Hall. ISBN 978-0-13-273350-2.
  6. ^ Oja, Erkki (November 1982). "Simplified neuron model as a principal component analyzer". Journal of Mathematical Biology. 15 (3): 267–273. doi:10.1007/BF00275687. PMID 7153672. S2CID 16577977. BF00275687.
  7. ^ Olshausen, Bruno A.; Field, David J. (1996-06). "Emergence of simple-cell receptive field properties by learning a sparse code for natural images". Nature. 381 (6583): 607–609. doi:10.1038/381607a0. ISSN 1476-4687. {{cite journal}}: Check date values in: |date= (help)