Learning Downstream Task by Selectively Capturing Complementary Knowledge from Multiple Self-supervisedly Learning Pretexts

Quan Feng, Qingyuan Wu, Jiayu Yao, Songcan Chen

TL;DR

This paper introduces a novel attention-based framework to adaptively extract and combine complementary task-relevant knowledge from multiple pre-trained self-supervised learning (SSL) models for downstream tasks. Backed by information theory, the approach avoids the "knowledge deficiency" of single-pretext transfer and the noise of naive feature aggregation, significantly boosting downstream performance—especially when labeled data is scarce.

What Problem Does This Paper Address?

Self-supervised learning (SSL) typically operates in a two-stage pipeline: first, an encoder learns representations from unlabeled data using an unsupervised "pretext" task (like predicting rotation angles or solving jigsaw puzzles); second, these representations are transferred to a labeled downstream task (like classification or object detection).

Because these two stages are decoupled, the learned features are completely agnostic to the downstream task, creating a significant semantic gap. Current transfer strategies usually try to select the single "best-matching" pretext model or blindly aggregate features from multiple models. However, a single pretext rarely captures all the nuances needed for a new task (leading to knowledge deficiency), while blind aggregation introduces excessive task-irrelevant noise that degrades performance. This paper addresses how to selectively and adaptively "squeeze out" only the useful, complementary knowledge from a bank of diverse pre-trained SSL models.

The standard two-stage self-supervised learning pipeline.

Methods

The authors propose an attention-based framework that sits on top of a "representation bank" generated by $N$ fixed, pre-trained SSL encoders. The architecture relies on two primary attention mechanisms:

  1. Self-Attention Block (SAB): This block operates within each individual pretext's representation to highlight task-related features and suppress internal pretext-specific noise.
  2. Cross-Attention Block (CAB): This block measures similarities and aggregates complementary knowledge across the different pretext representations.

During the downstream training stage, an input image is passed through the multiple fixed, pre-trained encoders. The resulting feature vectors are processed sequentially by the SABs and CABs, fused together via addition, and finally passed to a fully-connected layer to output predictions for the downstream task.

The proposed framework uses Self-Attention Blocks (SAB) followed by Cross-Attention Blocks (CAB) to adaptively fuse representations from multiple pre-trained encoders.

Datasets

  • Pretext Training: CIFAR-10, CIFAR-100, SVHN, and TinyImagenet (all trained using the MoCo.v2 self-supervised algorithm).
  • Downstream Evaluation: CIFAR-10, CIFAR-100, SVHN, and Chars74k (specifically the EnglishImg subset consisting of 62 classes of letters and numbers).

Key Insights and Ideas

  • The Power of Diversity: Using information theory (specifically the Data Processing Inequality), the authors mathematically prove that an ideal representation aggregated from multiple diverse pretexts contains more mutual information relevant to the downstream task than any single best-matching pretext model.
  • Complementarity vs. Noise: Different pretexts capture different semantic properties of the data. The goal shouldn't be to find a perfect match, but to capture the unique task-specific insights each pretext offers while discarding the irrelevant background noise.
  • Order Matters: Through ablation studies, the authors discovered that applying self-attention before cross-attention (SA2CA) yields the best results. Cleaning up individual features internally first makes cross-pretext alignment significantly more effective.

Key Results

  • Multi-Pretext > Single Pretext: Squeezing features from a combination of models consistently beat transferring from a single model. For example, on downstream CIFAR-10 classification, combining CIFAR-100 and TinyImagenet pretexts achieved 85.28% accuracy, outperforming the single best pretext models.
  • Smart Fusion > Blind Fusion: The proposed attention mechanism significantly outperformed naive aggregation methods like simple addition or concatenation. On CIFAR-10, the proposed method achieved 86.08% accuracy compared to 83.60% for concatenation.
  • Robustness with Limited Data: When only 10% of downstream labeled data was available, the method showed massive gains over standard supervised baselines. For instance, on 10% CIFAR-10 data, the method achieved 81.62% accuracy versus the supervised baseline's 63.46%.
  • Better Object Localization: Grad-CAM visualizations demonstrated that the multi-pretext attention model focuses accurately on target objects rather than getting distracted by irrelevant background elements.
Grad-CAM visualizations showing that combining multiple pretexts (row 4) yields much more precise object localization than supervised or single-pretext models.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@misc{feng2022learning,
  author = {Quan Feng and Qingyuan Wu and Jiayu Yao and Songcan Chen},
  title = {{Learning Downstream Task by Selectively Capturing Complementary Knowledge from Multiple Self-supervisedly Learning Pretexts}},
  year = {2022},
  eprint = {2204.05248},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.05248},
}
Figure