Knowledge Distillation for Efficient Audio-Visual Video Captioning

Özkan Çayli, Xubo Liu, Volkan Kiliç, Wenwu WangEUSIPCO 2023 · DOI

Abstract

Automatically describing audio-visual content with texts, namely video captioning, has received significant attention due to its potential applications across diverse fields. Deep neural networks are the dominant methods, offering state-of-the-art performance. However, these methods are often undeployable in low-power devices like smartphones due to the large size of the model parameters. In this paper, we propose to exploit simple pooling front-end and down-sampling algorithms with knowledge distillation for audio and visual attributes using a reduced number of audio-visual frames. With the help of knowledge distillation from the teacher model, our proposed method greatly reduces the redundant information in audio-visual streams without losing critical contexts for caption generation. Extensive experimental evaluations on the MSR-VTT dataset demonstrate that our proposed approach significantly reduces the inference time by about 80% with a small sacrifice (less than 0.02%) in captioning accuracy.

Introduction

Video captioning is a computationally intensive task that requires processing high-resolution visual frames and complex audio signals simultaneously. While state-of-the-art (SOTA) models achieve impressive accuracy, their massive parameter counts and high computational demands often make them unsuitable for deployment on edge devices like smartphones or virtual assistants. The primary challenge lies in reducing the redundancy inherent in audio-visual streams without compromising the semantic context necessary for generating meaningful descriptions.

Methodology

The proposed approach utilizes a Teacher-Student framework designed to compress input data while maintaining performance through Knowledge Distillation (KD).

Teacher and Student Architectures

The Teacher Model serves as a high-capacity reference, utilizing Inception-v3 for visual feature extraction and Pretrained Audio Neural Networks (PANNs) for audio features. The Student Model is designed for efficiency, employing aggressive compression techniques:

  • Visual Compression: Uniform down-sampling is applied to the visual stream, retaining only a fraction (rate $k$) of the original frames.
  • Audio Compression: A Simple Pooling Front-end (SimPF) is used. This involves applying a Discrete Fourier Transform (DFT), cropping spectral features to retain essential frequencies, and transforming the signal back to the time domain.

Knowledge Distillation

To bridge the performance gap caused by data reduction, the student is trained to mimic the teacher's internal representations. This is achieved through a Representation Loss ($L_{rep}$), which aligns the student's latent vectors with those of the teacher. The final training objective combines this distillation loss with standard Cross-Entropy ($L_{CE}$) loss to ensure the model remains optimized for the end task of text generation.

The proposed Teacher-Student framework for audio-visual knowledge distillation.

Experimental Setup

The models were evaluated on a subset of the MSR-VTT (Microsoft Research Video to Text) dataset, consisting of 5,074 training videos and 2,123 testing videos. Visual frames were standardized to $299 \times 299$ pixels, and audio signals were processed using the SimPF method. The language modeling component for both models consisted of stacked Gated Recurrent Units (GRUs) with residual connections.

Results and Analysis

The experimental results highlight a significant improvement in efficiency with minimal impact on captioning quality.

Efficiency Gains

The most striking result is the reduction in inference time. As shown in the performance data, reducing the data input to 20% ($k=0.2$) allows the student model to achieve a near four-fold speedup compared to the teacher baseline.

Comparison of average inference time and speedup percentages for various student configurations.

Accuracy and Regularization

Despite the 80% reduction in inference time, the overall performance score only decreased from 0.368 (Teacher) to 0.365 (Student). Interestingly, in metrics like BLEU-1 and BLEU-2, the student model occasionally outperformed the teacher. This suggests that the compression and distillation process may act as a form of regularization, forcing the model to focus on the most salient audio-visual features while ignoring redundant noise.

Conclusion

This research demonstrates that intelligent input pruning combined with knowledge distillation can make complex audio-visual tasks viable for edge computing. By leveraging spectral pooling for audio and uniform down-sampling for video, the proposed method achieves an 80% reduction in inference time. Future work could explore adaptive compression ratios that adjust based on real-time hardware constraints or scene complexity, as well as the application of these techniques to Transformer-based architectures.

Summary updated

BibTeX
@inproceedings{cayli2023knowledge,
  author = {Özkan Çayli and Xubo Liu and Volkan Kiliç and Wenwu Wang},
  title = {{Knowledge Distillation for Efficient Audio-Visual Video Captioning}},
  booktitle = {EUSIPCO},
  year = {2023},
  doi = {10.48550/arxiv.2306.09947},
}
Figure