Calc4everyday Русский

ART-1 neural network

Draw binary patterns and set the vigilance. The network learns them in a single pass, and the page shows every step — recognition, comparison and learning — with weight tables in exact fractions.

Task

Click the cells: a filled cell is 1, an empty one is 0. Or type the vector as 0s and 1s, row by row, left to right.

Parameters

Match ratio r
If r < ρ (reset)

How ART-1 works

ART-1 is an adaptive resonance network for binary vectors, described by Gail Carpenter and Stephen Grossberg in 1987. It sorts patterns into categories on its own, with no teacher and no correct answers. Each category lives in a neuron of the recognition layer as two weight vectors: B, the bottom-up weights the neuron uses to respond to a pattern, and T, the top-down weights that form the binary prototype of the category.

Patterns are presented one at a time, and each goes through three steps.

  1. Recognition. Every neuron computes S = Σ bi·xi. The neuron with the largest S wins.
  2. Comparison. The winner sends back its prototype T, and the comparison layer keeps only the shared ones: ci = xi·ti. If the match ratio of X and C is at least the vigilance ρ, the network resonates. If it is lower, a reset disables the winner until the end of this pattern.
  3. Learning. On resonance the winner learns: T = C, so its prototype shrinks to the shared ones. If no neuron fits, the pattern is stored in a new neuron.

New categories come from the uncommitted neuron: all its ti are 1 and all its bi are equally small. If it responds more strongly than the committed neurons, the pattern becomes a new category. This is how the network learns new things without erasing old ones.

Formulas

L is a constant greater than 1, usually 2 or 3. The higher the vigilance ρ, the stricter the comparison and the more categories you get.

What you can change

Fractions are exact: 2/7 stays 2/7, so the vigilance test and the choice of the winner never depend on rounding.

Example

Five 2×5 patterns, coded row by row from left to right: X1 = 11011 10101, X2 = 00100 11111, X3 = 11111 10101, X4 = 00100 01111, X5 = 10100 11111. Vigilance ρ = 0.85, L = 2, bu = 1/6.

X1 and X2 become categories 1 and 2. X3 responds most strongly to neuron 1 (S1 = 7/4), the match ratio is 9/10 = 0.9 — resonance, and the prototype stays the same. X4 joins category 2 with r = 1, and that prototype shrinks to X4. X5 first picks neuron 2 (S2 = 5/3), but the match ratio of 0.8 is below the vigilance, so the network resets. Next comes the uncommitted neuron (Su = 7/6), and X5 becomes category 3. The Example button loads this task.