VideoGym: An Adaptive RL Environment for Long-Video Agents
Jing Wang, Yi Ke Yun, Yifeng Yao, Huishuai Zhang, Dongyan Zhao, Tao Wang
Abstract
Reinforcement learning (RL) trains video agents to locate sparse evidence for long-video question answering through structured memory retrieval and temporal re-observation. This training, however, faces a long-tail modality distribution in the data. In our source pool, text-heavy questions account for 58% of samples, compared with 15% graph-heavy, 17% visual-heavy, and 10% time-range questions. Fixed-distribution RL therefore allocates fewer rollouts to underperforming question types. Reweighting these types could increase their sampling frequency but repeatedly reuses the same finite banks of original questions. To solve this problem, we introduce VideoGym, a curriculum-based RL environment that jointly constructs video-grounded training tasks and allocates rollouts among them. Within the environment, a memory-augmented VideoAgent is trained to coordinate retrieval from text, graph, and visual memories with temporal re-observation. Across episodes, VideoGym adapts VideoAgent's training distribution online: it casts per-period sample selection as an adversarial bandit over (modality, mode) arms and applies the EXP3 update to shift sampling toward arms with low answer accuracy. To supply the augmented-mode arms, a TaskGenerator-Verifier pipeline produces harder variants of existing questions that remain answerable within the same video. Across five long-video benchmarks, VideoGym lifts RL accuracy from 60.4% to 64.8% on average and by up to 10.5 pp on underrepresented graph-heavy questions with 3.3x sample efficiency. Together, these results show that task expansion and adaptive allocation can improve video agent learning from limited, imbalanced training data.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI, cs.MM
Related papers
VTree: Question-Driven Growth of Hierarchical Memory for Agentic Long-Video Understanding
Shared title terminologycs.CVXiaoyu Ma, Lianyu Hu, Zixuan Hu et al.
NexSight: Verifiable Tasks for Fine-Grained Agentic Long-Video Understanding
Shared title terminologycs.CVTianci Xie, Li Chen, Pinxue Guo et al.
APS: Adaptive Partitioning-Based Frame Selection for Long Video Understanding
Shared title terminologycs.CVJunxiang Wen, Yinxi Zhao, Jiawei Chen et al.
PSC-Gen: Physical Sequence Conditioning for Video Generation via Agentic Visual Planning
Shared title terminologycs.CVWonsik Shin, Jinju Jang, Junhoo Lee et al.
Look Closer, Look Back, or Wait for Agentic Streaming Video Understanding
Shared title terminologycs.CVPengyu Li, Zhitao Gao, Lingling Zhang et al.
Do VLMs Need to Keep Looking at Long Videos? Write It Down, Then Look Away
Shared title terminologycs.CVPengyu Li, Zhitao Gao, Lingling Zhang et al.