[Paper Review] Align and Prompt: Video-and-Language Pre-training with Entity Prompts
This paper proposes AlPro, a video-and-language pre-training framework that enhances cross-modal alignment through video-text contrastive learning and a novel prompting entity modeling (PEM) task. By using a self-supervised entity prompter to generate pseudo-labels without object detectors, AlPro achieves state-of-the-art performance on text-video retrieval and videoQA, with a 5.4% absolute improvement in zero-shot retrieval on MSRVTT.
Video-and-language pre-training has shown promising improvements on various downstream tasks. Most previous methods capture cross-modal interactions with a transformer-based multimodal encoder, not fully addressing the misalignment between unimodal video and text features. Besides, learning fine-grained visual-language alignment usually requires off-the-shelf object detectors to provide object information, which is bottlenecked by the detector's limited vocabulary and expensive computation cost. We propose Align and Prompt: an efficient and effective video-and-language pre-training framework with better cross-modal alignment. First, we introduce a video-text contrastive (VTC) loss to align unimodal video-text features at the instance level, which eases the modeling of cross-modal interactions. Then, we propose a new visually-grounded pre-training task, prompting entity modeling (PEM), which aims to learn fine-grained region-entity alignment. To achieve this, we first introduce an entity prompter module, which is trained with VTC to produce the similarity between a video crop and text prompts instantiated with entity names. The PEM task then asks the model to predict the entity pseudo-labels (i.e~normalized similarity scores) for randomly-selected video crops. The resulting pre-trained model achieves state-of-the-art performance on both text-video retrieval and videoQA, outperforming prior work by a substantial margin. Our code and pre-trained models are available at https://github.com/salesforce/ALPRO.
Motivation & Objective
- Address the misalignment between unimodal video and text features in video-language pre-training.
- Overcome the limitations of object detectors in providing fine-grained visual-language supervision, including vocabulary constraints and high computational cost.
- Enable effective cross-modal learning on sparsely-sampled video frames without relying on fixed offline features.
- Strengthen fine-grained region-entity alignment through a self-supervised prompting mechanism.
- Achieve state-of-the-art performance on downstream video-language tasks like text-video retrieval and videoQA.
Proposed method
- Introduce a video-text contrastive (VTC) loss to align unimodal video and text features at the instance level, improving cross-modal interaction modeling.
- Propose a novel pre-training task, prompting entity modeling (PEM), which learns fine-grained alignment between visual regions and textual entities using a dedicated entity prompter module.
- Design a self-supervised entity prompter that computes similarity between video crops and text prompts (e.g., "A video of {ENTITY}") to generate pseudo-labels without ground-truth annotations.
- Use prompt ensembling with multiple templates (e.g., "A footage of one {ENTITY}") to improve the quality of pseudo-labels.
- Pre-train the video-and-language transformer using VTC, PEM, masked language modeling (MLM), and video-text matching (VTM) losses in an end-to-end manner on web-sourced video-text pairs.
- Sample frames sparsely from videos to enable efficient end-to-end training of the visual backbone, avoiding fixed offline features.
![Figure 1 : Generating supervision for region-entity alignment. Above : previous methods ( e.g . ActBERT [ 57 ] ) rely on object detectors with expensive computation cost and limited object categories, leaving text data unexploited. Below : AlPro generates soft entity labels with a prompter module, w](https://ar5iv.labs.arxiv.org/html/2112.09583/assets/x1.png)
Experimental results
Research questions
- RQ1Can instance-level video-text feature alignment improve cross-modal representation learning in video-language models?
- RQ2Can a self-supervised entity prompter generate high-quality pseudo-labels for fine-grained region-entity alignment without relying on object detectors?
- RQ3How does the number of entities and frames affect the performance of the pre-trained model on downstream tasks?
- RQ4Does the proposed PEM task lead to measurable improvements in video-language understanding benchmarks like text-video retrieval and videoQA?
- RQ5Can the prompting-based framework be effectively extended to image-text or video-only representation learning?
Key findings
- AlPro achieves a 5.4% absolute improvement in R1 score on the zero-shot text-video retrieval task on MSRVTT, outperforming prior state-of-the-art methods.
- On the MSVD-QA benchmark, AlPro achieves 45.9% accuracy with prompt ensembling, a 0.9% improvement over the baseline without ensembling.
- The model with 8–16 sampled frames achieves the best trade-off between performance and computational cost, with 34.2% R1 on MSRVTT-FT and 24.7% R1 on MSRVTT-ZS.
- Adding PEM consistently improves performance over the baseline (MLM+VTM+VTC), with the best results achieved using 1,000 frequent entities.
- Using more than 1,000 entities introduces noise due to low-frequency entities, reducing performance, indicating an optimal balance in entity selection.
- Prompt ensembling significantly improves pseudo-label quality, increasing R1 on MSRVTT-ZS from 22.6% to 24.1% and accuracy on MSVD-QA from 45.0% to 45.9%.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.