DATA: Domain-Aware and Task-Aware Self-supervised Learning

Qing Chang, Junran Peng, Lingxi Xie, Jiajun Sun, Haoran Yin, Qi Tian, Zhaoxiang Zhang

Introduction

Self-supervised learning (SSL) has fundamentally changed the landscape of computer vision by enabling models to learn robust feature representations from vast quantities of unlabeled data. Despite this success, the current paradigm relies heavily on a "one-size-fits-all" approach, typically employing standard architectures like ResNet-50 regardless of the downstream application. This approach is often suboptimal; a model intended for a high-performance cloud server should differ significantly from one deployed on a resource-constrained mobile device. Furthermore, the architectural requirements for image classification differ from those for dense prediction tasks like object detection or semantic segmentation.

While Neural Architecture Search (NAS) offers a potential solution for finding task-specific architectures, traditional NAS requires labeled data to evaluate and rank candidate models. To bridge this gap, we present DATA (Domain-Aware and Task-Aware), a framework that integrates the efficiency of NAS with the label-free nature of SSL. DATA allows for the discovery of optimal architectures for specific tasks and hardware constraints without requiring a single human-provided label.

The DATA Framework

DATA operates through a two-stage process: training a weight-sharing supernet and performing label-free model selection.

1. Self-supervised Supernet Training

Instead of training a single static model, DATA trains a supernet—a massive network containing millions of potential sub-networks (subnets) through weight sharing. The training utilizes a Siamese (twin) network setup based on MoCo v2. To ensure stability and high-quality feature learning across all subnets, the framework employs a "supernet distillation" strategy. The "teacher" branch is fixed to the largest possible architecture within the supernet, while the "student" branch samples various smaller subnets. This ensures that even the smallest subnets are incentivized to represent features as effectively as the largest model.

2. Label-Free Model Selection

To identify the best subnet for a specific task without labels, DATA introduces a proxy metric: Feature Distance. Operating on the assumption that larger models generally provide superior representations in SSL, the framework identifies the optimal subnet by measuring which architecture's features most closely align with those of the largest "teacher" model. This similarity serves as a reliable predictor of downstream performance, effectively replacing the need for accuracy scores during the search phase.

3. Domain and Task Awareness

DATA enhances model specialization through two key mechanisms:

  • Domain-Awareness: The architectural search is performed directly on the target downstream dataset (e.g., searching on medical imagery for a medical task). This minimizes the domain gap between pre-training and deployment.
  • Task-Awareness: Feature similarity is measured using the specific layers relevant to the target task. For classification, the search focuses on global features; for detection, it evaluates the multi-scale features (C2-C5) typically utilized by Feature Pyramid Networks (FPN).

Experimental Results

The DATA framework was evaluated across a diverse range of benchmarks, including ImageNet-1K, COCO, PASCAL VOC, Cityscapes, and the 19-task VTAB benchmark.

Efficiency and Classification

A single DATA supernet provides optimized models across a wide computational spectrum (1G to 8G FLOPs). On ImageNet linear evaluation, a searched model in the 3G-4G FLOP range achieved 68.5% accuracy, outperforming the standard ResNet-50 baseline (67.5%) by 1.0%. The benefits are even more pronounced in low-data regimes; in a semi-supervised setting with only 1% of ImageNet labels, DATA-searched models provided a +7.6% boost over the standard MoCo v2 baseline.

Downstream Task Performance

DATA demonstrates significant gains in dense prediction tasks:

  • Object Detection: On the COCO dataset, the searched 4 GFLOP model outperformed the ResNet-50 baseline by 1.2 AP.
  • Semantic Segmentation: On Cityscapes, the framework improved the baseline by 1.0 mIoU.

Key Insights

  • The Teacher as a North Star: Fixing the teacher branch to the maximum architecture provides a stable knowledge source, preventing smaller subnets from diverging and ensuring they converge toward high-quality representations.
  • Orthogonality: DATA is not a standalone SSL algorithm but a framework. It is compatible with various SSL methods, including MoCo v2, BYOL, ReSSL, and DenseCL, making it a versatile "plug-and-play" upgrade for existing workflows.

Limitations and Future Work

While DATA represents a significant step forward, certain challenges remain. The authors noted "imbalanced training," where subnets very close in size to the teacher do not see as much relative improvement because the teacher is not significantly more knowledgeable than its near-peers. Additionally, while the search is label-free, the initial training of a supernet requires substantial GPU resources. Future research may expand the search space beyond ResNet-style architectures to include Vision Transformers (ViTs) and more diverse operator sets.

Summary updated

BibTeX
@inproceedings{chang2022data,
  author = {Qing Chang and Junran Peng and Lingxi Xie and Jiajun Sun and Haoran Yin and Qi Tian and Zhaoxiang Zhang},
  title = {{DATA: Domain-Aware and Task-Aware Self-supervised Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure