Chapter-Llama: Efficient Chaptering in Hour-Long Videos with LLMs
Lucas Ventura, Antoine Yang, Cordelia Schmid, Gül Varol
TL;DR
Chapter-Llama introduces an efficient, LLM-based approach for hour-long video chaptering by converting video content into text through ASR transcripts and frame captions. It employs a speech-guided frame selection strategy to sample few frames, maps these frames to text, and finetunes a Llama-3.1-8B-Instruct model with LoRA to predict chapter boundaries and titles in a single forward pass, using an iterative prediction scheme for very long videos. The method achieves substantial improvements on VidChapters-7M (e.g., F1 of 45.3 versus 26.7) and demonstrates the benefit of combining ASR and captions, frame selection, and LLM finetuning, with thorough ablations on data size and modality choices. The results highlight the practicality of text-based chaptering for long videos and open avenues for hierarchical chaptering and broader audio modalities, while noting dependencies on ASR and captioning quality and potential biases in large web-trained models.
Abstract
We address the task of video chaptering, i.e., partitioning a long video timeline into semantic units and generating corresponding chapter titles. While relatively underexplored, automatic chaptering has the potential to enable efficient navigation and content retrieval in long-form videos. In this paper, we achieve strong chaptering performance on hour-long videos by efficiently addressing the problem in the text domain with our 'Chapter-Llama' framework. Specifically, we leverage a pretrained large language model (LLM) with large context window, and feed as input (i) speech transcripts and (ii) captions describing video frames, along with their respective timestamps. Given the inefficiency of exhaustively captioning all frames, we propose a lightweight speech-guided frame selection strategy based on speech transcript content, and experimentally demonstrate remarkable advantages. We train the LLM to output timestamps for the chapter boundaries, as well as free-form chapter titles. This simple yet powerful approach scales to processing one-hour long videos in a single forward pass. Our results demonstrate substantial improvements (e.g., 45.3 vs 26.7 F1 score) over the state of the art on the recent VidChapters-7M benchmark. To promote further research, we release our code and models at our project page.
