Intro ANN Fuzzy Systems Lecture 39 Hopfield Network

  • Slides: 13
Download presentation
Intro. ANN & Fuzzy Systems Lecture 39 Hopfield Network (C) 2001 -2003 by Yu

Intro. ANN & Fuzzy Systems Lecture 39 Hopfield Network (C) 2001 -2003 by Yu Hen Hu

Intro. ANN & Fuzzy Systems Outline • • (C) 2001 -2003 by Yu Hen

Intro. ANN & Fuzzy Systems Outline • • (C) 2001 -2003 by Yu Hen Hu Fundamentals of Hopfield Net Analog Implementation Associate Retrieval Solving Optimization Problem 2

Intro. ANN & Fuzzy Systems Fundamentals of Hopfield Net • Proposed by J. J.

Intro. ANN & Fuzzy Systems Fundamentals of Hopfield Net • Proposed by J. J. Hopfield. A fully Connected, feed-back, fixed weight network. • Each neuron accepts input from the outputs of all other neurons and the its own input: Net function + I 1 V 1 –T 1 I 2 + V 2 –T 2 Output: I 3 + V 3 –T 3 (C) 2001 -2003 by Yu Hen Hu 3

Intro. ANN & Fuzzy Systems Discrete Time Formulation • Define V = [V 1,

Intro. ANN & Fuzzy Systems Discrete Time Formulation • Define V = [V 1, V 2, • • • , Vn]T, T = [T 1, T 2, • • • , Tn]T, I = [I 1, I 2, • • • , In]T, and Then V(t+1) = sgn{ WV(t) + I(t) – T(t)} (C) 2001 -2003 by Yu Hen Hu 4

Intro. ANN & Fuzzy Systems Example Let Then (C) 2001 -2003 by Yu Hen

Intro. ANN & Fuzzy Systems Example Let Then (C) 2001 -2003 by Yu Hen Hu 5

Intro. ANN & Fuzzy Systems Example (continued) [1 1 1 – 1]T and [–

Intro. ANN & Fuzzy Systems Example (continued) [1 1 1 – 1]T and [– 1 – 1 1]T are the two stable attractors. Note that (C) 2001 -2003 by Yu Hen Hu 6

Intro. ANN & Fuzzy Systems Observations • Let v* = [ 1 1]T. For

Intro. ANN & Fuzzy Systems Observations • Let v* = [ 1 1]T. For any v(0) such that v. T(0)v* 0, Otherwise, v(t) will oscillate between ±v(0). • Exercise: try v(0) = [ 1 1]T or [ 1 1]T. • Discussion: – Synchronous update: All neurons are updated together. Suitable for digital implementation – Asynchronous update: Some neurons are updated faster than others. Not all neurons are updated simultaneously. Most natural for analog implementation. (C) 2001 -2003 by Yu Hen Hu 7

Intro. ANN & Fuzzy Systems Lyapunov function for Stability Consider a scalar function E(V)

Intro. ANN & Fuzzy Systems Lyapunov function for Stability Consider a scalar function E(V) satisfying: (i) E(V*) = 0 (ii) E(V) > 0 for V V* (iii) d. E/d. V = 0 at V = V*, and d. E/d. V < 0 for V V* If such an E(V) can be found, it is called a Lyapunov function, and the system is asymptotically stable (i. e. V V* as t ). (C) 2001 -2003 by Yu Hen Hu 8

Intro. ANN & Fuzzy Systems Hopfield Net Energy Function • Hence, Hopfield net dynamic

Intro. ANN & Fuzzy Systems Hopfield Net Energy Function • Hence, Hopfield net dynamic equation is to minimize E(v) along descending gradient direction. • Stability of Hopfield Net – If wij = wji & wii = 0, the output will converge to a local minimum (instead of oscillating). (C) 2001 -2003 by Yu Hen Hu 9

Intro. ANN & Fuzzy Systems Associative Retrieval • Want to store a set of

Intro. ANN & Fuzzy Systems Associative Retrieval • Want to store a set of binary input vector {bm; 1 m M} such that when a perturbed b'm is presented as I (input), the binary output V= bm. • Weight Matrix: Assume binary values ± 1 (C) 2001 -2003 by Yu Hen Hu 10

Intro. ANN & Fuzzy Systems Example b 1 = [ 1 1 1 –

Intro. ANN & Fuzzy Systems Example b 1 = [ 1 1 1 – 1]T, b 2 = [1 1 – 1]T Let I = V(0) = [ – 1 1 – 1]T, then (C) 2001 -2003 by Yu Hen Hu 11

Intro. ANN & Fuzzy Systems Hopfield Net Solution to TSP • (Hopfield and Tank)

Intro. ANN & Fuzzy Systems Hopfield Net Solution to TSP • (Hopfield and Tank) Use an n by n matrix to represent a tour. Vij – i-th city as the j-th stop. Each entry is a neuron! (C) 2001 -2003 by Yu Hen Hu A 0 1 0 0 0 5 B 0 0 0 1 0 4 C 0 0 1 3 D 0 0 1 0 0 2 E 1 0 0 1 City/ tour 1 2 3 4 5 12

Intro. ANN & Fuzzy Systems Energy Function First three terms makes V a permutation

Intro. ANN & Fuzzy Systems Energy Function First three terms makes V a permutation matrix. Last term minimizes the tour distance Validity of the solution – e. g. the A, B, C, D coefficients in the TSP problem. Quality of the solution – the initial condition will affect the (C) 2001 -2003 by Yu Hen Hu 13