VidChain: Chain-of-Tasks with Metric-based Direct Preference Optimization for Dense Video Captioning

Ji Soo Lee, Jongha Kim, Jeehye Na, Jinyoung Park, Hyunwoo J. Kim

Abstract

Despite the advancements of Video Large Language Models (VideoLLMs) in various tasks, they struggle with fine-grained temporal understanding, such as Dense Video Captioning (DVC). DVC is a complicated task of describing all events within a video while also temporally localizing them, which integrates multiple fine-grained tasks, including video segmentation, video captioning, and temporal video grounding. Previous VideoLLMs attempt to solve DVC in a single step, failing to utilize their reasoning capability. Moreover, previous training objectives for VideoLLMs do not fully reflect the evaluation metrics, therefore not providing supervision directly aligned to target tasks. To address such a problem, we propose a novel framework named VidChain comprised of Chain-of-Tasks (CoTasks) and Metric-based Direct Preference Optimization (M-DPO). CoTasks decompose a complex task into a sequence of sub-tasks, allowing VideoLLMs to leverage their reasoning capabilities more effectively. M-DPO aligns a VideoLLM with evaluation metrics, providing fine-grained supervision to each task that is well-aligned with metrics. Applied to two different VideoLLMs, VidChain consistently improves their fine-grained video understanding, thereby outperforming previous VideoLLMs on two different DVC benchmarks and also on the temporal video grounding task.

Introduction

Dense Video Captioning (DVC) is often considered the "final boss" of video understanding. Unlike standard captioning, which provides a single summary, DVC requires a model to segment a video into multiple events, localize exactly when each event starts and ends (timestamps), and describe each event in detail.

Current Video Large Language Models (VideoLLMs) struggle with this complexity because they typically attempt to generate the entire "who-when-what" sequence in a single step. This "one-shot" approach fails to utilize the multi-step reasoning capabilities that LLMs are known for. Furthermore, these models are usually trained using "next-token prediction," creating a gap between their training objective and the complex metrics (like SODA or IoU) used to judge them at inference time. To bridge this gap, we introduce VidChain, a framework that utilizes task decomposition and metric-aligned optimization.

Methodology

VidChain consists of two core components designed to enhance the reasoning and alignment of VideoLLMs.

1. Chain-of-Tasks (CoTasks)

Instead of requiring the model to perform all DVC functions simultaneously, VidChain decomposes the task into a multi-turn conversation. This allows the model to focus on one sub-problem at a time, effectively "thinking" through the video structure before describing it. The framework explores two primary reasoning paths:

  • Time-to-Caption ($P_{t \to c}$): The model predicts the number of segments, then predicts the timestamps, and finally generates the captions.
  • Caption-to-Time ($P_{c \to t}$): The model predicts the number of segments, generates the captions, and then predicts the corresponding timestamps.

2. Metric-based Direct Preference Optimization (M-DPO)

Standard Direct Preference Optimization (DPO) typically relies on expensive human feedback. M-DPO automates this by using DVC evaluation metrics (such as SODA, METEOR, and IoU) as the "judge."

The process involves generating multiple candidate responses for each sub-task and ranking them based on their actual metric scores against the ground truth. The model is then trained to prefer high-scoring responses over low-scoring ones. Crucially, M-DPO is preference-gap aware, meaning it focuses training on pairs where there is a significant difference in quality, thereby ignoring subtle "noise" in the metrics. By applying M-DPO to every step of the chain, the model receives intermediate supervision that is directly aligned with the final evaluation criteria.

Experimental Setup

The researchers evaluated VidChain on two major benchmarks:

  • ActivityNet Captions: Approximately 20,000 videos of diverse human activities (e.g., sports, household chores).
  • YouCook2: Approximately 2,000 long-form cooking videos, which are particularly challenging due to the high number of sequential steps.
  • Temporal Video Grounding (TVG): The framework's ability to localize specific events within ActivityNet Captions was also tested to assess general temporal understanding.

Key Results and Insights

VidChain consistently outperformed state-of-the-art VideoLLMs across both datasets:

  • Performance Gains: When applied to VideoLLaMA2, VidChain improved the SODAc score from 7.2 to 8.8 on ActivityNet (a 22.2% relative gain). On YouCook2, the improvements were even more dramatic, with CIDEr scores jumping from 12.3 to 23.8.
  • Task Generalization: Even though it was designed for DVC, VidChain improved performance on Temporal Video Grounding (TVG), showing that better task decomposition leads to a more robust general understanding of video time.
  • Efficiency: Despite being a multi-turn approach, the inference time increase was manageable. For VideoLLaMA2, latency moved from 10.7s to 13.1s, a moderate cost for a massive boost in quality.

Discussion and Limitations

The success of VidChain suggests that breaking a holistic video task into sequential sub-tasks significantly reduces the cognitive load on the LLM, allowing it to produce more accurate timestamps and less repetitive captions. Furthermore, leveraging continuous metrics for supervision—rather than binary win/loss labels—provides a finer-grained signal for optimization.

However, some limitations remain. M-DPO is dependent on the quality of the metrics used; if a metric has inherent biases, the model might learn to "game" the score rather than improve its understanding. Additionally, multi-turn reasoning is inherently slower than single-turn generation, and the performance of CoTasks can be sensitive to the specific prompt templates used.

Conclusion

VidChain demonstrates that fine-grained video understanding can be significantly improved by aligning model training with evaluation metrics and decomposing complex tasks into logical chains. This approach not only sets new benchmarks in Dense Video Captioning but also provides a framework for applying metric-based optimization to other complex multimodal tasks.

Summary updated

BibTeX
@inproceedings{lee2025vidchain,
  author = {Ji Soo Lee and Jongha Kim and Jeehye Na and Jinyoung Park and Hyunwoo J. Kim},
  title = {{VidChain: Chain-of-Tasks with Metric-based Direct Preference Optimization for Dense Video Captioning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=YHCmRrXTCh},
}
Figure