Deeply-Supervised Nets

Chen-Yu Lee, Saining Xie, Patrick W. Gallagher, Zhengyou Zhang, Zhuowen Tu

Abstract

We propose deeply-supervised nets (DSN), a method that simultaneously minimizes classification error and improves the directness and transparency of the hidden layer learning process. We focus our attention on three aspects: (1) transparency and discriminativeness of features in early layers; (2) the vanishing gradient problem; and (3) training complexity. By introducing "companion" objective functions to hidden layers, DSN provides direct supervision throughout the architecture, acting as a powerful regularizer and leading to state-of-the-art results on major image recognition benchmarks.

Introduction

While deep learning has revolutionized computer vision, several fundamental challenges persist. Features learned in early hidden layers are often not "transparent" and can lack discriminative power because they are far removed from the final classification layer. Furthermore, in very deep networks, the gradient signal used for training can become infinitesimally small as it propagates backward, a phenomenon known as the vanishing gradient problem. This often necessitates complex training "tricks" like greedy layer-wise pre-training or specific initializations. DSN aims to address these issues by making the hidden layer learning process more direct and transparent.

Methods: Integrated Direct Supervision

The core innovation of DSN is the integrated direct supervision of hidden layers. Instead of relying solely on a single loss function at the final output layer, DSN attaches a "companion" classifier—either an L2SVM or Softmax—to each hidden layer.

DSN architecture illustration showing companion classifiers at hidden layers

The network minimizes a combined objective function: the standard output loss plus the weighted sum of all companion losses. To ensure the final network isn't overly constrained, a "zero-ing" strategy is employed: as training progresses, the influence of companion losses is reduced via decay or thresholding, allowing the final output layer to eventually dominate optimization. Unlike traditional staged pre-training, DSN performs unified optimization across all layers simultaneously. Theoretical analysis suggests that these companion functions improve convergence by providing a more "strongly convex" landscape near the optimal solution.

Key Insights

  • Supervision as Regularization: Companion objectives act as strong feature regularization, forcing the model to learn robust, discriminative representations even in early layers.
  • Mitigating Vanishing Gradients: By providing a "shortcut" for gradients to reach early layers, DSN enables training very deep networks from scratch. For instance, an 11-layer DSN converged smoothly on ImageNet where a standard CNN of the same depth failed without pre-training.
  • Feature Transparency: Qualitative results indicate that DSN feature maps are cleaner and more intuitive, focusing on discriminative image regions earlier in the hierarchy.

Experimental Results

DSN was evaluated on several standard benchmarks, including MNIST, CIFAR-10/100, SVHN, and ImageNet (2012).

MNIST testing error comparison between standard CNNs and DSN variants

On the MNIST dataset, DSN achieved a state-of-the-art error rate of 0.39% without data augmentation. As shown in the figure above, DSN variants consistently outperform standard CNN baselines. On CIFAR-10, it reached a 7.97% error rate with data augmentation, surpassing Maxout and Network-in-Network. For ImageNet, an 11-layer DSN achieved a 33.7% top-1 error, outperforming an 8-layer AlexNet-style baseline and showing superior convergence compared to a standard 11-layer CNN.

Conclusion and Future Work

DSN simplifies deep network training by reducing the need for manual hyperparameter tweaking and multi-stage pipelines. However, it introduces new hyperparameters, such as the trade-off weights for companion losses and their decay schedules. Future work will explore optimal "zero-ing" strategies to further automate the implementation. Despite the added computational cost during training, the benefits in convergence and final accuracy make DSN a powerful approach for deep architecture optimization.

Summary updated

BibTeX
@inproceedings{lee2015deeply,
  author = {Chen-Yu Lee and Saining Xie and Patrick W. Gallagher and Zhengyou Zhang and Zhuowen Tu},
  title = {{Deeply-Supervised Nets}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2015},
  url = {https://openreview.net/forum?id=V4YvvAirzRF},
}
Figure