SlideShare a Scribd company logo
Unit ii
associative memory
networks

1
introdUction
•
•
•
•
•
•
•
•
•
•

Enable to retrieve a piece of data from only a tiny sample itself
Also called as Content Addressable Memories (CAM)
Contrast to Address-addressable Memory.
It has set of patterns as memories.
Stored patterns must be unique (i.e) different patterns in each location.
If the same pattern exists more than one location in the CAM, address is
found to be ambiguous (having more than one meaning).
Hamming Distance is the number of mismatched components of x & x’
vectors.
x=(x1,x2,……………………………..xn) x’=(x1’,x2’,……………………………..xn’)
Architecture may be feed forward or iterative.
Two types of memory
–
–

associative memory
Hetero associative memory
Auto

2
training algorithms for
pattern association
•

Two algorithms
–
–

•

Hebb rule
–
–

•

Hebb rule
Outer Product rule
Used for finding the weights of an associative
memory neural net.
Training vector pairs are denoted by s:t

Algorithm
–

Step 0: Initialize weights to 0
•

–
–

For each training target input output vectors
s:t, perform steps 2-4.
Activate the input layers for training input.
•

–

xi=si(for i=1 to n)

Activate the output layers for target output.
•

–
–
–

wij=0 (i= 1 to n, j=1 to M)

