Answering from Sure to Uncertain: Uncertainty-Aware Curriculum Learning for Video Question Answering

Haopeng Li, Mohammed Bennamoun, Jun Liu, Hossein Rahmani, Qiuhong Ke

TL;DR

This paper introduces Uncertainty-aware Curriculum Learning (UCL) for Video Question Answering (VideoQA). By treating video and text features as stochastic variables rather than fixed vectors, the authors can measure data difficulty through "uncertainty" rather than just training loss, leading to state-of-the-art performance across multiple benchmarks.

What Problem Does This Paper Address?

Video Question Answering (VideoQA) is a complex multimodal task requiring a model to understand temporal events, spatial relationships, and linguistic nuances. Most models are trained by feeding them data in a random order. However, humans learn better when starting with simple concepts and progressing to harder ones—a strategy known as Curriculum Learning (CL).

The standard way to implement CL in machine learning is to use training loss as a proxy for difficulty: if the loss is high, the sample is "hard." The authors argue this is flawed for two reasons:

  1. Ground-truth dependency: Loss only measures how far a prediction is from the label; it doesn't capture the intrinsic difficulty of the video (e.g., blur, noise, or ambiguous action).
  2. Instability: Training loss fluctuates wildly during optimization, making it a noisy signal for scheduling a curriculum.

Methods

The authors propose a framework that replaces loss-based scheduling with Uncertainty-aware Curriculum Learning (UCL). To make this work, they had to rethink how VideoQA models represent data.

1. Stochastic Computation Graph

Instead of representing videos and questions as deterministic vectors, the authors treat them as stochastic variables. They use a visual encoder and text encoder to output the parameters (mean and variance) of a Gaussian distribution. By using the "reparameterization trick," they can sample from these distributions while keeping the model end-to-end differentiable.

2. Two Flavors of Uncertainty

By modeling data probabilistically, the authors define two distinct metrics for difficulty:

  • Feature Uncertainty ($U_F$): Measures inherent noise in the data (like motion blur or occlusions). It is calculated as the variance of the model's internal predictions across multiple random samples of the input features.
  • Predictive Uncertainty ($U_P$): Measures the model's confidence in its final answer. For classification, this is the entropy of the output distribution.

3. The Curriculum Scheduler

The model starts by training only on "easy" samples (those with low uncertainty). As training progresses, a scheduler ($\lambda$) gradually increases, allowing the model to see "harder," high-uncertainty samples. The sample weights are dynamically adjusted so that eventually, the model learns from the entire dataset.

Datasets

The authors evaluated their framework on four major VideoQA benchmarks:

  • TGIF-QA: Includes sub-tasks for counting repetitions, identifying frames, and describing actions/transitions.
  • NExT-QA: Focuses on causal and temporal action reasoning.
  • MSVD-QA: An open-ended VideoQA dataset.
  • MSRVTT-QA: Another large-scale open-ended benchmark.

Key Insights and Ideas

  • Uncertainty as a Proxy for Difficulty: The core "aha" moment is that uncertainty is a more stable and intrinsic measure of difficulty than loss. A video of a blurry, fast-moving object is inherently "harder" to answer questions about than a clear, static scene, regardless of whether the model gets the answer right.
  • Probabilistic Robustness: Simply adding probabilistic modeling (without the curriculum) improved performance. This suggests that allowing the model to represent "doubt" in its features makes it more robust to noise.
  • Negative Correlation: The authors proved a strong negative correlation between their uncertainty metrics and model accuracy. This validates that their mathematical definition of uncertainty actually aligns with the real-world difficulty of the task.

Key Results

The UCL framework was integrated into a base model called MASN and achieved impressive results:

  • State-of-the-Art (SOTA): Achieved SOTA performance on TGIF-QA (specifically in Action, Transition, and Count tasks) and NExT-QA.
  • Generalization: The authors applied their UCL framework to other existing models (HGA, HQGA, IGV) and saw consistent accuracy improvements of over 1.5% in most cases, proving the framework is model-agnostic.
  • Efficiency: Despite the sampling process, the inference speed remains high because the repeated computations can be performed in parallel on a GPU.

Limitations and Future Work

The authors note that while probabilistic modeling helps with noise, it might make the model less sensitive to subtle visual changes. Because the model represents features as distributions, it might "smooth over" fine-grained details necessary for very specific video understanding tasks.

Future work will likely focus on balancing this robustness with the ability to distinguish between visually similar but semantically different concepts.

For more details, you can find the full paper: "Answering from Sure to Uncertain: Uncertainty-Aware Curriculum Learning for Video Question Answering".

Summary updated

Abstract

While significant advancements have been made in video question answering (VideoQA), the potential benefits of enhancing model generalization through tailored difficulty scheduling have been largely overlooked in existing research. This paper seeks to bridge that gap by incorporating VideoQA into a curriculum learning (CL) framework that progressively trains models from simpler to more complex data. Recognizing that conventional self-paced CL methods rely on training loss for difficulty measurement, which might not accurately reflect the intricacies of video-question pairs, we introduce the concept of uncertainty-aware CL. Here, uncertainty serves as the guiding principle for dynamically adjusting the difficulty. Furthermore, we address the challenge posed by uncertainty by presenting a probabilistic modeling approach for VideoQA. Specifically, we conceptualize VideoQA as a stochastic computation graph, where the hidden representations are treated as stochastic variables. This yields two distinct types of uncertainty: one related to the inherent uncertainty in the data and another pertaining to the model's confidence. In practice, we seamlessly integrate the VideoQA model into our framework and conduct comprehensive experiments. The findings affirm that our approach not only achieves enhanced performance but also effectively quantifies uncertainty in the context of VideoQA.
BibTeX
@misc{li2024answering,
  author = {Haopeng Li and Mohammed Bennamoun and Jun Liu and Hossein Rahmani and Qiuhong Ke},
  title = {{Answering from Sure to Uncertain: Uncertainty-Aware Curriculum Learning for Video Question Answering}},
  year = {2024},
  eprint = {2401.01510},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.01510},
}
Figure