Notes  >  CHAPTER III Neural Networks as Associative Memory-II

CHAPTER III Neural Networks as Associative Memory-II PDF Download

Download, print and study this document offline
Please wait while the PDF view is loading
 Page 1


Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 1
Neural Networks as Neural Networks as 
Associative Memory Associative Memory
CHAPTER CHAPTER II III I
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
Introduction
One of the primary functions of the brain is associative memory. We associate the 
faces with names, letters with sounds, or we can recognize the people even if they 
have sunglasses or if they are somehow elder now.
In this chapter, first the basic definitions about associative memory will be given and 
then it will be explained how neural networks can be made linear associators so as to 
perform as interpolative memory. 
Next it will be explained how the Hopfield network can be used as autoassociative
memory and then Bipolar Associative Memory network that is designed to operate as 
heteroassociative memory will be introduced.
Page 2


Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 1
Neural Networks as Neural Networks as 
Associative Memory Associative Memory
CHAPTER CHAPTER II III I
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
Introduction
One of the primary functions of the brain is associative memory. We associate the 
faces with names, letters with sounds, or we can recognize the people even if they 
have sunglasses or if they are somehow elder now.
In this chapter, first the basic definitions about associative memory will be given and 
then it will be explained how neural networks can be made linear associators so as to 
perform as interpolative memory. 
Next it will be explained how the Hopfield network can be used as autoassociative
memory and then Bipolar Associative Memory network that is designed to operate as 
heteroassociative memory will be introduced.
Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 2
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory
In an associative memory we store a set of patterns µ
k
, k=1...K, so that the network 
responds by producing whichever of the stored patterns most closely resembles the one
presented to the network 
Suppose that the stored patterns, which are called exemplars or memory elements, are 
in the form of pairs of associations, µ
k
=(u
k
,y
k
) where u
k
?R
N
, y
k
?R
M
, k=1..K.
According to the mapping ?: R
N
?R
M
that they implement, we distinguish the following 
types of associative memories:
• Interpolative associative memory
• Accretive associative memory
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory: Interpolative Memory
In interpolative associative memory, 
When u=u
r
is presented to the memory it responds by producing y
r
of the stored 
association. 
However if u differs from u
r
by an amount of e, that is if u=u
r
+ e is presented to the 
memory, then the response differs from y
r
by some amount e
r
.
Therefore in interpolative associative memory we have 
(3.1.1)
K r that such
r r r r
.. 1 , ) ( = = ? = + = + 0 0 y u e e e e ?
Page 3


Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 1
Neural Networks as Neural Networks as 
Associative Memory Associative Memory
CHAPTER CHAPTER II III I
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
Introduction
One of the primary functions of the brain is associative memory. We associate the 
faces with names, letters with sounds, or we can recognize the people even if they 
have sunglasses or if they are somehow elder now.
In this chapter, first the basic definitions about associative memory will be given and 
then it will be explained how neural networks can be made linear associators so as to 
perform as interpolative memory. 
Next it will be explained how the Hopfield network can be used as autoassociative
memory and then Bipolar Associative Memory network that is designed to operate as 
heteroassociative memory will be introduced.
Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 2
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory
In an associative memory we store a set of patterns µ
k
, k=1...K, so that the network 
responds by producing whichever of the stored patterns most closely resembles the one
presented to the network 
Suppose that the stored patterns, which are called exemplars or memory elements, are 
in the form of pairs of associations, µ
k
=(u
k
,y
k
) where u
k
?R
N
, y
k
?R
M
, k=1..K.
According to the mapping ?: R
N
?R
M
that they implement, we distinguish the following 
types of associative memories:
• Interpolative associative memory
• Accretive associative memory
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory: Interpolative Memory
In interpolative associative memory, 
When u=u
r
is presented to the memory it responds by producing y
r
of the stored 
association. 
However if u differs from u
r
by an amount of e, that is if u=u
r
+ e is presented to the 
memory, then the response differs from y
r
by some amount e
r
.
Therefore in interpolative associative memory we have 
(3.1.1)
K r that such
r r r r
.. 1 , ) ( = = ? = + = + 0 0 y u e e e e ?
Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 3
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory: Accretive Memory
•In accretive associative memory, 
when u is presented to the memory it responds by producing y
r
of the stored association 
such that u
r
is the one closest to u among u
k
, k=1..K, that is, 
(3.1.2) K k that such
k
k
r r
... 1 , min ) ( = - = = u u u y u
u
?
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory: Heteroassociative-Autoassociative
The accretive associative memory in the form given above, that is u
k
and y
k
are different,
is called heteroassociative memory. 
However if the stored exemplars are in a special form such that the desired patterns and 
the input patterns are the same, that is y
k
=u
k
for k=1..K, then it is called autoassociative
memory. 
In such a memory, whenever u is presented to the memory it responds by u
r
which is the 
closest one to u among u
k
, k=1..K, that is, 
(3.1.3) K k that such
k
k
r r
... 1 , min ) ( = - = = u u u u u
u
?
Page 4


Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 1
Neural Networks as Neural Networks as 
Associative Memory Associative Memory
CHAPTER CHAPTER II III I
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
Introduction
One of the primary functions of the brain is associative memory. We associate the 
faces with names, letters with sounds, or we can recognize the people even if they 
have sunglasses or if they are somehow elder now.
In this chapter, first the basic definitions about associative memory will be given and 
then it will be explained how neural networks can be made linear associators so as to 
perform as interpolative memory. 
Next it will be explained how the Hopfield network can be used as autoassociative
memory and then Bipolar Associative Memory network that is designed to operate as 
heteroassociative memory will be introduced.
Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 2
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory
In an associative memory we store a set of patterns µ
k
, k=1...K, so that the network 
responds by producing whichever of the stored patterns most closely resembles the one
presented to the network 
Suppose that the stored patterns, which are called exemplars or memory elements, are 
in the form of pairs of associations, µ
k
=(u
k
,y
k
) where u
k
?R
N
, y
k
?R
M
, k=1..K.
According to the mapping ?: R
N
?R
M
that they implement, we distinguish the following 
types of associative memories:
• Interpolative associative memory
• Accretive associative memory
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory: Interpolative Memory
In interpolative associative memory, 
When u=u
r
is presented to the memory it responds by producing y
r
of the stored 
association. 
However if u differs from u
r
by an amount of e, that is if u=u
r
+ e is presented to the 
memory, then the response differs from y
r
by some amount e
r
.
Therefore in interpolative associative memory we have 
(3.1.1)
K r that such
r r r r
.. 1 , ) ( = = ? = + = + 0 0 y u e e e e ?
Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 3
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory: Accretive Memory
•In accretive associative memory, 
when u is presented to the memory it responds by producing y
r
of the stored association 
such that u
r
is the one closest to u among u
k
, k=1..K, that is, 
(3.1.2) K k that such
k
k
r r
... 1 , min ) ( = - = = u u u y u
u
?
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory: Heteroassociative-Autoassociative
The accretive associative memory in the form given above, that is u
k
and y
k
are different,
is called heteroassociative memory. 
However if the stored exemplars are in a special form such that the desired patterns and 
the input patterns are the same, that is y
k
=u
k
for k=1..K, then it is called autoassociative
memory. 
In such a memory, whenever u is presented to the memory it responds by u
r
which is the 
closest one to u among u
k
, k=1..K, that is, 
(3.1.3) K k that such
k
k
r r
... 1 , min ) ( = - = = u u u u u
u
?
Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 4
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory
While interpolative memories can be implemented by using feed-forward neural networks, 
it is more appropriate to use recurrent networks as accretive memories.
The advantage of using recurrent networks as associative memory is their convergence to 
one of a finite number of stable states when started at some initial state. The basic goals 
are:
to be able to store as many exemplars as we need, each corresponding to a different 
stable state of the network, 
to have no other stable state
to have the stable state that the network converges to be the one closest to the 
applied pattern .
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory
The problems that we are faced with being:
the capacity of the network is restricted
depending on the number and properties of the patterns to be stored, some of the 
exemplars may not be among the stable states
some spurious stable states different than the exemplars may arise by themselves 
the converged stable state may be other than the one closest to the applied pattern
Page 5


Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 1
Neural Networks as Neural Networks as 
Associative Memory Associative Memory
CHAPTER CHAPTER II III I
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
Introduction
One of the primary functions of the brain is associative memory. We associate the 
faces with names, letters with sounds, or we can recognize the people even if they 
have sunglasses or if they are somehow elder now.
In this chapter, first the basic definitions about associative memory will be given and 
then it will be explained how neural networks can be made linear associators so as to 
perform as interpolative memory. 
Next it will be explained how the Hopfield network can be used as autoassociative
memory and then Bipolar Associative Memory network that is designed to operate as 
heteroassociative memory will be introduced.
Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 2
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory
In an associative memory we store a set of patterns µ
k
, k=1...K, so that the network 
responds by producing whichever of the stored patterns most closely resembles the one
presented to the network 
Suppose that the stored patterns, which are called exemplars or memory elements, are 
in the form of pairs of associations, µ
k
=(u
k
,y
k
) where u
k
?R
N
, y
k
?R
M
, k=1..K.
According to the mapping ?: R
N
?R
M
that they implement, we distinguish the following 
types of associative memories:
• Interpolative associative memory
• Accretive associative memory
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory: Interpolative Memory
In interpolative associative memory, 
When u=u
r
is presented to the memory it responds by producing y
r
of the stored 
association. 
However if u differs from u
r
by an amount of e, that is if u=u
r
+ e is presented to the 
memory, then the response differs from y
r
by some amount e
r
.
Therefore in interpolative associative memory we have 
(3.1.1)
K r that such
r r r r
.. 1 , ) ( = = ? = + = + 0 0 y u e e e e ?
Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 3
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory: Accretive Memory
•In accretive associative memory, 
when u is presented to the memory it responds by producing y
r
of the stored association 
such that u
r
is the one closest to u among u
k
, k=1..K, that is, 
(3.1.2) K k that such
k
k
r r
... 1 , min ) ( = - = = u u u y u
u
?
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory: Heteroassociative-Autoassociative
The accretive associative memory in the form given above, that is u
k
and y
k
are different,
is called heteroassociative memory. 
However if the stored exemplars are in a special form such that the desired patterns and 
the input patterns are the same, that is y
k
=u
k
for k=1..K, then it is called autoassociative
memory. 
In such a memory, whenever u is presented to the memory it responds by u
r
which is the 
closest one to u among u
k
, k=1..K, that is, 
(3.1.3) K k that such
k
k
r r
... 1 , min ) ( = - = = u u u u u
u
?
Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 4
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory
While interpolative memories can be implemented by using feed-forward neural networks, 
it is more appropriate to use recurrent networks as accretive memories.
The advantage of using recurrent networks as associative memory is their convergence to 
one of a finite number of stable states when started at some initial state. The basic goals 
are:
to be able to store as many exemplars as we need, each corresponding to a different 
stable state of the network, 
to have no other stable state
to have the stable state that the network converges to be the one closest to the 
applied pattern .
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory
The problems that we are faced with being:
the capacity of the network is restricted
depending on the number and properties of the patterns to be stored, some of the 
exemplars may not be among the stable states
some spurious stable states different than the exemplars may arise by themselves 
the converged stable state may be other than the one closest to the applied pattern
Ugur HALICI - METU EEE - ANKARA 11/18/2004
EE543 - ANN - CHAPTER 3 5
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory
One way of using recurrent neural networks as associative memory is to fix the external 
input of the network and present the input pattern u
r
to the system by setting x(0)=u
r
. 
If we relax such a network, then it will converge to the attractor x* for which x(0) is within 
the basin attraction as explained in Chapter 2.
If we are able to place each µ
k
as an attractor of the network by proper choice of the 
connection weights, then we expect the network to relax to the attractor x*= µ
r
that is 
related to the initial state x(0)=u
r
. 
For a good performance of the network, we need the network only to converge  to one of 
the stored patterns µ
k
, k=1...K.
CHAPTER CHAPTER III : III : Neural Networks as Associative Memory Neural Networks as Associative Memory
3.1. Associative Memory
Unfortunately, some initial states may converge to spurious states, which are the 
undesired attractors of the network representing none of the stored patterns. 
Spurious states may arise by themselves depending on the model used and the patterns 
stored. 
The capacity of the neural associative memories is restricted by the size of the networks. 
If we increment the number of stored patterns for a fixed size neural network, spurious 
states arise inevitably. 
Sometimes, the network may converge not to a spurious state, but to a memory pattern 
that is not so close to the pattern presented.
Read More

FAQs on CHAPTER III Neural Networks as Associative Memory-II

1. What is the purpose of using neural networks as associative memory?
Ans. Neural networks are used as associative memory systems to store and retrieve information in a way that resembles human memory. These networks can associate patterns and retrieve relevant information based on partial or distorted input.
2. How do neural networks function as associative memory?
Ans. Neural networks function as associative memory by mapping input patterns to output patterns through a set of interconnected artificial neurons. These networks learn from training examples and establish connections between neurons, allowing for the retrieval of stored information based on similarity or partial input.
3. Can neural networks handle partial or distorted input in associative memory?
Ans. Yes, neural networks are capable of handling partial or distorted input in associative memory. Due to their ability to learn and establish connections between neurons, these networks can retrieve relevant information even when the input is incomplete or corrupted.
4. What are the advantages of using neural networks as associative memory systems?
Ans. Neural networks offer several advantages as associative memory systems. They can store a large amount of information in a distributed manner, allowing for efficient and parallel retrieval. Additionally, these networks can handle noisy or incomplete input, making them robust in real-world scenarios.
5. Are there any limitations to using neural networks as associative memory systems?
Ans. While neural networks are powerful tools for associative memory, they do have limitations. These networks require a significant amount of training data and computational resources to establish connections. Additionally, they may suffer from interference or false associations when similar patterns are present in the memory system.
Download as PDF
Explore Courses for exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev