Cross-Modal Distillation For Widely Differing Modalities

Cairong Zhao, Yufeng Jin, Zifan Song, Haonan Chen, Duoqian Miao, Guosheng HuarXiv 2025 · DOI

Abstract

Knowledge distillation (KD) typically transfers expertise between models within the same modality. This paper introduces a robust framework for cross-modal distillation between structurally dissimilar data types, such as images and speech. By employing a trainable projection head, soft-constrained loss functions, and quality-based adaptive weighting, the proposed method enables a student model to capture modality-shared semantic information while disregarding modality-specific noise. Experimental results on speaker recognition and image classification tasks demonstrate significant performance gains and enhanced robustness.

Introduction

Knowledge Distillation (KD) is a well-established technique where a compact "student" model learns to emulate the behavior of a larger, high-performing "teacher" model. While effective for intra-modal transfer (e.g., a large vision model teaching a smaller one), KD often falters when the teacher and student operate on fundamentally different data types.

Existing cross-modal KD approaches frequently rely on "hard" constraints, such as $L_2$ loss, to force the student's features to match the teacher's exactly. This approach is viable for modalities with shared spatial structures, like RGB and Depth images. However, it fails for "widely differing" modalities like face images and speech audio. A facial image contains visual features (e.g., eye shape, nose structure) that have no direct counterpart in an audio waveform. Forcing an audio model to mimic these visual-specific details leads to overfitting and poor generalization.

Proposed Methodology

The authors propose three key innovations to facilitate flexible and effective cross-modal knowledge transfer.

The proposed cross-modal distillation framework featuring a trainable projection head, quality-based adaptive weighting, and soft-constrained distillation at both feature and classifier levels.

1. Trainable Projection Head

To bridge the initial domain gap, a small, trainable Multi-Layer Perceptron (MLP) "bridge" is added to the teacher model. This projection head maps the teacher's features into a latent space that is more naturally aligned with the student’s modality, easing the distillation process.

2. Soft Constrained Distillation

The core of the framework lies in relaxing the alignment constraints to allow for modality-specific differences.

  • Feature Level Alignment: Instead of strict point-to-point matching, the authors introduce a margin ($m$) into the loss function. The student is only penalized if its distance from the teacher's projected feature exceeds this margin. This "slack" allows the student to focus on modality-shared information (like identity or gender) while ignoring irrelevant modality-specific details.
  • Classifier Level Alignment: Rather than matching output probability distributions (logits), the student and teacher share the same classifier head during training. This encourages both models to map their distinct features into a unified semantic decision space.
Comparison between hard constraints, which force exact feature alignment, and the proposed soft constraints, which allow for a margin of error to accommodate modality-specific information.

3. Quality-based Adaptive Weighting

Recognizing that not all training samples are equally informative, the framework uses the $L_2$ norm of the features as a proxy for data quality. High-quality samples (e.g., clear faces and high-fidelity audio) are assigned higher weights during distillation, while noisy or ambiguous samples are downweighted to prevent the student from learning suboptimal features.

Experimental Evaluation

The framework was evaluated across two distinct cross-modal tasks: speaker recognition (using a face-recognition teacher to guide an audio-based student) and image classification (using a text-based teacher to guide an image-based student).

Key Results

  • Performance Improvements: On the VoxCeleb1 speaker recognition task, the proposed method reduced the Equal Error Rate (EER) from a baseline of 1.71% to 1.51%.
  • Noise Robustness: The framework showed superior resilience to audio noise. At high noise levels, it achieved a 4.77% EER, significantly outperforming the 5.61% baseline.
  • Data Efficiency: The method acted as a powerful regularizer, showing greater relative improvements when training data was limited (e.g., using only 25% of the dataset).
  • Cross-Modal Retrieval: Post-distillation, the audio student model could match identities against the teacher's face modality with high accuracy, despite never being explicitly trained for retrieval.

Discussion and Conclusion

The primary insight of this work is that "hard alignment" in cross-modal distillation is often counterproductive. By introducing "softness" through margins and shared classifiers, the framework acts as a filter, allowing the student to extract deep, shared manifolds (like identity) while ignoring modality-specific noise. While the method shows great promise, it remains sensitive to hyperparameters like the margin ($m$) and requires a high-quality teacher model for optimal results.

Summary updated

BibTeX
@misc{zhao2025cross,
  author = {Cairong Zhao and Yufeng Jin and Zifan Song and Haonan Chen and Duoqian Miao and Guosheng Hu},
  title = {{Cross-Modal Distillation For Widely Differing Modalities}},
  year = {2025},
  eprint = {2507.16296},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.16296},
}
Figure