Paper commentary
Improved Regularization of Convolutional Neural Networks with Cutout
Randomly masking image squares regularizes convolutional networks and improves accuracy
- Problem Large convolutional networks have enough capacity to overfit, and common regularizers like dropout and data augmentation do not cover every kind of robustness needed. Dropout is less effective in convolutional layers because neighbouring pixels carry overlapping information.
- Method Cutout zeroes a random square patch of each training image.
- Results With shake-shake regularization plus cutout, the authors reach 2.56% test error on CIFAR-10 and 15.20% on CIFAR-100. On SVHN, WRN-16-8 reaches 1.30% test error.
Overfitting in large convolutional networks
Convolutional networks learn hierarchical feature representations of images, and modern models carry tens to hundreds of millions of learned parameters to provide the capacity those tasks demand. That capacity also raises the chance of overfitting and poor generalization, so training needs some form of regularization. Common options include data augmentation and injecting noise into inputs, weights or gradients, and dropout is one of the most widely used noise-based methods because it randomly silences neuron activations during training.
Where cutout sits relative to dropout and augmentation
Cutout is closest in spirit to dropout, but it changes two things: the noise is applied only at the input layer, and it removes contiguous regions instead of single pixels. Standard dropout sets hidden activations to zero with a fixed probability during training and scales outputs at evaluation according to that probability. In convolutional layers this is less effective, partly because neighbouring pixels carry overlapping information, so a dropped pixel is often recovered from its neighbours.
Because the removed region is carried through every later feature map, the final representation holds no direct trace of the masked content, and the network has to rely on the surrounding context to compensate. Other dropout variants act on each feature map separately, so a feature removed in one map can survive in another, which produces a noisier internal representation.
The authors regard cutout as nearer to data augmentation than to dropout, since it produces occluded versions of existing samples rather than adding noise to activations.
Occlusion-style augmentation has precedent: the occlusions in one earlier handwritten-character study take the form of scratches and dots over the character, whereas cutout completely blocks an entire region with zeros. Denoising auto-encoders erase individual pixels, and context encoders erase larger regions to learn more global features, but to the authors' knowledge no earlier work had applied contiguous-region removal directly to training supervised models.
How the cutout mask is applied
During each training epoch, a square patch of a fixed side length is placed at a randomly chosen centre pixel of each input image, and every pixel inside the patch is set to zero. The side length is the parameter that matters most, while the shape is secondary, so the experiments all use square patches. The centre is drawn from inside the image, but the patch is not clipped at the border, so part of it can fall outside the image.
No rescaling of weights is applied at test time, which differs from dropout and its variants. The dataset is normalized about zero so that masked images do not shift the expected batch statistics much.
The masking step is cheap and runs on the CPU in the data loader alongside the other augmentation steps, so it overlaps with GPU training.
Targeted variant and the choice of random placement
The first version was targeted: the maximally activated feature map of each image was stored at every epoch, upsampled to input resolution during the next epoch, thresholded at its mean, and the resulting binary mask was overlaid on the image. This resembled max-drop, which drops the strongest activation across feature maps or channels, and the aim was to push the network toward less prominent features.
Randomly removing fixed-size regions performed as well as this targeted approach in the authors' experiments, and it does not require any manipulation of feature maps, so the authors used it for all later experiments. The targeted masks often covered part-level features such as heads, legs or wheels.
CIFAR-10 and CIFAR-100 results
ResNet18 and the wide residual network were trained for 200 epochs with batches of 128 images, SGD with Nesterov momentum of 0.9 and weight decay of 5e-4, starting at a learning rate of 0.1 that is cut by a factor of 5 after the 60th, 120th and 160th epochs. The wide residual network is referred to as WRN-28-10 in the text and as WideResNet in the table.
Without standard augmentation, adding cutout to ResNet18 lowers CIFAR-10 test error from 10.63±0.26 to 9.31±0.18 percent, and adding it to WideResNet lowers CIFAR-100 test error from 26.06±0.22 to 23.94±0.15 percent, averaged over five runs.
The shake-shake models were trained with their original code and settings, with cutout as the only change. With standard augmentation, cutout lowers the CIFAR-10 test error of shake-shake regularization from the 2.86 baseline reported in prior work to 2.56±0.07 percent, and the CIFAR-100 error from 15.85 to 15.20±0.21 percent. These shake-shake cutout results are averages over three runs, and the baselines are taken from the original shake-shake paper rather than rerun here.
SVHN and STL-10 results
SVHN contains 630,420 colour images, with 73,257 official training images, 26,032 test images and 531,131 extra training images. Both training sets are used together, with no data augmentation, and the data is normalized per channel. WRN-16-8, which has dropout at a rate of 0.4 in its convolutional layers, is trained for 160 epochs with an initial learning rate of 0.01 cut by a factor of 10 after the 80th and 120th epochs.
With a 20×20 patch, WRN-16-8 reaches a test error of 1.30±0.03 against 1.60±0.05 without cutout, which the authors summarise as an average reduction of 0.3 percentage points.
STL-10 images are 96×96 pixels, with 5,000 labeled training images and 8,000 test images, and the 100,000 unlabeled images are discarded. The model is a WideResNet with depth 16, widening factor 8 and dropout rate 0.3, trained for 1000 epochs. Cutout lowers test error from 23.48±0.68 to 20.77±0.38 without data augmentation, using a 24×24 patch, and from 14.21±0.29 to 12.74±0.23 with augmentation, using a 32×32 patch.
How the patch size is chosen
The authors held out 10% of the training set as a validation split, trained on the rest, and ran a grid search over the side length of the square patch. Validation accuracy rises as the patch grows to an optimum and then falls below the baseline, as shown for WRN-28-10 with standard augmentation on CIFAR-10 and CIFAR-100.
The authors link the smaller optimum for CIFAR-100 to its fine-grained classes, where the surrounding context is less useful for telling categories apart.
Patches allowed to extend beyond the image border were critical to good performance in the authors' experiments, which they explain by the need for training examples in which much of the image stays visible.
Effect on feature activations
ResNet18 was trained on CIFAR-10 with data augmentation, with and without cutout, under the settings of the CIFAR experiments, reaching 3.89 percent and 4.94 percent test error respectively. Activations within each layer are sorted by magnitude and averaged over test samples, and the comparison is drawn at three residual block depths.
In the shallower layers, activation strength rises in general with cutout, while in the deeper layers more activations sit in the tail of the distribution. The authors read the tail pattern as evidence that cutout makes the network draw on a wider set of features instead of a few strong ones. Figure 5 reports similar patterns for individual samples, where the differences are stronger.
Limitations
Experiments cover CIFAR-10, CIFAR-100, SVHN and STL-10 with the architectures named above, and the paper reports no other datasets or tasks. STL-10 results use only the labeled training set, so they describe that low-data setting and not the full dataset with its unlabeled images. The shake-shake baselines are taken from prior work, and the shake-shake cutout numbers come from three runs, while the other table entries are averages over five.
Each dataset uses a patch size chosen by validation search, so the reported test errors rest on those selected sizes. The authors note that keeping clean images alongside corrupted ones appears important for the method's success, and they leave the reason open and defer the feature-removal investigation to future work.
Paper info
- Authors
- Terrance DeVries, Graham W. Taylor
- Venue
- arXiv · Preprint
- First published
- 2017-8-15
- Added
- 2026-11-12
- Updated
- 2017-11-29
- Version
- v2
- arXiv
- 1708.04552
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Terrance DeVries, Graham W. Taylor (2017). Improved Regularization of Convolutional Neural Networks with Cutout. arXiv:1708.04552v2. https://arxiv.org/abs/1708.04552v2
BibTeX
@misc{devries2017improved,
title = {{Improved Regularization of Convolutional Neural Networks with Cutout}},
author = {Terrance DeVries and Graham W. Taylor},
year = {2017},
eprint = {1708.04552},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1708.04552v2}
}