WLD-Reg: A Data-Dependent Within-Layer Diversity Regularizer

Firas Laakom, Jenni Raitoharju, Alexandros Iosifidis, Moncef Gabbouj

Abstract

Deep neural networks are often over-parameterized, leading to overfitting where models memorize training data rather than learning generalizable features. While traditional regularization focuses on weight diversity, this paper introduces WLD-Reg, a data-dependent regularizer that encourages diversity in neuron activations. By penalizing redundancy within layers and ensuring scale invariance, WLD-Reg improves generalization and robustness across various architectures, including CNNs and MLP-based models.

Introduction

The success of deep learning is often attributed to massive over-parameterization. However, this comes with the risk of overfitting. Standard techniques like Dropout or Weight Decay target model parameters, but diverse weights do not necessarily translate to diverse feature extraction due to non-linearities like ReLU. WLD-Reg addresses this by focusing on the diversity of neuron outputs (activations) for a given data batch.

Methodology

WLD-Reg (Within-Layer Diversity Regularizer) measures and penalizes similarity between neurons based on their activations. The framework employs a Radial Basis Function (RBF) kernel for robust similarity measurement and offers three variants:

  • Direct: Sums pairwise similarities.
  • Det: Uses the determinant of the similarity matrix to capture global, higher-order diversity.
  • Logdet: Uses the negative log-determinant for improved optimization stability.

To prevent the network from trivially reducing diversity loss by scaling down activations, WLD-Reg incorporates an L2-norm penalty on activation magnitudes, ensuring scale-invariant regularization.

Experimental Results

The authors evaluated WLD-Reg on benchmarks including CIFAR-10, CIFAR-100, and ImageNet-2012. Key findings include:

  • Generalization Improvement: On ImageNet with ResNet50, the generalization gap (difference between training and test error) was reduced from 2.87% to 1.15%.
  • Accuracy Gains: ResNet50 on CIFAR-100 saw a 1.4% improvement with the Logdet variant compared to the baseline.
  • Robustness to Noise: Under 40% label noise, WLD-Reg outperformed standard training by over 2%, indicating better resistance to memorizing noisy labels.
Sensitivity analysis of WLD-Reg variants (Direct, Det, Logdet) across hyperparameters λ1 and λ2. All variants consistently achieve lower test error than the standard baseline (dashed line).

As illustrated in the sensitivity analysis, WLD-Reg is robust to hyperparameter choices. All three variants (Direct, Det, and Logdet) consistently achieve lower test errors than the standard baseline across a wide range of values for λ1 and λ2.

Conclusion

WLD-Reg provides a simple yet effective "plug-and-play" regularizer that enhances model performance by ensuring neurons learn non-redundant features. While currently focused on the final feature layers, its broad applicability to CNNs and modern MLP architectures makes it a promising tool for improving deep learning generalization. Future work may explore efficient approximations for the determinant-based variants in extremely wide layers.

Summary updated

BibTeX
@inproceedings{laakom2023wld,
  author = {Firas Laakom and Jenni Raitoharju and Alexandros Iosifidis and Moncef Gabbouj},
  title = {{WLD-Reg: A Data-Dependent Within-Layer Diversity Regularizer}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i7.26015},
}
Figure