Extending and Analyzing Self-supervised Learning Across Domains

Bram Wallace, Bharath Hariharan

Self-supervised representation learning (SSRL) has demonstrated remarkable success on standard benchmarks like ImageNet, often rivaling supervised learning in its ability to extract useful features. However, a critical question remains: does this success translate to specialized domains such as medical histology, satellite imagery, or symbolic characters? Researchers from Cornell University provide a comprehensive "reality check," benchmarking classic SSL methods across 16 diverse datasets to understand the limits of domain transfer and the underlying reasons for their success or failure.

The Challenge of Domain Diversity

Most SSL research is conducted within the "internet imagery" bubble, characterized by well-framed objects with consistent orientations and clear semantic categories. In contrast, fields that could benefit most from SSL—such as medicine and remote sensing—often deal with data that has vastly different visual properties and limited label availability.

To investigate the generalizability of SSL, the authors categorized 16 datasets into four distinct groups: Internet Objects (e.g., CIFAR100, birds), Symbolic (e.g., alphabets, house numbers), Scenes & Textures (e.g., satellite imagery, textures), and Biological (e.g., histology, skin lesions).

Sample images from the 16 datasets across four categories: Internet Objects (blue), Symbolic (grey), Scenes & Textures (red), and Biological (green).

Benchmarking Pretext Tasks

The study evaluates four foundational self-supervised pretext tasks using a ResNet-26 architecture at a $64 \times 64$ resolution:

  1. Rotation: Predicting whether an image has been rotated by 0, 90, 180, or 270 degrees.
  2. Jigsaw: Reassembling a shuffled 3x3 grid of image patches.
  3. Instance Discrimination (ID): Treating every individual image as its own class and learning to distinguish them, a precursor to modern contrastive methods.
  4. Autoencoders: Reconstructing the input image from a compressed bottleneck representation.

To analyze the quality of the learned representations, the authors employed linear probing, training a simple linear classifier on top of frozen features. They also utilized diagnostic experiments like pretext generalization—testing if a model can solve a pretext task on unseen classes—and implicit dimensionality analysis using PCA to measure feature space utilization.

Key Findings: Domain Dependence and Semantic Learning

The results reveal that SSL performance is highly sensitive to the underlying data domain, challenging the notion of a "one-size-fits-all" pretext task.

Test accuracy of various SSL methods across 16 datasets. Rotation performs well on internet and symbolic data but fails in biological domains where orientation is arbitrary.

The Orientation Trap

Rotation emerged as a powerful pretext task for internet and symbolic images. The authors argue this is because identifying the "correct" orientation requires a high-level semantic understanding of the object (e.g., knowing a car's wheels belong on the bottom). However, Rotation fails catastrophically in biological domains, such as histology or microscopy, where images lack a "natural" top or bottom. In these rotationally invariant domains, Instance Discrimination often becomes the superior method.

Jigsaw and Low-Level Shortcuts

While Jigsaw performs reasonably well across several domains, diagnostic tests suggest it often "cheats" by exploiting low-level cues like edge alignment or chromatic aberration rather than learning true semantics. This is evidenced by high pretext generalization even when the model fails to learn useful downstream features.

The Fine-Grained Failure and Label Scarcity

SSL methods frequently struggle with fine-grained classification, such as distinguishing between specific bird species. The authors hypothesize that pretext tasks often encourage the model to be invariant to subtle details like color or texture to solve the puzzle. Unfortunately, these discarded "nuisance" variables are often the exact features required for specialized downstream classification.

Despite these challenges, SSL shows significant promise in label-scarce scenarios. When only 10% of labels are available, SSL combined with a linear head often outperformed training a fully supervised model from scratch, particularly in medical (ISIC) and satellite (UC Merced) domains.

Conclusion

Current SSL pretexts may be "too invariant," accidentally throwing away vital signals for specialized domains. The study highlights the need for domain-specific pretexts that respect the inherent symmetries of the data and fine-grained preservation techniques to ensure that critical color and texture information is not lost. As SSL moves beyond internet imagery, understanding these domain-specific nuances will be essential for its successful application in scientific and medical fields.

Summary updated

BibTeX
@inproceedings{wallace2020extending,
  author = {Bram Wallace and Bharath Hariharan},
  title = {{Extending and Analyzing Self-supervised Learning Across Domains}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58574-7\_43},
}
Figure