ViLA: Efficient Video-Language Alignment for Video Question Answering

Xijun Wang, Junbang Liang, Chun-Kai Wang, Kenan Deng, Yu Lou, Ming C. Lin, Shan Yang

Abstract

ViLA (Video-Language Alignment) addresses the computational inefficiency and temporal redundancy inherent in Video Question Answering (VideoQA). By integrating a learnable, text-guided Frame-Prompter and a cross-modal distillation strategy via the QFormer-Distiller, ViLA selectively processes only the most relevant frames for a given query. This approach allows ViLA to outperform state-of-the-art models on multiple benchmarks while achieving up to a 4.2x inference speedup and reducing training parameters by 50%.

Introduction

Adapting Large Language Models (LLMs) to video understanding is challenging due to the high volume of redundant temporal data. Current methods often rely on uniform sampling, which can miss critical moments, or computationally expensive external localizers. ViLA proposes a unified, end-to-end framework that aligns visual content with textual queries efficiently by identifying "key frames" that directly answer the question.

Overview of the ViLA pipeline showing how the Frame-Prompter selects key frames to answer a specific question.

Methodology

The ViLA framework introduces two primary innovations to create a smart bridge between a frozen visual encoder and a frozen or LoRA-finetuned LLM:

1. Text-guided Frame-Prompter (FP)

The Frame-Prompter is a lightweight module that identifies critical frames based on the input question and video features. It utilizes the Gumbel-Softmax trick to perform differentiable discrete frame selection, allowing the model to learn optimal sampling strategies during training. This ensures that the model focuses on the "needle in the haystack"—the specific action or object relevant to the query.

2. QFormer-Distiller (QFD)

To ensure the selected sparse frames retain sufficient information, ViLA employs a teacher-student distillation architecture. A "Teacher" QFormer, trained on a dense set of frames, provides a rich feature representation. The "Student" QFormer, which only sees the sparse frames selected by the Frame-Prompter, is trained to match the Teacher's output. This distillation process forces the Frame-Prompter to become highly effective at identifying the most informative frames.

Detailed architecture of ViLA, highlighting the Teacher-Student QFormer distillation and the Frame-Prompter's role in selecting frames for the LLM.

Experimental Results

ViLA was evaluated on five major benchmarks: NExT-QA, STAR, How2QA, TVQA, and VLEP.

Performance and Efficiency

ViLA achieved significant improvements over previous state-of-the-art models like SeViLA:

  • Accuracy Gains: Improved accuracy by +4.6% on STAR Interaction and +3.3% on NExT-QA Temporal questions.
  • Inference Speed: Achieved a 3.04x speedup on NExT-QA and a 4.2x speedup on VLEP.
  • Parameter Efficiency: Reduced training parameters by 50% compared to previous leaders.

Key Insights

The results demonstrate that question-aware sampling is vastly superior to uniform sampling. By focusing on the specific frames where primary actions occur, ViLA can achieve higher accuracy with just 2 carefully selected frames than other models achieve with 8 uniform frames. This suggests that for many VideoQA tasks, the majority of frames are essentially noise.

Conclusion

ViLA provides an efficient and effective solution for VideoQA by bridging the gap between dense video data and LLM reasoning through intelligent frame selection. While currently optimized for short clips (up to 60 seconds), future work will explore scaling to larger LLMs and extending the architecture to handle long-form video content.

Summary updated

BibTeX
@inproceedings{wang2024vila,
  author = {Xijun Wang and Junbang Liang and Chun-Kai Wang and Kenan Deng and Yu Lou and Ming C. Lin and Shan Yang},
  title = {{ViLA: Efficient Video-Language Alignment for Video Question Answering}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73033-7\_11},
}
Figure