Main Menu
It is possible for states in a recurrent network to be stable, i.e. if the network gets into that state, it will remain in that state (until the program stops, of course). These states are called attractor states - the network moves from unstable states into an attractor state and then stays there, like a piece of iron moving towards a magnet.
See also attractor basins
| Here's an analogy. Suppose you had a landscape with several hills and valleys. If you drop a smooth boulder somewhere on one of the hills, it will roll down into a valley basin and stop when it reaches the lowest point. There a large number of points on the hillside where you could drop the boulder for it always to end up in the same place. That's why they call it a basin! | ![]() |
Digital electronics students will recognise this as the Exclusive OR (or XOR) function. The reason this problem is so famous is that it was used by Marvin Minsky and Seymour Papert in their famous academic paper Perceptrons as an example of a linearly inseparable problem that could not be solved by single-layer perceptrons. You can train the perceptron as long as you like on the patterns above, and it will still give the wrong answer about half of the time. Ever since then, the XOR problem has been quoted in order to separate the simple neural networks from the more complex ones.
We can display this task in the form of a graph. Construct an X-Y graph and mark all the points on the graph where X is bigger than Y with a 1 and all the points where X isn't bigger than Y with a 0:

You can easily see that we can draw a straight line that separates all the 1s from all the 0s - it's a diagonal line through the origin (the 0-0 point) of the graph. This is termed a "linearly separable task" - the two regions can be separated by a single straight line. The same would apply if we had three inputs (X, Y and Z). In this case, we couldn't represent them on a flat graph - we would have to use a 3-D cube, but as long as we could cut off all the 1s from the 0s with one straight line cut, then it would be a linearly separable problem. The same thing applies to higher dimensions - four, five, six dimensions etc. Here, we wouldn't be able to draw them on a graph (or even imagine them in our heads - our visual imagination doesn't stretch to 4 dimensions or higher), but we can still consider them mathematically.
What about a linearly inseparable task, then? Well, let's alter the task our network has to cope with. Let's ask it to give a 1 only when X and Y have different signs (i.e. when X is positive and Y is negative, or vice-versa). This time, the graph would look like this:

This time, you can't separate all the 1s from all the 0s with only one straight line. This problem is "linearly inseparable", and harder for neural networks to solve. The simpler types of neural network, such as Hebbian nets and single-layer perceptrons, can classify linearly separable tasks but not linearly inseparable ones (they keep getting the answer wrong!) More complicated networks, such as multi-layer perceptrons, can classify linearly separable tasks, but they require more training to get the answer consistently right.
There are two types of training. With supervised training, the neural network is given patterns that it is supposed to learn together with the output pattern that it is supposed to produce. Some human must go through the training data and label each pattern with the correct response that the network must make.
In the case of unsupervised training, the network is given a large number of patterns, but is not told what it is supposed to produce in each circumstance. You might think that it couldn't possibly learn anything, but there are some types of neural network (e.g. Kohonen's Self-Organising Feature Maps) that can learn to organise the input patterns into groups, and classify similar patterns in a similar way. It might, for instance, learn that all the male faces belong in one category while all the female faces belong in another - even though it couldn't actually put names to those categories.