Skip to main content
QUICK REVIEW

[Paper Review] Zero-Shot Video Captioning with Evolving Pseudo-Tokens

Yoad Tewel, Yoav Shalev|arXiv (Cornell University)|Jul 22, 2022
Multimodal Machine Learning ApplicationsComputer Science14 citations
TL;DR

This paper proposes a zero-shot video captioning method that uses iterative optimization of learnable pseudo-tokens within a frozen GPT-2 and CLIP framework to generate coherent, knowledge-rich captions. By refining the prompt iteratively to maximize CLIP matching scores while preserving fluency, the method produces increasingly specific and grounded captions without fine-tuning, outperforming state-of-the-art zero-shot approaches in fluency and grounding.

ABSTRACT

We introduce a zero-shot video captioning method that employs two frozen networks: the GPT-2 language model and the CLIP image-text matching model. The matching score is used to steer the language model toward generating a sentence that has a high average matching score to a subset of the video frames. Unlike zero-shot image captioning methods, our work considers the entire sentence at once. This is achieved by optimizing, during the generation process, part of the prompt from scratch, by modifying the representation of all other tokens in the prompt, and by repeating the process iteratively, gradually improving the specificity and comprehensiveness of the generated sentence. Our experiments show that the generated captions are coherent and display a broad range of real-world knowledge. Our code is available at: https://github.com/YoadTew/zero-shot-video-to-text

Motivation & Objective

  • To address the challenge of video captioning in the absence of large-scale, high-quality human-annotated datasets.
  • To enable zero-shot video captioning without fine-tuning, leveraging pre-trained models to generate fluent and grounded descriptions.
  • To improve caption quality by optimizing the entire sentence at once, rather than individual tokens, using a novel iterative prompt refinement process.
  • To enable the model to incorporate real-world knowledge and narrative structure from sparse video frames.

Proposed method

  • The method uses two frozen models: GPT-2 for autoregressive text generation and CLIP for image-text matching to guide caption quality.
  • A prompt is constructed from three components: learnable pseudo-tokens in the language model’s latent space, a random context prompt (e.g., 'Photo of'), and previously generated tokens.
  • During autoregressive generation, the pseudo-tokens are optimized in memory to maximize the average CLIP matching score of the generated sentence, using a contrastive loss.
  • The optimization process is repeated iteratively—up to 16 times—using the refined pseudo-tokens from the previous iteration as the new starting point, leading to increasingly specific and grounded captions.
  • The process regularizes the language model to avoid drastic changes in next-token likelihood, preserving fluency while improving alignment with input frames.
  • The final caption is selected as the one achieving the highest CLIP matching score across all iterations.

Experimental results

Research questions

  • RQ1Can a zero-shot video captioning method generate coherent and knowledge-rich captions without fine-tuning on annotated data?
  • RQ2Does optimizing the entire sentence at once through iterative prompt refinement improve caption quality compared to token-level optimization?
  • RQ3Can a method based on frozen models like GPT-2 and CLIP generate narratives that reflect logical event order and real-world knowledge from sparse video frames?
  • RQ4How does the iterative refinement of pseudo-tokens affect grounding and fluency in captions compared to baseline zero-shot methods?

Key findings

  • The proposed method achieved a human evaluation score of 4.14 for video captioning (on a 5-point scale), significantly outperforming the next-best method (2.30), demonstrating superior fluency and grounding.
  • For image captioning, the method scored 4.01 in human evaluation, compared to 2.52 for the next-best method, indicating strong generalization to visual inputs.
  • The model generated captions with increasing specificity over iterations: from abstract concepts (e.g., 'soldier', 'battle') to specific entities (e.g., 'Halo characters') and finally to narrative context (e.g., 'animated cartoon').
  • The CLIP matching score increased from 0.70 to 0.88 over 16 iterations in one video example, indicating improved alignment with input frames.
  • The method outperformed token-level optimization baselines (e.g., ZeroCap, MAGIC) in fluency and coherence, as measured by the perplexity (PP) metric, despite MAGIC’s superior performance on supervised metrics due to fine-tuning.
  • Stress-testing on random image sets showed the model’s ability to generate coherent, narrative-like descriptions even when input images were semantically unrelated, highlighting its capacity for synthetic reasoning and narrative construction.

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.