presented by janet snape - freedoursat.free.fr/docs/...s05_attractor_neural_nets.pdf · • neural...

45
1 Attractor Neural Networks Presented by Janet Snape CS 790R Seminar University of Nevada, Reno February 10, 2005

Upload: others

Post on 26-Jun-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

1

Attractor Neural Networks

Presented by Janet Snape

CS 790R SeminarUniversity of Nevada, Reno

February 10, 2005

Page 2: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

2

References

• Bar-Yam, Y. (1997) Dynamics of Complex Systems- Chapter 2: Neural Networks I

• Flake, G. (1998) The Computational Beauty of Nature- Chapter 18: Natural and Analog Computation

Page 3: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

3

Introduction

• Bar-Yam -- Chapter Concepts- Mathematical models correlate to the human

information process.- Associative content-addressable memory.- Imprinting and retrieval of memories.- Storage capacity

• Flake -- Chapter Concepts- Examination of artificial NNs - Associative memory- Combinatorial optimization problems and solutions.

Page 4: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

4

Overview

• Introduction• Neural Network• A typical neuron• Neural network models

– Artificial neural networks

• Extensions- Associative memory / Hebbian learning- Recalling letters- Hopfield NNs

• Summary

Page 5: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

5

Neural Network: Brain and Mind

• Elements responsible for brain function:- Neurons and the interactions between them

Page 6: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

6

A “Typical” Neuron

• Interface- Cell body- Dendrites- Axon- Synapses

• Behavior- Send / receive signals - “Fired” - Recursive stimulation

Page 7: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

7

Neural Network Example

Page 8: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

8

Artificial Neural Network Contrast

Page 9: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

9

Development of Neural Networks

• McCulloch-Pitts discrete model (1940s)• Associative Hebbian Learning (1949)• Hopfield continuous model (1980s)

Page 10: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

10

McCulloch-Pitts

• McCulloch-Pitts NN (1940s)- Realistic model- Neuron has a discrete state and and changes in discrete

time steps

Page 11: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

11

A single McCulloch-Pitts neuron

Page 12: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

12

McCulloch-Pitts cont’d...n

ai(t + 1) = Θ ( ∑ wij x aj(t) - bi )j = 1

A Neuron’s State Activation Rule

IF the weighted sum of incoming signals > than the threshold bi --- neuron fires with an activation of 1 ( i.e., send signal)

ELSEneuron’s activation is 0 (i.e., cannot send signal)

Page 13: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

13

Artificial NNs• Types of artificial NNs

- Feedback networks- Attractor networks

Page 14: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

14

Feedback Neural Networks

• NNs have a collection of neurons- Fixed set of neurons and thresholds (wij and bi)

• Neuron state activation- Synchronous (all neurons at once / deterministic)- Asynchronous (one neuron at a time / realistic)

Page 15: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

15

Extensions of Artificial NNs

• Attractor networks (Hopfield NNs)• Associative memory / Hebbian learning (1949)• Recalling letters

Page 16: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

16

Schematic of an Attractor Network

Page 17: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

17

Defining an Attractor Network

• Definition• Operating and training attractor networks• Energy

Page 18: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

18

Features of Attractor Networks

• Binary variables for the neuron activity values +1 (ON) -1 (OFF)

• No self-action by a neuron.• Symmetric synapses.• Synchronous / asynchronous neuron activity update Eq

(2.2.4):

Page 19: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

19

Attractor Network Process (Operation)

• Input pattern• Continuous evolution to a steady state• Output network state

Page 20: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

20

Training Attractor Networks

• Consists of imprinting a set of selected neuron firing patterns.

• Described as an associative memory.

Page 21: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

21

ANNs Categorize

Page 22: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

22

Energy analog

Imprinting on an attractor network.

Page 23: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

23

Basin of Attraction

• The basin of attraction is the region of patterns, near the imprinted pattern that will evolve under the neural updating back to the imprinted pattern (feedback loop).

Page 24: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

24

Attractor NNs cont’d...

• Associative content-addressable memory.• Memory capacity important.

Page 25: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

25

Memory Capacity

• Overloaded => Full => Basin of attraction is small• Memory not usable.• Can only recover pattern if we already know it.

Page 26: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

26

Stability of Imprinted Pattern

Probability distribution of neuron activity times the local field sihi

Page 27: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

27

Associative Memory

• Content-addressable memory • How does associative memory work?• Rule: Hebbian learning

Page 28: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

28

Hebbian Learning

• Donald Hebb (1949) • Reinforces neurons either on or off at the same time.• Stores memory that can be recalled.

Page 29: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

29

Hebbian learning cont’d...

• Computation• How does recall work?

- Associative memory- Recall letters

Page 30: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

30

Recall Letters

• Train• Find similarities between seed pattern and the

stored pattern• Converges to a single stored pattern• Computational biases

Page 31: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

31

Recall letters cont’d…

Page 32: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

32

Recall letters cont’d…

Page 33: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

33

Hebbian Unstable Imprints

• < 10, !00% stability of all stored patterns• > 10, unstable patterns increase until ALL patterns are unstable

Page 34: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

34

Hebbian Stable Imprints

• Max number of stable patterns = 12• < 10 patterns, stable patterns• > 15 patterns, number of stable patterns decrease to 0

Page 35: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

35

Pros and Cons

• Advantages- Efficient for some applications- Fault tolerant.

• Disadvantages- Prone to recall a composite of many of the stored

patterns.

Page 36: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

36

Hopfield NN Model (1980s)

• Internal continuous state continuously varies over time

• External state is a function of the internal state.

Page 37: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

37

Hopfield cont’d...

• Network starts out in a random state with each neuron close to 0

• Update activations• Set weights and inputs to solve a problem.• Application example: Cost optimization• Task assignment problem• Task assignment solution

Page 38: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

38

Task Assignment Problem

Page 39: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

39

Task Assignment Solution

Page 40: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

40

Size of Basin of Attraction

• More imprints => smaller basin of attraction• More imprints => unstable patterns• More imprints => affects storage capacity• More imprints => unable to retrieve pattern

Page 41: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

41

BofA cont’d...

Page 42: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

42

Hamming Distance

• The distance between two patterns =the number of neurons that differ between the two patterns.

• Used in the Hopfield java applet demonstration • Eq. 2.2.16

Page 43: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

43

Demonstration

• Hopfield Java Applet…

Page 44: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

44

Summary• Attractor neural networks can be used to model the human

brain.• These networks developed from the simple McCulloch-

Pitts 1940s NN discrete model into other extensions:Associative memory led to Hebbian learning.Hopfield NN continuous model led to a more general use

• Thus, ANNs can be used to solve combinatorial problems.• New patterns => learning.• No new patterns => no learning.• Storage capacity depends on the number of neurons!

Page 45: Presented by Janet Snape - Freedoursat.free.fr/docs/...S05_Attractor_Neural_Nets.pdf · • Neural Network • A typical neuron • Neural network models – Artificial neural networks

45

Questions and Answers

• Open discussion...