Codebook-Guided Cross-Modal Knowledge Distillation for Structurally Heterogeneous Features

Dae Ung Jo, Jongin Lim, YoungJoon Yoo, Daeho Um

TL;DR

Cross-modal knowledge distillation (CMKD) often fails when teacher and student modalities have fundamentally different data structures, like 2D images versus 1D audio. This paper introduces a codebook-guided framework that abstracts teacher features into discrete "concept anchors," allowing the student to learn high-level representations without needing direct, unit-level feature alignment.

What Problem Does This Paper Address?

In the world of multimodal AI, we often have a "rich" teacher modality (like video) available during training, but we want to deploy a "lean" student model that only uses a single modality (like audio) at inference time. This is Cross-Modal Knowledge Distillation.

The standard approach is to align the intermediate features of the teacher and student. However, this assumes the features are structurally compatible—for example, both being 2D grids. When you try to distill knowledge from a 2D visual grid to a 1D temporal audio sequence, there is no clear "unit-to-unit" correspondence. Forcing an alignment in these cases often leads to misleading correspondences that can actually degrade the student's performance.

Methods

The authors propose a three-stage framework that uses a vector-quantized (VQ) codebook as a structural bridge between modalities.

Figure 1: Overview of the proposed framework. We learn a teacher-side vector-quantized codebook (Sec. 3.3), select task-relevant and student-compatible codes (Sec. 3.4), and use the selected codes for student-side distillation (Sec. 3.5). The framework enables feature-level CMKD without requiring explicit unit-level correspondence between structurally different teacher and student representations.
  1. Teacher-Side Codebook Learning: The teacher's continuous intermediate features are passed through a VQ layer, mapping them to a finite set of learned discrete "codes" (codewords). This abstracts the modality-specific structure into a set of reusable concept anchors.
  2. Code-wise Importance Estimation: Not all teacher knowledge is equally useful or transferable. The authors rank the codes based on two criteria:
  3. Task Relevance: How much does removing a specific code hurt the teacher's final prediction?
  4. Student Compatibility: How well does a specific code align with the student's current representation space?
  5. Selective Codebook-Based Distillation: The top-ranked codes are used to guide the student. The student learns to quantize its own features using these teacher-derived anchors. Crucially, because the distillation happens at the "code" level rather than the "feature unit" level, the student doesn't need to match the teacher's spatial or temporal dimensions.

Datasets

The framework was validated across five diverse benchmarks covering different modality pairs and tasks:

  • RAVDESS & VGG-Sound: Audio-Visual emotion and event classification.
  • CrisisMMD & MM-IMDB: Image-Text humanitarian and movie genre classification.
  • NYU-Depth V2: RGB-D semantic segmentation.

Key Insights and Ideas

  • Discrete Concepts as a Universal Language: By moving from continuous feature maps to discrete codes, the model creates a "semantic interface" that is agnostic to whether the original data was a grid, a sequence, or a graph.
  • The Importance of Compatibility: A key "aha moment" in the paper is that relevance to the task isn't enough for distillation. If the teacher knows something the student's modality simply cannot represent, trying to force that knowledge is counterproductive. The Student Compatibility score (Stage 2) explicitly filters for knowledge the student can actually digest.
  • Spatial Interpretability: When analyzing the RAVDESS dataset (emotion recognition), the authors found that high-importance codes naturally clustered around the face and mouth of the actors, while low-importance codes were scattered in the background.
Figure 2: Codebook analysis on RAVDESS. (a) Example frames from the dataset. (b,c) Spatial usage maps of top-ranked and bottom-ranked codes according to the proposed importance score.

Key Results

The proposed method consistently outperformed both general distillation baselines (like KLD and FitNets) and specialized modality-gap-aware methods.

  • Classification: The method achieved the best performance in 7 out of 8 tested transfer directions (e.g., Audio $\rightarrow$ Video, Text $\rightarrow$ Image). On RAVDESS (Video $\rightarrow$ Audio), it improved accuracy from 0.6826 (no distillation) to 0.7486.
  • Segmentation: On NYU-Depth, the method significantly improved Mean Intersection-over-Union (mIoU) and Class-averaged Accuracy (CA), showing that the codebook approach works even for dense, pixel-level tasks.
Table 1: Classification results. A, V, T, and I denote audio, video, text, and image modalities, respectively, and each arrow indicates the teacher-to-student distillation direction. We report accuracy averaged over five independent runs, with the best result in each column shown in bold.

Limitations and Future Work

While effective, the authors note a few areas for improvement:

  • Fixed Selection Ratio: The current model uses a manually set ratio (e.g., top 50% of codes). Future work could explore adaptive methods that automatically determine how much teacher information is needed for a specific student.
  • Computational Cost: The "leave-one-code-out" importance estimation in Stage 2 can be slow if the codebook is extremely large.
  • Distributed Concepts: The current quantization happens per-unit. The authors suggest that future iterations could model "distributed concepts" that span multiple spatial or temporal units more explicitly.

Summary updated

BibTeX
@inproceedings{jo2026codebook,
  author = {Dae Ung Jo and Jongin Lim and YoungJoon Yoo and Daeho Um},
  title = {{Codebook-Guided Cross-Modal Knowledge Distillation for Structurally Heterogeneous Features}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=7C9JPmZMKT},
}
Figure