Mixup is a data augmentation technique that generates a weighted combination of random image pairs from the training data. Given two images and their ground truth labels: (x_i,y_i),(x_j,y_j), a synthetic training example (x^,y^) is generated as:
x^=λx_i+(1−λ)x_j
y^=λy_i+(1−λ)y_j
where λ∼Beta(α=0.2) is independently sampled for each augmented example.