Downloads · 30 days
0
Lu9876/VideoTG_R1
VideoTG_R1 is a video-text-to-text model from Lu9876. Use it for the video-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
<h2 align="center"VideoTG-R1: Boosting Video Temporal Grounding via Curriculum Reinforcement Learning on Reflected Boundary Annotations</h2
Downloads · 30 days
0
Access
Public
Updated Dec 2, 2025
Repo size
17 GB
Likes
0
Public
Click a slice to open those files.
.safetensors16.6 GB · 97%
From the Hugging Face model README

VideoTG-R1 is a multi-agent system for data-efficient video temporal grounding. It contains three modules: 1) Boundary Reflection Agent filters the training data by identifying and discarding partially annotated samples; 2) Difficulty Estimation Agent estimates the difficulty of each sample via zero-shot evaluation; and 3) Curriculum RL strategy dynamically masks the videos of hard-to-ground samples according to the training steps, to ease the training difficulty of hard-to-ground samples. VideoTG-R1 achieves state-of-the-art performance on Charades-STA and ActivityNet-Captions. Moreover, with only 10% of the training dataset, our method outperforms models trained on the full dataset under both GRPO and SFT paradigms.
Video temporal grounding (VTG) aims to locate precise segments in videos based on language queries, which is a fundamental challenge in video understanding. While recent Multimodal Large Language Models (MLLMs) have shown promise in tackling VTG through reinforcement learning (RL), they overlook the challenges arising from both the quality and difficulty of training samples. (1) Partially annotated samples. Many samples contain relevant segments beyond the annotated interval, introducing ambiguous supervision. (2) Hard-to-ground samples. Samples with poor zero-shot performance produce consistently low and indistinguishable rewards during RL training, exhibiting no clear preference among multiple outputs and thus hindering learning efficiency. To address these challenges, we propose VideoTG-R1, a novel curriculum RL framework with reflected boundary annotations, enabling data-efficient training. Specifically, we propose a Boundary Reflection Agent that utilizes MLLMs to predict query-relevant timestamps outside the annotated intervals, allowing us to identify and filter out partially annotated samples, thereby reducing ambiguity. Furthermore, we introduce a Difficulty Estimation Agent to assess the training difficulty of each sample and design a curriculum RL strategy that dynamically masks the videos of hard-to-ground samples according to the training steps, easing the training difficulty and providing clearer preference. Experiments on the VTG and grounded VideoQA tasks demonstrate the effectiveness of our method. Remarkably, with only 10% of the training samples and 21% of the computational budget, VideoTG-R1 outperforms full-data counterparts under both group relative policy optimization (GRPO) and supervised fine-tuning (SFT). The code is available at this https URL .


pip install requirements.txt
All training and evaluation datasets can be download in VideoMind's huggingface.
cd Eval
your_ckpt=xxx
dataset_name=charades # or anet
bash video_grounding.sh ${dataset_name}
cd Eval
your_ckpt=xxx
dataset_name=rextime # or nextgqa
bash grounded_qa.sh ${dataset_name}
cd ./videotg_r1
bash grpo_train.sh
cd ./BRA
dataset_name=cosmo_cap
each_fold_size=22000
fold_index=0
bash bra_test.sh ${dataset_name} ${each_fold_size} ${fold_index}
cd ./DEA
dataset_name=cosmo_cap
each_fold_size=22000
fold_index=0
bash bra_test.sh ${dataset_name} ${each_fold_size} ${fold_index}
cd ./videotg_r1
bash grpo_train.sh
VideoTG-R1 is built with reference to the following projects: VideoMind and VideoChat-R1. Thanks for their work!
If you find our work helpful or inspiring, please feel free to cite it.
@article{shen2024longvu,
author ={Shen, Xiaoqian and Xiong, Yunyang and Zhao, Changsheng and Wu, Lemeng and Chen, Jun and Zhu, Chenchen and Liu, Zechun and Xiao, Fanyi and Varadarajan, Balakrishnan and Bordes, Florian and Liu, Zhuang and Xu, Hu and J. Kim, Hyunwoo and Soran, Bilge and Krishnamoorthi, Raghuraman and Elhoseiny, Mohamed and Chandra, Vikas},
title = {LongVU: Spatiotemporal Adaptive Compression for Long Video-Language Understanding},
journal = {arXiv preprint arXiv:2410.17434},
year = {2024},
}