In 1992, David Montana published a paper addressing a fundamental weakness in one of the era's most popular classification algorithms: the Probabilistic Neural Network (PNN). By introducing a "Weighted" version (WPNN) optimized via a Genetic Algorithm, Montana demonstrated how to make these networks robust against noisy or transformed data.
The Achilles' Heel of Standard PNNs
In the early 90s, PNNs were favored for their speed and performance, often outperforming backpropagation. However, they had a significant vulnerability: they were not robust to affine transformations.
Because PNNs are "nearest-neighbor-like" algorithms that use isotropic (spherical) Gaussians to estimate likelihood, they treat every dimension in the feature space as equally important. If you add random noise columns to your dataset, or simply change the units of one feature (scaling it), the Euclidean distance between points changes drastically. This causes the PNN to misclassify data that should otherwise be easy to recognize. While backpropagation is theoretically robust to these changes, in practice, it often gets stuck in local minima when the feature space is messy.
The WPNN Solution
To solve this, Montana proposed the Weighted Probabilistic Neural Network (WPNN). The core innovation is replacing the standard isotropic Gaussian with an anisotropic Gaussian.
Instead of a single variance parameter ($\sigma$), the WPNN uses a covariance matrix ($\Sigma$). To keep the number of parameters manageable and avoid the curse of dimensionality, the author restricts $\Sigma$ to a diagonal matrix. This reduces the parameter count from $k(k+1)/2$ to just $k$ parameters, where $k$ is the number of features.
By allowing the covariance matrix to be diagonal, the WPNN effectively performs automated feature weighting. If a feature is irrelevant (noise), the model can evolve a very large variance for that dimension, effectively "flattening" its influence on the distance calculation.
Optimization via Genetic Algorithm
To find the optimal values for this covariance matrix, Montana employs a Genetic Algorithm (GA). For this specific problem—where the evaluation function is based on "leaving-one-out" cross-validation—the search space is non-linear and full of traps, making a GA a more robust choice than traditional derivative-based optimization. The GA implementation includes several clever tweaks:
- Logarithmic Encoding: Parameters are encoded as integers representing exponents. This allows the GA to search across a massive dynamic range (finding very small or very large weights) without making the search space unmanageably large.
- Redundant Representation: An extra parameter ($a_0$) controls the overall scale of the Gaussian, while other parameters control the relative weights of features. This redundancy helps the GA converge faster.
- Steady-State Evolution: Because the search space is "sparse" (most random combinations of weights are terrible), the author uses a large population of 1,600 individuals, replacing them one by one rather than in entire generations.
- Heuristic Pruning: The algorithm automatically rejects "too small" covariances (which cause numerical errors) and "too big" covariances (which over-smooth the data).
Experimental Results
The study tested the WPNN using four synthetic datasets based on simulated sonar signals:
- Dataset 1: The baseline (10 features, 5 classes, 516 exemplars).
- Dataset 2: Dataset 1 plus 5 features of pure random noise.
- Dataset 3: Dataset 1 plus 10 features of pure random noise.
- Dataset 4: Dataset 3, but with the features mixed together via linear combinations (effectively rotating the data in feature space).
The performance gap between standard PNN and WPNN becomes stark when noise is introduced:
| Algorithm | Dataset 1 (Clean) | Dataset 3 (10 Noise Features) | Dataset 4 (Rotated/Mixed) |
|---|---|---|---|
| PNN | 9 errors | 109 errors | 29 errors |
| WPNN | 10 errors | 11 errors | 25 errors |
| Backprop | 11 errors | 20 errors | 13 errors |
While the standard PNN's performance collapsed (jumping from 9 to 109 errors) when noise was added, the WPNN remained nearly identical to its baseline (10 to 11 errors). WPNN also outperformed the popular CART (Classification and Regression Trees) algorithm across the board.
Limitations and Future Work
The primary limitation of the WPNN is the diagonal restriction of the covariance matrix. Because the model only weights individual axes, it cannot easily compensate for affine transformations that involve rotation or feature correlation.
This limitation is evident in the results for Dataset 4, where features were mixed and rotated. The author concludes that the next logical step is to move toward full covariance matrices. However, this introduces a severe "curse of dimensionality" problem: a full matrix has $O(k^2)$ degrees of freedom, risking overfitting the training data. Future work must find ways to optimize these extra parameters without losing the model's ability to generalize.
Summary updated