Source-linked AI summary

ShakeDrop Regularization for Deep Residual Learning

Yoshihiro Yamada, Masakazu Iwamura, Takuya Akiba, Koichi Kise

arXiv:1802.02375v3cs.CV

TL;DR

Deep residual networks remain vulnerable to overfitting, and Shake-Shake is limited to ResNeXt while its effectiveness is not fully explained. This paper proposes ShakeDrop, combines perturbation with a stabilizing mechanism, and reports broad gains across residual architectures and tasks. Experiments identify conditions under which the method works successfully.

Abstract

from arXiv · show

Overfitting is a crucial problem in deep neural networks, even in the latest network architectures. In this paper, to relieve the overfitting effect of ResNet and its improvements (i.e., Wide ResNet, PyramidNet, and ResNeXt), we propose a new regularization method called ShakeDrop regularization. ShakeDrop is inspired by Shake-Shake, which is an effective regularization method, but can be applied to ResNeXt only. ShakeDrop is more effective than Shake-Shake and can be applied not only to ResNeXt but also ResNet, Wide ResNet, and PyramidNet. An important key is to achieve stability of training. Because effective regularization often causes unstable training, we introduce a training stabilizer, which is an unusual use of an existing regularizer. Through experiments under various conditions, we demonstrate the conditions under which ShakeDrop works well.

I. INTRODUCTION

Deep residual architectures still overfit despite advances and established regularizers. The paper motivates ShakeDrop by extending Shake-Shake-style perturbation beyond ResNeXt while addressing unstable training.

I. INTRODUCTION

  • Deep residual architectures can still have large generalization errors because improved base architectures do not by themselves prevent overfitting.Regularization introduces additional information to improve test errors.Source: §I · p. 1
  • Shake-Shake perturbs forward and backward calculations with different random variables and achieved the lowest error rate on CIFAR-10/100 with ResNeXt.Its limitations are that it applies only to ResNeXt and its effectiveness was not yet explained.Source: §I · p. 1
  • ShakeDrop is proposed as a more effective regularizer with potential applicability to ResNeXt, ResNet, Wide ResNet, and PyramidNet.The method targets both three-branch and two-branch residual architectures.Source: §I · pp. 1–2

II. REGULARIZATION METHODS FOR THE RESNET FAMILY

  • Shake-Shake uses independent random coefficients α and β for the forward and backward passes, respectively, with values drawn per image or batch.The paper suggests training six times as long as usual for Shake-Shake.Source: §II · p. 2
  • RandomDrop regularizes ResNet-family networks by stochastically dropping building blocks, making the network appear shallow during learning.Its layer-level dropping differs from dropout, which drops elements.Source: §II · p. 2
  • RandomDrop uses a Bernoulli variable bl to choose whether a residual branch is retained during training and uses its expected value during testing.The paper recommends a linear decay rule for the retention probability, with initial parameter pL = 0.5.Source: §II · p. 2

A. SHAKEDROP REGULARIZATION

ShakeDrop combines stochastic branch behavior with perturbations controlled by random coefficients. When the Bernoulli variable is active it matches the original network; otherwise it perturbs the residual branch.

A. SHAKEDROP REGULARIZATION

  • ShakeDrop is a proposed ResNet-family regularization method whose behavior is controlled by a Bernoulli variable bl and random coefficients α and β.The coefficients are independent uniform random variables in each element, while bl follows a layer-wise linear decay probability.Source: A. SHAKEDROP REGULARIZATION · p. 2
  • When bl = 1, ShakeDrop becomes equivalent to the original residual network in both forward and backward training passes.This branch behavior preserves the unperturbed residual computation for the active case.Source: A. SHAKEDROP REGULARIZATION · p. 2
  • When bl = 0, ShakeDrop perturbs the residual-branch calculation using α and β.The intermediate Single-branch Shake method illustrates this perturbation-based behavior.Source: A. SHAKEDROP REGULARIZATION · p. 2, Figure 1 · p. 3

B. DERIVATION OF SHAKEDROP

ShakeDrop extends Shake-Shake’s feature-space perturbation from multi-branch networks to two-branch architectures by perturbing a single residual branch. The resulting Single-branch Shake is effective in principle but can fail badly in practice.

3) Stabilization of training

Single-branch Shake fails because strong perturbations can destabilize learning without Shake-Shake’s two-branch fail-safe. ShakeDrop stabilizes this regime by probabilistically mixing the original and strongly perturbed networks.

IV. PRELIMINARY EXPERIMENTS

Preliminary experiments show that ShakeDrop’s best α and β settings depend on the base architecture. PyramidNet favors case O, while ResNet favors case G, and the EraseReLU variant benefits from both.

  • pL was fixed at 0.5, while α and β ranges and their update rules were experimentally searched on CIFAR-100.Source: §IV · p. 5
  • The experiments tested ShakeDrop on ResNet, ResNet with EraseReLU, and PyramidNet.Source: A. RANGES OF α AND β · p. 5
  • On all three architectures, RandomDrop case B outperformed the vanilla network case A.Source: A. RANGES OF α AND β · p. 5

PyramidNet

  • PyramidNet had the lowest error rates among the three architectures; only cases N and O exceeded case B, with case O best.Source: A. RANGES OF α AND β · p. 5

ResNet

