Efficient Pre-training for Localized Instruction Generation of Videos
Anil Batra, Davide Moltisanti, Laura Sevilla-Lara, Marcus Rohrbach, Frank Keller
TL;DR
Procedural videos pose two challenges: precisely localizing steps and generating coherent instructions, which typically requires large, noisy pre-training data. The authors introduce Sieve & Swap to automatically curate a smaller, higher-quality pre-training dataset by sieving ASR transcripts and swapping in human-written recipe steps, reducing data size by orders of magnitude. They further propose ProcX, a set-based transformer with key-aware deformable attention, a contrastive learning setup, and an IoU-aware confidence mechanism to jointly localize steps and generate instructions. Trained on the curated data, ProcX achieves state-of-the-art results on YouCook2 and Tasty with far less pre-training data, demonstrating strong data efficiency and potential for domain transfer in instructional video understanding.
Abstract
Procedural videos, exemplified by recipe demonstrations, are instrumental in conveying step-by-step instructions. However, understanding such videos is challenging as it involves the precise localization of steps and the generation of textual instructions. Manually annotating steps and writing instructions is costly, which limits the size of current datasets and hinders effective learning. Leveraging large but noisy video-transcript datasets for pre-training can boost performance but demands significant computational resources. Furthermore, transcripts contain irrelevant content and differ in style from human-written instructions. To mitigate these issues, we propose a novel technique, Sieve-&-Swap, to automatically generate high-quality training data for the recipe domain: (i) Sieve: filters irrelevant transcripts and (ii) Swap: acquires high-quality text by replacing transcripts with human-written instruction from a text-only recipe dataset. The resulting dataset is three orders of magnitude smaller than current web-scale datasets but enables efficient training of large-scale models. Alongside Sieve-&-Swap, we propose Procedure Transformer (ProcX), a model for end-to-end step localization and instruction generation for procedural videos. When pre-trained on our curated dataset, this model achieves state-of-the-art performance on YouCook2 and Tasty while using a fraction of the training data. We have released code and dataset.
