Fitted Learning: Models with Awareness of their Limits

Navid Kardan, Kenneth O. StanleyarXiv 2016 · OpenReview

Introduction

Standard deep learning models are primarily discriminative, designed to draw decision boundaries that partition the entire input space. While effective for classification, this approach leads to "overgeneralization." For instance, a model trained to distinguish between apples and watermelons might confidently classify a 50kg fruit as a watermelon simply because it falls on one side of a linear boundary, even though such an object is physically impossible. This lack of awareness regarding the limits of their own training data makes models vulnerable to adversarial "fooling" and complicates tasks like continual or one-class learning.

This paper introduces Fitted Learning, a paradigm where models learn both the discriminative boundary and the underlying support of the training distribution. The core mechanism proposed is the Competitive Overcomplete Output Layer (COOL), a simple architectural modification that forces neurons to compete for representation, resulting in tight, "fitted" decision boundaries.

The Competitive Overcomplete Output Layer (COOL)

The COOL architecture replaces the standard single-neuron output for each class with a "neuron aggregate"—a group of multiple neurons. The behavior of these aggregates differs significantly between training and inference phases.

Comparison of conventional output layers and the COOL architecture during training and testing.

Training: Competition and Diversity

During training, the neurons within an aggregate are subjected to a standard cross-entropy loss and a softmax function. Because the softmax forces these units to compete for activation, they naturally diverge. Instead of all neurons converging to the same weights, they partition the input space, with each neuron learning to recognize a different sub-region or "mode" of the class distribution.

Inference: Consensus through Multiplication

During testing, the outputs of the neurons in an aggregate are multiplied together. This acts as a strict consensus mechanism. Since different neurons have learned different regions of the training data, the product will only be high if all neurons in the aggregate output a high probability. If an input is far from the training distribution (an out-of-distribution or "fooling" sample), at least one neuron is likely to output a low value, dragging the entire product toward zero. This effectively creates a closed, tight boundary around the known data.

Visualizing Fitted Boundaries

The primary goal of COOL is to move away from infinite decision borders toward "fitted" boundaries that encapsulate the training data. This is particularly evident in synthetic 2D datasets where standard networks might draw a line through the center, whereas a COOL-equipped network draws a tight halo around the specific clusters.

Visualization of fitted boundaries on a synthetic dataset, showing how the model constrains its confidence to the vicinity of training data.

Key Experimental Results

The authors evaluated COOL across several benchmarks, demonstrating its versatility and robustness:

  • Mitigating Fooling: On the MNIST dataset, a standard CNN was fooled by a generator network 100% of the time, often in very few training steps. In contrast, the COOL-enhanced CNN was fooled only 47% of the time and required significantly more effort (over 5,000 steps) to find vulnerabilities.
  • Separable Concept Learning: COOL allows for modular training. The authors trained five separate models on different pairs of MNIST digits and merged them post-training. COOL achieved 87.6% accuracy in this combined state, significantly outperforming the 79.4% achieved by standard CNNs, which struggled with the overlapping infinite boundaries of the merged modules.
  • One-Class Learning: COOL proved highly effective at training models to recognize a single class while rejecting all others. On MNIST one-class tasks, it reached 75.7% accuracy compared to 60% for standard baselines.
  • Performance and Convergence: Beyond robustness, COOL often improves standard training metrics. On CIFAR-10, COOL models converged more than twice as fast as standard CNNs. On CIFAR-100, a COOL CNN with dropout achieved a top-1 accuracy of 74.72%, surpassing the baseline of 72.79%.

Conclusion

The Competitive Overcomplete Output Layer (COOL) offers a computationally efficient way to implement "fitted learning." By replacing simple discriminative boundaries with multi-neuron consensus, models gain a better sense of the limits of their knowledge. This simple change addresses long-standing issues in deep learning, including adversarial vulnerability and the difficulty of modular, incremental learning, without the training instabilities often associated with generative models like GANs.

Summary updated

Abstract

Though deep learning has pushed the boundaries of classification forward, in recent years hints of the limits of standard classification have begun to emerge. Problems such as fooling, adding new classes over time, and the need to retrain learning models only for small changes to the original problem all point to a potential shortcoming in the classic classification regime, where a comprehensive a priori knowledge of the possible classes or concepts is critical. Without such knowledge, classifiers misjudge the limits of their knowledge and overgeneralization therefore becomes a serious obstacle to consistent performance. In response to these challenges, this paper extends the classic regime by reframing classification instead with the assumption that concepts present in the training set are only a sample of the hypothetical final set of concepts. To bring learning models into this new paradigm, a novel elaboration of standard architectures called the competitive overcomplete output layer (COOL) neural network is introduced. Experiments demonstrate the effectiveness of COOL by applying it to fooling, separable concept learning, one-class neural networks, and standard classification benchmarks. The results suggest that, unlike conventional classifiers, the amount of generalization in COOL networks can be tuned to match the problem.
BibTeX
@misc{kardan2016fitted,
  author = {Navid Kardan and Kenneth O. Stanley},
  title = {{Fitted Learning: Models with Awareness of their Limits}},
  year = {2016},
  eprint = {1609.02226},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1609.02226},
}
Figure