Skip to main content
QUICK REVIEW

[Paper Review] Towards Domain-Agnostic Contrastive Learning

Vikas Verma, Minh-Thang Luong|arXiv (Cornell University)|Nov 9, 2020
Domain Adaptation and Few-Shot LearningComputer Science73 references9 citations
TL;DR

This paper proposes Domain-Agnostic Contrastive Learning (DACL), a method that uses Mixup-based noise to generate positive and negative samples for contrastive learning without relying on domain-specific data augmentations. By mixing data at input or hidden states using linear, geometric, or binary Mixup, DACL achieves state-of-the-art performance across tabular, image, and graph data, outperforming Gaussian-noise baselines and effectively combining with domain-specific methods like SimCLR.

ABSTRACT

Despite recent success, most contrastive self-supervised learning methods are domain-specific, relying heavily on data augmentation techniques that require knowledge about a particular domain, such as image cropping and rotation. To overcome such limitation, we propose a novel domain-agnostic approach to contrastive learning, named DACL, that is applicable to domains where invariances, and thus, data augmentation techniques, are not readily available. Key to our approach is the use of Mixup noise to create similar and dissimilar examples by mixing data samples differently either at the input or hidden-state levels. To demonstrate the effectiveness of DACL, we conduct experiments across various domains such as tabular data, images, and graphs. Our results show that DACL not only outperforms other domain-agnostic noising methods, such as Gaussian-noise, but also combines well with domain-specific methods, such as SimCLR, to improve self-supervised visual representation learning. Finally, we theoretically analyze our method and show advantages over the Gaussian-noise based contrastive learning approach.

Motivation & Objective

  • To address the limitation of contrastive self-supervised learning methods that require domain-specific data augmentations such as cropping or rotation.
  • To develop a general-purpose, domain-agnostic method for creating semantically similar (positive) and dissimilar (negative) samples in contrastive learning.
  • To theoretically justify why Mixup-noise generalizes better than Gaussian-noise in self-supervised representation learning.
  • To demonstrate the effectiveness of DACL across diverse data modalities, including tabular, image, and graph data.
  • To show that DACL complements domain-specific augmentations, improving performance when combined with methods like SimCLR.

Proposed method

  • DACL uses Mixup noise to generate positive samples by mixing a given sample with a random sample at either the input or hidden state level.
  • Three Mixup variants are explored: Linear-Mixup (Eq. 3), Geometric-Mixup (Eq. 5), and Binary-Mixup (Eq. 6), each defining different mixing strategies.
  • The method constructs positive pairs by ensuring the mixed sample is closer to the anchor than a random negative sample, satisfying the contrastive objective: sim(h_anchor, h_mix) > sim(h_anchor, h_neg).
  • For non-Euclidean data like graphs, Mixup is applied in the hidden representation space to preserve structural information.
  • The approach is theoretically analyzed, showing better generalization bounds for Mixup-noise compared to Gaussian-noise via Rademacher complexity and margin analysis.
  • DACL is integrated with domain-specific methods such as SimCLR by replacing their data augmentation with Mixup-noise, enabling complementary performance gains.

Experimental results

Research questions

  • RQ1Can Mixup-noise serve as a domain-agnostic alternative to task-specific data augmentations in contrastive self-supervised learning?
  • RQ2Does Mixup-noise lead to better generalization than Gaussian-noise in self-supervised representation learning?
  • RQ3How does DACL perform across diverse data modalities such as tabular, image, and graph data?
  • RQ4Can DACL be effectively combined with domain-specific augmentations like those in SimCLR to further improve performance?
  • RQ5What are the optimal hyperparameters for Mixup-noise in different data settings?

Key findings

  • DACL outperforms Gaussian-noise-based contrastive learning across all evaluated domains, including tabular, image, and graph data.
  • On Fashion-MNIST, DACL achieves a linear evaluation accuracy of 93.4%, surpassing the Gaussian-noise baseline of 91.8%.
  • On CIFAR-10, DACL achieves 87.2% linear accuracy, outperforming the Gaussian-noise baseline of 85.1% and improving SimCLR by 1.3% when combined.
  • On CIFAR-100, DACL improves linear accuracy to 68.9%, exceeding the Gaussian-noise baseline of 66.7% and enhancing SimCLR by 1.1%.
  • On ImageNet, DACL combined with SimCLR achieves 74.1% top-1 accuracy, a 1.2% improvement over SimCLR alone, demonstrating strong generalization and complementarity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.