-
[i] Self-Organized Learning = Unsupervised Learning
-
No external teacher, i.e., no manual labels.
-
[i] Training process of self-organized learning:
-
Receive a number of different input patterns;
-
Discover significant features from these patterns;
-
Learn how to classify input data.
-
[i] Hebb's Law describes that:
-
If:
- A neuron
$i$ is near enough to excite neruon$j$ , - and it repeatedly participates in its activation;
- A neuron
-
Then:
- The synaptic connection between the two neurons is strengthened;
- Neuron
$j$ becomes more sensitive to stimuli from neuron$i$ .
-
[i] Hebb's Law's description in two rules:
-
[I] Rule 1:
- If:
- The two neurons on either side of a connection are activated synchronously;
- Then:
- The weight of that connection is increased.
- If:
-
[I] Rule 2:
- If:
- The two neurons on either side of a connection are activated asynchronously;
- Then:
- The weight of that connection is decreased.
- If:
![[Hebbian_Activation.png]]
-
[i] Weight adjustments according to the Hebb's Law could be described as follows. $$ \Delta w_{ij}(p) = F\Bigl(y_i(p), x_i(p)\Bigr) $$ This formula regulates that the weight connecting from the neuron
$i$ to the neuron$j$ is determined by: -
The input to the neuron
$i$ ; -
The output from the neuron
$i$ ; where$F$ is an arbitrary customed function. -
[i] The activity product rule specialize the above formula by regulating the function with: $$ F(v_1,v_2)=\alpha \cdot v_1 \cdot v_2 $$ Applying this to the original rule: $$ \Delta w_{ij}(p)=\alpha\cdot y_j(p)\cdot x_j(p) $$ where
$\alpha$ is the learning rate parameter. -
[*] To prevent the monotonical increase of weights, we introduce a non-linear forgetting factor to the Hebb's Law: $$ \Delta w_{ij}(p)=\alpha\cdot y_j(p)\cdot x_j(p)-\phi\cdot y_j(p)\cdot w_{ij}(p) $$ where
$\phi$ is the forgetting factor.
![[Hebbian_Network.png|200]]
Suppose that number of neurons is
$$ \begin{align} \mathbf{W}^{(0)} &= \begin{bmatrix}
- & {\mathbf{w}_{1}^{(0)}}^\top & - \
- & {\mathbf{w}_{2}^{(0)}}^\top & - \ &\vdots& \
- & {\mathbf{w}{M}^{(0)}}^\top & - \ \end{bmatrix}, \ \mathbf{w}{0i}\in\mathbb{R}^N \ \ &=\begin{bmatrix} w_{11}^{(0)} & w_{12}^{(0)} & \cdots & w_{1N}^{(0)} \ w_{21}^{(0)} & w_{22}^{(0)} & \cdots & w_{2N}^{(0)} \ \vdots & \vdots & \ddots & \vdots \ w_{M1}^{(0)} & w_{M2}^{(0)} & \cdots & w_{MN}^{(0)} \end{bmatrix}\in\mathbb{R}^M\times\mathbb{R}^N \ \ \mathbf{b} &= \begin{bmatrix} b_1 \ b_2 \ \vdots \ b_N \end{bmatrix} \end{align} $$
- Learning Rate:
$\eta$ - Decay (Forget) Factor:
$\phi$
The output is given by:
$$
\mathbf{y}{t+1} = f(\mathbf{W}^{(t)}\mathbf{x}{t+1}-\mathbf{b})\in\mathbb{R}^M
$$
where
The change in weights: $$ \begin{align} \Delta\mathbf{W}^{(t)} &= \eta \cdot (\mathbf{y}{t+1}\mathbf{x}{t+1}^\top)-\phi \cdot \text{diag}(\mathbf{y}_{t+1}) \cdot \mathbf{W}^{(t)} \ \ \mathbf{W}^{(t+1)} &= \mathbf{W}^{(t)}+\Delta\mathbf{W}^{(t)} \end{align} $$
where
And, $$ \begin{align} \text{Given: } \mathbf{y}{t+1} &= \begin{bmatrix} y_1 \ y_2 \ \vdots \ y_M \end{bmatrix} \ \ \text{diag}(\mathbf{y}{t+1}) &= \begin{bmatrix} y_1 & 0 & \cdots & 0 \ 0 & y_2 & \cdots & 0 \ \vdots & \vdots & \ddots & \vdots \ 0 & 0 & \cdots & y_M \end{bmatrix} \in\mathbb{R}^M\times \mathbb{R}^{M} \end{align} $$
Given:
- A fully connected feed-forward network.
- Single layer,
$5$ computation neurons.
- Single layer,
- Learning rate:
$\eta=0.1$ - Training inputs:
$$
\mathbf{x}_1=\begin{bmatrix}
0 \ 0 \ 0 \ 0 \ 0
\end{bmatrix},
\mathbf{x}_2=\begin{bmatrix} 0 \ 1 \ 0 \ 0 \ 1 \end{bmatrix},
\mathbf{x}_3=\begin{bmatrix} 0 \ 0 \ 0 \ 1 \ 0 \end{bmatrix},
\mathbf{x}_4=\begin{bmatrix} 0 \ 0 \ 1 \ 0 \ 0 \end{bmatrix},
\mathbf{x}_5=\begin{bmatrix} 0 \ 1 \ 0 \ 0 \ 1 \end{bmatrix} $$
Do:
- Initialize weights and Bias. $$ \mathbf{W}_0=\begin{bmatrix} 1 & 0 & 0 & 0 & 0 \ 0 & 1 & 0 & 0 & 0 \ 0 & 0 & 1 & 0 & 0 \ 0 & 0 & 0 & 1 & 0 \ 0 & 0 & 0 & 0 & 1 \ \end{bmatrix}, \ \mathbf{b}_0=\begin{bmatrix} 0.1 \ 0.1 \ 0.1 \ 0.1 \ 0.1 \end{bmatrix} $$
Iteration 1. Activation. $$ \begin{align} y_1 &= \mathbf{W}\mathbf{x}_1-b \ \ &= \begin{bmatrix} 1 & 0 & 0 & 0 & 0 \ 0 & 1 & 0 & 0 & 0 \ 0 & 0 & 1 & 0 & 0 \ 0 & 0 & 0 & 1 & 0 \ 0 & 0 & 0 & 0 & 1 \ \end{bmatrix} \begin{bmatrix} 0 \ 0 \ 0 \ 0 \ 0 \end{bmatrix} - \begin{bmatrix} 0.1 \ 0.1 \ 0.1 \ 0.1 \ 0.1 \end{bmatrix} \ \ &=\begin{bmatrix} -0.1 \ -0.1 \ -0.1 \ -0.1 \ -0.1 \end{bmatrix} \end{align} $$ Learning $$ \begin{align} \Delta\mathbf{W}_0 &= \eta\cdot y_1\cdot\mathbf{x}_1^\top \ \ &= 0.1 \cdot \begin{bmatrix} -0.1 \ -0.1 \ -0.1 \ -0.1 \ -0.1 \end{bmatrix} \begin{bmatrix} 0 & 0 & 0 & 0 & 0 \end{bmatrix} \ \ &= \begin{bmatrix} 0 & 0 & 0 & 0 & 0 \ 0 & 0 & 0 & 0 & 0 \ 0 & 0 & 0 & 0 & 0 \ 0 & 0 & 0 & 0 & 0 \ 0 & 0 & 0 & 0 & 0 \ \end{bmatrix} \ \ \implies \mathbf{W}_1 &= \mathbf{W}_0+\Delta\mathbf{W}_0 \ \ &=\begin{bmatrix} 1 & 0 & 0 & 0 & 0 \ 0 & 1 & 0 & 0 & 0 \ 0 & 0 & 1 & 0 & 0 \ 0 & 0 & 0 & 1 & 0 \ 0 & 0 & 0 & 0 & 1 \ \end{bmatrix}, \end{align} $$
Iteration 2. Activation $$ \begin{align} y_2 &= \mathbf{W}_1\mathbf{x}_2-b \ \ &= \begin{bmatrix} 1 & 0 & 0 & 0 & 0 \ 0 & 1 & 0 & 0 & 0 \ 0 & 0 & 1 & 0 & 0 \ 0 & 0 & 0 & 1 & 0 \ 0 & 0 & 0 & 0 & 1 \ \end{bmatrix} \begin{bmatrix} 0 \ 1 \ 0 \ 0 \ 1 \end{bmatrix} - \begin{bmatrix} 0.1 \ 0.1 \ 0.1 \ 0.1 \ 0.1 \end{bmatrix} \ \ &=\begin{bmatrix} -0.1 \ 0.9 \ -0.1 \ -0.1 \ 0.9 \end{bmatrix} \end{align} $$ Learning $$ \begin{align} \Delta\mathbf{W}_1 &= \eta\cdot y_2\cdot\mathbf{x}_2^\top \ \ &= 0.1 \cdot \begin{bmatrix} -0.1 \ 0.9 \ -0.1 \ -0.1 \ 0.9 \end{bmatrix} \begin{bmatrix} 0 & 1 & 0 & 0 & 1 \end{bmatrix} \ \ &= \begin{bmatrix} 0 & -0.01 & 0 & 0 & -0.01 \ 0 & 0.09 & 0 & 0 & 0.09 \ 0 & -0.01 & 0 & 0 & -0.01 \ 0 & -0.01 & 0 & 0 & -0.01 \ 0 & 0.09 & 0 & 0 & 0.09 \ \end{bmatrix} \ \ \implies \mathbf{W}_2 &= \mathbf{W}_1+\Delta\mathbf{W}_1 \ \ &=\begin{bmatrix} 1 & -0.01 & 0 & 0 & -0.01 \ 0 & 1.09 & 0 & 0 & 0.09 \ 0 & -0.01 & 1 & 0 & -0.01 \ 0 & -0.01 & 0 & 1 & -0.01 \ 0 & 0.09 & 0 & 0 & 1.09 \ \end{bmatrix}, \end{align} $$
More Iterations....
- [i] Neurons compete among themselves to be activated.
- Only a single output neuron is active at any time.
- The output neuron that wins is the winner-takes-all neuron.
Teuvo Kohonen: Self-organizing feature maps.
- [i] Structure of a Kohonen Network
- Input: Fixed number of input;
- Competition Layer: Higher dimensional Kohonen Layer.
![[Kohonen_Network.png]]
Suppose we have an
- Learning rate:
$\eta$ , - Neighbour radius:
$r$ .