Home Knowledge Base RandAugment

RandAugment is a dramatically simplified data augmentation strategy that achieves state-of-the-art results by randomly selecting N transformations from a pool and applying each with a fixed magnitude M — replacing AutoAugment's expensive 5,000-GPU-hour search with just two tunable hyperparameters that can be optimized with a simple grid search, making automated augmentation accessible to any practitioner without massive computational resources.

What Is RandAugment?

How RandAugment Works

StepProcessExample
1. Define pool of K transforms14 standard transformsRotate, Shear, Translate, Brightness, etc.
2. For each training imageRandomly select N transforms from the poolN=2: select Rotate and Contrast
3. Apply each with magnitude MSame M for all selected transformsM=9: moderate-to-strong transforms
4. Feed augmented image to modelStandard training pipelineModel trains on varied augmentations

The Transform Pool (14 Operations)

OperationDescriptionMagnitude Example (M=9)
IdentityNo change
RotateRotate by angle±13.5°
ShearX/YShear horizontally/vertically0.3 shear factor
TranslateX/YShift pixels14 pixels
AutoContrastMaximize contrast— (binary)
EqualizeHistogram equalization— (binary)
SolarizeInvert pixels above thresholdThreshold 178
PosterizeReduce bits per color channel5 bits
BrightnessAdjust brightnessFactor 1.9
ContrastAdjust contrastFactor 1.9
ColorAdjust saturationFactor 1.9
SharpnessAdjust sharpnessFactor 1.9

Hyperparameter Tuning

HyperparameterTypical ValuesEffect
N (number of ops)1-3More ops = stronger augmentation
M (magnitude)5-15 (out of 30)Higher = more distortion

Typical grid: N ∈ {1, 2, 3} × M ∈ {5, 7, 9, 11, 13, 15} = 18 experiments.

RandAugment vs Alternatives

MethodSearch CostHyperparametersKey Advantage
Hand-designedHuman timeMany per-transform paramsDomain knowledge
AutoAugment5,000 GPU hoursPolicy per datasetOptimal (but expensive)
RandAugment~18 grid search runsJust N and MSimple, effective, practical
TrivialAugment0Zero hyperparametersEven simpler (1 random op)

Results

DatasetModelWithout AugRandAugmentAutoAugment
CIFAR-10WRN-28-103.87%2.70%2.68%
ImageNetResNet-5023.7%22.4%22.4%
SVHNWRN-28-21.88%1.36%1.30%

RandAugment matches AutoAugment within ~0.1% on all benchmarks — at a fraction of the computational cost.

RandAugment is the practical standard for automated data augmentation — proving that randomly selecting N operations at a fixed magnitude M rivals expensive learned policies, making strong augmentation accessible to any practitioner through a simple 2-parameter grid search instead of thousands of GPU hours.

randaugmentsimpleaugment

Explore 500+ Semiconductor & AI Topics

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