Skip to main content
QUICK REVIEW

[Paper Review] CMKD: CNN/Transformer-Based Cross-Model Knowledge Distillation for Audio Classification

Yuan Gong, Sameer Khurana|arXiv (Cornell University)|Mar 13, 2022
Music and Audio ProcessingComputer Science17 citations
TL;DR

This paper proposes CMKD, a cross-model knowledge distillation framework that enables bidirectional performance gains between CNN and Transformer models (specifically EfficientNet-based CNN and Audio Spectrogram Transformer) for audio classification. By using each model as a teacher for the other, the student models significantly outperform their respective teachers, achieving new state-of-the-art results on FSD50K, AudioSet, and ESC-50 without architectural changes.

ABSTRACT

Audio classification is an active research area with a wide range of applications. Over the past decade, convolutional neural networks (CNNs) have been the de-facto standard building block for end-to-end audio classification models. Recently, neural networks based solely on self-attention mechanisms such as the Audio Spectrogram Transformer (AST) have been shown to outperform CNNs. In this paper, we find an intriguing interaction between the two very different models - CNN and AST models are good teachers for each other. When we use either of them as the teacher and train the other model as the student via knowledge distillation (KD), the performance of the student model noticeably improves, and in many cases, is better than the teacher model. In our experiments with this CNN/Transformer Cross-Model Knowledge Distillation (CMKD) method we achieve new state-of-the-art performance on FSD50K, AudioSet, and ESC-50.

Motivation & Objective

  • To explore bidirectional knowledge distillation between CNN and Transformer models in the audio domain, where both models can serve as effective teachers for each other.
  • To improve the performance of existing audio classification models—especially smaller, efficient models—without architectural modifications.
  • To investigate whether knowledge distillation between fundamentally different architectures (CNN vs. self-attention) can yield superior results compared to intra-class distillation or hybrid architectures.
  • To identify optimal knowledge distillation settings for audio classification, distinct from those used in vision tasks.
  • To demonstrate that a smaller, weaker teacher model can still significantly improve a stronger student model in cross-model KD, challenging conventional KD assumptions.

Proposed method

  • Train a CNN (EfficientNet-based) and an AST (Audio Spectrogram Transformer) model as separate teacher models on standard audio datasets.
  • Use the trained teacher model's soft labels (logits) as a distillation target during student model training, while also minimizing ground truth cross-entropy loss.
  • Freeze the teacher model during student training to ensure knowledge transfer is stable and not reversed.
  • Apply knowledge distillation in both directions: CNN → AST and AST → CNN, using the same training objective combining ground truth loss and distillation loss.
  • Evaluate the method on multiple audio benchmarks (FSD50K, AudioSet, ESC-50) using diverse student models, including pure CNN, CNN-attention hybrids, and pure Transformers.
  • Conduct ablation studies and probing tests to analyze the mechanism of cross-model knowledge distillation and identify optimal hyperparameters.

Experimental results

Research questions

  • RQ1Can a CNN model effectively teach a Transformer-based model (AST) in knowledge distillation, and does the student model outperform the teacher?
  • RQ2Can an AST model effectively teach a CNN-based student model, and does this lead to performance gains beyond the teacher’s original capability?
  • RQ3Does cross-model knowledge distillation between CNN and Transformer models yield better results than intra-class distillation (e.g., CNN → CNN or AST → AST)?
  • RQ4Is the performance of the teacher model itself a determining factor in knowledge distillation success, or can a weaker teacher still improve a stronger student?
  • RQ5How does cross-model knowledge distillation affect training dynamics, generalization, and robustness compared to standard training?

Key findings

  • The KD-CNN model with only 8 million parameters outperforms the original 88-million-parameter AST model on the FSD50K dataset.
  • The KD-AST model achieves new state-of-the-art performance on FSD50K, AudioSet, and ESC-50, surpassing all prior methods including hybrid CNN-attention models.
  • Knowledge distillation works bidirectionally: both CNN → AST and AST → CNN directions yield significant performance gains, with the student model often outperforming the teacher.
  • Surprisingly, the performance of the teacher model is not a critical factor—even weaker teachers improve student performance, indicating knowledge distillation goes beyond simple behavior cloning.
  • The method is generic: it improves performance across all model types, including pure CNNs, CNN-attention hybrids, and pure Transformers.
  • Cross-model knowledge distillation leads to faster convergence and reduced overfitting, suggesting improved inductive bias and generalization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.