Home Knowledge Base CutMix

CutMix is the augmentation that creates hybrid images by cutting patches from one image and pasting them onto another while merging their labels proportionally — in Vision Transformers the cut-and-paste operation flows through the patch grid naturally, forcing the network to reason about part-level compositions.

What Is CutMix?

Why CutMix Matters

Mixing Strategies

Random Rectangles:

Grid-Based Cuts:

Dual CutMix:

How It Works / Technical Details

Step 1: Sample a rectangle within the image, cut the corresponding patches, and paste them into the target grid, keeping patch order consistent.

Step 2: Compute the label mix ratio as the area of the cut region divided by the total image area, then compute cross-entropy using the weighted sum of source labels; when using token labeling, apply per-token ratios.

Comparison / Alternatives

AspectCutMixMixupRandom Erasing
GeometryRectangularGlobal
LabelsArea-weightedLinear interpolation
Content LossNoneNone
Suitability for ViTExcellentGood

Tools & Platforms

CutMix is the surgical augmentation that blends semantics at the patch level so ViTs learn to interpret composites instead of memorizing entire scenes — every patch becomes a candidate for cross-class interplay, boosting generalization.

cutmix for vitcomputer vision

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.