yi=ti(for j=1 to m

Start weight adjustment.
wij(new)=wij(old)+x iyj (for i=1 to n, j=1 to m)
Used with patters that can be represented as
either binay or bipolar vectors.

3
oUter prodUct rUle
• Alternative method for
finding weight of an
associative net.
• Input=> s=(S1,...Si,.,Sn)
• Output =>t= (t1,...tj,.,tm)
• Outer product of two
vectors is the product of
matrices S=sT and T=t,
between [n x 1] matrix
and [1xm] matrix. The
transpose is taken for
input matrix given.
4
aUto associative memory
network
•
•
•
•
•
•
•
•
•
•
•

Theory
Training input and target output vectors
are same.
Determination of weight is called storing
of vectors
Weight is set to zero.
Auto associative net with no self
connection.
Increases net ability to generalize.
Architecture
The Fig gives the architecture of Auto
associative memory network.
Input and target output vectors are same.
The input vector has n inputs and output
vector has n outputs.
The input and output are connected
through weighted connections.
5
contd..
• Training Algorithm
– Step 0: Initialize weights to 0
• wij=0 (i= 1 to n, j=1 to m)

– For each of the vector that has
to be stored, perform steps 24.
– Activate the input layers for
training input.
• xi=si(for i=1 to n)

– Activate the output layers for
target output.
• yi=si(for j=1 to n)

– Adjust weight .
– wij(new)=wij(old)+x iyj

– Weight can also be found by
using
6
contd..
•
•
•
•
•
•
•
•

•

Testing Algorithm
An auto associative network can be used to determine whether the given
vector is a ‘known’ or ‘unknown vector’.
A net is said to recognize a “known” vector if the net produces a pattern of
activation on the output which is same as one stored.
Testing procedure is as follows:
Step 0: Set weights obtained from Hebb’s rule
Step 1: For each testing input vector perform steps 2 to 4
Step 2: Activation of inputs is equal to input vector.
Step 3: calculate the net input for each output unit j=1 to n:

Step 4: Calculate the output by applying the activation vector over the net
input

•
7
hetero associative
memory network
• Theory
• The training input and target
output vectors are different.
• Determination of weight is
by Hebb rule or Delta rule.
• Input has ‘n’ units and
output has ‘m’ units and
there
is
a
weighted
interconnection
between
input and output.
• Architecture
• The architecture is given in
the Fig.
8
Contd..
•
•
•
•
•

Testing Algorithm
Step 0: Initialize the weights from the training algorithm.
Step 1: Perform steps 2-4 for each input vector presented.
Step 1: Set the activation inputs equal to current input vector
(j=1 to m)

• Determine the activation of the output units

• The output vector y is obtained gives the pattern associated
with the input vector x.
• If the responses are binary then the activation function will
be as
9
BidireCtional assoCiative
memory(Bam)
•
•
•
•
•

Theory
Developed by Kosko in the year
1988.
Performs backward & forward search.
Encodes binary/bipolar pattern using
Hebbian learning rule
Two types
– Discrete BAM
– Continuous BAM

•
•
•
•
•

Architecture
Weights are bidirectional
X layer has ‘n’ input units
Y layer has ‘m’ output units.
Weight matrix from X to Y is W and
from Y to X is WT.

10
disCrete Bi direCtional
auto assoCiative memory
•
•
•
•
•
•
•
•

Here weight is found to be the sum of outer product of bipolar form.
Activation function is defined with nonzero threshold.
Determination of weights
Input vectors is denoted by s(ρ) and output vector as t(ρ).Then the
weight matrix is denoted by
s(ρ)=(S1 (ρ),...Si (ρ),.,Sn (ρ))
Output =>t (ρ)= (t1 (ρ),...tj (ρ),.,tm (ρ))
Weight matrix is determined using the Hebb Rule.
If the input vectors is binary, then weight matrix W={wij}=
– If the input vectors are bipolar, the weight matrix W={wij}=
– Weight matrix will be in bipolar form, neither the input vectors are
binary or not.
11
Contd..
•
•
•

Activation Function for BAM
The Activation Function is based on whether the input target vector pairs
used are binary or bipolar.
The Activation function for Y layer with binary input vectors is

•

with bipolar input vector is

•

The activation function for the X layer with binay input vector is

•

With bipolar input vector is

•

If threshold value is equal to the net input, then the previous output value is
calculated is left as the activation of that unit. Signals are sent only from
one layer to the other and not in both directions.
12
testing algorithm for
disCrete Bam
•
•
•
•
•
•
•

Test the noisy patterns entering into the network.
Testing algorithm for the net is as follows:
Step 0: Initialize the weights to store ρ vectors. Also initialize all the activations to zero.
Step 1:Perform steps 2-6 for each testing input.
Step 2: Set the Activation of X layer to current input patterns, presenting the input x to X layer and
presenting the input pattern y to Y layer. It is bidirectional memory.
Step 3: Perform steps 4-6 when the activations are not converged.
Step 4: Update the activation of units in Y layer. Calculate the net input.

–
–

•

Applying the Activation, we get yj=f(yinj).
Send this signal to X layer.

Step 5: Update the activation of units in X layer.
–

Calculate the net input

–

Applying the activation over the net input
•
•

•

xi=f(xini)
Send this signal to Y layer.

Step 6: Test for convergence of the net. The convergence occurs if the activation vectors x and y
reach equilibrium. If this occurs, then stop, else continue.

•
13
Continuous Bam
•
•
•

•
•

It uses logistic Sigmoid function as the activation functions for all units.
It may be binary sigmoid or bipolar sigmoid.
Bipolar sigmoid function with high gain, converge to vector state and acts
like DBAM.
If the input vectors are binary, s(ρ), t(ρ), the weights are determined using
the formula
wij=
If a binary logistic function is used, then the activation function is

•

If the activation function is bipolar logistic function then,

•

Net input calculated with bias is included

•

14
analysis of hamming distanCe, energy funCtion
and storage CapaCity
•
•
•
•
•
•
•
•
•
•
•

Hamming
distance-number
of
mismatched components of two given
bipolar/binary vectors.
Denoted by H [X, X’]
Average distance =[1/n]
X = [ 1 0 1 0 1 1 0]
Y = [ 1 1 1 1 0 0 1]
HD = 5
Average = 5/7.
Stability is determined by Lyapunov
function (Energy function).
Change in energy
Memory capacity min(m,n)
“n” is the number of units in X layer
and “m” is the number of units in the
Y layer.
15
hopfield networks
•
•
•

Developed a model in the year 1982.
Hopfield-promoted construction of the first analog VLSI network chip.
Two types of network
–
–

•

Discrete Hopfield network
Continuous Hopfield network

Discrete Hopfield network
–
–
–
–
–
–
–
–
–
–
–
–

Hopfield network is an auto associative fully interconnected single-layer feedback network.
Symmetrically weighted network.
Operated in discrete fashion it is called as discrete Hopfield network and its architecture as a single layer
feedback is called as recurrent.
Two inputs (i.e) binary and bipolar.
Use of bipolar makes analysis easier.
No self-connections Wij=Wji; Wii=0
Only one unit updates its activation at a time.
An input pattern is applied to the network & the network’s output is initialized accordingly.
Initialized pattern removed and initialized output becomes new updated input through the feedback
connections.
Process continues until no new, updated responses are produced and the network reaches its equilibrium.
The asynchronous updation is called as energy function of Lyapunov function for the net.
Energy function proves that the net will converge to a stable set of activations.

16
Architecture of discrete
hopfield net
•
•

•
•
•
•
•
•
•

Processing elements with two
outputs-inverting and non-inverting.
Outputs from each processing
elements are fed back to the input of
other processing element and not to
itself.
The connections are resistive.
No negative resistors, so excitatory
connections use +ve inputs and
inhibitory use inverted inputs.
Excitatory-output same as input
Inhibitary-input different from output.
Weight is positive if both units are
on.
If connection strength negative , then
one of the unit is off.
Weights are symmetric Wij=Wji

17
trAining Algorithm of
discrete hopfield net
• For storing a set of binary patterns the weight
matrix W is given as
• For storing bipolar patterns , the weight matrix
W is given as
• No self connection (i.e) Wij=0
18
testing Algorithm
•
•
•
•
•
•
•
•
•

Initial weights are obtained from training algorithm.
Steps
0: initialize weight to store pattern , weights obtained from training algorithm
using Hebb rule
1: when the activations not converge, perform steps 2-8.
2: perform steps 3-7 for each input vector x
3: make initial activation equal to external input vector x: yi=xi(i=1 to n)
4: Perform steps 5-7 for each unit Yi.
5: calculate the net input of the network
6: Apply the activation functions over the net input to calculate the output.

•
•

7: Feed back the obtained output to all other units.
8: test the network for convergence.
19
• Only a single neural unit is allowed to update
its output.
• Next update carried on randomly chosen node,
used already updated output.
• This is asynchronous stochastic recursion.
• If the input vector is unknown , the activation
vectors resulted will converge into a pattern
which is not in stored pattern, such a pattern is
called spurious stable state.
20
AnAlysis of energy function And storAge
cApAcity on discrete hopfield net
• Energy function- function that is bounded and is no increasing
function of the state of the system
• Lyapunov function-determines the stability property .
• Energy function
• Network stable- energy function decreases.
• Assume – node i change its state
• A positive definite function Ef(y) can be found such that
– Ef(y) is continuous for all components yi for i=1 to n
– D Ef [y(t)]/dt<0, which indicates that the energy function is decreasing
with time.
– Storage capacity C
0.15 n
– n- number of neurons in the net
– C
n/2log2n

21
continuous hopfield network
• Discrete can be converted to continuous , if time
is a continuous variable.
• Used in associative memory problems or
travelling salesman problem.
• Nodes have continuous graded output.
• Energy decreases continuously with time.
• Electronic circuit which uses non-linear
amplifiers and resistors.
• Used in building Hopfield with VLSI technology
22
hArdwAre model
•
•

•
•
•
•
•
•

The continuous network build up of
electrical components is shown in
figure.
Model has n amplifiers, mapping its
output voltage ui into an output
voltage yi over an activation function
a(ui).
Activation function used can be
sigmoid function.
λ is gain parameter
Continuous becomes discrete when λ
-> α
Input capacitance ci
and input
conductance gri
External signal xi
External signal supply constant
current
23
contd..
•
•

•

Apply Kirchoff’s current law.
Total current entering a junction
is equal to that leaving the same
function.
Equation from KCL describes the
time evolution of the system.

24
AnAlysis of energy
function
• Lynapunov energy function.

25
iterAtive Auto AssociAtive
networks
• Net does not respond to the input signal with
the stored target pattern.
• Respond like stored pattern.
• Use the first response as input to the net again.
• Iterative auto associative network recover
original stored vector when presented with test
vector close to it.
• Recurrent autoassociative networks.
26
lineAr AutoAssociAtive memory
(lAm)
• James Anderson, 1977.
• Based on Hebbian rule.
• Linear algebra is used for analyzing the
performance of the net.
• Stored vector is eigen vector.
• Eigen value –number of times the vector are
presented.
• When input vector is X, then output response is
XW, where W is the weight matrix.
• If “Ap” is the input pattern, then AiAjT =0 for i≠j.
27
BrAin in the Box network
• An activity pattern inside the box receives
positive feedback on certain components,
which will force it outward.
• When it hit the walls, it moves to the corner of
the box where it remains such.
• Represents saturation limit of each state.
• Restricted between -1 and +1.
• Self connection exists.
28
trAining Algorithm
•
•
•
•

Steps :
0: Initialize weight . Initialize learning rates α and β.
1: Perform steps 2 to 6.
2: Initial activation is made equal to the input vector Xi.
Yi=xi
• 3: Perform steps 4 and 5.
• 4: Calculate the net input
• 5: Calculate the output by applying the activations.
• 6: Update the weights
• Wij(new)=wij(old)+βyiyj
29
AutoAssociAtor with threshold
unit
• If threshold unit is set, then a threshold function is used
as activation function.
• Training algorithm
• Steps:
• 0: Weight initialization
• 1: Steps 2-5
• 2: Set activations of X.
• 3: Steps 4 and 5.
• 4: Update activation
• 5: Test for stopping conditions.
30
temporAl AssociAtive memory
network
• Storing sequence of patterns as dynamic
transitions.
• Temporal patterns and associative memory
with this capacity is temporal associative
memory network.

31

More Related Content

What's hot (20)

PDF
Artificial Neural Networks Lect3: Neural Network Learning rules
Mohammed Bennamoun
 
PPTX
Feedforward neural network
Sopheaktra YONG
 
PDF
Max net
Sandilya Sridhara
 
PPTX
Counter propagation Network
Akshay Dhole
 
PPTX
Backpropagation algo
noT yeT woRkiNg !! iM stiLl stUdYinG !!
 
PPTX
Deep neural networks
Si Haem
 
PPTX
Neural network
KRISH na TimeTraveller
 
PDF
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Mohammed Bennamoun
 
PPSX
Perceptron (neural network)
EdutechLearners
 
PPTX
Hopfield Networks
Kanchana Rani G
 
PPT
Back propagation
Nagarajan
 
PPTX
neural network
STUDENT
 
PPTX
Learning set of rules
swapnac12
 
PPTX
Artificial neural network
Mohd Arafat Shaikh
 
PPT
backpropagation in neural networks
Akash Goel
 
PPTX
Neural networks.ppt
SrinivashR3
 
PPTX
lazy learners and other classication methods
rajshreemuthiah
 
PPTX
HOPFIELD NETWORK
ankita pandey
 
PPT
artificial neural network
Pallavi Yadav
 
PPTX
An overview of gradient descent optimization algorithms
Hakky St
 
Artificial Neural Networks Lect3: Neural Network Learning rules
Mohammed Bennamoun
 
Feedforward neural network
Sopheaktra YONG
 
Counter propagation Network
Akshay Dhole
 
Deep neural networks
Si Haem
 
Neural network
KRISH na TimeTraveller
 
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Mohammed Bennamoun
 
Perceptron (neural network)
EdutechLearners
 
Hopfield Networks
Kanchana Rani G
 
Back propagation
Nagarajan
 
neural network
STUDENT
 
Learning set of rules
swapnac12
 
Artificial neural network
Mohd Arafat Shaikh
 
backpropagation in neural networks
Akash Goel
 
Neural networks.ppt
SrinivashR3
 
lazy learners and other classication methods
rajshreemuthiah
 
HOPFIELD NETWORK
ankita pandey
 
artificial neural network
Pallavi Yadav
 
An overview of gradient descent optimization algorithms
Hakky St
 

Similar to Principles of soft computing-Associative memory networks (20)

PPTX
sathiya new final.pptx
sathiyavrs
 
PDF
Associative Learning Artificial Intelligence
21118057
 
PDF
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
Guru Nanak Technical Institutions
 
PPTX
Hetro associative memory
DEEPENDRA KORI
 
PPTX
lecture 10 - Associative_Memory_Neural_Networks_pptx.pptx
bk996051
 
PPTX
Topic 3.NN and DL Hopfield Networks.pptx
ManjulaRavichandran5
 
PPTX
Associative_Memory_Neural_Networks_pptx.pptx
dgfsdf1
 
PPTX
Topic 4.Network-Fixed Weight Competitive Nets.pptx
ManjulaRavichandran5
 
PPT
Lec 3-4-5-learning
Taymoor Nazmy
 
PPTX
Training Algorithms for Pattern Association.pptx
ManjulaRavichandran5
 
PPTX
0321204662_lec07_2.pptxjnj bnkm jbnkmo kjmkn
sgamitgill77
 
PPTX
NN12345671234567890-9876543234567(Ass-4).pptx
SAKSHISHARMA686201
 
PPTX
Artificial Neural Networks ppt.pptx for final sem cse
NaveenBhajantri1
 
PPTX
latest TYPES OF NEURAL NETWORKS (2).pptx
MdMahfoozAlam5
 
PPTX
Unit iii update
Indira Priyadarsini
 
PPTX
Artificial neural networks
ShwethaShreeS
 
PPTX
Neural Network Fundamentals
Manoj Kumar
 
PDF
Machine Learning: The Bare Math Behind Libraries
J On The Beach
 
PPTX
Artificial neural network by arpit_sharma
Er. Arpit Sharma
 
PDF
Nural Network ppt presentation which help about nural
sayaleedeshmukh5
 
sathiya new final.pptx
sathiyavrs
 
Associative Learning Artificial Intelligence
21118057
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
Guru Nanak Technical Institutions
 
Hetro associative memory
DEEPENDRA KORI
 
lecture 10 - Associative_Memory_Neural_Networks_pptx.pptx
bk996051
 
Topic 3.NN and DL Hopfield Networks.pptx
ManjulaRavichandran5
 
Associative_Memory_Neural_Networks_pptx.pptx
dgfsdf1
 
Topic 4.Network-Fixed Weight Competitive Nets.pptx
ManjulaRavichandran5
 
Lec 3-4-5-learning
Taymoor Nazmy
 
Training Algorithms for Pattern Association.pptx
ManjulaRavichandran5
 
0321204662_lec07_2.pptxjnj bnkm jbnkmo kjmkn
sgamitgill77
 
NN12345671234567890-9876543234567(Ass-4).pptx
SAKSHISHARMA686201
 
Artificial Neural Networks ppt.pptx for final sem cse
NaveenBhajantri1
 
latest TYPES OF NEURAL NETWORKS (2).pptx
MdMahfoozAlam5
 
Unit iii update
Indira Priyadarsini
 
Artificial neural networks
ShwethaShreeS
 
Neural Network Fundamentals
Manoj Kumar
 
Machine Learning: The Bare Math Behind Libraries
J On The Beach
 
Artificial neural network by arpit_sharma
Er. Arpit Sharma
 
Nural Network ppt presentation which help about nural
sayaleedeshmukh5
 
Ad

Recently uploaded (20)

PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Ad

Principles of soft computing-Associative memory networks

  • 2. introdUction • • • • • • • • • • Enable to retrieve a piece of data from only a tiny sample itself Also called as Content Addressable Memories (CAM) Contrast to Address-addressable Memory. It has set of patterns as memories. Stored patterns must be unique (i.e) different patterns in each location. If the same pattern exists more than one location in the CAM, address is found to be ambiguous (having more than one meaning). Hamming Distance is the number of mismatched components of x & x’ vectors. x=(x1,x2,……………………………..xn) x’=(x1’,x2’,……………………………..xn’) Architecture may be feed forward or iterative. Two types of memory – – associative memory Hetero associative memory Auto 2
  • 3. training algorithms for pattern association • Two algorithms – – • Hebb rule – – • Hebb rule Outer Product rule Used for finding the weights of an associative memory neural net. Training vector pairs are denoted by s:t Algorithm – Step 0: Initialize weights to 0 • – – For each training target input output vectors s:t, perform steps 2-4. Activate the input layers for training input. • – xi=si(for i=1 to n) Activate the output layers for target output. • – – – wij=0 (i= 1 to n, j=1 to M) yi=ti(for j=1 to m Start weight adjustment. wij(new)=wij(old)+x iyj (for i=1 to n, j=1 to m) Used with patters that can be represented as either binay or bipolar vectors. 3
  • 4. oUter prodUct rUle • Alternative method for finding weight of an associative net. • Input=> s=(S1,...Si,.,Sn) • Output =>t= (t1,...tj,.,tm) • Outer product of two vectors is the product of matrices S=sT and T=t, between [n x 1] matrix and [1xm] matrix. The transpose is taken for input matrix given. 4
  • 5. aUto associative memory network • • • • • • • • • • • Theory Training input and target output vectors are same. Determination of weight is called storing of vectors Weight is set to zero. Auto associative net with no self connection. Increases net ability to generalize. Architecture The Fig gives the architecture of Auto associative memory network. Input and target output vectors are same. The input vector has n inputs and output vector has n outputs. The input and output are connected through weighted connections. 5
  • 6. contd.. • Training Algorithm – Step 0: Initialize weights to 0 • wij=0 (i= 1 to n, j=1 to m) – For each of the vector that has to be stored, perform steps 24. – Activate the input layers for training input. • xi=si(for i=1 to n) – Activate the output layers for target output. • yi=si(for j=1 to n) – Adjust weight . – wij(new)=wij(old)+x iyj – Weight can also be found by using 6
  • 7. contd.. • • • • • • • • • Testing Algorithm An auto associative network can be used to determine whether the given vector is a ‘known’ or ‘unknown vector’. A net is said to recognize a “known” vector if the net produces a pattern of activation on the output which is same as one stored. Testing procedure is as follows: Step 0: Set weights obtained from Hebb’s rule Step 1: For each testing input vector perform steps 2 to 4 Step 2: Activation of inputs is equal to input vector. Step 3: calculate the net input for each output unit j=1 to n: Step 4: Calculate the output by applying the activation vector over the net input • 7
  • 8. hetero associative memory network • Theory • The training input and target output vectors are different. • Determination of weight is by Hebb rule or Delta rule. • Input has ‘n’ units and output has ‘m’ units and there is a weighted interconnection between input and output. • Architecture • The architecture is given in the Fig. 8
  • 9. Contd.. • • • • • Testing Algorithm Step 0: Initialize the weights from the training algorithm. Step 1: Perform steps 2-4 for each input vector presented. Step 1: Set the activation inputs equal to current input vector (j=1 to m) • Determine the activation of the output units • The output vector y is obtained gives the pattern associated with the input vector x. • If the responses are binary then the activation function will be as 9
  • 10. BidireCtional assoCiative memory(Bam) • • • • • Theory Developed by Kosko in the year 1988. Performs backward & forward search. Encodes binary/bipolar pattern using Hebbian learning rule Two types – Discrete BAM – Continuous BAM • • • • • Architecture Weights are bidirectional X layer has ‘n’ input units Y layer has ‘m’ output units. Weight matrix from X to Y is W and from Y to X is WT. 10
  • 11. disCrete Bi direCtional auto assoCiative memory • • • • • • • • Here weight is found to be the sum of outer product of bipolar form. Activation function is defined with nonzero threshold. Determination of weights Input vectors is denoted by s(ρ) and output vector as t(ρ).Then the weight matrix is denoted by s(ρ)=(S1 (ρ),...Si (ρ),.,Sn (ρ)) Output =>t (ρ)= (t1 (ρ),...tj (ρ),.,tm (ρ)) Weight matrix is determined using the Hebb Rule. If the input vectors is binary, then weight matrix W={wij}= – If the input vectors are bipolar, the weight matrix W={wij}= – Weight matrix will be in bipolar form, neither the input vectors are binary or not. 11
  • 12. Contd.. • • • Activation Function for BAM The Activation Function is based on whether the input target vector pairs used are binary or bipolar. The Activation function for Y layer with binary input vectors is • with bipolar input vector is • The activation function for the X layer with binay input vector is • With bipolar input vector is • If threshold value is equal to the net input, then the previous output value is calculated is left as the activation of that unit. Signals are sent only from one layer to the other and not in both directions. 12
  • 13. testing algorithm for disCrete Bam • • • • • • • Test the noisy patterns entering into the network. Testing algorithm for the net is as follows: Step 0: Initialize the weights to store ρ vectors. Also initialize all the activations to zero. Step 1:Perform steps 2-6 for each testing input. Step 2: Set the Activation of X layer to current input patterns, presenting the input x to X layer and presenting the input pattern y to Y layer. It is bidirectional memory. Step 3: Perform steps 4-6 when the activations are not converged. Step 4: Update the activation of units in Y layer. Calculate the net input. – – • Applying the Activation, we get yj=f(yinj). Send this signal to X layer. Step 5: Update the activation of units in X layer. – Calculate the net input – Applying the activation over the net input • • • xi=f(xini) Send this signal to Y layer. Step 6: Test for convergence of the net. The convergence occurs if the activation vectors x and y reach equilibrium. If this occurs, then stop, else continue. • 13
  • 14. Continuous Bam • • • • • It uses logistic Sigmoid function as the activation functions for all units. It may be binary sigmoid or bipolar sigmoid. Bipolar sigmoid function with high gain, converge to vector state and acts like DBAM. If the input vectors are binary, s(ρ), t(ρ), the weights are determined using the formula wij= If a binary logistic function is used, then the activation function is • If the activation function is bipolar logistic function then, • Net input calculated with bias is included • 14
  • 15. analysis of hamming distanCe, energy funCtion and storage CapaCity • • • • • • • • • • • Hamming distance-number of mismatched components of two given bipolar/binary vectors. Denoted by H [X, X’] Average distance =[1/n] X = [ 1 0 1 0 1 1 0] Y = [ 1 1 1 1 0 0 1] HD = 5 Average = 5/7. Stability is determined by Lyapunov function (Energy function). Change in energy Memory capacity min(m,n) “n” is the number of units in X layer and “m” is the number of units in the Y layer. 15
  • 16. hopfield networks • • • Developed a model in the year 1982. Hopfield-promoted construction of the first analog VLSI network chip. Two types of network – – • Discrete Hopfield network Continuous Hopfield network Discrete Hopfield network – – – – – – – – – – – – Hopfield network is an auto associative fully interconnected single-layer feedback network. Symmetrically weighted network. Operated in discrete fashion it is called as discrete Hopfield network and its architecture as a single layer feedback is called as recurrent. Two inputs (i.e) binary and bipolar. Use of bipolar makes analysis easier. No self-connections Wij=Wji; Wii=0 Only one unit updates its activation at a time. An input pattern is applied to the network & the network’s output is initialized accordingly. Initialized pattern removed and initialized output becomes new updated input through the feedback connections. Process continues until no new, updated responses are produced and the network reaches its equilibrium. The asynchronous updation is called as energy function of Lyapunov function for the net. Energy function proves that the net will converge to a stable set of activations. 16
  • 17. Architecture of discrete hopfield net • • • • • • • • • Processing elements with two outputs-inverting and non-inverting. Outputs from each processing elements are fed back to the input of other processing element and not to itself. The connections are resistive. No negative resistors, so excitatory connections use +ve inputs and inhibitory use inverted inputs. Excitatory-output same as input Inhibitary-input different from output. Weight is positive if both units are on. If connection strength negative , then one of the unit is off. Weights are symmetric Wij=Wji 17
  • 18. trAining Algorithm of discrete hopfield net • For storing a set of binary patterns the weight matrix W is given as • For storing bipolar patterns , the weight matrix W is given as • No self connection (i.e) Wij=0 18
  • 19. testing Algorithm • • • • • • • • • Initial weights are obtained from training algorithm. Steps 0: initialize weight to store pattern , weights obtained from training algorithm using Hebb rule 1: when the activations not converge, perform steps 2-8. 2: perform steps 3-7 for each input vector x 3: make initial activation equal to external input vector x: yi=xi(i=1 to n) 4: Perform steps 5-7 for each unit Yi. 5: calculate the net input of the network 6: Apply the activation functions over the net input to calculate the output. • • 7: Feed back the obtained output to all other units. 8: test the network for convergence. 19
  • 20. • Only a single neural unit is allowed to update its output. • Next update carried on randomly chosen node, used already updated output. • This is asynchronous stochastic recursion. • If the input vector is unknown , the activation vectors resulted will converge into a pattern which is not in stored pattern, such a pattern is called spurious stable state. 20
  • 21. AnAlysis of energy function And storAge cApAcity on discrete hopfield net • Energy function- function that is bounded and is no increasing function of the state of the system • Lyapunov function-determines the stability property . • Energy function • Network stable- energy function decreases. • Assume – node i change its state • A positive definite function Ef(y) can be found such that – Ef(y) is continuous for all components yi for i=1 to n – D Ef [y(t)]/dt<0, which indicates that the energy function is decreasing with time. – Storage capacity C 0.15 n – n- number of neurons in the net – C n/2log2n 21
  • 22. continuous hopfield network • Discrete can be converted to continuous , if time is a continuous variable. • Used in associative memory problems or travelling salesman problem. • Nodes have continuous graded output. • Energy decreases continuously with time. • Electronic circuit which uses non-linear amplifiers and resistors. • Used in building Hopfield with VLSI technology 22
  • 23. hArdwAre model • • • • • • • • The continuous network build up of electrical components is shown in figure. Model has n amplifiers, mapping its output voltage ui into an output voltage yi over an activation function a(ui). Activation function used can be sigmoid function. λ is gain parameter Continuous becomes discrete when λ -> α Input capacitance ci and input conductance gri External signal xi External signal supply constant current 23
  • 24. contd.. • • • Apply Kirchoff’s current law. Total current entering a junction is equal to that leaving the same function. Equation from KCL describes the time evolution of the system. 24
  • 25. AnAlysis of energy function • Lynapunov energy function. 25
  • 26. iterAtive Auto AssociAtive networks • Net does not respond to the input signal with the stored target pattern. • Respond like stored pattern. • Use the first response as input to the net again. • Iterative auto associative network recover original stored vector when presented with test vector close to it. • Recurrent autoassociative networks. 26
  • 27. lineAr AutoAssociAtive memory (lAm) • James Anderson, 1977. • Based on Hebbian rule. • Linear algebra is used for analyzing the performance of the net. • Stored vector is eigen vector. • Eigen value –number of times the vector are presented. • When input vector is X, then output response is XW, where W is the weight matrix. • If “Ap” is the input pattern, then AiAjT =0 for i≠j. 27
  • 28. BrAin in the Box network • An activity pattern inside the box receives positive feedback on certain components, which will force it outward. • When it hit the walls, it moves to the corner of the box where it remains such. • Represents saturation limit of each state. • Restricted between -1 and +1. • Self connection exists. 28
  • 29. trAining Algorithm • • • • Steps : 0: Initialize weight . Initialize learning rates α and β. 1: Perform steps 2 to 6. 2: Initial activation is made equal to the input vector Xi. Yi=xi • 3: Perform steps 4 and 5. • 4: Calculate the net input • 5: Calculate the output by applying the activations. • 6: Update the weights • Wij(new)=wij(old)+βyiyj 29
  • 30. AutoAssociAtor with threshold unit • If threshold unit is set, then a threshold function is used as activation function. • Training algorithm • Steps: • 0: Weight initialization • 1: Steps 2-5 • 2: Set activations of X. • 3: Steps 4 and 5. • 4: Update activation • 5: Test for stopping conditions. 30
  • 31. temporAl AssociAtive memory network • Storing sequence of patterns as dynamic transitions. • Temporal patterns and associative memory with this capacity is temporal associative memory network. 31