- Authors: Boris Meinardus, Hector Garcia Rodriguez, Anil Batra, Anna Rohrbach, Marcus Rohrbach
- Paper: arxiv
The recent success of Large Language Models (LLMs) has prompted the extension to the multimodal domain developing image-text Multimodal LLMs (MLLMs) and then video-text models. In this work, we investigate the challenge of contextual and temporal comprehension in video-language models by exploring the task of temporal localization in videos. To address this problem, prior works have developed complex task-specific architectures, novel modules to embed time into MLLMs, or leveraged additional input signals such as video transcripts to best encode contextual and temporal information. Interestingly, we find that most of these efforts are surpassed by a much simpler design. We introduce Chrono, a universal sequence blueprint that can be applied to an image-text pretrained MLLM. Through extensive ablations across different MLLM architectures, finetuning and zero-shot settings, and different datasets, we achieve a new SOTA in moment retrieval on the most widely used benchmarks Charades-STA, QVHighlights, ActivityNet Captions, and grounded video question answering on NeXT-GQA.
# data & data preprocessing
./mr_BLIP_data
# pretrained checkpoints
./mr_BLIP_checkpoints
# mr_BLIP code
./lavis/
# running scripts for mr_BLIP training and inference
./run_scripts
- (Optional) Creating conda environment
conda create -n mrBlip python=3.8
conda activate mrBlip
- build from source
pip install -r requirements.txt
We train Mr. BLIP on QVHighlights, Charades-STA, and ActivityNet Captions and provide the checkpoints. Download the checkpoints and put them under /mr_BLIP_checkpoints.
We test our model on:
Please download original MR data and preprocess them via our scripts.
We provide Mr. BLIP training and inference script examples as follows.
And please refer to dataset page to customize your data path.
You might want to update the config files for the respective runs to fit on your machine. They are currently set to run on 8 A100-80GB GPUs. You can simply reduce the batch size, reduce the number of frames, or apply a frame level embeddings aggregation (32 frame tokens -> 1 token) to fit on a smaller GPU.
sh run_scripts/mr_BLIP/train/qvh.sh
sh run_scripts/mr_BLIP/train/charades.sh
sh run_scripts/mr_BLIP/train/anet.sh
Should roughly return:
[email protected] | [email protected] | mIoU | [email protected] | [email protected] | |
---|---|---|---|---|---|
Mr. BLIP | 76.16 | 62.63 | 70.32 | 68.50 | 55.06 |
sh run_scripts/mr_BLIP/eval/qvh.sh
Should roughly return:
[email protected] | [email protected] | mIoU | |
---|---|---|---|
Mr. BLIP | 69.31 | 49.29 | 58.63 |
sh run_scripts/mr_BLIP/eval/charades.sh
Should roughly return:
[email protected] | [email protected] | mIoU | |
---|---|---|---|
Mr. BLIP | 53.79 | 35.47 | 51.52 |
sh run_scripts/mr_BLIP/eval/anet.sh
We thank the developers of LAVIS and BLIP-2 for their public code release.
Please cite our paper if you use our models in your works:
@article{meinardus2025chronosimpleblueprintrepresenting,
title={Chrono: A Simple Blueprint for Representing Time in MLLMs},
author={Boris Meinardus and Hector Garcia Rodriguez and Anil Batra and Anna Rohrbach and Marcus Rohrbach},
year={2025},
eprint={2406.18113},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2406.18113},
}