Skip to main content
QUICK REVIEW

[Paper Review] Language Models with Image Descriptors are Strong Few-Shot Video-Language Learners

Zhenhailong Wang, Manling Li|arXiv (Cornell University)|May 22, 2022
Multimodal Machine Learning ApplicationsComputer Science52 citations
TL;DR

VidIL leverages image-language models to convert video content into frame captions and visual tokens, then prompts a frozen language model with temporal-aware context to perform few-shot video-to-text tasks without video pretraining.

ABSTRACT

The goal of this work is to build flexible video-language models that can generalize to various video-to-text tasks from few examples, such as domain-specific captioning, question answering, and future event prediction. Existing few-shot video-language learners focus exclusively on the encoder, resulting in the absence of a video-to-text decoder to handle generative tasks. Video captioners have been pretrained on large-scale video-language datasets, but they rely heavily on finetuning and lack the ability to generate text for unseen tasks in a few-shot setting. We propose VidIL, a few-shot Video-language Learner via Image and Language models, which demonstrates strong performance on few-shot video-to-text tasks without the necessity of pretraining or finetuning on any video datasets. We use the image-language models to translate the video content into frame captions, object, attribute, and event phrases, and compose them into a temporal structure template. We then instruct a language model, with a prompt containing a few in-context examples, to generate a target output from the composed content. The flexibility of prompting allows the model to capture any form of text input, such as automatic speech recognition (ASR) transcripts. Our experiments demonstrate the power of language models in understanding videos on a wide variety of video-language tasks, including video captioning, video question answering, video caption retrieval, and video future event prediction. Especially, on video future event prediction, our few-shot model significantly outperforms state-of-the-art supervised models trained on large-scale video datasets. Code and resources are publicly available for research purposes at https://github.com/MikeWangWZHL/VidIL .

Motivation & Objective

  • Motivate flexible, few-shot video-to-text learning without fine-tuning on video data.
  • Translate video content into textual representations via image-language models (frame captions, visual tokens).
  • Empower a frozen language model to generate target outputs for diverse tasks with in-context prompting.
  • Demonstrate broad applicability across captioning, QA, retrieval, and event prediction.

Proposed method

  • Decompose video into three textual levels: visual tokens (objects, events, attributes), frame captions, and video-level representation.
  • Use CLIP to retrieve top visual tokens per sampled frame via cosine similarity to a candidate vocabulary.
  • Construct event vocabulary from Visual Genome using Semantic Role Labeling and prune with SentenceBERT similarities.
  • Generate frame captions with BLIP to capture frame-level semantics and filter noise.
  • Assemble a temporal-aware few-shot prompt (instruction + in-context examples + task query) for a frozen language model (e.g., InstructGPT) to produce the target output.
  • Inject temporal markers (First/Then/Finally) into the prompt to guide the language model through object/event changes over time.

Experimental results

Research questions

  • RQ1Can a frozen language model, guided by image-language-derived representations and temporal prompting, perform diverse video-to-text tasks in a few-shot setting without video pretraining?
  • RQ2How do frame-level captions and visual tokens contribute to performance across captioning, QA, retrieval, and event prediction?
  • RQ3What is the impact of temporal ordering and ASR/transcripts on few-shot video-language tasks?

Key findings

  • VidIL achieves strong few-shot performance on video captioning, QA, retrieval, and future event prediction without video pretraining or finetuning.
  • In-context example selection based on SentenceBERT and recency improves few-shot robustness and efficiency.
  • Temporal-aware prompting improves the model's ability to capture temporal dynamics, outperforming static prompts on tasks requiring sequence understanding.
  • The approach better handles domain variation (open-domain vs. instructional videos) and benefits from additional modalities such as ASR transcripts.
  • On video-language event prediction, VidIL’s 10-shot configuration outperforms some fully supervised baselines trained on larger video datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.