NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multi-Level Decoupled Relational Distillation for Heterogeneous Architectures

Yaoxin Yang, Peng Ye, Weihao Lin, Kangcong Li, Yan Wen, Jia Hao, Tao ChenarXiv 2025

Abstract

Heterogeneous distillation is an effective way to transfer knowledge from cross-architecture teacher models to student models. However, existing heterogeneous distillation methods do not take full advantage of the dark knowledge hidden in the teacher's output, limiting their performance. To this end, we propose a novel framework named Multi-Level Decoupled Relational Knowledge Distillation (MLDR-KD) to unleash the potential of relational distillation in heterogeneous distillation. Concretely, we first introduce Decoupled Finegrained Relation Alignment (DFRA) in both logit and feature levels to balance the trade-off between distilled dark knowledge and the confidence in the correct category of the heterogeneous teacher model. Then, Multi-Scale Dynamic Fusion (MSDF) module is applied to dynamically fuse the projected logits of multiscale features at different stages in student model, further improving performance of our method in feature level. We verify our method on four architectures (CNNs, Transformers, MLPs and Mambas), two datasets (CIFAR-100 and Tiny-ImageNet). Compared with the best available method, our MLDR-KD improves student model performance with gains of up to 4.86% on CIFAR-100 and 2.78% on Tiny-ImageNet datasets respectively, showing robustness and generality in heterogeneous distillation. Code will be released soon.

Introduction

Knowledge Distillation (KD) typically involves a large "teacher" model guiding a smaller "student" model. While this works well when both models share the same architecture (homogeneous KD), it struggles when they are different (heterogeneous KD), such as a Vision Transformer (ViT) teaching a ResNet.

The core challenge is the "feature gap": the internal representations of a CNN and a Transformer are too different to align directly. Existing solutions often focus only on the final output (logits). However, these methods face a dilemma: if they emphasize the correct class too much, they lose "dark knowledge" (the subtle information about which categories are similar). If they focus too much on dark knowledge, the student becomes "confused" and less confident in the correct category, leading to poor performance. MLDR-KD addresses this by decoupling relational information and dynamically fusing multi-scale features.

Methods: MLDR-KD Framework

The authors propose Multi-Level Decoupled Relational Knowledge Distillation (MLDR-KD), which consists of two main innovations: Decoupled Finegrained Relation Alignment (DFRA) and the Multi-Scale Dynamic Fusion (MSDF) module.

Overview of the MLDR-KD framework, including the Decoupled Finegrained Relation Alignment (DFRA) and Multi-Scale Dynamic Fusion (MSDF) modules.

Decoupled Finegrained Relation Alignment (DFRA)

The authors discovered that simply applying standard Relational KD to heterogeneous models can actually hurt performance by over-amplifying dark knowledge, which "smooths" the student's predictions so much that it loses track of the correct class. DFRA solves this by breaking logits down into two types of relationships:

  • Class-Wise Relations: How similar are different categories (e.g., "dog" vs. "cat") for a single image?
  • Sample-Wise Relations: How similar are different images within the same category? By aligning these decoupled relationships separately, the model can transfer rich "dark knowledge" while maintaining high confidence in the ground-truth label.

Multi-Scale Dynamic Fusion (MSDF)

Students often have multiple stages of processing. MSDF projects features from these different stages into a shared "latent logit space." It uses a gated MLP network to dynamically weight which stage's features are most important for distillation at any given time, ensuring the student learns from the most relevant internal representations across different scales.

Experimental Results

The researchers evaluated MLDR-KD on CIFAR-100 and Tiny-ImageNet across a wide variety of "heterogeneous" pairs involving CNNs (ResNet, MobileNet), Transformers (ViT, Swin, DeiT), MLPs (ResMLP), and the emerging Mamba architecture (ViM).

Key Results

MLDR-KD consistently outperformed existing state-of-the-art methods (like OFA-KD) across all tested architecture pairs:

  • CIFAR-100: Achieved accuracy gains of up to 4.86% (specifically for the Mixer-B/16 to DeiT-T pair).
  • Tiny-ImageNet: Showed improvements of up to 2.78%.
  • Generality: The method proved robust even when distilling to and from the newer Mamba architecture, which uses a state-space model rather than traditional convolution or attention.

Qualitative Analysis

Feature visualizations via heatmaps show that students trained with MLDR-KD focus much more accurately on the target objects compared to those trained with vanilla or previous heterogeneous KD methods.

Visual comparison of attention heatmaps across different distillation methods. MLDR-KD shows more precise object localization.

Conclusion

MLDR-KD successfully bridges the architectural gap in knowledge distillation by decoupling relational information and employing dynamic multi-scale fusion. While future work will focus on how to more efficiently exploit raw feature-level information, MLDR-KD demonstrates significant robustness and generality across diverse AI architectures.

Summary updated

BibTeX
@misc{yang2025multi,
  author = {Yaoxin Yang and Peng Ye and Weihao Lin and Kangcong Li and Yan Wen and Jia Hao and Tao Chen},
  title = {{Multi-Level Decoupled Relational Distillation for Heterogeneous Architectures}},
  year = {2025},
  eprint = {2502.06189},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.06189},
}
Figure