Enhancing Representations through Heterogeneous Self-Supervised Learning

Zhong-Yu Li, Bowen Yin, Shanghua Gao, Yongxiang Liu, Li Liu, Ming-Ming Cheng · DOI

Abstract

Incorporating heterogeneous representations from different architectures has facilitated various vision tasks, e.g., some hybrid networks combine transformers and convolutions. However, complementarity between such heterogeneous architectures has not been well exploited in self-supervised learning. Thus, we propose Heterogeneous Self-Supervised Learning (HSSL), which enforces a base model to learn from an auxiliary head whose architecture is heterogeneous from the base model. In this process, HSSL endows the base model with new characteristics in a representation learning way without structural changes. To comprehensively understand the HSSL, we conduct experiments on various heterogeneous pairs containing a base model and an auxiliary head. We discover that the representation quality of the base model moves up as their architecture discrepancy grows. This observation motivates us to propose a search strategy that quickly determines the most suitable auxiliary head for a specific base model to learn and several simple but effective methods to enlarge the model discrepancy. The HSSL is compatible with various self-supervised methods, achieving superior performances on various downstream tasks, including image classification, semantic segmentation, instance segmentation, and object detection. Our source code will be made publicly available.

Introduction

Self-supervised learning (SSL) has revolutionized representation learning by allowing models to learn from vast amounts of unlabeled data. Typically, these frameworks involve a student model learning from a teacher model of the same or similar architecture (e.g., a ViT student learning from a ViT teacher). While effective, this approach is inherently limited by the "architectural bias" of the chosen model. For instance, Vision Transformers (ViTs) excel at capturing global relationships but may overlook fine-grained local textures, whereas Convolutional Neural Networks (CNNs) possess strong local inductive biases but struggle with long-range dependencies.

Comparison between existing self-supervised methods and the proposed HSSL framework.

To address this, we propose Heterogeneous Self-Supervised Learning (HSSL). Instead of physically mixing different layers into a hybrid architecture—which requires complex manual design—HSSL introduces heterogeneity during the training phase. By forcing a base model to mimic an architecturally different auxiliary head, the base model acquires complementary characteristics without any changes to its final inference structure.

Methodology

The HSSL framework pairs a base model with an auxiliary head during pre-training.

Heterogeneous Supervision

Unlike standard SSL, HSSL utilizes heterogeneous supervision. The base model (e.g., a ViT) is trained to mimic the representations generated by an auxiliary head with a different architecture (e.g., a ConvNeXt-based head). This mimicry is enforced through a loss function that combines standard self-supervision with a representation alignment loss. This process effectively "distills" the unique strengths of the auxiliary architecture into the base model.

Quick Search Strategy

To identify the most effective auxiliary head for a given base model, we developed a label-free "Quick Search" strategy. Multiple candidate heads are trained in parallel on a small subset of data (e.g., 10%). We then measure the Kullback-Leibler (KL) divergence between the base model and the candidates. Our findings indicate that the head with the highest architectural discrepancy typically yields the greatest performance gains.

Maximizing Discrepancy

To further enhance the learning signal, we propose methods to maximize this discrepancy, such as deepening the auxiliary head and removing initial shortcut connections. These modifications prevent the base model's features from "leaking" directly into the auxiliary output, forcing the head to develop more distinct, complementary representations.

Experimental Setup

We evaluated HSSL across several standard benchmarks:

  • ImageNet-1K: Primary dataset for classification and pre-training.
  • ImageNet-S300: A subset used for efficient ablation and search experiments.
  • ADE20K & COCO: Used to evaluate semantic segmentation, object detection, and instance segmentation.
  • CIFAR-100 & iNaturalist: Used to test representation transferability.

Results and Analysis

Our experiments reveal a strong positive correlation between the architectural discrepancy of the auxiliary head and the performance improvement of the base model.

Correlation between architectural discrepancy and performance improvement across various auxiliary head architectures.

As shown in the figure above, as the discrepancy increases, the Top-1 accuracy improvement on ImageNet also rises. This confirms that the base model benefits most from learning features it naturally lacks. For example, a ViT base model gains significantly more from a CNN-based head than from another Transformer-based head.

Performance Benchmarks

  • ImageNet Classification: A ViT-B/16 trained with HSSL achieved 84.1% Top-1 accuracy, surpassing the state-of-the-art iBOT (83.3%) while requiring fewer training epochs (600 vs. 1600).
  • Downstream Tasks: HSSL consistently improved performance across tasks. On ADE20K, it boosted iBOT's mIoU from 50.0 to 50.3. On COCO, it improved Mask AP from 43.2 to 44.0.
  • Efficiency: Despite adding an auxiliary head, the serial connection in HSSL adds only ~9% to training time and ~12% to memory usage, making it a highly efficient "booster" for existing SSL methods like MoCo, DINO, and MAE.

Conclusion

Heterogeneous Self-Supervised Learning (HSSL) provides a powerful yet simple way to enhance model representations by leveraging architectural complementarity. By maximizing discrepancy during training, base models can acquire "missing" characteristics without structural overhead at inference. While the search for optimal heads adds some initial cost, the significant gains in accuracy and transferability across vision tasks demonstrate the potential of architecture-aware self-supervision. Future work will focus on automating the search process and exploring even more diverse auxiliary structures.

Summary updated

BibTeX
@article{li2023enhancing,
  author = {Zhong-Yu Li and Bowen Yin and Shanghua Gao and Yongxiang Liu and Li Liu and Ming-Ming Cheng},
  title = {{Enhancing Representations through Heterogeneous Self-Supervised Learning}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  doi = {10.1109/tpami.2025.3558989},
}
Figure