Improved Regularization of Convolutional Neural Networks with Cutout
Paper · 2017 · Terrance DeVries and Graham W. Taylor
Summary
An image classifier can learn to recognize a category from a small region that happens to be especially revealing. That strategy works until the region is hidden or the same category appears with different visual cues. Terrance DeVries and Graham W. Taylor investigate whether deliberately hiding parts of training images can help convolutional neural networks generalize. Their method, Cutout, places a square mask at a randomly selected location in each training image and sets the covered pixel values to zero. The image keeps its original class label. The mask can cross an image boundary, so the amount of visible content varies even when the square’s side length stays fixed.
Cutout grew out of an experiment that used the network’s own activations to decide what to hide. The authors saved an especially active feature map for each training image, turned it into a mask, and applied it when the image was next used. Random squares performed comparably in their trials and dispensed with the need to save or process feature maps. The resulting method belongs in the training data pipeline, where it can be combined with operations such as cropping and mirroring. At test time, the classifier receives the ordinary normalized image.
The strongest configurations reported in the paper reach 2.56% test error on CIFAR-10, 15.20% on CIFAR-100, and 1.30% on SVHN. The authors present those figures as advances over the strongest results they compare against. Their comparisons also show gains when Cutout is added to networks that already use dropout or other regularization, and when it is used alongside conventional image augmentation. On STL-10, where the experiments use only the labeled training images, Cutout improves the wide residual network both with and without cropping and mirroring.
The size of the square matters. CIFAR validation accuracy initially improves as the mask grows, then falls as the mask removes too much information. The authors also find that allowing masks to cross the border helps, and that intermittently leaving images intact gives similar performance to border-crossing masks. An analysis of internal activations suggests that Cutout changes how broadly the classifier draws on image features. The direct evidence is a reduction in test classification error under the benchmark protocols. The activation measurements offer a possible explanation, while real-world occlusion remains a motivation for the method.
Deep dive: Improved Regularization of Convolutional Neural Networks with Cutout
Cutout trains image classifiers with random square regions erased, reducing test error on CIFAR, SVHN, and STL-10 in the paper’s experiments. · about 34 minutes to read
The problem and its context
When a useful feature becomes a dependency
A convolutional neural network learns successive representations of an image. Early and late layers can respond to different kinds of evidence, and later computations can combine responses from across the image to produce a class prediction. The paper puts this ability in the context of progress in object recognition, semantic segmentation, image captioning, and human pose estimation. Those tasks motivate networks that can represent complicated visual patterns. They also bring costs in memory, learned parameters, computation, and power. ImageNet Classification with Deep Convolutional Neural Networks · Fully Convolutional Networks for Semantic Segmentation · Show and Tell
The problem here is overfitting. A classifier can learn relationships that work well on its training images and carry over poorly to other images. Regularization changes the conditions under which the classifier learns so that success during training places more pressure on behavior that can transfer. The paper discusses several places to introduce such a change. Training examples can be transformed, internal responses can be perturbed, and noise can be introduced into quantities such as weights or gradients. Where the intervention occurs helps determine what the network has to learn to cope with.
Occlusion gives this broad concern a concrete form. A face, a wheel, or another recognizable part may provide a strong cue whenever it is visible. An object can still belong to the same category when that cue is covered. For the authors, useful context includes the other parts of the object and the surrounding image that remain available to the classifier. A training procedure can encourage it to use those sources by occasionally withholding a conspicuous region while keeping the classification task the same.
This motivation has consequences for the form of the corruption. Hiding a few scattered pixels can leave the outline and texture of a recognizable part visible through its neighbors. Hiding a coherent area can remove the direct image evidence for the part as a whole. A square mask is a practical way to produce that kind of omission. Its location changes across training presentations, giving the classifier experience with different parts missing. The aim is to make several sources of evidence useful during learning, even if a particular image still contains a cue that would normally dominate.
How image augmentation already varied the training input
Data augmentation uses modified versions of existing examples during training. In image classification, the label can often stay the same even when the pixels move or their values change. The paper describes earlier work on handwritten character recognition that moved, scaled, squeezed, or sheared images. It also discusses a broader set of interventions on handwriting, including local distortions, several kinds of blur and noise, pixel permutations, and artificial marks. The authors cite that work for its observation that deeper architectures benefited more than shallow ones from augmentation in its experiments.
For larger natural-image tasks, the paper describes AlexNet training with image crops, mirror images, and changes to color and intensity based on principal component analysis of the dataset. Its account of Deep Image includes transformations that change geometry, lighting, and the appearance of a camera lens. These examples span different assumptions about what can vary while the object in a picture retains its category. Mirroring changes orientation, cropping changes the framing, and a color adjustment changes appearance while retaining spatial structure. ImageNet Classification with Deep Convolutional Neural Networks
The paper also describes Smart Augmentation, where a learned procedure combines existing examples to produce training data. That earlier approach makes the construction of useful examples part of learning. Cutout takes a simpler route by making the choice of a region random. Its closest antecedent in the paper’s account of image augmentation is the artificial occlusion used in handwritten character experiments. Those occlusions could look like added marks across a character. A Cutout mask overwrites every image value in its footprint, giving the classifier a continuous region of missing detail inside the original frame.
Cropping and Cutout can both remove visual information. The geometry of what remains is different. A crop keeps a selected window and changes the portion of the scene presented as the image. Cutout retains the training image’s dimensions, with the surrounding material still in place around the missing region. This makes their combination a meaningful experiment. The classifier can be trained to handle changes in framing and, within a particular framing, missing contiguous evidence.
What changes when dropout becomes spatial
The paper’s other main point of comparison is dropout. In the account given by the authors, dropout sets randomly selected hidden activations to zero during training. An activation is a unit’s numerical response to its input. Because the units available to later computations vary during training, a detector has less opportunity to depend on a particular set of other detectors always being present. During evaluation, all units are active, and the dropout probability determines how the output is scaled. The paper connects the procedure to an approximate averaging over many smaller subnetworks. Improving Neural Networks by Preventing Co-adaptation of Feature Detectors · Dropout
The authors give reasons for expecting ordinary dropout to behave differently in a convolutional layer. They describe these layers as having fewer parameters than fully connected layers and therefore less need for that form of regularization. They also emphasize how much information nearby image positions can share. A neighboring response may still carry evidence about the same visual feature when one response is set to zero. In their account, independent dropping within convolutional representations can therefore resemble training against local noise more closely than the averaging interpretation associated with fully connected layers.
Earlier dropout variants had already tried to change which responses disappear together. SpatialDropout discards entire feature maps. A feature map contains responses of a feature detector across spatial locations, so discarding it removes that detector’s responses together. Probabilistic weighted pooling considers dropping activations within a pooling region and uses weighted combinations in the computation described by the paper. Max-drop uses the strength of a response to determine what may be dropped. The authors also report that the comparison with conventional dropout in batch-normalized networks was unfavorable to SpatialDropout and max-drop in the earlier work they discuss.
Cutout uses a different grouping. It removes all the values in a local region of the image before feature maps are formed. The first layer and every subsequent layer therefore receive evidence derived from the same incomplete input. A detector can still respond to a visible part of the feature, and later layers can infer something about what is hidden from the surrounding context. The original pixel values in the removed region, however, are unavailable to every detector on that training presentation.
An erased region can support different learning tasks
Denoising autoencoders and context encoders offer another precedent for using incomplete images. In the paper’s description, denoising autoencoders can erase individual input pixels and learn to reconstruct the image. Context encoders remove a larger region and learn to fill it in. The scale of the missing information matters to the reconstruction problem. Nearby pixels can sometimes explain a local corruption, while a larger hole can require an understanding of the broader contents of the image. The authors connect the representations learned by context encoders to their use in pretraining for classification, detection, and segmentation.
Cutout shares the use of a contiguous corruption with context encoders. Its learning signal comes from the original category label. The classifier succeeds by predicting the label from the evidence that remains, regardless of whether it could reconstruct the missing pixels. An image with a hidden region can have many plausible completions, and the training objective need never choose among them. This is the application the authors distinguish in their account of prior work. They ask whether contiguous corruption can serve directly as regularization during supervised training, where each example has a known target class.
The method, step by step
From a network-selected region to a random square
The authors first tried to hide visual evidence that the classifier was already using strongly. Their initial procedure recorded the most active feature map for each training image in each epoch, a pass through the training data. In the following epoch, they enlarged that stored map to the resolution of the original image, then used the map’s mean value as a threshold to turn it into a binary mask. Placing the mask over the input let a response from the preceding pass guide which image content would be hidden on the next pass.
The examples from that procedure show masks over recognizable object parts such as wheels, heads, and legs. This is the appeal of choosing a region through activations. A response that looks important to the network can direct the corruption towards a meaningful feature without anyone drawing a part annotation. There is also a dependency between passes through the data. The procedure needs a saved feature map associated with each image, a way to align it with the original pixels, and a rule for deciding which responses become part of the mask.
The experimental method keeps the idea of hiding a region and chooses that region through a random coordinate. The change removes the dependency on a classifier’s internal state. It also changes the kind of mask that is possible. An activation-derived mask can follow an irregular part of an object, while the random version always begins with a square. The authors report that the simpler procedure performed comparably in their trials and use it throughout the reported benchmark experiments.
How a training image is changed
The classifier starts with a labeled image. The image undergoes the preprocessing appropriate to the experiment, including normalization about zero. Where conventional augmentation is enabled, the pipeline also generates crops and horizontal reflections. Cutout samples a pixel position in the image and treats it as the center of a square whose side length is set for that experiment. The image values under the square are overwritten with zero. The unchanged target label then supplies the supervision for the training update.
The center can be close enough to an edge that the square would extend past the frame. Only the part intersecting the image is erased. A square centered well inside the image can have its full footprint there. The same square placed close to a corner may cover a smaller visible area. The nominal side length specifies the size of the square before the intersection, so images trained with the same side length need not lose the same area.
A random placement is sampled during each epoch. Consequently, an image can contribute evidence about different visible parts on different passes. Suppose a training image contains a car and the square covers a wheel. In that update, the classifier must use the rest of the image to predict the car label. Another placement might leave the wheel visible and hide another part. Random placement can also land mostly on the background. The procedure has no requirement that each mask cover an object or a part that the classifier finds important.
Cutout in supervised image training
The steps in order.
What the mask and normalization mean
The paper describes its masking rule in prose. Written as a pixel operation, the rule multiplies every normalized channel value by a mask shared by the channels at that location.
X̃(x, y, c) = X(x, y, c) × M(x, y)
Here X is the normalized training image and X̃ is the image after Cutout. The coordinate x gives the horizontal pixel position, y gives the vertical position, and c selects a color channel. M is the spatial mask, × denotes multiplication, and = gives the resulting value. Inside the intersection of the square and the image, the mask value is 0, so every channel is set to zero. Elsewhere it is 1, so each normalized value is preserved. Using the same mask across channels makes the erased region consistent across the color representation.
The experiments normalize the image values using each channel’s mean and standard deviation. The calculation described in the paper can be written as follows.
X(x, y, c) = (I(x, y, c) − μ(c)) ÷ σ(c)
I is the image before this normalization, X is the result, and x, y, and c again specify the pixel location and channel. μ(c) is the mean for channel c and σ(c) is its standard deviation. The subtraction − centers the channel, the parentheses group that centered value, and division ÷ scales it by the channel’s standard deviation. The equality sign associates the result with the corresponding value in X.
These two operations explain why the authors care about the input scale. A value of zero in a centered channel corresponds to the channel mean before centering. The erased region consists of a uniform fill at the center of the normalized values. The authors say that centering helps keep the masked images from shifting the expected statistics of training batches substantially. The square can still be visually conspicuous because it contains no local variation and has an abrupt boundary. Centering concerns the values used for the fill and their effect on the input distribution.
The mask is applied at the input, so it reaches later layers through ordinary convolutional computations on the transformed image. There is no separate Cutout operation on the resulting feature maps. The output remains a class prediction and the training procedure can continue to use existing architecture and optimization settings. Any dropout configured within the network is a distinct source of variation. It can operate during the same training run because the two operations affect different parts of the computation.
Why some images retain more evidence
The authors found the border rule important. Restricting the entire square to the image would make its footprint constant for a given side length. Permitting an overhang gives training images a range of erased areas. A full-size square can create a challenging example, while a clipped square can leave much of the original evidence visible. The authors’ explanation is that the training procedure benefits from encountering examples where a large part of the image remains available.
They describe another way to achieve similar performance. The square can be kept completely inside the image and the transformation applied with 50% probability. In that alternative, some examples retain all their content and the transformed examples receive a full square. Border clipping supplies partially erased regions of varying size, whereas intermittent application also supplies intact images. The comparison supports the practical importance of keeping some training presentations relatively informative. It leaves room for more than one implementation of that principle.
Mask size determines the scope of the intended intervention. A small mask can hide detail and leave the predominant cue easy to recover from surrounding pixels. A sufficiently large mask can remove the cue and enough accompanying context that the image gives weak support for the assigned label. The authors treat the size as a hyper-parameter, a setting decided outside the updates that learn the classifier’s weights. They report that size mattered more in their experience than the shape of the removed region, and use squares throughout the benchmark experiments.
For each dataset, the authors conduct a grid search, meaning they train and evaluate candidate settings from a set of side lengths. They reserve 10% of the training data for validation and fit the classifiers used in the search on the remainder. The validation data allow the authors to compare sizes separately from the reported test results. The chosen lengths are then used for the full training runs. The procedure makes the mask simple to apply during training while recognizing that a useful size can depend on the input resolution, the classification task, and the other transformations in the pipeline.
Where Cutout runs
The authors place Cutout in data loading, where a CPU can prepare input while the GPU trains on a batch already available to it. In that arrangement, the time for writing the mask can overlap the main computation. The paper describes the transformation as inexpensive in this setting. That claim rests on the ability to prepare the images in parallel, and the method requires only a location and a simple overwrite once the side length has been chosen.
Inference uses the ordinary preprocessed image, with the Cutout mask inactive. The method introduces no evaluation-time weight rescaling of its own. This follows from its role as a training-image transformation. The classifier learns its parameters while seeing the augmented examples and subsequently applies those parameters to the input supplied for evaluation. The authors released code for Cutout and describe using the original Shake-Shake code and training settings when testing whether their transform could improve that configuration.
Experiments and results
What the comparisons measure
The experiments measure classification error on held-out test images. A lower error means that fewer test images receive the wrong class prediction. The main comparisons pair the same architecture and augmentation setting with and without Cutout. The pair is the relevant unit of comparison when asking what happens after adding the mask. Results from stronger architectures provide a separate answer about the best test error the authors obtained.
The paper also reports validation results from selecting the mask size and test-set measurements of internal activations. The validation analysis asks how well candidate settings perform during selection. The activation comparison asks how training with the mask changes the responses inside a trained classifier. Neither measurement is interchangeable with the test error from a full training run. In particular, the activation study reports its own error figures for the classifiers being analyzed.
For the usual architecture pairs, the paper averages the test results over five runs. The Shake-Shake experiments with Cutout have three runs each, and their baseline results come from the earlier work. The reported values with ± indicate that the paper presents variation alongside the run averages. The charts below represent the central test error values. The validation plots for mask size separately specify 95% confidence intervals.
CIFAR-10 and CIFAR-100
Each CIFAR dataset consists of 60,000 color images measuring 32 by 32 pixels. Each has 50,000 training images and 10,000 test images. CIFAR-10 has 10 classes, including categories such as cats, dogs, cars, and boats. CIFAR-100 has 100 classes. Its separate categories for maple, oak, palm, pine, and willow trees illustrate the finer distinctions that some of its images require. That difference is relevant to the hypothesis that covering fine details can have different consequences across tasks with the same image dimensions.
Both datasets are normalized by channel. For runs with conventional augmentation, the authors pad each image with 4 zero-valued pixels on each side to make a 40 × 40 image. They then take a random 32 × 32 crop and mirror the image horizontally with 50% probability. Conventional augmentation in these comparisons means this crop-and-mirror procedure. A result described as Cutout without conventional augmentation still uses masking to vary the training images.
The study uses ResNet18, a residual network with a depth of 18, and WRN-28-10, a wide residual network with a depth of 28 and a widening factor of 10. A residual network uses connections that carry an input forward around a learned transformation. The widening factor controls the width of the wide network, and the CIFAR configuration includes dropout in its convolutional layers with a drop probability of 0.3. The paired runs allow the authors to ask whether changing the data still helps a classifier whose architecture and training already incorporate other ways to improve generalization. Wide Residual Networks
For these architectures, the training schedule uses 200 epochs and batches of 128 images. The optimizer is stochastic gradient descent, which updates the learned parameters using gradient estimates from batches of examples. It uses Nesterov momentum of 0.9 and weight decay of 5e-4. Momentum carries information from previous updates into the current update, while weight decay limits the tendency for weights to grow. The learning rate starts at 0. 1, with the value divided by five after each of epochs 60, 120, and 160. The paper follows the training schedule from the Wide Residual Networks work.
The validation search uses WRN-28-10 with standard augmentation. From the searches, the authors choose a square of 16 × 16 pixels for the CIFAR-10 full-data runs and 8 × 8 pixels for the CIFAR-100 full-data runs. These are nominal patch dimensions. The masked region can be smaller if the selected center places part of the square beyond an edge. In the subsequent test results, the authors use the chosen size for the corresponding CIFAR dataset.
The authors also test Cutout with the architectures used in the earlier Shake-Shake work. On CIFAR-10 the configuration is the 26 2 × 96d Shake-Shake-Image ResNet. On CIFAR-100 it is the 29 2 × 4 × 64d Shake-Even-Image ResNeXt. Those are the paper’s architecture designations. In this part of the study the authors retain the earlier code and training settings and add their image transformation. The resulting comparison asks whether Cutout can add to a previously strong training configuration. Shake-Shake Regularization
On CIFAR-10 with cropping and mirroring, the complete measurements for ResNet18 are 4.72 ± 0.21 without Cutout and 3.99 ± 0.13 with it, in percent test error. The corresponding wide network results are 3.87 ± 0.08 and 3.08 ± 0.16. The Shake-Shake comparison goes from the earlier result of 2.86% test error to 2.56 ± 0.07 with Cutout. These pairs show improvements for both of the architectures trained under the common schedule and for the configuration that retained the earlier Shake-Shake recipe.
Classifiers on CIFAR-10 with mirroring and cropping, test error
Cutout lowers test error in each pair, with the lowest error in the Shake-Shake configuration.
The numbers
| System or setting | error % |
|---|---|
| ResNet18 | 4.72 |
| ResNet18 + Cutout | 3.99 |
| WideResNet | 3.87 |
| WideResNet + Cutout | 3.08 |
| Shake-Shake | 2.86 |
| Shake-Shake + Cutout (this paper) | 2.56 |
On CIFAR-10 without cropping and mirroring, ResNet18 records 10.63 ± 0.26 without Cutout and 9.31 ± 0.18 with it. The wide network records 6.97 ± 0.22 and 5.54 ± 0.08, respectively. All four figures are percent test error. The pairs show that the mask can help when it supplies the variation in the training images on its own. The results with cropping and mirroring separately show that the benefit remains when other training transformations already vary the images.
The corresponding CIFAR-100 comparisons follow the same design. With cropping and mirroring, ResNet18 changes from 22.46 ± 0.31 to 21.96 ± 0.24 in percent test error. For the wide network the figures are 18.8 ± 0.08 and 18.41 ± 0.27. The earlier Shake-Even configuration has 15.85% test error, and the run with Cutout is reported as 15.20 ± 0.21. The paper identifies 15.20% as its strongest CIFAR-100 test result.
Classifiers on CIFAR-100 with mirroring and cropping, test error
Cutout improves the reported error for each architecture, and Shake-Even with Cutout has the lowest error.
The numbers
| System or setting | error % |
|---|---|
| ResNet18 | 22.46 |
| ResNet18 + Cutout | 21.96 |
| WideResNet | 18.8 |
| WideResNet + Cutout | 18.41 |
| Shake-Even | 15.85 |
| Shake-Even + Cutout (this paper) | 15.20 |
Without the standard transformations, the CIFAR-100 test error values for ResNet18 are 36.68 ± 0.57 without Cutout and 34.98 ± 0.29 with it. The values for the wide network are 26.06 ± 0.22 and 23.94 ± 0.15. In the authors’ characterization of the CIFAR results, adding the masks improves accuracy for the ordinary residual and wide residual configurations by between 0.4 to 2.0 percentage points. The individual test error entries give the comparison for each architecture and augmentation condition.
The strongest CIFAR numbers rely on the complete training recipe. The comparisons are useful precisely because Cutout is added to that recipe with the other settings held in place within each pair. The results also show why it helps to keep the controls separate. Comparing a plain ResNet18 against the strongest Shake-Shake configuration combines differences in architecture, training, and augmentation. Comparing each configuration with its own Cutout counterpart addresses the incremental effect of masking.
Street View House Numbers
Street View House Numbers, abbreviated SVHN, consists of 32 × 32 color images for identifying the number at the center. The dataset contains 630,420 images. The official training split contains 73,257 images and the test split contains 26,032 images. The authors also use the 531,131 additional training images, following the procedure in the Wide Residual Networks work. The reported test error therefore applies to training with both sources of training data. The runs use no conventional augmentation, so the paired comparison concerns the addition of Cutout to a training pipeline without crop-and-mirror transformations. Wide Residual Networks
The architecture is WRN-16-8, a wide residual network with a depth of 16 and a widening factor of 8. The dropout probability in the convolutional layers is 0.4. Training lasts 160 epochs, with batches of 128 images, Nesterov momentum of 0. 9, with weight decay set to 5e-4. The learning rate starts at 0. 01, with the value divided by ten after each of epochs 80 and 120. The authors use channel means and standard deviations for normalization in both arms of the comparison. The earlier implementation scales values between 0 and 1. Centering the values in the new runs makes zero a suitable fill for the square.
Using 10% of the training set to validate their choice of square size, the authors settle on 20 by 20 pixels. The nominal dimensions appear large for these images. Border clipping and variation in location are both relevant to interpreting the setting. The target digit is centered, but the mask center is randomly sampled across the image. Some placements can obscure evidence directly on the digit, while others leave much of that area available.
With their common normalization and training procedure, the authors obtain 1.60 ± 0.05 in percent test error for WRN-16-8 without Cutout and 1.30 ± 0.03 with it. They describe the average reduction as 0.3 percentage points. The paper also gives 1.54% test error for the earlier published WRN configuration. The paired 1.60 figure is the baseline under the normalization used for Cutout, while 1.54% places the result in the context of previously reported performance. The authors identify 1.30% as the new benchmark result.
STL-10 with labeled training images
STL-10 changes both the resolution and the amount of labeled training data. The dataset has 113,000 color images measuring 96 × 96 pixels. There are 5,000 labeled training images and 8,000 test images in the target categories. The other 100,000 images are unlabeled and include images from the target categories as well as visually similar categories. The dataset was designed with semisupervised learning in mind, where training can exploit unlabeled images alongside labeled ones. Here the authors use the labeled training set to ask how Cutout fares with fewer labeled examples and larger images.
The pipeline centers and scales the color channels, as in the other experiments. When conventional augmentation is enabled, the authors pad the image by 12 pixels on each side, draw a random 96 × 96 crop, and mirror it horizontally with 50% probability. The classifier is a wide residual network with a depth of 16 and a widening factor of 8. Its convolutional dropout probability is 0.3. The experimental question again concerns adding an input transform to a network that is already using internal dropout.
Training uses batches of 128 images for 1000 epochs, with stochastic gradient descent, Nesterov momentum of 0.9, and weight decay of 5e-4. The initial learning rate is 0. 1, with the value dropping to one-fifth of its previous level after each of epochs 300, 400, 600, and 800. The authors reserve 10% of the labeled training images when searching over the square size. They choose 24 × 24 pixels in the absence of conventional augmentation and 32 × 32 pixels in its presence. Each test comparison therefore uses the mask size selected for its particular training conditions.
On the test split, the error without cropping or mirroring is 23.48 ± 0.68 for the baseline and 20.77 ± 0.38 with Cutout. With conventional augmentation, the baseline has 14.21 ± 0.29 and the Cutout configuration has 12.74 ± 0.23. These are percentages, averaged over five runs on the full labeled training set. The authors describe the improvements as 2.7 percentage points without conventional augmentation and 1.5 percentage points with it. The best result in this experiment combines Cutout with the conventional image transformations.
WideResNet training conditions on STL-10, test error
Cutout lowers error in both augmentation settings, and combining it with cropping and mirroring gives the lowest error.
The numbers
| System or setting | error % |
|---|---|
| WideResNet | 23.48 |
| WideResNet + Cutout | 20.77 |
| WideResNet + crop and mirror | 14.21 |
| WideResNet + crop, mirror, and Cutout (this paper) | 12.74 |
The STL-10 result extends the demonstrated use of the method to a setting with larger input images and fewer labeled training images. The SVHN result extends it to a dataset where the training protocol uses many additional labeled examples and no standard augmentation. Taken together with CIFAR, these cases show the intervention working under several data and training conditions. Each case still has its own normalization, architecture, and choice of patch size, so the reported test errors are tied to the corresponding recipes.
What the ablations show
Choosing a region through activations or through chance
The comparison between targeted and random masking tests whether a trained network needs to identify the evidence that will be withheld. The targeted procedure used prior activations and produced masks that frequently covered object parts. It was designed to pressure the network to learn features that complemented its strongest existing cues. The random square can exert that pressure on some presentations and will also hide regions that happen to carry little relevant information. Its effectiveness therefore depends on what happens over repeated presentations, including those in which an important cue is erased by chance.
The authors found the random and targeted versions comparable in their experiments. They report this outcome qualitatively, and their numerical benchmark results concern the random procedure. The comparison supports the decision to use random placement in the implementation. A data-loading transform could produce the observed benefit without storing information from the preceding epoch. The result leaves open how particular activation-guided masks might perform under other settings or whether some images benefit more from targeted intervention. The paper returns to the activation-guided idea in its plans for further work.
Testing the scale of missing information
The clearest hyper-parameter analysis varies the square’s side length on CIFAR-10 and CIFAR-100. In both cases the authors use WRN-28-10 with conventional augmentation. The curves show validation accuracy, averaged over five runs, with 95% confidence intervals. A baseline trained without Cutout gives a reference for judging whether a given mask size adds value. This design holds the architecture and ordinary transformations fixed while changing how much of a training image the square could erase.
The paper describes an accuracy curve that rises as the mask grows, peaks, and then falls. Large enough sizes produce lower validation accuracy than the no-Cutout baseline. The peak shows that there is a balance between withholding enough evidence to change the learning task and keeping enough evidence for the label to be usable. The response is a trend over tested settings. It supplies empirical guidance for the chosen square dimensions, with no need to assume that the curve has the same shape or peak in a different task.
The authors interpret the smaller selected square on CIFAR-100 as consistent with finer distinctions being more dependent on local detail. For categories such as the tree classes the paper mentions, the remaining context may tell a classifier that the image contains a tree while offering weak evidence for the particular kind. A mask that preserves finer cues can still force the classifier to use other features without removing as much class-specific evidence. The dataset comparison makes that account plausible, but several properties differ between the benchmarks. The grid search compares patch sizes within each dataset. It does not isolate a causal effect of the number of classes on the preferred size.
The STL-10 settings show why the side length belongs to the whole training recipe. Different sizes were chosen according to whether cropping and mirroring were enabled. The mask is applied to an image that may already have undergone a change of framing and orientation, and the validation procedure selects a setting under those conditions. The paper does not give a separate test comparison crossing every size with every augmentation recipe. Its reported STL-10 gains therefore concern the tuned versions of the training pipelines.
Testing whether visibility needs to vary
The border comparison changes a particular feature of placement. Constraining a square to fit completely inside the frame delivers its full footprint on each masked image. Sampling the center anywhere inside the image introduces an area change as well as a location change. The authors find that permitting the square to extend beyond the image is important to the results they obtain. Their suggested reason is that some training examples should retain much of their visible evidence.
The alternative with an in-bounds square applied with 50% probability offers a useful check on that explanation. It supplies full-size occlusion on the transformed images and preserves the original visibility on the others. The authors report similar performance with this arrangement. What the two approaches share is a break from applying a full square on every presentation. Their distributions of visible area can differ, and their masks can appear in different locations. The paper gives a qualitative comparison, so it establishes that both arrangements can work in the authors’ trials without measuring how much each detail of placement contributes.
The comparisons with standard data augmentation test a related question about the breadth of the training input. Across the paired CIFAR and STL-10 results, Cutout improves test error even where random crops and mirroring are already active. The mask also helps in the corresponding comparisons without those operations. This is evidence that the effects can coexist in the same pipeline. The comparison with a wide residual baseline similarly shows the benefit in the presence of convolutional dropout. These experiments retain the existing regularizers and measure the incremental change from adding Cutout. They leave the individual interactions among augmentation, dropout, and other training components largely unexplored.
Looking inside the trained classifier
The activation analysis examines ResNet18 classifiers trained on CIFAR-10 with standard augmentation, using the same training settings as the earlier ResNet18 experiments. The classifier trained with Cutout has 3.89% test error in this analysis, and its counterpart has 4.94%. These figures identify the classifiers used to compare internal behavior. The primary benchmark comparison earlier in the paper reports run averages for its own evaluation.
The authors examine the magnitudes of feature activations at different depths. An activation magnitude describes the size of an internal response. Sorting responses within a layer gives a profile of how many responses are weak or strong, independent of the order in which the units happen to be stored. The paper compares profiles averaged over the test samples, and it also presents profiles for individual test images. The analysis prose and figure captions describe opposite sorting directions, so the result is best read in terms of where response strengths shift rather than the direction in which the rank axis runs.
The shallower layers show a general increase in activation strength after training with Cutout. At greater depth, the profiles show more responses at the strong end of the distribution. Individual examples exhibit the same broad pattern, with a more pronounced separation in the examples the paper illustrates. The authors interpret this result as evidence consistent with the classifier using a wider set of features. If training repeatedly makes a strong feature unavailable, other features that help predict the same label can become more useful.
The analysis measures response magnitudes and their distribution. A rank in a sorted profile gives no direct information about which object part a unit represents or how much the final prediction depends on it. A broader set of strong responses is compatible with the authors’ account, while the experiment does not directly intervene on those responses to test what each contributes. The test error comparison establishes the performance difference for the classifiers studied. The activation profiles describe an accompanying change in their internal behavior.
Limitations
Limits and open questions the authors identify
Mask size needs to suit the setting. The authors’ validation results show that increasing the side length eventually harms accuracy and can make performance worse than training without Cutout. An implementation has a simple fixed setting once the side length is chosen, but the experiments choose it through a search on held-out training data. The choice can change between datasets of the same image resolution and between augmentation settings within a dataset. The paper’s results therefore attach to tuned square sizes and specified training procedures.
The authors also emphasize the need to leave a substantial amount of image content visible in some training examples. They found that a mask restricted to the image boundaries on each presentation performed poorly enough for border clipping to matter, and report a similar outcome from mixing full in-bounds occlusion with intact images. They give a practical explanation based on how much evidence a classifier receives. The paper does not quantify the necessary balance of lightly and heavily occluded examples or prescribe one balance for all of its datasets.
The conclusion returns to targeted removal as an open research direction. Random squares worked comparably to their first activation-guided version. That finding justified the simpler experimental method, while leaving the underlying question about targeted hiding unresolved. Their early procedure is one way of using activation information, involving saved feature maps, an upsampling step, and a threshold. The conclusion envisages further study of visual feature removal guided by activations.
STL-10 has an explicitly limited role in the experiments. The authors set aside the unlabeled portion because they are interested in using labeled data at higher resolution in a low-data setting. The results describe supervised training under that restriction. They give no evidence about how to use Cutout to make unlabeled data more valuable within STL-10’s original semisupervised purpose.
Limits visible in the experimental setup
The central robustness claim is supported by ordinary benchmark test error. The paper motivates the transformation with real-world occlusion, but does not measure test performance separately for different kinds or severities of occlusion. Its square mask creates a particular training condition. Objects in a scene can hide each other in ways that vary in shape, position, appearance, and relation to the target. An improvement on the reported test splits establishes better classification under those evaluation protocols. How much improvement would carry over to deliberately occluded images or other changes in image conditions remains open.
The classification objective also assumes that the retained image provides some evidence for the original label frequently enough to make training productive. A mask can remove much of the target. The original label then remains attached to an image whose visible content may be ambiguous. The size searches and border comparison show that this concern matters empirically, but they do not measure where the evidence for any individual class or example disappears. The reported values are aggregate errors. They cannot establish that Cutout helps the same categories or examples to the same degree.
The benchmark scope is supervised image classification with convolutional architectures and the training recipes described in the paper. The introduction motivates Cutout through broader vision problems, including recognition under occlusion, tracking, and pose estimation. The experiments do not evaluate tracking or pose estimation, and they do not test outputs that assign a category or location to individual regions. The effect of erasing a region on those outputs could differ because the training target itself has spatial structure. The paper demonstrates the method in tasks where the image as a whole has a class label.
The numerical comparisons provide evidence of complementarity with existing regularization. They do not form a complete factorial experiment in which every regularizer, training choice, and mask setting is independently varied. The presence of dropout and batch normalization in effective configurations shows that Cutout can be used alongside them. It does not determine the reason for the gain or the degree to which either component changes it. Likewise, the authors’ observation that size mattered more than shape is presented as practical experience. The benchmark study uses squares throughout and does not report a quantitative comparison of mask shapes.
Baseline provenance matters for the strongest claims. The Shake-Shake baselines come from the earlier work, while the new Cutout figures have three runs each. The SVHN experiments compare two variants using the authors’ normalization and separately cite the earlier WRN score obtained under the earlier procedure. Those details allow the reader to distinguish a paired comparison from a comparison with an already published result. The paper also reports variation across runs, but it does not supply a formal statistical comparison for each difference in test error.
Finally, the authors’ claim about low computational cost concerns applying the mask when data loading can overlap with training. The paper presents no end-to-end timing or measurements of how often the CPU work lies on the critical path. Selecting a mask size involves additional training for validation, even if applying the chosen square during a run takes little work. The implementation argument explains where the cost can be absorbed. It leaves the total runtime effect dependent on the training setup.
What came after
Changing what disappears
Later papers that cite Cutout include several whose central subjects can be placed alongside its choice of what to hide, where to hide it, and how to define the resulting training example. The relationship is clearest where their stated topic concerns a similar intervention. In cases where the citation alone leaves the use of Cutout unspecified, the comparison concerns the problem each work addresses.
DropBlock takes up regularization for convolutional networks through dropping blocks. In the context of Cutout, the relevant question is where spatially coordinated removal belongs. Cutout removes image evidence at the input, after which all the network’s feature maps are derived from that incomplete image. DropBlock’s focus on blocks in convolutional regularization brings the same issue of spatial grouping to the network’s own representations. It follows the line of inquiry in which neighboring responses can carry overlapping information and the shape of what is dropped can affect how much information survives. DropBlock
CutMix connects the use of image regions to training strong classifiers with localizable features. It shifts attention from the absence of content under a mask to the possibilities opened by mixing image content at the level of regions. The goal in its title also makes localization a point of interest. Cutout’s tests judge the image-level category, and its activation analysis describes how widely strong responses are distributed. Localizable features pose a further question about whether the evidence learned for a category can be situated in the image. CutMix
SpecAugment makes data augmentation the subject of an automatic speech recognition method. Its relation to Cutout is the broader question of how to alter structured input while leaving enough evidence for the training objective. An image square defines which pixel positions will be changed together. A speech application has to make that decision in a representation suited to speech, with the recognition task supplying the criterion for whether the transformation helps. The citation connects the work to image augmentation without making image patch dimensions or image classification results applicable to speech. SpecAugment
Choosing augmentations and evaluating the training recipe
RandAugment addresses practical automated data augmentation through a reduced search space. Cutout makes the need for such a distinction easy to see. Sampling a location in a training image is cheap, while deciding how large to make the nominal square requires a validation experiment in the Cutout study. RandAugment’s stated concern is the scope of the search itself. It places augmentation design at the level of choosing a practical set of operations and settings, beyond deciding where an individual square should fall. RandAugment
TrivialAugment addresses the tuning burden from a different starting point, with a tuning-free augmentation method. Cutout offers a concrete example of why this burden is worth studying. It has a straightforward transformation and still uses different selected dimensions across its experiments, including different sizes for STL-10 according to the other transformations in use. TrivialAugment makes the amount of tuning part of what an augmentation procedure should be judged on. Its stated scope is broader than the suitability of any particular square size. TrivialAugment
Work on learning visual representations through contrastive learning raises a separate question about what an augmentation is for. In Cutout, an altered image remains a training example for its original category, and the loss concerns classification of that image. A contrastive framework makes relationships among visual representations central to the learning problem. The citation places Cutout in that wider discussion of training through altered inputs. The stated scope of the later work is visual representation learning, a different criterion from the benchmark comparison between classifiers trained with and without a square mask. A Simple Framework for Contrastive Learning of Visual Representations
YOLOv4 addresses the speed and accuracy of object detection. Its citation puts Cutout in contact with a task where the system must locate objects as well as recognize them. That difference changes what an erasure can mean to supervision. Hiding a patch can leave the scene’s class recognizable while changing the evidence available for an object at a particular location. The detector’s stated objectives also make training transformations part of a broader question about obtaining better detection performance within a practical system. The citation does not specify which component of the detector’s recipe relies on Cutout. YOLOv4
Following the generalization question beyond the original tests
Work on robustness to natural distribution shifts in image classification addresses one of the distinctions left open by the Cutout experiments. Cutout deliberately creates a shift in the training input by erasing a chosen square, then measures classification error on benchmark test splits. A study of natural distribution shifts asks how image classifiers behave when the changes arise in the test distribution. The connection is the question of what kind of generalization has actually been measured. A citation in this setting does not by itself establish that Cutout improves performance on naturally shifted images. Measuring Robustness to Natural Distribution Shifts in Image Classification
The two later surveys of data augmentation for natural language processing place the citation in a different kind of discussion. The broad survey addresses augmentation approaches in NLP, while the empirical survey narrows the task to learning with limited data. Cutout provides an example of a transformation whose usefulness depends on preserving the supervision when part of an input is modified. For language, deciding what material can change while retaining the training target is a separate problem. For limited-data learning, the parallel is especially clear in the supervised STL-10 experiment, where the authors ask whether transforming the available labeled examples improves test performance. These citations connect the general problem across domains, without establishing a transfer of the square mask or its numerical results. A Survey of Data Augmentation Approaches for NLP · An Empirical Survey of Data Augmentation for Limited Data Learning in NLP
Cite
Cite as Terrance DeVries and Graham W. Taylor. 2017. Improved Regularization of Convolutional Neural Networks with Cutout. arXiv (Cornell University).
@misc{devries2017improved,
title = {{Improved Regularization of Convolutional Neural Networks with Cutout}},
author = {Terrance DeVries and Graham W. Taylor},
year = {2017},
doi = {10.48550/arxiv.1708.04552},
eprint = {1708.04552},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1708.04552}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/devries-2017-improved-regularization-convolutional-neural-networks/