Cutout

Cutout is a regularization technique for image classification that randomly masks out (occludes) square patches of the input image during training — forcing the model to make predictions based on partial information rather than relying on a single discriminative region (like always looking at the cat's face), which acts as spatial dropout at the input level and consistently improves generalization by teaching the model to use all available visual features rather than overfitting to the most dominant one.

What Is Cutout?

  • Definition: During training, a square patch of random position is filled with zeros (or the mean pixel value) in the input image — the model must still correctly classify the image despite the missing information.
  • Intuition: "If I cover the cat's face, can you still tell it's a cat?" The model must learn to recognize cats from their ears, body shape, fur texture, tail, and paws — not just the face. This redundancy in learned features makes the model more robust.
  • At Test Time: No patches are masked — the model sees the full image and benefits from all the features it learned to use during training.

How Cutout Works

StepProcess
1. Sample a random center point (cx, cy)Uniform over the image
2. Create a square patch of size S×STypically 16×16 or 32×32 pixels
3. Fill the patch with zeros (or mean)The "cutout" region
4. Feed to model, label stays the sameThe image is still a "cat" even with part hidden

Hyperparameters

ParameterTypical ValueEffect
Patch size16×16 for CIFAR-10, 64×64 for ImageNetLarger = harder task, more regularization
Number of patches1 (original paper)Multiple patches increase difficulty
Fill value0 (black) or dataset meanMinimal difference in practice

Cutout vs Related Techniques

TechniqueWhat Is MaskedLabel HandlingKey Difference
CutoutRandom patch → black/zeroOriginal label unchangedSimplest, pure regularization
DropoutRandom neurons (hidden layers)N/A (applied to features)Feature-level, not input-level
CutMixRandom patch → replaced with another image's patchProportional soft labelMore informative — uses the patch for another class
Random ErasingRandom rectangle, variable aspect ratioOriginal label unchangedMore flexible shape than Cutout
GridMaskRegular grid pattern of squaresOriginal label unchangedStructured occlusion

Why Cutout Works

  • Redundancy: Forces the model to develop multiple pathways for recognizing each class — if one region is occluded, other regions provide sufficient evidence.
  • Context Learning: The model learns to use surrounding context (background, scene composition) in addition to the object itself.
  • Spatial Dropout: Similar to dropout but applied at the input level — randomly removing spatial information rather than feature activations.

Results

DatasetModelWithout CutoutWith CutoutImprovement
CIFAR-10ResNet-184.72% error3.99% error-0.73%
CIFAR-100ResNet-1822.46% error21.96% error-0.50%
STL-10WRN14.47% error12.74% error-1.73%

Cutout is the simplest effective spatial regularization technique for image classification — requiring only a single hyperparameter (patch size), adding negligible computational cost, and consistently improving generalization by forcing models to learn from the entire image rather than overfitting to the single most discriminative region.

Take cutout further

Ask the copilot about this term, or have our engineers assess it against your process.