[Paper Review] Adversarial Learning of General Transformations for Data Augmentation
This paper proposes an end-to-end differentiable data augmentation framework that learns general image transformations via a spatial transformer network (STN) and a U-Net-based encoder-decoder architecture, trained adversarially to generate diverse, class-preserving augmentations. The method outperforms both handcrafted augmentation and image generation-based approaches, achieving state-of-the-art accuracy on MNIST, Fashion-MNIST, SVHN, and CIFAR-10, especially in low-data regimes.
Data augmentation (DA) is fundamental against overfitting in large convolutional neural networks, especially with a limited training dataset. In images, DA is usually based on heuristic transformations, like geometric or color transformations. Instead of using predefined transformations, our work learns data augmentation directly from the training data by learning to transform images with an encoder-decoder architecture combined with a spatial transformer network. The transformed images still belong to the same class but are new, more complex samples for the classifier. Our experiments show that our approach is better than previous generative data augmentation methods, and comparable to predefined transformation methods when training an image classifier.
Motivation & Objective
- To address the limitations of heuristic data augmentation, which require domain-specific knowledge and are not adaptive to data distribution.
- To overcome the instability and poor performance of GAN-based data generation in low-data regimes by learning transformations instead of generating samples from scratch.
- To improve classifier generalization by jointly training the data augmentation generator and the classifier in an end-to-end, differentiable manner.
- To combine global affine transformations (via STN) and local pixel-wise distortions (via U-Net) for more robust and diverse data augmentation.
Proposed method
- The method uses a spatial transformer network (STN) to learn global affine transformations from a noise vector and input image, enabling differentiable spatial transformations.
- A U-Net-based encoder-decoder architecture learns local, non-rigid distortions such as color shifts and texture changes, operating on the latent representation of the input image.
- The generator is trained adversarially using two discriminators: a class discriminator ($D^C$) to ensure augmented samples remain in the same class, and a dissimilarity discriminator ($D^D$) to prevent identity or trivial transformations.
- An additional adversarial loss is introduced between the generator and the classifier to encourage the generation of hard, misclassified samples, improving classifier robustness.
- The entire system is trained end-to-end, jointly optimizing the generator, discriminators, and the classifier using backpropagation.
- The approach is applied to MNIST, Fashion-MNIST, SVHN, and CIFAR-10, with ablation studies validating component contributions.
Experimental results
Research questions
- RQ1Can adversarial learning of image transformations outperform traditional handcrafted data augmentation in terms of classifier accuracy?
- RQ2Does learning transformations rather than generating images from scratch lead to better performance, especially with limited training data?
- RQ3Is joint end-to-end training of the generator and classifier more effective than training them separately?
- RQ4Can combining global (affine) and local (pixel-wise) transformations via STN and U-Net yield superior data augmentation compared to using either alone?
- RQ5How effective is the use of dual discriminators (class and dissimilarity) in preventing trivial transformations and improving generalization?
Key findings
- The proposed method achieves a test accuracy of 80.5% on MNIST without any predefined data augmentation, surpassing the baseline classifier (66%) and outperforming both handcrafted and GAN-based augmentation methods.
- The combination of STN (for global transformations) and U-Net (for local distortions) yields the highest performance, with accuracy reaching 80.14% when both components are used.
- The use of both discriminators ($D^C$ and $D^D$) together boosts accuracy to 73.82%, significantly outperforming single-discriminator variants.
- Adding an adversarial loss between the generator and classifier further improves accuracy, demonstrating that generating hard, adversarial samples enhances model robustness.
- Ablation studies confirm that each component—STN, U-Net, dual discriminators, and joint training—is essential for optimal performance.
- The model learns dataset-specific transformations: e.g., zooming in on central digits in SVHN, applying color and contrast changes in CIFAR-10, and avoiding flips in MNIST and Fashion-MNIST.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.