Regularization of Deep Neural Networks with Spectral Dropout

Salman H. Khan, Munawar Hayat, Fatih PorikliNeural Networks 2017 · DOI

TL;DR

This paper introduces "Spectral Dropout," a novel regularization technique for deep neural networks that operates in the frequency domain. By selectively removing "noisy" spectral coefficients of network activations, Spectral Dropout improves generalization, significantly speeds up training convergence (by ~2x), and allows for higher neuron pruning rates compared to traditional Dropout, all while being computationally efficient.

What Problem Does This Paper Address?

Deep neural networks, despite their power, are notoriously prone to overfitting, especially when trained on limited datasets. Overfitting occurs when a model learns the training data too well, including its noise and specific quirks, leading to poor performance on unseen data. This is often attributed to complex co-adaptations between neurons, where they become overly reliant on each other's specific outputs rather than learning robust, generalizable features. While techniques like Dropout and Drop-Connect have been successful in mitigating overfitting by introducing randomness during training, they can slow down convergence and have limitations in their application. This paper aims to provide a more efficient and effective regularization method that addresses these issues.

Methods

The core innovation is Spectral Dropout, which operates by transforming network activations into the frequency domain using a decorrelation transform, specifically the Discrete Cosine Transform (DCT-II). Here's how it works:

  1. Spectral Transformation: Network activations are transformed into the frequency domain. The paper explores different variants of this transformation, including 1D and 2D DCT applied to feature maps or hypercolumns.
  2. Spectral Masking: A "spectral dropout mask" is applied. This mask is designed to eliminate "weak and 'noisy'" Fourier domain coefficients. The masking process involves a threshold (τ) and a sparsity level (η), where coefficients below the threshold or contributing to a certain sparsity level are zeroed out. This is a more targeted approach than randomly dropping neurons or connections.
  3. Inverse Spectral Transformation: The modified spectral coefficients are transformed back to the spatial domain.
  4. Convolutional Formulation: Crucially, the spectral transformation and inverse transformation are formulated as convolution operations with fixed basis functions. This allows Spectral Dropout to be seamlessly integrated into existing CNN architectures as a regular layer, without requiring significant architectural changes or complex computational pipelines.

This approach differs from standard Dropout by operating in the frequency domain and selectively removing coefficients, rather than randomly deactivating entire neurons or connections.

Datasets

The paper evaluates Spectral Dropout on the following standard image classification datasets:

  • MNIST: A dataset of handwritten digits (0-9).
  • CIFAR-10: A dataset of 60,000 color images in 10 classes.
  • SVHN (Street View House Numbers): A dataset of house numbers with digit images.

The authors note that they did not use data augmentation to ensure a fair comparison with other regularization methods.

Key Insights and Ideas

  • Frequency Domain Regularization: Operating in the frequency domain offers a new perspective on regularization, allowing for the identification and removal of "noisy" or less informative spectral components that contribute to overfitting.
  • Targeted Pruning: Unlike random dropout, Spectral Dropout targets specific spectral coefficients, potentially preserving more essential information while still achieving significant pruning.
  • Computational Efficiency: Formulating the spectral transform as a convolution operation is a key enabler, making the method efficient and easy to integrate into existing CNN frameworks. This avoids the computational overhead of repeatedly switching between spatial and spectral domains.
  • Improved Convergence: The paper demonstrates that Spectral Dropout not only improves accuracy but also significantly speeds up training convergence, a notable advantage over standard Dropout.
  • Test-time Uncertainty: The authors explore using Spectral Dropout at test time to estimate prediction uncertainty, showing that correct predictions are more confident than incorrect ones.

Key Results

  • Performance Improvement: Spectral Dropout consistently achieved lower error rates across LeNet, NiN, and ResNet architectures on MNIST, CIFAR-10, and SVHN datasets, often setting new state-of-the-art results for single-model performance without data augmentation.
  • On MNIST, error rates were reduced to as low as 0.38% (LeNet), 0.40% (NiN), and 0.38% (ResNet).
  • On CIFAR-10, error rates were 16.3% (LeNet), 9.14% (NiN), and 5.76% (ResNet).
  • On SVHN, error rates were 4.05% (LeNet), 2.67% (NiN), and 2.12% (ResNet).
  • Faster Convergence: The training convergence rate was approximately doubled compared to standard Dropout.
  • Higher Pruning Rates: Spectral Dropout achieved considerably higher neuron pruning rates (around 30% increase) while still improving performance.
  • Flexibility: The method can be used in conjunction with other regularization techniques for further gains.
  • Positional Importance: The best performance was observed when Spectral Dropout was applied at intermediate levels of abstraction within the network, particularly in the "bottleneck" blocks of ResNet.

Limitations and Future Work

  • Hyperparameter Tuning: While the paper mentions tuning τ and η on a validation set, it notes that for CIFAR-10, hyperparameter tuning for local receptive field size and weight decay was not performed, potentially limiting performance for NiN.
  • Computational Overhead: Although efficient, Spectral Dropout does introduce some computational overhead due to the two additional convolutional layers. The paper quantifies this overhead (e.g., 127.9µs per image for training on a specific hardware setup).
  • Future Work: The authors suggest exploring the use of Spectral Dropout for uncertainty estimation, which they briefly demonstrate. Further investigation into optimal placement and combinations with other regularization techniques could also be fruitful. The paper also hints at potential applications in reducing storage requirements for feature representations.

Summary updated

BibTeX
@article{khan2017regularization,
  author = {Salman H. Khan and Munawar Hayat and Fatih Porikli},
  title = {{Regularization of Deep Neural Networks with Spectral Dropout}},
  journal = {Neural Networks},
  year = {2017},
  doi = {10.1016/j.neunet.2018.09.009},
}
Figure