Deep Neural Nets with Interpolating Function as Output Activation

Bao Wang, Xiyang Luo, Zhen Li, Wei Zhu, Zuoqiang Shi, Stanley Osher

Introduction

In modern deep learning, the final layer of a classification network is almost universally a softmax function acting as a linear classifier on top of extracted features. While highly effective in many regimes, softmax is fundamentally "data-agnostic"—it does not account for the underlying geometric manifold where the data resides.

This limitation leads to two major issues:

  1. The Small Data Struggle: When training data is scarce, deep networks often overfit or fail to converge to a useful solution. The authors refer to this as the "degradation problem."
  2. Suboptimal Generalization: Even with abundant data, a simple linear boundary may not be the most efficient or accurate way to separate complex, high-dimensional feature clusters.

To address these shortcomings, this paper proposes replacing the standard softmax output layer with a novel interpolating function based on the Weighted Nonlocal Laplacian (WNLL). By leveraging the manifold structure of the data, this architecture significantly improves generalization accuracy and proves remarkably robust when training data is limited.

Methods: The WNLL Layer and Proxy Training

The core innovation of this work is the introduction of the WNLL layer, which replaces the traditional weight matrix and softmax activation with harmonic extension.

By conceptualizing data points as nodes in a graph, the network can utilize known labels (the "boundary") to infer the labels of unknown points by minimizing the "energy" of the labels across the graph. Essentially, a new point's label is determined as a weighted average of its neighbors' labels in the learned feature space, allowing the network to better capture the natural structure of the data.

The Proxy Training Algorithm

A significant challenge with the WNLL layer is that it is an implicit function—defined by the solution to an equation rather than a simple forward pass. Consequently, calculating exact gradients for backpropagation is computationally grueling.

To make training feasible, the authors introduce a Proxy Training Algorithm.

Proxy Training Architecture

As illustrated above, the proxy training approach involves:

  • An Auxiliary Network: The architecture incorporates a "buffer" layer and splits into two parallel output branches: a standard linear/softmax branch and the proposed WNLL branch.
  • Alternating Optimization: The network is trained by alternating between these two branches. Crucially, the gradient derived from the simpler linear branch serves as a "proxy" to update the weights for the WNLL branch. This greedy approach bypasses the computational bottleneck of implicit gradients while still forcing the network to learn feature representations suitable for manifold interpolation.

Empirical Performance and Key Insights

The authors evaluated their method on standard computer vision benchmarks, including MNIST, SVHN, CIFAR-10, and CIFAR-100, testing across 15 different network architectures (such as VGG, ResNet, and Pre-activated ResNet).

Key Results

  • Substantial Error Reduction: On CIFAR-10 and CIFAR-100, networks utilizing the WNLL activation achieved an average 30% and 20% relative reduction in test error, respectively, compared to their softmax counterparts.
  • Small Data Supremacy: To test robustness in low-data regimes, the authors trained models on subsets of CIFAR-10 containing only 1,000 and 10,000 instances. When trained on just 1,000 samples, a standard ResNet-110 with softmax yielded a ~43% error rate. The WNLL-activated version slashed this error rate to ~28%.
  • Solving the Degradation Problem: Typically, increasing network depth on a small dataset causes the error to rise due to overfitting. With WNLL, the error continues to decrease, indicating that the interpolating function acts as a powerful structural regularizer.

Theoretical and Practical Insights

  • Bridging Deep and Manifold Learning: The paper successfully merges classical manifold learning (prioritizing data geometry) with deep learning (prioritizing hierarchical feature extraction).
  • Template-Based Stability: At test time, the model uses a small "preserved template" of training data to help classify new images. This reliance on relative feature distances makes the model more stable against perturbations than a fixed linear boundary.

Limitations and Future Directions

Despite the impressive gains in accuracy and robustness, the authors note a few current limitations:

  • Computational Bottleneck: The manifold interpolation step requires searching for nearest neighbors, which is inherently slower and more memory-intensive than a simple softmax operation.
  • Scaling to Large Classes: To maintain valid interpolation, the batch size must scale with the number of classes. Applying WNLL to massive datasets like ImageNet (1,000 classes) presents a significant memory challenge.
  • Gradient Approximation: The linear proxy gradient is a heuristic. Discovering a more mathematically optimal method to approximate the WNLL gradient could unlock even greater performance.

Finally, the authors conjecture that this manifold-aware approach might inherently make networks more resistant to adversarial attacks, highlighting a promising avenue for future security-focused research.

Summary updated

BibTeX
@inproceedings{wang2018deep,
  author = {Bao Wang and Xiyang Luo and Zhen Li and Wei Zhu and Zuoqiang Shi and Stanley Osher},
  title = {{Deep Neural Nets with Interpolating Function as Output Activation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=SJbgtIZ_Zr},
}
Figure