Neural gas explained

Neural gas should not be confused with Nerve gas.

Neural gas is an artificial neural network, inspired by the self-organizing map and introduced in 1991 by Thomas Martinetz and Klaus Schulten.[1] The neural gas is a simple algorithm for finding optimal data representations based on feature vectors. The algorithm was coined "neural gas" because of the dynamics of the feature vectors during the adaptation process, which distribute themselves like a gas within the data space. It is applied where data compression or vector quantization is an issue, for example speech recognition,[2] image processing[3] or pattern recognition. As a robustly converging alternative to the k-means clustering it is also used for cluster analysis.[4]

Algorithm

P(x)

of data vectors

x

using a finite number of feature vectors

wi

, where

i=1,,N

.
  1. For each time step

t

    1. Sample data vector

x

from

P(x)

    1. Compute the distance between

x

and each feature vector. Rank the distances.
    1. Let

i0

be the index of the closest feature vector,

i1

the index of the second closest feature vector, and so on.
    1. Update each feature vector by: w_^ = w_^ + \varepsilon\cdot e^\cdot (x-w_^), k = 0, \cdots, N-1

In the algorithm,

\varepsilon

can be understood as the learning rate, and

λ

as the neighborhood range.

\varepsilon

and

λ

are reduced with increasing

t

so that the algorithm converges after many adaptation steps.

The adaptation step of the neural gas can be interpreted as gradient descent on a cost function. By adapting not only the closest feature vector but all of them with a step size decreasing with increasing distance order, compared to (online) k-means clustering a much more robust convergence of the algorithm can be achieved. The neural gas model does not delete a node and also does not create new nodes.

Comparison with SOM

Compared to self-organized map, the neural gas model does not assume that some vectors are neighbors. If two vectors happen to be close together, they would tend to move together, and if two vectors happen to be apart, they would tend to not move together. In contrast, in an SOM, if two vectors are neighbors in the underlying graph, then they will always tend to move together, no matter whether the two vectors happen to be neighbors in the Euclidean space.

The name "neural gas" is because one can imagine it to be what an SOM would be like if there is no underlying graph, and all points are free to move without the bonds that bind them together.

Variants

A number of variants of the neural gas algorithm exists in the literature so as to mitigate some of its shortcomings. More notable is perhaps Bernd Fritzke's growing neural gas,[5] but also one should mention further elaborations such as the Growing When Required network[6] and also the incremental growing neural gas.[7] A performance-oriented approach that avoids the risk of overfitting is the Plastic Neural gas model.[8]

Growing neural gas

Fritzke describes the growing neural gas (GNG) as an incremental network model that learns topological relations by using a "Hebb-like learning rule", only, unlike the neural gas, it has no parameters that change over time and it is capable of continuous learning, i.e. learning on data streams. GNG has been widely used in several domains,[9] demonstrating its capabilities for clustering data incrementally. The GNG is initialized with two randomly positioned nodes which are initially connected with a zero age edge and whose errors are set to 0. Since the in the GNG input data is presented sequentially one by one, the following steps are followed at each iteration:

Incremental growing neural gas

Another neural gas variant inspired in the GNG algorithm is the incremental growing neural gas (IGNG). The authors propose the main advantage of this algorithm to be "learning new data (plasticity) without degrading the previously trained network and forgetting the old input data (stability)."

Growing when required

Having a network with a growing set of nodes, like the one implemented by the GNG algorithm was seen as a great advantage, however some limitation on the learning was seen by the introduction of the parameter λ, in which the network would only be able to grow when iterations were a multiple of this parameter. The proposal to mitigate this problem was a new algorithm, the Growing When Required network (GWR), which would have the network grow more quickly, by adding nodes as quickly as possible whenever the network identified that the existing nodes would not describe the input well enough.

Plastic neural gas

The ability to only grow a network may quickly introduce overfitting; on the other hand, removing nodes on the basis of age only, as in the GNG model, does not ensure that the removed nodes are actually useless, because removal depends on a model parameter that should be carefully tuned to the "memory length" of the stream of input data.

The "Plastic Neural Gas" model solves this problem by making decisions to add or remove nodes using an unsupervised version of cross-validation, which controls an equivalent notion of "generalization ability" for the unsupervised setting.

While growing-only methods only cater for the incremental learning scenario, the ability to grow and shrink is suited to the more general streaming data problem.

Implementations

To find the ranking

i0,i1,\ldots,iN-1

