NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ShakeDrop regularization

Yoshihiro Yamada, Masakazu Iwamura, Koichi Kise

Deep Convolutional Neural Networks (CNNs) like ResNet and PyramidNet have revolutionized computer vision, but they often struggle with vanishing gradients and overfitting as their depth increases. To combat this, researchers rely heavily on regularization techniques.

One highly effective method is Shake-Shake, which "shakes" the network by randomly weighting the outputs of multiple residual branches. However, Shake-Shake has two major flaws: it is constrained to multi-branch architectures (like ResNeXt), and maintaining these multiple branches significantly increases memory usage.

ShakeDrop is a powerful regularization technique designed to bring the benefits of "Shake-Shake" to standard, memory-efficient, single-branch architectures. By applying random scaling factors—including negative ones—to residual branches during training, it strongly disturbs the learning process to force better generalization, achieving state-of-the-art results on benchmark datasets.

Methods: The ShakeDrop Mechanism

ShakeDrop introduces a stochastic perturbation to the standard residual block equation $G(x) = x + F(x)$. It combines the stabilizing logic of Stochastic Depth (ResDrop) with a novel "shaking" mechanism.

The core of the method relies on a probabilistic switch and decoupled scaling:

  • The Switch: For each residual block, a Bernoulli random variable ($b_l$) decides whether to apply the perturbation. This ensures that not every layer is "shaken" simultaneously, preventing the training process from diverging.
  • The Perturbation: When the switch is active, the residual branch $F(x)$ is multiplied by a random coefficient $\alpha$ in the forward pass and a different random coefficient $\beta$ in the backward pass.
  • The "Shake": Unlike previous methods, $\alpha$ is drawn from a range that includes negative numbers (typically $[-1, 1]$). This means the residual signal can actually be flipped, creating a massive disturbance that the network must learn to overcome.

Key Insights and Ideas

  • The Power of Negativity: The most surprising finding was that using a negative range for the forward factor ($\alpha \in [-1, 1]$) performed better than a strictly positive range ($\alpha \in [0, 1]$). Flipping the output of a convolutional layer during training seems to provide a "stronger" disturbance that leads to more robust feature learning.
  • Stabilization is Key: Simply applying a "1-branch Shake" to every layer caused training to fail spectacularly (reaching nearly 78% error on CIFAR-100). The "aha moment" was using the Stochastic Depth mechanism as a probabilistic switch to apply the disturbance selectively, which stabilized the learning process.
  • Decoupled Passes: By using different coefficients for the forward ($\alpha$) and backward ($\beta$) passes, the method ensures that the gradient used for updates is not a simple reflection of the forward transformation, further preventing the network from "memorizing" the noise.

Key Results

The authors evaluated ShakeDrop primarily on the CIFAR-10 and CIFAR-100 datasets, using a 272-layer PyramidNet as their primary base architecture. ShakeDrop consistently outperformed existing state-of-the-art regularization methods.

Comparison of ShakeDrop against state-of-the-art methods on CIFAR-10 and CIFAR-100.
  • CIFAR-10: Achieved an error rate of 2.31%, outperforming the previous best (Shake-Shake + Cutout at 2.56%).
  • CIFAR-100: Achieved an error rate of 12.19%, a significant improvement over standard PyramidNet (16.35%) and PyramidDrop (15.48%).
  • Efficiency: Because it works on single-branch networks, ShakeDrop achieves these results with much lower memory overhead than Shake-Shake.

Limitations and Future Work

While highly effective, ShakeDrop has a few limitations that invite future research:

  • Hyperparameter Sensitivity: While the paper identifies $[-1, 1]$ as a strong range for $\alpha$, the optimal distribution of these random variables across different architectures might require further tuning.
  • Architecture Scope: The paper claims applicability to ResNet and ResNeXt, but the primary deep-dive results are focused heavily on PyramidNet.
  • Theoretical Grounding: The paper is largely empirical. While it proves the method works, a deeper theoretical explanation of why negative scaling factors specifically help generalization (beyond acting as a "strong disturbance") remains an open area for exploration.

Summary updated

BibTeX
@inproceedings{yamada2019shakedrop,
  author = {Yoshihiro Yamada and Masakazu Iwamura and Koichi Kise},
  title = {{ShakeDrop regularization}},
  booktitle = {IEEE Access},
  year = {2019},
  url = {https://openreview.net/forum?id=f3ZSEWifkB},
}
Figure