Regularizing CNNs with Locally Constrained Decorrelations

Pau Rodríguez, Jordi Gonzàlez, Guillem Cucurull, Josep M. Gonfaus, Xavier Roca

In the world of deep learning, regularization is the "secret sauce" that prevents models from simply memorizing training data. While techniques like Dropout and Weight Decay are industry standards, they often work by effectively reducing the model's capacity. But what if we could keep the capacity and just make the features more diverse?

In their paper, "Regularizing CNNs with Locally Constrained Decorrelations," Pau Rodríguez and colleagues introduce OrthoReg, a novel regularization technique that pushes neural network filters to be different from one another without stifling the "inhibitory" connections that help networks learn complex patterns.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notorious for having redundant parameters. Often, multiple filters in a convolutional layer end up learning nearly identical patterns, which is a waste of model capacity and a primary driver of overfitting.

Existing solutions generally fall into two camps:

  1. Capacity-reducing: Weight decay and Dropout prevent co-adaptation but don't necessarily encourage feature diversity.
  2. Decorrelation-based: Methods like DeCov try to make activations or weights "orthogonal" (uncorrelated).

However, previous decorrelation methods often struggled because they tried to penalize all correlations—both positive and negative. The authors argue that negative correlations are actually useful (acting like inhibitory neurons in biological brains). Furthermore, regularizing activations is computationally expensive because it depends on the input data and batch size.

Methods: From Global to Local Decorrelation

The authors propose OrthoReg, which focuses on the weights rather than the activations.

  1. Cosine Similarity: They use cosine similarity to measure the relationship between any two feature detectors.
  2. From Global to Local: Instead of a "Global" loss that squares the cosine similarity (penalizing both positive and negative correlations), they introduce a "Local" loss using an exponential squashing function.
Global Loss Plot
  1. The "Squash": This function ensures that the regularizer only exerts a "push" when two filters are very similar (angle near 0°). Once the angle between filters reaches 90° (orthogonality), the gradient drops to near zero. It completely ignores filters that are negatively correlated (angles > 90°).
Local Loss Function
  1. Efficiency: Because OrthoReg is performed directly on the weights, the computational overhead is constant and does not scale with the size of the feature maps or the batch size.

Key Insights and Results

  • Negative Correlations are Features, Not Bugs: The most significant insight is that forcing negatively correlated features to become orthogonal actually hurts performance. Negative correlations allow for "competitive learning" and inhibitory signals that are vital for robust representation.
  • Weight Space > Activation Space: Regularizing weights is much faster than regularizing activations. For a ResNet-110, OrthoReg requires roughly $3.4 \times 10^8$ FLOPs, while DeCov (an activation-based method) requires $3.4 \times 10^{14}$—a difference of six orders of magnitude.
  • Compatibility: OrthoReg isn't a replacement for Batch Normalization or Dropout; it’s a teammate. Adding OrthoReg to a model already using these techniques still yields accuracy gains, suggesting it addresses a different type of redundancy.

The quantitative results were impressive:

  • SVHN: OrthoReg on a Wide ResNet achieved an error rate of 1.54%, which was the lowest reported value on the dataset at the time of publication.
  • CIFAR-10/100: OrthoReg consistently outperformed "Base" models and models using "Global" decorrelation. On CIFAR-10, it reduced the error of a Wide ResNet from 3.89% to 3.69%.

Limitations and Future Work

The authors note a few areas for further exploration:

  • Activation Functions: The study focused heavily on ReLU networks. Since ReLU is an asymmetrical activation, the choice of non-linearity might change how these correlations impact the network.
  • Fully Connected Layers: While OrthoReg works great for CNNs, in layers where the input dimensionality is smaller than the output, it is mathematically impossible for all vectors to be orthogonal. In these cases, local regularization is even more critical to prevent "interference" between weights.
  • Hyperparameter Sensitivity: While $\lambda=10$ worked well across most tasks, the optimal "locality" of the constraint might vary for different types of data.

Summary updated

BibTeX
@inproceedings{rodriguez2017regularizing,
  author = {Pau Rodríguez and Jordi Gonzàlez and Guillem Cucurull and Josep M. Gonfaus and Xavier Roca},
  title = {{Regularizing CNNs with Locally Constrained Decorrelations}},
  booktitle = {International Conference on Learning Representations},
  year = {2017},
  url = {https://openreview.net/forum?id=ByOvsIqeg},
}
Figure