of the feature vectors, the neural gas algorithm involves sorting, which is a procedure that does not lend itself easily to parallelization or implementation in analog hardware. However, implementations in both parallel software [10] and analog hardware[11] were actually designed.

Further reading

External links

Notes and References

  1. A "neural gas" network learns topologies. Artificial Neural Networks. Thomas Martinetz and Klaus Schulten. Elsevier. 1991. 397–402.
  2. Competitive learning methods for efficient Vector Quantizations in a speech recognition environment. F. Curatelli . O. Mayora-Iberra. MICAI 2000: Advances in artificial intelligence : Mexican International Conference on Artificial Intelligence, Acapulco, Mexico, April 2000 : proceedings. 109. 978-3-540-67354-5. Osvaldo Cairó . L. Enrique Sucar . Francisco J. Cantú-Ortiz. Springer. 2000.
  3. https://books.google.com/books?id=xI0g7vqVkdoC&q=%22neural+gas%22+image+processing&pg=PA210. Automatic landmarking of 2D medical shapes using the growing neural gas network. Angelopoulou, Anastassia . Psarrou, Alexandra . Garcia Rodriguez, Jose . Revett, Kenneth. Computer Vision for Biomedical Image Applications. Lecture Notes in Computer Science. Computer vision for biomedical image applications: first international workshop, CVBIA 2005, Beijing, China, October 21, 2005 : proceedings. Springer. 2005. 3765. Yanxi Liu. Yanxi Liu . Tianzi Jiang . Changshui Zhang. 10.1007/11569541_22. 978-3-540-29411-5. 210.
  4. https://books.google.com/books?id=JMQk1HJmhv0C&q=%22neural+gas%22+cluster+analysis&pg=PA684. Modification of the growing neural gas algorithm for cluster analysis. Fernando Canales . Max Chacon. Progress in Pattern Recognition, Image Analysis and Applications. Lecture Notes in Computer Science. Progress in pattern recognition, image analysis and applications: 12th Iberoamerican Congress on Pattern Recognition, CIARP 2007, Viña del Mar-Valparaiso, Chile, November 13–16, 2007; proceedings. 2007. 4756. Springer. Luis Rueda . Domingo Mery . Josef Kittler. 684–693. 10.1007/978-3-540-76725-1_71. 978-3-540-76724-4. free.
  5. Fritzke. Bernd. A Growing Neural Gas Network Learns Topologies. Advances in Neural Information Processing Systems. 1995. 7. 625–632. 2016-04-26.
  6. Marsland. Stephen. Shapiro. Jonathan. Nehmzow. Ulrich. A self-organising network that grows when required. Neural Networks . 2002 . 15 . 8 . 1041–1058 . 10.1016/s0893-6080(02)00078-3 . 12416693. 10.1.1.14.8763.
  7. Book: Prudent. Yann. Ennaji. Abdellatif. Proceedings. 2005 IEEE International Joint Conference on Neural Networks, 2005 . An incremental growing neural gas learns topologies . 2005. 2. 1211–1216. 10.1109/IJCNN.2005.1556026. 978-0-7803-9048-5. 41517545.
  8. Ridella . Sandro . Rovetta . Stefano . Zunino . Rodolfo . Plastic algorithm for adaptive vector quantisation . Neural Computing & Applications . 10.1007/BF01413708 . 1998. 7. 37–51. 1184174 .
  9. Book: Iqbal . Hafsa . Campo . Damian . Baydoun . Mohamad . Marcenaro . Lucio . Martin . David . Regazzoni . Carlo . 1st International Workshop on Multimodal Understanding and Learning for Embodied Applications . Clustering Optimization for Abnormality Detection in Semi-Autonomous Systems . 2019 . 33–41 . 10.1145/3347450.3357657 . 978-1-4503-6918-3 . free .
  10. Book: Ancona . Fabio . Rovetta . Stefano . Zunino . Rodolfo . Proceedings of International Conference on Neural Networks (ICNN'96) . A parallel approach to plastic neural gas . 10.1109/ICNN.1996.548878 . 1996. 1 . 126–130 . 0-7803-3210-5 . 61686854 .
  11. Book: Ancona . Fabio . Rovetta . Stefano . Zunino . Rodolfo . Proceedings of International Conference on Neural Networks (ICNN'97) . Hardware implementation of the neural gas . 10.1109/ICNN.1997.616161 . 1997. 2 . 991–994 . 0-7803-4122-8 . 62480597 .