Networks with Learned Unit Response Functions

John Moody, Norman YarvinNeurIPS 1991

This 1991 paper by John Moody and Norman Yarvin explores a fundamental question in neural network design: Why limit ourselves to simple sigmoidal activation functions? By replacing standard sigmoids with more flexible, learnable functions like polynomials and Fourier series, the authors demonstrate that networks can become significantly more efficient and accurate, particularly when tackling complex, non-monotonic physical systems.

The Problem with Standard Sigmoids

In a standard feedforward neural network, each hidden unit typically computes a sigmoid function (like tanh or the logistic function) of a weighted sum of its inputs. While sigmoids are "universal approximators" in aggregate, they are individually monotonic—they only go up or down.

If the underlying phenomenon you are trying to model is "wiggly" or non-monotonic (like the torque required to move a robot arm), a sigmoid-based network requires many units to piece together an approximation. The authors investigate whether making the individual neurons "smarter" by allowing them to learn more complex shapes can lead to better performance and more compact models.

Methods: Designing "Complex Units"

The authors tested three classes of flexible unit response functions ($g(x)$) where $x$ is the weighted sum of inputs:

  1. Polynomials: $g(x) = \sum a_i x^i$.
  2. Rational Functions: Ratios of polynomials. To prevent the "division by zero" problem, they developed a clever representation using a sum of squares in the denominator, ensuring it never drops below 1.
  3. Flexible Fourier Series: A sum of cosines where the amplitude, frequency, and phase are all learned parameters: $g(x) = \sum a_i \cos(b_i x + c_i)$.

Training: They utilized the Levenberg-Marquardt (LM) algorithm, a second-order optimization method. They found LM to be significantly superior to standard Stochastic Gradient Descent (SGD) in terms of convergence speed and final solution quality for these complex units, despite its higher memory requirements ($O(p^2)$ where $p$ is the number of parameters).

Key Results: Dominating Non-Monotonic Problems

The "killer app" for complex units is non-monotonicity. The models were evaluated on the Robot Arm Inverse Dynamics dataset—a noise-free but highly non-monotonic problem involving the torque required for a two-joint arm. The required functions are inherently oscillatory. Sigmoids struggle here because they are "flat" by nature, whereas a single Fourier or rational unit can naturally capture multiple peaks and valleys.

Test set error on the Robot Arm dynamics problem, comparing complex units to standard sigmoids.

On the robot arm problem, the complex units crushed the standard approach. A network with 6 cosine units (73 parameters) achieved an error of 0.020, while a network with 20 sigmoids (161 parameters) could only reach an error of 0.119. This demonstrates that while a complex unit has more parameters than a single sigmoid, you need far fewer of them to achieve superior results.

The Extrapolation Trap on Noisy Data

The models were also evaluated on two noisy datasets: Boston Housing Prices (a classic benchmark with 13 input factors) and Sunspot Count Prediction (a time-series prediction task).

On these datasets, the results were more nuanced, revealing a critical vulnerability: The Extrapolation Trap. Polynomial units are double-edged swords. While they fit training data extremely well, they "explode" when they encounter data even slightly outside the training range.

Training vs. test set error on the Boston Housing dataset, illustrating the severe overfitting of polynomial units.

As seen in the Boston Housing evaluation, polynomial units perform the worst on the test set due to overfitting and poor extrapolation. However, Rational and Fourier units remained competitive with sigmoids. Because they are either asymptotically constant or bounded, they are much safer for generalization in real-world, noisy scenarios.

To further combat overfitting on noisy data, the authors found that adding a weight decay term (regularization) was crucial for the complex units to prevent them from memorizing the noise.

Limitations and Future Work

While promising, the approach has a few notable limitations:

  • Computational Scaling: The Levenberg-Marquardt algorithm is powerful but memory-intensive. Scaling these complex units to massive, modern deep learning architectures would likely require adapting them to work efficiently with first-order optimizers.
  • Extrapolation: Even with bounded rational functions, extrapolation outside the training domain remains a fundamental challenge.
  • Architecture Depth: This study focused on shallow networks (one hidden layer). The behavior of these highly flexible units in deep, multi-layer architectures remains an open question for future research.

Summary updated

BibTeX
@inproceedings{moody1991networks,
  author = {John Moody and Norman Yarvin},
  title = {{Networks with Learned Unit Response Functions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1991},
}
Figure