← Unit 4 Overview | Next → Appropriate Problems for NN Learning
Artificial Neural Networks (ANNs) provide a general, practical method for learning real-valued, discrete-valued, and vector-valued functions from examples.
The Backpropagation algorithm — the cornerstone of ANN learning — uses gradient descent to tune network parameters to best fit a training set of input-output pairs.
ANN learning has been proven effective in:
The study of ANNs was inspired by the observation that biological learning systems are built of densely interconnected neurons.
| Fact | Value |
|---|---|
| Neurons in human brain | ~10¹¹ |
| Average connections per neuron | ~10⁴ |
| Neuron switching time | ~10⁻³ seconds |
| Computer switching speed | ~10⁻¹⁰ seconds |
| Time to visually recognise your mother | ~0.1 seconds |
In 0.1 seconds, with neurons switching at 10⁻³ seconds each, the brain can execute only about 100 sequential steps. Yet visual recognition succeeds in that time. This means the brain must rely on massively parallel computation with information distributed across many neurons.
This observation motivated ANN designs where:
ANNs are only loosely inspired by biology. Differences include:
ALVINN (Autonomous Land Vehicle In a Neural Network, Pomerleau 1993) is a landmark example of ANN learning in a real-world task.
Task: Steer an autonomous vehicle driving at normal highway speeds.
Network architecture:
┌──────────────────────────────────────────┐
│ 30 Output Units (steering directions) │
│ ↑ ↑ ↑ ... ↑ ↑ ↑ │
│ ┌─────────────────────────────┐ │
│ │ 4 Hidden Units │ │
│ └─────────────────────────────┘ │
│ ↑ ↑ ↑ ... ↑ ↑ ↑ │
│ 30×32 Pixel Inputs (960 total) │
│ [camera image from forward-facing lens] │
└──────────────────────────────────────────┘
| Component | Detail |
|---|---|
| Input | 30×32 grid of pixel intensities from forward-facing camera = 960 inputs |
| Hidden layer | 4 units; each computes a weighted combination of all 960 inputs |
| Output layer | 30 units; each represents a steering direction |
| Prediction | The output unit with the highest value determines the steering command |
Performance achieved:
The weights learned by ALVINN encode information about which pixel patterns correspond to which steering directions. For example:
This is typical of how ANNs work: the network structure defines the hypothesis space; learning finds the best weights within that space.
ALVINN illustrates the structure common to most practical ANNs:
While ANNs can in general be cyclic or directed, the most practical and widely used networks (including Backpropagation networks) are feedforward (acyclic).
← Unit 4 Overview | Next → Appropriate Problems for NN Learning