Data Augmentation
Ways to transform training data: Mixup, CutMix, SpecAugment, and more.
AugMixAugMix is a data augmentation method that applies several random chains of transformations to the same image, mixes them with weights, mixes the result with the original image, and then minimizes the gap between predictions on the original and augmented images with a Jensen-Shannon divergence loss. It makes models robust to corruptions unseen during training, such as noise and blur, while keeping their confidence well calibrated.
AutoAugmentAutoAugment automatically searches for which data augmentations to apply and with what probability and magnitude (a policy), using reinforcement learning that tries thousands of candidates on a small model. The policies it finds lower error rates on CIFAR, SVHN, and ImageNet and transfer to other datasets.
Back-translationBack-translation is a data augmentation technique that creates new training data by translating sentences with a translation model. In machine translation it builds synthetic parallel data from target-language-only text; in classification and reading comprehension it produces paraphrases by translating through another language and back.
Copy-PasteCopy-Paste is a data augmentation technique that cuts objects out of one image along their exact shapes and pastes them onto another image to create new training images. Even pasting at random without regard to surrounding context improves instance segmentation accuracy and data efficiency, and also helps detect rare classes.
CutMixCutMix is a data augmentation method that replaces a rectangular region of an image with the same region of another image and mixes the ground-truth labels in proportion to the pasted area. It teaches the model to recognize objects from their parts without wasting pixels, and it outperforms Cutout and Mixup on image classification, object localization, and transfer to object detection.
CutoutCutout is a data augmentation method that fills a square at a random position in each training image with 0 while keeping the label unchanged. It forces the model to use cues from the whole image so that it can answer even when part of the image is hidden, and it lowers error rates on CIFAR and SVHN.
EDAEDA is a data augmentation technique that increases text classification training data with four simple operations on the words of a sentence: replacing words with synonyms, inserting synonyms, swapping two words, and deleting words. It needs neither a language model nor external data, and improves accuracy especially when training data is scarce.
Fast AutoAugmentFast AutoAugment searches for data augmentation policies of the same form as AutoAugment using Bayesian optimization, evaluating each policy simply by measuring a trained model's loss on images augmented with it. It cuts search time from thousands of GPU hours to a few GPU hours while achieving accuracy close to AutoAugment.
GridMaskGridMask is a data augmentation technique that, during training, fills a set of squares arranged at regular intervals in a grid with 0 and trains with the label unchanged. It rarely fails by erasing an object entirely or not at all, and improves accuracy on ImageNet, COCO, and Cityscapes.
MixSpeechMixSpeech is a data augmentation method for speech recognition that adds the acoustic features of two utterances with a weight and trains on a mix, with the same weight, of the losses against each of the two transcripts. It extends Mixup to transcripts of different lengths and reportedly achieves lower error rates than SpecAugment in low-resource speech recognition.
MixupMixup is a data augmentation method that trains on intermediate examples created by mixing the inputs and labels of two training examples in the same proportion. It needs only addition, improves generalization in classification of images, audio, and tabular data, and makes models more robust to incorrect labels and adversarial examples.
MosaicMosaic is a data augmentation method for object detection that stitches four training images in a 2 × 2 layout into a single training image. Each image then contains four scenes and more small objects, and in the YOLOv4 ablations it raised COCO AP the most among the improvements added individually.
Population Based Augmentation (PBA)Population Based Augmentation (PBA) searches for a "policy schedule" that changes the data augmentation policy every epoch while training child models with Population Based Training. It finds policies about as accurate as AutoAugment's with roughly 1/1,000 of the GPU hours.
RandAugmentRandAugment is a data augmentation method that randomly picks N of 14 image transformations each time and applies all of them at the same magnitude M. With only two values to tune, N and M, it needs no policy search; they are set directly on the target model, and the result matches or beats AutoAugment in accuracy.
Random ErasingRandom Erasing is a data augmentation method that fills the pixels of a rectangle, with randomly chosen size, aspect ratio, and position, in a training image with random values and trains on it with the label unchanged. It makes models robust to images where part of the object is hidden, and improves accuracy in image classification, object detection, and person re-identification.
SpecAugmentSpecAugment is a data augmentation method that trains speech recognition models by warping the input log mel spectrogram in time and masking consecutive frequency and time bands. Because it acts directly on the features like an image, it is lightweight, and it achieved the best word error rates at the time of publication on LibriSpeech and Switchboard.
Speed perturbationSpeed perturbation is a data augmentation method that makes copies of the training audio at 0.9× and 1.1× speed and trains speech recognition on three times the data, including the original. It is simple to implement and lowers word error rates on speech recognition tasks with 100 to 960 hours of data.
TrivialAugmentTrivialAugment is a data augmentation method that, for each image, picks one of 14 operations uniformly, picks its magnitude uniformly as well, and applies only that single operation. With no values to tune and no policy search, it matches or beats AutoAugment and RandAugment in accuracy.
