Deep Augmentation: Dropout as Augmentation for Self-Supervised Learning

Rickard Brüel Gabrielsson, Tongzhou Wang, Manel Baradad, Justin Solomon

Abstract

Despite dropout’s ubiquity in machine learning, its effectiveness as a form of data augmentation remains under-explored. We address two key questions: (i) When is dropout effective as an augmentation strategy? (ii) Is dropout uniquely effective under these conditions? To explore these questions, we propose Deep Augmentation, a network- and modality-agnostic method that applies dropout or PCA transformations to targeted layers in neural networks. Through extensive experiments on contrastive learning tasks in NLP, computer vision, and graph learning, we find that uniformly applying dropout across layers does not consistently improve performance. Instead, dropout proves most beneficial in deeper layers and can be matched by alternative augmentations (e.g., PCA). We also show that a stop-gradient operation is critical for ensuring dropout functions effectively as an augmentation, and that performance trends invert when moving from contrastive tasks to supervised tasks. Our analysis suggests that Deep Augmentation helps mitigate inter-layer co-adaptation—a notable issue in self-supervised learning due to the absence of labeled data. Drawing on these insights, we outline a procedure for selecting the optimal augmentation layer and demonstrate that Deep Augmentation can outperform traditional input-level augmentations. This simple yet powerful approach can be seamlessly integrated into a wide range of architectures and modalities, yielding notable gains in both performance and generalization.

Introduction

In self-supervised learning (SSL), particularly contrastive learning, models learn robust representations by recognizing that different "views" of the same data point should have similar embeddings. Traditionally, creating these views requires domain-specific expertise to design input-level augmentations, such as cropping for images or word deletion for text. This reliance on domain knowledge limits the flexibility of SSL across diverse modalities.

This paper introduces Deep Augmentation, a method that moves augmentation from the input level to the internal layers of a neural network. By applying stochastic transformations to hidden activations, Deep Augmentation provides a universal, modality-agnostic tool for enhancing SSL performance.

Methodology

Deep Augmentation applies transformations directly to the hidden activations of a network. Unlike standard dropout, which is often applied uniformly for regularization, Deep Augmentation targets specific layers to serve as a form of data augmentation.

Comparison between standard input-level augmentation (left) and Deep Augmentation applied at an internal layer (right).

The method incorporates several critical design elements:

  • Layer-Targeted Transformations: The authors find that applying augmentations (like dropout or PCA-based component removal) to deeper layers is significantly more effective than uniform application.
  • Stop-Gradient Operation: To prevent earlier layers from learning to "undo" the injected noise, a stop-gradient operation is placed at the augmentation point. This forces the subsequent layers to develop invariance to the transformation.
  • Partial Batch Sampling: Augmentation is applied to only 50% of a mini-batch, maintaining a stable training signal while introducing necessary variance.

Experimental Setup

The researchers evaluated Deep Augmentation across three distinct domains:

  • Natural Language Processing (NLP): Models were pre-trained on English Wikipedia and evaluated on seven Semantic Textual Similarity (STS) tasks.
  • Computer Vision: Experiments were conducted on CIFAR-10, CIFAR-100, and a subset of ImageNet.
  • Graph Learning: The method was tested on social and biological networks, including COLLAB and PROTEINS.

Results and Analysis

Experimental results demonstrate that the location of the augmentation is more important than the specific type of transformation used. Both dropout and PCA yielded similar performance gains when applied to the correct layers.

Performance on STS-B across different layers using (a) Dropout and (b) PCA as augmentations, demonstrating the necessity of the stop-gradient operation.

Key insights from the analysis include:

  • The Role of the Stop-Gradient: As illustrated in the layer-wise performance analysis above, the inclusion of a stop-gradient operation is essential. Without it, performance in deeper layers drops significantly as the network learns to bypass the noise.
  • Performance Gains: Deep Augmentation consistently outperformed baselines. In NLP, it improved SimCSE's average STS score from 75.61 to 76.56. In Vision, it boosted SimCLR accuracy on CIFAR-100 by over 2%. In Graph tasks, it improved Micro-F1 scores on the COLLAB dataset.
  • Mitigating Co-adaptation: Using Centered Kernel Alignment (CKA), the authors showed that Deep Augmentation reduces inter-layer redundancy (co-adaptation), forcing the network to learn more distinct and robust features.
  • Computational Efficiency: By cutting off the backward pass for a portion of the network, the stop-gradient operation reduces memory usage by ~33% and compute time by ~37.5%.

Notably, the benefits of Deep Augmentation are specific to self-supervised tasks. In supervised learning, where labels provide strong guidance, the internal noise was found to be counterproductive, highlighting its unique value for label-free representation learning.

Conclusion

Deep Augmentation redefines dropout as a powerful, modality-agnostic augmentation tool for self-supervised learning. By targeting deep layers and utilizing a stop-gradient operation, it effectively breaks co-adaptation and improves generalization across NLP, Vision, and Graph domains. Future research will investigate multi-layer augmentation strategies and the potential for internal augmentations to replace domain-specific input noise entirely.

Summary updated

BibTeX
@article{gabrielsson2025deep,
  author = {Rickard Brüel Gabrielsson and Tongzhou Wang and Manel Baradad and Justin Solomon},
  title = {{Deep Augmentation: Dropout as Augmentation for Self-Supervised Learning}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=OjWB2671AR},
}
Figure