Abstract
Contrastive learning methods have been applied to a range of domains and modalities by training models to identify similar "views" of data points. However, specialized scientific modalities pose a challenge for this paradigm, as identifying good views for each scientific instrument is complex and time-intensive. In this paper, we focus on applying contrastive learning approaches to a variety of remote sensing datasets. We show that Viewmaker networks, a recently proposed method for generating views, are promising for producing views in this setting without requiring extensive domain knowledge and trial and error. We apply Viewmaker to four multispectral imaging problems, each with a different format, finding that Viewmaker can outperform cropping- and reflection-based methods for contrastive learning in every case when evaluated on downstream classification tasks. This provides additional evidence that domain-agnostic methods can empower contrastive learning to scale to real-world scientific domains.
Introduction
Contrastive learning has significantly advanced self-supervised representation learning by training models to recognize different "views" of the same data point. While effective for natural RGB images where augmentations like cropping and color jittering are intuitive, scientific modalities—such as multispectral satellite imagery—present a unique challenge. These datasets often contain dozens of bands (e.g., infrared, radar) with varying physical properties, making manual design of effective data augmentations a labor-intensive process of trial and error. This paper explores the use of generative "Viewmaker" networks to automatically learn these augmentations across diverse remote sensing instruments.
Methods
The core approach involves using generative models to produce perturbations, or "deltas," that are added to input images to create new views.
Viewmaker (Adversarial)
The Viewmaker network is a generative model trained in an adversarial framework. It plays a min-max game where the generator attempts to create challenging views that maximize the encoder's loss, while the encoder learns robust representations that minimize this loss. This forces the encoder to focus on invariant semantic features.
Divmaker (Diversity-focused)
As a simpler alternative, the authors propose Divmaker. Instead of adversarial training, Divmaker optimizes for diversity. Its loss function encourages generated views to remain semantically similar to the original input while being as distinct from one another as possible. This avoids the instabilities of adversarial optimization and does not require a differentiable encoder during view generation.
Experimental Setup
The methods were evaluated on four large-scale satellite datasets:
- EuroSAT: 13 spectral bands for land use classification.
- So2Sat LCZ42: Combined Sentinel-1 (radar) and Sentinel-2 (multispectral) data.
- BigEarthNet: A multi-label dataset of over 590,000 Sentinel-2 patches.
- NWPU-RESISC45: A standard RGB satellite dataset used as a baseline for human-designed augmentations.
Results and Discussion
The study reveals several key insights:
- Superiority in Multispectral Domains: In nearly all multispectral and radar tasks, learned views (Viewmaker/Divmaker) outperformed "expert" hand-designed augmentations like cropping and flipping. For instance, on So2Sat (Sentinel-1), Viewmaker achieved 38.25% accuracy compared to the expert baseline of 29.33%.
- The RGB Intuition Gap: On the RGB-only NWPU-RESISC45 dataset, expert-designed views remained superior. This suggests that while human intuition is well-tuned for visible light, it fails to generalize to abstract scientific data.
- Diversity as a Proxy for Difficulty: Divmaker's performance was competitive with the adversarial Viewmaker, suggesting that maximizing view diversity is a powerful and simpler alternative to adversarial training for driving contrastive learning.
- Hyperparameter Sensitivity: The "distortion budget"—the maximum allowed magnitude of the delta—is the most critical hyperparameter. An optimal budget preserves semantic content while providing enough variation for the model to learn.
Conclusion
This work demonstrates that domain-agnostic generative models can effectively automate the discovery of data augmentations for complex scientific modalities. By outperforming hand-designed methods on multispectral data, Viewmaker and Divmaker offer a scalable path for applying self-supervised learning to critical real-world domains like climate monitoring and urban planning. Future research will explore these methods on non-image scientific data where human intuition is even more limited.
Summary updated