Distilling Audio-Visual Knowledge by Compositional Contrastive Learning

Yanbei Chen, Yongqin Xian, A. Sophia Koepke, Ying Shan, Zeynep Akata

Abstract

Video understanding often benefits from "privileged information" available during training, such as high-quality features from pre-trained image and audio models. However, cross-modal knowledge distillation is frequently hindered by semantic misalignment between unaligned audio-visual cues. This paper introduces Compositional Contrastive Learning (CCL), a framework designed to distill knowledge from pre-trained image and audio "teacher" networks into a video "student" network. By learning to compose features across modalities and leveraging class labels within a contrastive objective, CCL bridges the semantic gap, significantly outperforming existing distillation methods in video recognition and retrieval.

Introduction: The Challenge of Semantic Misalignment

In video understanding, we often have access to high-quality features from models pre-trained on massive image (spatial) or audio (temporal/acoustic) datasets. Knowledge Distillation (KD) aims to transfer this expertise to a student model.

However, cross-modal distillation faces a major hurdle: semantic misalignment. In unconstrained videos, the audio might not match the visual action (e.g., a video of someone "writing on a board" accompanied by background music or speech). Standard distillation techniques often assume a strict pairwise correspondence, trying to force the student to mimic the teacher directly. When the modalities are noisy or unrelated, this "hard alignment" can degrade the student’s performance.

Methods: Compositional Contrastive Learning

The proposed CCL framework handles heterogeneous and noisy signals through a compositional approach to contrastive learning.

Overview of the CCL architecture showing compositional embeddings and contrastive learning.

1. Compositional Embeddings

Instead of directly aligning the video student ($x_v$) to the audio/image teachers ($x_a, x_i$), the model learns a compositional function. It computes a residual that "rectifies" the teacher's embedding based on the student's context. This allows the model to capture task-relevant semantics while bridging the domain gap between different input types, such as 2D images and 3D video volumes.

2. Multi-class Noise Contrastive Estimation (NCE)

Standard contrastive learning (like InfoNCE) treats every individual sample as its own class. CCL incorporates class labels into the loss. This encourages the network to pull together all samples belonging to the same action class across different modalities, making the distillation much more robust to intra-class variations.

3. Dual-Space Alignment

The distillation occurs in two distinct spaces:

  • Feature Space: Utilizing the multi-class NCE loss to align latent representations.
  • Prediction Space: Using Jensen-Shannon Divergence (JSD) to align the probability distributions of the student and the compositional teachers.

Datasets and Evaluation

The authors evaluate CCL on three prominent video datasets: UCF51 (a subset of UCF101), ActivityNet (complex human activities), and VGGSound (audio-visual correspondence). CCL was compared against seven state-of-the-art distillation methods, including FitNet, RKD, and CRD.

Key Results

CCL demonstrates superior performance across both recognition and retrieval tasks.

Comparison of CCL against other distillation methods in recognition and retrieval.
  • Video Recognition: On UCF51, CCL achieved 70.0% Top-1 accuracy when using both audio and image teachers, a significant improvement over the 57.5% baseline (no distillation) and outperforming the best competitor, COR (66.3%).
  • Video Retrieval: In k-Nearest Neighbor retrieval, CCL consistently outperformed all other methods. On ActivityNet, CCL achieved an R@1 of 39.5%, compared to the baseline of 29.0%.
  • Robustness: The model showed strong performance on VGGSound, proving its scalability to large datasets where audio and visual signals are more tightly coupled.

Discussion and Insights

The primary innovation of CCL is the shift from direct alignment to composition. By composing student and teacher features, the model learns to filter out irrelevant "noise" (e.g., background audio) and focus on features that contribute to action classification. Furthermore, moving from instance-level to class-level contrast provides a stronger supervisory signal, preventing the model from treating different videos of the same action as negatives.

While CCL is robust to noisy teachers, it remains dependent on the quality of frozen, pre-trained teacher networks. Future work may explore extending this compositional approach to other modalities like text or applying it in self-supervised settings using pseudo-labels.

Summary updated

BibTeX
@inproceedings{chen2021distilling,
  author = {Yanbei Chen and Yongqin Xian and A. Sophia Koepke and Ying Shan and Zeynep Akata},
  title = {{Distilling Audio-Visual Knowledge by Compositional Contrastive Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00694},
}
Figure