Abstract
Recent methods for self-supervised learning can be grouped into two paradigms: contrastive and non-contrastive approaches. Their success can largely be attributed to data augmentation pipelines which generate multiple views of a single input that preserve the underlying semantics. In this work, we introduce augmentation-augmented stochastic autoencoders (AASAE), yet another alternative to self-supervised learning, based on autoencoding. We derive AASAE starting from the conventional variational autoencoder (VAE), by replacing the KL divergence regularization, which is agnostic to the input domain, with data augmentations that explicitly encourage the internal representations to encode domain-specific invariances and equivariances. We empirically evaluate the proposed AASAE on image classification, similar to how recent contrastive and non-contrastive learning algorithms have been evaluated. Our experiments confirm the effectiveness of data augmentation as a replacement for KL divergence regularization. The AASAE outperforms the VAE by 30% on CIFAR-10, 40% on STL-10 and 45% on Imagenet. On CIFAR-10 and STL-10, the results for AASAE are largely comparable to the state-of-the-art algorithms for self-supervised learning.
Introduction
Self-supervised learning (SSL) has revolutionized representation learning by enabling models to extract features from vast amounts of unlabeled data. Currently, the landscape is dominated by two paradigms: contrastive learning, which relies on distinguishing positive pairs from negative samples, and non-contrastive learning, which utilizes batch-level statistics to prevent representation collapse.
However, both approaches present significant challenges. Contrastive methods are highly sensitive to the choice of negative samples, while non-contrastive methods often necessitate massive minibatches to ensure stable statistical estimation. In this paper, we revisit a third paradigm—Autoencoding—and introduce Augmentation-Augmented Stochastic Autoencoders (AASAE). AASAE breathes new life into autoencoders by replacing standard, domain-agnostic regularization with domain-specific data augmentations, achieving performance comparable to state-of-the-art contrastive methods while maintaining robustness to hyperparameters like batch size.
Methods
The core innovation of AASAE lies in its modification of the standard Variational Autoencoder (VAE) architecture. Traditional VAEs use KL-divergence regularization to force the latent space toward a prior distribution. This regularization is "domain-agnostic," treating all data types identically and often failing to capture the semantic invariances crucial for tasks like image recognition.
AASAE addresses this by:
- Removing KL-Divergence: The standard penalty that forces the latent space to look like a Normal distribution is eliminated.
- Augmentation-Based Denoising: Instead of encoding the original image $x$, the model receives an augmented version $x^+$ (e.g., via random cropping, flipping, or color distortion).
- Reconstruction Target: The decoder is tasked with reconstructing the original image $x$ from the latent representation $z$ derived from the augmented view $x^+$.
By forcing the model to reconstruct the pristine original from a distorted input, the encoder is pressured to ignore augmentation-induced "noise" and focus on underlying semantic features. Crucially, AASAE's loss function is decomposable, meaning it operates on individual examples without requiring negative samples or large batches.
Experimental Setup
We evaluated AASAE across several standard computer vision benchmarks to assess its representation learning capabilities:
- CIFAR-10: 32x32 images across 10 classes.
- STL-10: 96x96 images designed for unsupervised learning.
- ImageNet: The standard large-scale benchmark with 1.2 million images.
- Transfer Tasks: Places205 and VOC07+12 were used to test the generalizability of learned features for scene classification and object detection.
Key Results
The empirical results demonstrate that data augmentation is a highly effective replacement for KL-divergence regularization. AASAE achieves massive gains over traditional autoencoders, outperforming the baseline VAE by 30% on CIFAR-10, 40% on STL-10, and 45% on ImageNet.
As shown in the results table, AASAE (87.14% on CIFAR-10; 84.72% on STL-10) reaches performance levels comparable to top-tier SSL algorithms like SimCLR and AMDIM on smaller datasets. On ImageNet, AASAE (51.0%) significantly outperforms older pretext tasks such as Jigsaw or Colorization, although a gap remains between it and the absolute state-of-the-art non-contrastive methods like SwAV or BYOL.
Key Insights
- Local vs. Global Packing: While standard VAEs attempt to pack data "globally" into a pre-defined prior shape, AASAE employs "local packing." Here, augmentations define a neighborhood around each data point, forcing the model to learn the intrinsic geometry of the data domain.
- Robustness to Hyperparameters: Unlike contrastive methods, AASAE is remarkably stable across different batch sizes. Performance remains nearly identical whether the batch size is 128 or 1024, offering a significant advantage for researchers with limited computational resources.
- The "Illusion" of Overfitting: Interestingly, the decoder can become exceptionally good at reconstructing specific training images (traditional "overfitting") without degrading the quality of the encoder's representations. This suggests that training can continue as long as the budget allows.
Limitations and Future Work
Despite its success, AASAE faces challenges. The performance gap on full-scale ImageNet compared to the best contrastive models suggests room for further refinement in scaling reconstruction-based objectives. Additionally, transfer results for object detection (VOC07) were less competitive, indicating that pure reconstruction might not capture the precise spatial localization required for such tasks. Future research could explore reconciling this approach with formal information theory, as removing the KL term means the loss is no longer a strict Evidence Lower Bound (ELBO).
Summary updated