Knowledge-Constrained Answer Generation for Open-Ended Video Question Answering

Yao Jin, Guocheng Niu, Xinyan Xiao, Jian Zhang, Xi Peng, Jun YuAAAI 2023

Abstract

Most state-of-the-art models for Open-Ended Video Question Answering (VideoQA) simplify the task into a multi-label classification problem, restricting answers to a predefined candidate set. This approach introduces significant in-domain bias and prevents the generation of detailed or novel responses. We propose the Knowledge-constrained Generative VideoQA Algorithm (KcGA), which integrates external commonsense knowledge with a generative decoder. By utilizing an adaptive knowledge module and a multi-stream information control mechanism, KcGA achieves superior performance on complex benchmarks like Open-QA and NExT-QA, demonstrating a unique ability to generate accurate "out-of-domain" answers.

1. Introduction: The Problem with Classification-based VideoQA

Current VideoQA systems frequently "cheat" by treating open-ended questions as classification tasks. They rely on a "candidate set" derived from the most frequent answers in the training data. While this simplifies the learning process, it introduces two critical flaws:

  1. In-domain Bias: Models are incapable of predicting any answer not present in the training set (out-of-domain answers).
  2. Lack of Semantic Richness: Answers are typically restricted to one or two words, failing to capture the complexity required for real-world interactions.
Comparison of in-domain vs. out-of-domain answer generation.

To address these limitations, we move toward true "free-form" answer generation by providing models with external knowledge constraints that guide the decoder toward semantically accurate and detailed responses.

2. The KcGA Framework

The proposed KcGA model is an encoder-decoder framework designed to bridge the gap between visual perception and linguistic generation through four primary components:

  1. Video-Text Encoder: Joint features are extracted from video clips and questions using ClipBERT.
  2. Adaptive External Knowledge Module: This module acts as the system's "brain." It detects objects via Faster R-CNN and filters noise using CLIP similarity scores. These objects query ConceptNet for commonsense relations. An Attention-based GRU (episodic memory) then processes this knowledge to form a refined perception of the scene.
  3. Multi-stream Information Control Mechanism (MsICM): This novel fusion module aligns video-question features with external knowledge using global and local attention, ensuring generated answers are grounded in both visual evidence and logical reasoning.
  4. Language Decoder: A pre-trained GPT-2 model generates the final answer string based on the fused features.
The architecture of the Knowledge-constrained Generative VideoQA (KcGA) model.

3. Experimental Evaluation

KcGA was evaluated on two challenging benchmarks:

  • Open-QA: A dataset derived from TGIF-QA specifically for open-ended generation, where 63% of answers are multi-word.
  • NExT-QA: A dataset focused on causal and temporal reasoning (e.g., "Why" and "How" questions).

4. Key Insights and Results

Knowledge as a Semantic Bridge

External knowledge provides the necessary context to link disparate visual elements. For instance, if a model identifies a "pumpkin" and a "knife," ConceptNet provides relations like "pumpkin - is - vegetable" or "carving - related to - knife," enabling the generator to form a coherent sentence even for novel interactions.

Performance Gains

KcGA achieved state-of-the-art results across multiple metrics:

  • Accuracy: On Open-QA, KcGA reached 27.04% accuracy, significantly outperforming the previous generative baseline (20.36%) and traditional classifiers (15-19%).
  • Out-of-Domain Generalization: KcGA achieved 4.55% accuracy on answers never seen during training, whereas standard classification models scored 0% by design.
  • Handling Complexity: For answers three words or longer, KcGA maintained ~26% accuracy, while competing classification models dropped to near zero.

5. Conclusion and Future Work

KcGA demonstrates that generative models, when constrained by external knowledge, offer far greater flexibility and generalization than traditional classifiers. However, a significant hurdle remains in evaluation: current "exact match" accuracy metrics often penalize semantically correct but syntactically different answers (e.g., "Nod head" vs. "Nod"). Future research will focus on developing more nuanced evaluation strategies, potentially using Large Language Models (LLMs) to judge semantic similarity, and refining episodic memory for longer video narratives.

Summary updated

BibTeX
@inproceedings{jin2023knowledge,
  author = {Yao Jin and Guocheng Niu and Xinyan Xiao and Jian Zhang and Xi Peng and Jun Yu},
  title = {{Knowledge-Constrained Answer Generation for Open-Ended Video Question Answering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i7.25983},
}
Figure