Abstract
Dense video captioning aims to temporally localize events in video and generate captions for each event. While recent works propose end-to-end models, they suffer from two limitations: (1) applying timestamp supervision only to text while treating all video frames equally, and (2) retrieving captions from fixed-size video chunks, overlooking scene transitions. To address these, we propose Sali4Vid, a simple yet effective saliency-aware framework. We introduce Saliency-aware Video Reweighting, which converts timestamp annotations into sigmoid-based frame importance weights, and Semantic-based Adaptive Caption Retrieval, which segments videos by frame similarity to capture scene transitions and improve caption retrieval. Sali4Vid achieves state-of-the-art results on YouCook2 and ViTT, demonstrating the benefit of jointly improving video weighting and retrieval for dense video captioning.
Introduction
Dense Video Captioning (DVC) is the task of identifying multiple distinct events within long, untrimmed videos and generating descriptive captions for each. While end-to-end models have advanced the field, they often overlook the temporal importance of video frames during visual encoding. Specifically, current models typically treat all frames within an annotated segment as equally important, failing to leverage the precise timing of the core action. Additionally, retrieval-augmented generation methods often use rigid, fixed-size video chunks to query external databases, which can lead to "mixed event" queries that pull in irrelevant text.
Methodology
Sali4Vid addresses these limitations through two primary innovations: Saliency-aware Video Reweighting and Semantic-based Adaptive Caption Retrieval.
Saliency-aware Video Reweighting
During training, Sali4Vid uses ground-truth timestamps to generate continuous, sigmoid-based importance weights for every frame. Unlike hard binary masks (0 or 1), the sigmoid curve smoothly emphasizes the central action of an event while preserving boundary context. This approach forces the visual encoder to prioritize the most relevant temporal segments, leading to better learned representations.
Semantic-based Adaptive Caption Retrieval
To avoid the pitfalls of fixed-window retrieval, Sali4Vid dynamically segments videos based on visual content. By calculating the cosine similarity between consecutive frames and employing a momentum-based accumulation strategy, the model detects sustained visual changes that signal scene transitions. The video is then segmented along these semantic boundaries, ensuring that the top-$k$ auxiliary captions retrieved from the datastore are contextually relevant to the specific action on screen.
Experiments and Results
The framework was evaluated on the YouCook2 and ViTT benchmarks. Sali4Vid achieved new state-of-the-art results:
- YouCook2: Reached a CIDEr score of 75.80, a +3.96 improvement over the previous state-of-the-art (HiCM2).
- ViTT: Reached a CIDEr score of 53.87, a +2.58 improvement over previous methods.
Ablation studies highlighted the synergy between the two components. On YouCook2, saliency reweighting alone improved CIDEr by +8.43 over the baseline, while adaptive retrieval added a further +2.34.
Discussion and Conclusion
A key insight of this work is that continuous weighting via sigmoid functions outperforms binary or Gaussian masks by highlighting the core event while maintaining sharp boundaries. Furthermore, moving from fixed windows to semantic boundaries for retrieval significantly reduces noise in the generation process. While the current method requires timestamp supervision during training, it sets a new standard for performance in dense video captioning. Future research will explore unsupervised reweighting and more robust segmentation thresholds.
Summary updated