Retrieval-augmented Video Encoding for Instructional Captioning

YeonJoon Jung, Minsoo Kim, Seungtaek Choi, Jihyuk Kim, Minji Seo, Seung-won Hwang

Abstract

Instructional video captioning is often hindered by key-object degeneracy, where essential objects are missing from the visual or audio streams. We present a retrieval-augmented framework that utilizes external instructional scripts to disambiguate these "blind spots." Central to our approach is Key Object aware Frame Contrastive Learning (KOFCL), which aligns video frames based on shared key objects rather than temporal proximity. Our method demonstrates significant performance gains on YouCook2 and IVD benchmarks, effectively "repairing" degenerate video representations for more accurate caption generation.

Introduction

Instructional videos are a rich resource for human learning, but they present a significant challenge for AI due to informational gaps. A transcript might use vague pronouns like "this" or "it," or a camera might be zoomed in on a blurry bowl, obscuring the primary ingredient. This phenomenon, termed key-object degeneracy, prevents models from identifying the "key objects" necessary for coherent instructions.

Recognizability of key objects across different input modalities, illustrating the 'blind spot' in single-modality video understanding.

Empirical studies on the YouCook2 dataset reveal that only 56.07% of key objects are recognizable from images alone. This lack of clarity leads to "degenerate" captions where machine systems omit crucial steps or ingredients. To address this, we propose a framework that leverages external "cheat sheets"—structured instructional scripts—to enrich video representations.

Methodology

The proposed framework integrates external knowledge into the video encoding process through three primary components:

1. Temporal Description Retrieval (TDR)

The system employs a joint image-text query, powered by LXMERT, to search an external database of scripts (e.g., recipes from AllRecipes). It identifies the specific procedural sentence that best matches the current video segment, providing the "ground truth" nouns often missing from conversational transcripts.

2. Key Object aware Frame Contrastive Learning (KOFCL)

Standard contrastive learning assumes that temporally adjacent frames should have similar representations. However, in instructional contexts, a key object (like chicken) may appear clearly in one frame but be obscured in another. KOFCL supervises the model to map frames together if they share the same key objects, regardless of their temporal distance, allowing the model to "remember" objects across the video timeline.

3. Augmented Encoding

The retrieved procedural sentence is converted into a vector and concatenated with the video frame features. This enriched representation is then fed into standard Dense Video Captioning (DVC) architectures to produce high-quality captions.

Overview of the retrieval-augmented framework, showing the integration of instructional scripts and the KOFCL-enhanced encoding process.

Experimental Results

The framework was evaluated on two major benchmarks: YouCook2 (cooking) and IVD (diverse tasks like CPR).

  • Retrieval Accuracy: KOFCL significantly improved the Recall@1 (R@1) for finding the correct script sentence, increasing from 47.30% to 56.83% on YouCook2.
  • Captioning Quality: The system outperformed baselines across major metrics. On YouCook2, the CIDEr score improved from 18.20 to 24.37. On the IVD dataset, the improvement was even more dramatic, with the CIDEr score doubling from 61.69 to 123.69.
  • Robustness: The model demonstrated a unique ability to "repair" degeneracy, performing better on difficult frames where objects were obscured compared to baseline models.

Conclusion

By shifting from temporal-locality to object-centric learning and augmenting video with external scripts, this framework effectively addresses the informational blind spots in instructional videos. This approach not only improves captioning accuracy but also ensures that AI systems can provide more detailed and reliable guidance for complex human tasks.

Citation: Yeonjoon Jung, Minsoo Kim, Seungtaek Choi, Jihyuk Kim, Minji Seo, and Seung-won Hwang.

  1. Retrieval-augmented Video Encoding for Instructional Captioning. In Findings of the Association for Computational Linguistics: ACL 2023.

Summary updated

BibTeX
@inproceedings{jung2023retrieval,
  author = {YeonJoon Jung and Minsoo Kim and Seungtaek Choi and Jihyuk Kim and Minji Seo and Seung-won Hwang},
  title = {{Retrieval-augmented Video Encoding for Instructional Captioning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.543},
}
Figure