Enhancing Representations through Heterogeneous Self-Supervised Learning

Zhong-Yu Li, Bo-Wen Yin, Yongxiang Liu, Li Liu, Ming-Ming Cheng

TL;DR

Heterogeneous Self-Supervised Learning (HSSL) enhances vision models by forcing them to learn from an auxiliary head with a completely different architecture during pre-training (e.g., a Vision Transformer learning from a Convolutional head). This transfers complementary architectural traits—like local inductive biases or global context—purely through representation learning. Once training is complete, the auxiliary head is discarded, leaving a boosted base model with zero structural changes or inference overhead.

What Problem Does This Paper Address?

In computer vision, different neural network architectures have distinct "superpowers." Convolutional Neural Networks (CNNs) excel at capturing local textures and patterns due to their localized receptive fields, while Vision Transformers (ViTs) are masters of global context thanks to self-attention.

While combining these architectures into hybrid networks yields excellent results, it requires modifying the model structure, which complicates deployment and optimization. Standard self-supervised learning (SSL) frameworks typically rely on homogeneous self-supervision, where a model essentially supervises itself, as shown in Figure 1a. This means a ViT only refines its transformer-like traits, remaining blind to the useful local inductive biases a CNN might offer.

The authors ask: Can we endow a model with the strengths of an entirely different architecture purely through representation learning, without changing its physical structure?

Existing methods vs. HSSL

Methods

The authors introduce Heterogeneous Self-Supervised Learning (HSSL). During the pre-training phase, an auxiliary head with a heterogeneous architecture is appended to the base model.

As illustrated in Figure 2, the training pipeline works as follows:

  1. Two different augmented views of an image ($x_1, x_2$) are passed through the base models ($f_1, f_2$) to generate base representations ($z^b_1, z^b_2$).
  2. These representations are then fed into the auxiliary heads ($h_1, h_2$) to output heterogeneous representations ($z^h_1, z^h_2$).
  3. The total loss function forces the base model to mimic the representations of the auxiliary head, effectively transferring the head's unique architectural characteristics to the base model.
Fig. 2. Our HSSL framework. The architectures of the base model and the auxiliary head are heterogeneous. The representations extracted by the auxiliary head supervise the two networks simultaneously. The base model and the auxiliary head can be arbitrary architectures, such as ViT [109], Swin [12], ConvNext [110], ResNet [111], ResMLP [112], and PoolFormer [113].

Because the auxiliary head is only a few layers deep and connected serially, the extra computational overhead during training is negligible. After pre-training, the auxiliary head is completely removed.

Advanced Strategies

To maximize the impact of HSSL, the authors introduced three techniques to enlarge the model discrepancy:

  • Cooperation of Multiple Heads: Using multiple distinct auxiliary architectures (e.g., ConvNeXt + ResMLP) simultaneously.
  • Deepening the Head: Stacking more blocks in the auxiliary head to learn more distinct features.
  • Removing the First Shortcut: Eliminating the residual connection in the first layer of the auxiliary head prevents the base model's features from leaking directly through, forcing the head to generate highly distinct representations.

They also developed a Quick Search Strategy to find the optimal auxiliary head without fully training every candidate. By training all candidate heads in parallel on just 10% of the data, researchers can quickly identify which architecture exhibits the highest representation discrepancy (measured via KL divergence) relative to the base model.

Datasets

The framework was validated across several standard benchmarks:

  • ImageNet-S300: A subset of ImageNet containing 300 categories, used for efficient ablation studies and auxiliary head searching.
  • ImageNet-1K: Used for full-scale self-supervised pre-training, image classification fine-tuning, and linear probing evaluations.
  • ADE20K: Used to evaluate transfer performance on semantic segmentation.
  • COCO & AODRaw: Used to evaluate performance on instance segmentation and object detection (including cross-domain RAW image data).
  • CIFAR-100 & iNaturalist: Used to test downstream classification transferability.

Key Insights and Ideas

  • The Discrepancy Principle: The core "aha moment" of the paper is that greater architectural discrepancy leads to greater performance gains. As shown in Figure 3a, when a ViT base model is paired with a highly different architecture like ConvNeXt, the performance jump is significantly higher than when it is paired with another Transformer-based head (like Swin or another ViT).
  • Heterogeneity > Capacity: A stronger or larger auxiliary head does not guarantee a better base model. Figures 3b and 3c demonstrate that the capacity (supervised accuracy) and parameter count of the auxiliary head have no positive correlation with final performance. It is the difference in how they process information that matters.
Discrepancy vs. Performance Factors

Key Results

HSSL was integrated into popular SSL frameworks like DINO, iBOT, MoCo v3, and MAE, consistently delivering substantial boosts:

  • Epoch Efficiency: A ViT-B/16 model trained with HSSL for just 600 epochs achieved a 84.1% Top-1 accuracy on ImageNet-1K, outperforming a standard iBOT model trained for a massive 1600 epochs (84.0%).
  • Linear Probing: When pre-training ViT-B/16 for 400 epochs, HSSL advanced iBOT's linear probing accuracy by 1.6% (reaching 79.4%).
  • Downstream Tasks: On the ADE20K semantic segmentation task, HSSL achieved 50.3% mIoU with 400 epochs of pre-training, matching the performance of a standard iBOT model that required 1600 epochs.

Limitations and Future Work

While highly effective, the authors note a few limitations:

  • Target-Fixed Frameworks: HSSL is less straightforward to adapt to self-supervised methods that reconstruct representations from a frozen pre-trained model (such as data2vec).
  • Discrepancy Metrics: The current framework relies on Kullback-Leibler (KL) divergence to measure discrepancy, which works perfectly for clustering-based SSL methods but might not translate well to other SSL variations. Future work will explore alternative metrics like Centered Kernel Alignment (CKA) similarity to broaden HSSL's compatibility.

Summary updated

BibTeX
@article{li2023enhancing,
  author = {Zhong-Yu Li and Bo-Wen Yin 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