Constrained Extreme Learning Machines: A Study on Classification Cases

Wentao Zhu, Jun Miao, Laiyun QingarXiv 2015

TL;DR

Constrained Extreme Learning Machines (CELMs) improve the efficiency of traditional Extreme Learning Machines (ELMs) by replacing completely random hidden layer weights with vectors derived directly from the training data. This approach allows the model to achieve significantly better classification accuracy and generalization with far fewer hidden neurons, maintaining ELM's signature high-speed training while optimizing it for real-time applications.

What Problem Does This Paper Address?

Extreme Learning Machines (ELMs) are popular because they are incredibly fast. Unlike traditional deep learning, which uses backpropagation to painstakingly tune every weight, ELMs randomly assign weights to the hidden layer and only "learn" the final output weights using a simple linear solution.

However, this "randomness" is a double-edged sword. Because the hidden weights are chosen blindly from an open set of arbitrary vectors, many hidden neurons end up being useless for the specific task at hand. To compensate for this inefficiency and achieve good accuracy, engineers often have to use a massive number of hidden neurons. This leads to two major problems:

  1. Slow Inference: Large models take longer to process data during testing, which is a dealbreaker for real-time systems.
  2. Overfitting: A bloated model is more likely to "memorize" noise in the training data rather than learning general patterns.

Methods

The authors propose Constrained Extreme Learning Machines (CELMs). The core innovation is to constrain the "random" hidden weights to a closed set of vectors generated from the training samples themselves. They introduce five variants:

  • Constrained Difference ELM (CDELM): Weights are randomly selected from the difference vectors between samples of different classes. The intuition is that these vectors naturally point in directions that help distinguish one class from another.
  • Sample ELM (SELM): Weights are randomly selected directly from the training samples themselves, acting somewhat like a kernel-based method.
  • Constrained Sum ELM (CSELM): Weights are sums of samples from the same class, which helps capture the "center" or robust features of a class while smoothing out noise.
  • Random Sum ELM (RSELM): Weights are sums of random samples regardless of their class, intended to speed up weight generation.
  • Constrained Mixed ELM (CMELM): A hybrid approach using both difference and sum vectors.

Crucially, the authors also emphasize the importance of normalizing these weights. Since ELMs often use sigmoid activation functions, keeping the weights within a specific range ensures the neurons operate in the "active" region of the sigmoid curve rather than saturating at 0 or 1.

The intuition behind CELM: (a) shows difference vectors between classes, (b) shows completely random ELM weights, and (c) shows the constrained, more discriminative weights of CELM.

Datasets

The researchers evaluated their models across a diverse range of benchmarks:

  • Synthetic Data: A complex 2D spiral dataset to test non-linear separation.
  • UCI Machine Learning Repository: Six standard datasets, including WDBC (Breast Cancer) and various Multiple Features Digit (MDD) datasets.
  • Large-Scale Datasets: The classic MNIST (handwritten digits) and CIFAR-10 (object recognition in color images).

Key Insights and Ideas

  • Data-Driven Priors Matter: Completely random weights are inefficient. By using the distribution of the training data to guide the "random" selection, you create a much more effective feature mapping.
  • Directional Discriminative Power: A weight vector that represents the difference between a "Cat" sample and a "Dog" sample is inherently more likely to be a useful feature for a Cat-vs-Dog classifier than a vector pointing in a totally random direction.
  • Efficiency Gains: CELMs can reach peak accuracy with significantly fewer hidden nodes than traditional ELMs. For example, on the spiral dataset, CELMs reached near-perfect accuracy with just over 50 nodes, while traditional ELM was still struggling at 150 nodes.
  • Normalization is Key: Normalizing hidden weights by the square of their $l_2$ norms is vital for the success of sigmoid-based ELMs, as it prevents the input to the activation function from becoming too large.

Key Results

  • Accuracy Boost: On large-scale datasets like MNIST and CIFAR-10, CELMs performed approximately 8% better than traditional ELMs on average.
  • Competitive with Deep Learning: On CIFAR-10, CELM variants (achieving up to 73.3% accuracy) outperformed several deep learning baselines, including Deep Convex Networks (DCN) and Multi-Layer ELMs, while being much simpler to implement and faster to train.
  • Visualization: Using t-SNE to visualize the hidden layer features, the authors showed that CELMs naturally group data into much cleaner, more separable clusters compared to the "messy" feature space of traditional or orthogonal ELMs.

Limitations and Future Work

While CELMs are more efficient, they are not immune to the standard ELM problem of overfitting if the number of hidden nodes becomes excessively large. Additionally, for extremely large datasets, the final step of the algorithm—calculating the matrix inverse—can still become a computational bottleneck.

The authors suggest that future research should explore invariant feature generation (making the model robust to rotations or translations) and extending the CELM framework from classification to regression problems.

Summary updated

BibTeX
@misc{zhu2015constrained,
  author = {Wentao Zhu and Jun Miao and Laiyun Qing},
  title = {{Constrained Extreme Learning Machines: A Study on Classification Cases}},
  year = {2015},
  eprint = {1501.06115},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1501.06115},
}
Figure