The short answer
An extreme learning machine (ELM) is a kind of neural network, not a separate category from one. The difference is in how it is trained. A standard neural network adjusts all of its weights over many rounds of gradient-based training. An ELM usually has a single hidden layer, sets the weights feeding that layer at random, and computes the remaining weights in one mathematical step. That often makes it much faster to train, but it gives up the hidden layer’s ability to learn features from the data, which matters a lot on complex inputs such as images or speech.
What a neural network is
A neural network is built from layers of simple units, often called neurons. Each unit takes a weighted sum of its inputs, applies an activation function, and passes the result on. The weights are numbers the model adjusts so its outputs match the examples it learns from. Neural networks are loosely inspired by the brain, but that comparison only goes so far. In practice, a neural network is a mathematical function whose settings are tuned to data.
The simplest common design is a feedforward network. It has an input layer, one or more hidden layers, and an output layer. Information moves in one direction, from inputs to outputs. A network with many hidden layers is called a deep neural network.
Both neural networks and ELMs are often used for supervised learning, where the model learns from labeled examples. For that wider context, see supervised learning types with examples.
How a standard neural network learns
Most standard networks learn with backpropagation and gradient descent. For a batch of training examples, the network makes predictions and measures the error with a loss function. Backpropagation then works out how much each weight contributed to that error, and gradient descent nudges every weight a small step in the direction that reduces it. This repeats over many passes through the data, called epochs, until performance stops improving.
Readers often ask “how do artificial neural networks learn?” The short answer is that they adjust their weights, and this repeated correction is the core of it. Because every weight is updated many times, training can take a long time for large models. The same general recipe, though, works across many different network designs.
What an extreme learning machine is
An extreme learning machine is a single-hidden-layer feedforward network. Guang-Bin Huang and colleagues introduced the approach in the mid-2000s. Its design rests on two choices:
- The weights from the inputs to the hidden layer, along with the hidden biases, are generated at random. They are then left fixed. They do not depend on the training labels.
- The weights from the hidden layer to the output are the only ones that are learned. They are learned by solving a linear least-squares problem.
Put another way, the random hidden layer turns the inputs into a set of nonlinear features, and the rest of the ELM is a linear model fitted to those features.
How an extreme learning machine learns
The hidden-layer output matrix is H = g(XW + b), where X holds the training inputs, W and b are the random hidden weights and biases, and g is the activation function. The output weights β are then found by solving β = H†T, where T holds the training targets and H† is the Moore-Penrose pseudoinverse of H. In practice, a regularization term is often added so the solution stays stable when the data is noisy or the hidden layer is large.
Because this is one calculation rather than an iterative search, there is no learning rate to set and no repeated passes over the data. The main choices are the number of hidden nodes, the activation function, and the regularization strength.
The main differences
The central difference is training. A standard network trains all of its weights iteratively. An ELM trains only its output weights, in a single solve. Most of the other differences follow from that.
| Extreme learning machine | Standard neural network | |
|---|---|---|
| Hidden layer weights | Random and fixed | Learned during training |
| Output weights | Solved in one step | Learned iteratively |
| Typical depth | One hidden layer | One or many hidden layers |
| Main training method | Least-squares solve | Gradient descent with backpropagation |
| Settings to tune | Hidden node count, activation, regularization | Architecture, learning rate, optimizer, epochs, batch size |
| Feature learning | Limited to random projections | Learned from the data |
| Training speed | Often fast on small and medium datasets | Can be slow, especially for large models |
Training method
Standard networks search for good weights step by step. An ELM skips that search for the hidden layer and fits the output directly in one calculation.
Speed
Because an ELM avoids the iterative loop, training is often much faster than training a comparable network with gradient descent, especially on small and medium datasets. The actual speed depends on the number of hidden nodes, the number of examples, and the hardware. The advantage can shrink on very large datasets, where the matrix calculations get expensive, so it is worth measuring on your own data.
Learned features
In a standard network, the hidden layers adjust their weights to find useful features in the data. In an ELM, the hidden features are random projections of the inputs, and nothing shapes them to the task. They are often good enough for simple problems. For complex perception tasks such as image or speech recognition, where useful features are hard to specify by hand, deep networks that learn their own features have usually been the stronger choice.
Depth
A standard ELM has one hidden layer. Deep networks stack many. Multi-layer variants of the ELM idea exist, but the basic method is shallow. If the word “deep” is unclear here, the difference between artificial neural networks and deep neural network explains it, since depth is the main dividing line there.
Consistency across runs
Because the hidden weights are random, two ELMs trained on the same data can give somewhat different results. Practitioners usually manage this with more hidden nodes, regularization, or averaging several trained models. It is still worth checking how much results change with different random seeds.
Which one to use
An ELM can be a reasonable choice when:
- You want a fast baseline on a small or medium tabular dataset.
- Training time matters more than squeezing out the last bit of accuracy.
- You want few settings to tune and a quick experiment.
A standard neural network, especially a deep one, is usually the better choice when:
- The inputs are raw images, audio, or text, where useful features must be learned. For images, see why convolutional neural networks are preferred for computer vision applications.
- You have a large dataset and the compute to train on it.
- You need flexibility in architecture, layer count, and training method.
Large language models behind chatbots are deep networks trained with gradient-based methods. A common question is “Is ChatGPT a neural network?” The answer is yes, and it is a deep one, not an ELM.
Common misconceptions
“Extreme” means extreme in size or accuracy. It does not. The name refers to the goal of very fast learning. An ELM is not necessarily more accurate than a neural network. It is usually faster to train.
An ELM is a different kind of model from a neural network. It has the same basic structure: weighted units passing their outputs through activation functions. What differs is how the weights are set.
ELMs are a brand-new idea. Random hidden weights were explored before ELMs. Random vector functional-link networks, for example, date to the 1990s. The ELM work built on that earlier idea, with its own analysis and a particular fast training recipe.
Published comparisons settle which method is better. Results depend heavily on the data, the tuning, and how the comparison is run. Try both on your own problem before choosing.
Key takeaways
- An ELM is a neural network whose hidden layer is random and fixed, with its output solved in one step.
- A standard neural network learns every weight through repeated gradient-based updates.
- ELMs are often faster to train, but they learn less from the data and are usually weaker on complex inputs than deep networks.
- Choose based on the type of data, the compute you have, and how much you value training speed against accuracy.