ResNet (EraseReLU version)

  • Both cases O and G outperformed case B on ResNet with EraseReLU, with case G best; O favored EraseReLU architectures, whereas G favored non-EraseReLU architectures.Source: A. RANGES OF α AND β · p. 5

B. UPDATE RULE OF α AND β

ShakeDrop’s update rule explores how α and β should be sampled and paired across residual blocks. Pixel-level updates and architecture-dependent parameter ranges were effective, while fixed combinations showed that random sampling itself was not the primary source of improved error rates.

Update levels

  • ShakeDrop can sample α and β at batch, image, channel, or pixel level, while block dropping remains distinct from how the coefficients are chosen.Unlike Dropout and RandomDrop, a dropped block retains freedom in coefficient selection.Source: B. UPDATE RULE OF α AND β · p. 5
  • Pixel-level updates produced the best result for both ResNet and PyramidNet.The tested ranges were α = 0, β ∈[0, 1] for ResNet and α ∈[−1, 1], β ∈[0, 1] for PyramidNet.Source: B. UPDATE RULE OF α AND β · p. 5

Fixed combinations

  • The combinations (1, 1), (1, 0), (−1, 1), and (−1, 0) were formed from the endpoints of PyramidNet’s parameter ranges.When bl = 0, one pair was selected uniformly from the pool instead of drawing α and β from continuous ranges.Source: C. COMBINATIONS OF (α, β) FOR… · p. 5
  • pL strongly affected error rates because cases with a normal-state pair effectively altered the probability of selecting that state.For example, pL = 0.5 in case i was equivalent to pL = 0.75 in case l.Source: C. COMBINATIONS OF (α, β) FOR… · pp. 5–6

V. EXPERIMENTS

Experiments compare ShakeDrop with RandomDrop, Shake-Shake, and unregularized networks across several residual architectures on CIFAR datasets. The results support broad applicability and generally stronger performance, with a noted exception for shallow Wide ResNet with BN.

Experimental setup

  • ShakeDrop was evaluated against RandomDrop, Shake-Shake, and vanilla networks on ResNet, Wide ResNet, ResNeXt, and PyramidNet.The experiments used CIFAR datasets and covered both two-branch and three-branch architectures.Source: A. COMPARISON ON CIFAR DATASETS · pp. 6–7

Experimental conditions

  • PyramidNet + ShakeDrop parameter combinations were evaluated using final-epoch top-1 error on CIFAR-100 under the batch-level update rule.Table 4 marks the α and β combinations used in each case.Source: Table 4 · p. 7
  • The CIFAR experiments used α = 0, β ∈[0, 1] for original networks and α ∈[−1, 1], β ∈[0, 1] for modified networks whose residual branches end with BN.The latter group includes EraseReLU versions; ResNet and two-branch ResNeXt were examined in both original and EraseReLU forms.Source: A. COMPARISON ON CIFAR DATASETS · p. 7

Applicability

  • ShakeDrop applied to ResNet, Wide ResNet, and PyramidNet as well as three-branch ResNeXt architectures.This extends evaluation beyond the three-branch setting associated with Shake-Shake.Source: A. COMPARISON ON CIFAR DATASETS · p. 7

Results

  • ShakeDrop outperformed RandomDrop and Shake-Shake in most tested cases, while improving over the vanilla network in the reported Wide ResNet BN setting.For 28-layer Wide ResNet with BN, ShakeDrop did not outperform RandomDrop.Source: A. COMPARISON ON CIFAR DATASETS · p. 7

B. COMPARISON ON THE IMAGENET DATASET

On ImageNet, ShakeDrop improved performance across ResNet, ResNeXt, and PyramidNet, outperforming vanilla networks and, in the reported comparisons, RandomDrop. The experiments used 152-layer architectures and compared original with modified residual-block variants.

D. SIMULTANEOUS USE OF SHAKEDROP WITH MIXUP

The paper also tested ShakeDrop together with mixup and found that the combination usually further reduced the base networks’ error rates. This supports using ShakeDrop alongside, rather than instead of, mixup.

APPENDIX A EXPERIMENTAL CONDITIONS

The appendix describes shared implementation practices and dataset-specific training conditions for CIFAR, ImageNet, and COCO experiments. It also specifies the evaluation setup used for feature extraction on COCO.

  • All experiments used back-propagation with SGD, Nesterov accelerated gradients, momentum, and multi-GPU training.Four GPUs were used for CIFAR and eight GPUs for ImageNet, producing separate stochastic observations across GPUs.Source: Appendix A · p. 9
  • The implementations were based on publicly available code for the evaluated architectures and detection models, with learning conditions made as common as possible on CIFAR.The modified code was made available through the paper’s repository.Source: Appendix A · p. 9
  • CIFAR training used normalization, 50% horizontal flips, padding, and random crops, with dataset- and architecture-specific initial learning rates.Source: Appendix A · p. 9
  • ImageNet training used random aspect-ratio distortion, 224 × 224 random crops, 50% horizontal flips, color noise, scheduled learning-rate decay, and specified batch sizes.Source: Appendix A · pp. 9–10
  • COCO models used ResNet-152 backbones with FPN, and feature extraction used E(bl + α −blα) instead of ShakeDrop regularization.The COCO setup trained on the union of the 80k training set and 35k validation subset and evaluated on the remaining 5k validation images.Source: Appendix A · p. 10
Loading 1802.02375v3…