Cutout is a simple yet powerful data augmentation and regularization method designed to improve the robustness and generalization of convolutional neural networks (CNNs). During training, it randomly selects one or more square regions within an input image and sets their pixel values to zero or a constant, effectively occluding parts of the visual field. This forces the model to learn from less prominent features and discourages over-reliance on any single, highly predictive region, acting as a form of spatial dropout. The technique is particularly effective for object recognition tasks, as it encourages the network to develop a more distributed and comprehensive understanding of an object's features.
Glossary
Cutout

What is Cutout?
Cutout is a regularization and data augmentation technique for convolutional neural networks that randomly masks out contiguous square regions of input images during training.
The primary hyperparameters for Cutout are the number of masks and the mask size, typically defined as a percentage of the image dimensions. Unlike Random Cropping, which shifts context, or Mixup/CutMix, which blends images, Cutout removes information entirely, simulating occlusions common in real-world scenarios. This simple perturbation significantly improves performance on benchmarks like CIFAR-10 and CIFAR-100. It is computationally inexpensive and is easily integrated into an online augmentation pipeline within frameworks like PyTorch's torchvision.transforms or libraries such as Albumentations, often used in conjunction with other augmentations like flipping or color jittering.
Key Features and Characteristics of Cutout
Cutout is a regularization and data augmentation technique for convolutional neural networks that randomly masks out contiguous square regions of input images during training.
Core Mechanism
The Cutout algorithm operates by selecting a random spatial location within an input image and setting all pixel values within a fixed-size square region to zero (or a constant mean value). This creates an occluded 'hole' in the image. The key hyperparameters are:
- Mask Size (h, w): The height and width of the square region to be masked.
- Probability (p): The likelihood that Cutout is applied to any given training sample. Unlike dropout, which operates on neuron activations, Cutout acts directly on the input pixels, forcing the network to rely on less prominent visual features and become robust to partial occlusions.
Primary Objective: Regularization
The primary purpose of Cutout is regularization—preventing overfitting by making the training task more difficult. By removing significant portions of visual information, it combats a model's tendency to rely on small, localized 'shortcut' features. This encourages the network to:
- Develop a more distributed feature representation.
- Learn from global context and secondary cues.
- Reduce co-adaptation between features, similar to the effect of Dropout, but applied spatially in the input domain. Empirical results, particularly on datasets like CIFAR-10 and CIFAR-100, show Cutout can significantly reduce test error without increasing model parameters.
Implementation Variants
While the original implementation uses a single fixed-size square, several variants exist:
- Random Erasing: A closely related technique where the erased region can be rectangular with a random aspect ratio.
- Adaptive Cutout: Dynamically adjusts mask size based on image content or training epoch.
- Multiple Cutouts: Applies several smaller masks to a single image.
- Color-Aware Cutout: Fills the mask with a random color or Gaussian noise instead of zero, though zero-masking is most common. The technique is typically integrated into the data loading pipeline using libraries like Albumentations or torchvision.transforms.
Comparison to Related Techniques
Cutout is part of a family of region-based augmentation methods. Key distinctions are:
- vs. Dropout: Dropout deactivates random neurons in a layer; Cutout deactivates a contiguous region of input pixels.
- vs. Random Cropping: Cropping removes outer portions of an image and resizes; Cutout removes an internal region without resizing, preserving the original image dimensions.
- vs. CutMix: CutMix cuts a patch from one image and pastes it onto another, blending labels. Cutout simply removes information (replaces with zero) from a single image, preserving its original label.
- vs. Hide-and-Seek: A more granular approach that divides the image into a grid and randomly drops entire grid cells.
Impact on Model Robustness
Training with Cutout improves model resilience to several real-world challenges:
- Partial Occlusions: Models become less sensitive to objects being partially blocked (e.g., by obstacles).
- Adversarial Robustness: Can provide a mild improvement against certain adversarial attacks by reducing dependence on highly specific pixel patterns.
- Domain Shift: Enhances generalization to unseen environments where object appearance or context may vary. It is particularly effective for fine-grained image classification tasks where discriminative features can be small and localized.
Practical Considerations & Limitations
Effective use of Cutout requires tuning and awareness of its constraints:
- Hyperparameter Tuning: Mask size is critical. Too small has negligible effect; too large destroys too much information. A common heuristic is to use a mask covering 10-25% of the image area.
- Dataset Dependency: Effectiveness varies. It shows strong gains on CIFAR but can be less impactful on larger, more diverse datasets like ImageNet.
- Computational Overhead: Minimal, as it's a simple pre-processing step.
- Not a Silver Bullet: Often used in combination with other augmentations (e.g., Random Cropping, Color Jittering) for a comprehensive augmentation policy like RandAugment.
- Label Preservation: Crucially, the semantic label of the image does not change, as no new visual content is introduced.
Cutout vs. Related Augmentation Techniques
A technical comparison of Cutout against other prominent image augmentation methods, highlighting their core mechanisms, regularization effects, and typical use cases.
| Feature / Metric | Cutout | Mixup | CutMix | Random Erasing |
|---|---|---|---|---|
Core Mechanism | Randomly masks a contiguous square region with zeros or a constant. | Performs a convex interpolation between two images and their labels. | Cuts a patch from one image and pastes it onto another, blending labels proportionally. | Randomly selects a rectangular region in an image and replaces its pixels with random values. |
Primary Goal | Encourage the model to learn from less prominent features and improve robustness to occlusions. | Encourage linear behavior between training samples and smooth decision boundaries. | Combine the advantages of regional dropout and Mixup for improved localization and classification. | Reduce overfitting by simulating occluded or corrupted regions in training data. |
Label Handling | Label-preserving. The label of the original image is unchanged. | Label-mixing. The new label is a weighted sum (λ and 1-λ) of the two original labels. | Label-mixing. The new label is a blend proportional to the area of the pasted patch. | Label-preserving. The label of the original image is unchanged. |
Spatial Structure | Destroys local spatial information within the masked region. | Globally blends entire images, preserving overall spatial structure but mixing content. | Locally replaces a region, preserving most of the spatial structure of the base image. | Destroys local spatial information within the erased region. |
Regularization Effect | Strong spatial dropout; forces feature redundancy and reduces reliance on local cues. | Promotes simple linear interpolations in feature space; acts as a form of vicinal risk minimization. | Combines regional removal and interpolation; improves localization and object part sensitivity. | Similar to Cutout, but with variable erasure content (not just constant). |
Typical Use Case | General image classification, especially for models prone to overfitting on local textures. | Image classification where smooth decision boundaries are desired, often with CNNs and Vision Transformers. | Object detection and image classification, where localization of object parts is beneficial. | A simpler, earlier variant of Cutout; general classification to improve robustness. |
Implementation Complexity | Low. Requires generating a random mask location and applying it. | Low. Requires sampling a mixing coefficient λ and performing a weighted sum. | Medium. Requires sampling a bounding box, pasting, and calculating the correct label mix. | Low. Similar to Cutout but with random pixel values instead of a constant. |
Key Hyperparameter | Mask size (height/width or proportion of image area). | Mixing coefficient (λ) sampled from a Beta(α, α) distribution. | Patch size (bounding box dimensions) and the mixing ratio for labels. | Erasing probability, and the scale/ratio range of the erased rectangle. |
Frequently Asked Questions
Cutout is a fundamental regularization and data augmentation technique in computer vision. These questions address its core mechanics, applications, and relationship to other methods.
Cutout is a data augmentation and regularization technique for convolutional neural networks (CNNs) that randomly masks out one or more contiguous square regions of an input image during training. The core mechanism involves zeroing out (or filling with a constant value like the image mean) all pixel values within a randomly positioned rectangular patch. This forces the model to learn from the remaining, less prominent visual features and prevents it from over-relying on a small set of highly discriminative local patterns, thereby improving feature robustness and generalization. The hyperparameters controlling Cutout are the patch size (often a percentage of the image dimensions) and the number of patches applied.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Cutout is a core technique within a broader ecosystem of image augmentation methods. These related concepts define the landscape of regularization and data synthesis for computer vision.
CutMix
CutMix is a more advanced augmentation technique that replaces a removed region with a patch from another training image, blending the labels proportionally. Unlike Cutout's simple masking, CutMix encourages the model to learn from hybrid contexts and improves localization ability.
- Mechanism: Cuts a random patch from image A and pastes it onto image B.
- Label Handling: The ground truth label becomes a mix (e.g., 0.7 for image B's class, 0.3 for image A's class).
- Primary Benefit: Reduces localization errors and improves object detection performance.
Random Erasing
Random Erasing is a closely related regularization technique, often used synonymously with Cutout. It randomly selects a rectangle region in an image and replaces its pixels with random values, zeros, or the image mean.
- Key Distinction: While Cutout typically uses zero-masking, Random Erasing can use various replacement strategies.
- Application: Originally proposed for object detection and person re-identification tasks to occlude parts of objects.
- Effect: Forces the model to not rely on any single visual cue, improving robustness to occlusions.
Hide-and-Seek
Hide-and-Seek is a precursor to Cutout that divides an image into a grid and randomly hides (sets to zero) entire grid patches during training.
- Grid-Based: The image is split into SxS patches. Each patch is hidden with probability p.
- Granularity: Provides a more structured, coarse form of occlusion compared to Cutout's free-form rectangle.
- Objective: Similar to Cutout—encourages the model to use multiple, dispersed features rather than a single dominant one.
Mixup
Mixup is a vicinal risk minimization technique that creates virtual training examples via convex combinations of pairs of images and their labels. It operates on the entire image, not a localized region.
- Formula:
x' = λ * x_i + (1-λ) * x_jandy' = λ * y_i + (1-λ) * y_j, where λ ∈ [0,1]. - Effect: Promotes linear behavior between training examples, smoothing decision boundaries and improving generalization.
- Contrast with Cutout: Mixup blends global content; Cutout removes local content. They are often used together.
Regional Dropout
Regional Dropout is a generalization of Cutout-style techniques applied to feature maps within a neural network, not just the input layer. It drops contiguous regions of activations in intermediate convolutional layers.
- Layer: Applied to feature maps after an activation layer (e.g., ReLU).
- Purpose: Acts as a form of structured dropout, preventing co-adaptation of feature detectors in adjacent spatial locations.
- Benefit: Can be more computationally efficient than input-level Cutout and provides regularization deeper in the network.
Test-Time Augmentation (TTA)
While Cutout is a training-time technique, Test-Time Augmentation is an inference strategy that creates multiple augmented versions of a single test sample (e.g., with different crops or flips) and aggregates the predictions.
- Common Augmentations for TTA: Multi-crop, horizontal flip, and color jitter.
- Aggregation: Predictions are averaged or ensembled.
- Key Difference: TTA improves inference stability and accuracy but increases compute cost. Cutout's goal is to improve the model itself during training.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us