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.
Figures & tables
Figure 1: Video access and training organization. Three example access patterns contrast fixed frames with searchable video memory. The right-hand system combines multimodal evidence gathering in VideoAgent with task construction and feedback-driven allocation in VideoGym .
Figure 2: Task construction and feedback in VideoGym . Sampled tasks are instantiated from original questions or verifier-accepted variants. Trajectories provide answer correctness for task allocation and composite rewards for GRPO. Algorithm 1 and Eq. ( 10 ) specify these two feedback paths.
Method
Size
EgoLife QA
Ego-R1 Bench
Hippo Vlog
LV Bench
Video-MME (Long)
Avg.
Long-video models
VideoChat-Flash [ 10 ]
7B
34.6
41.3
61.2
47.9
54.8
48.0
Time-R1 [ 21 ]
7B
45.1
43.6
57.4
40.2
52.7
47.8
Video-RTS [ 22 ]
7B
45.7
44.8
62.3
45.1
54.4
50.5
RAG-based methods
LightRAG [ 7 ]
–
43.2
42.5
47.1
31.6
42.4
41.4
Table 1: Main results on five long-video benchmarks. Accuracy (%). Baselines are re-evaluated from released code and checkpoints under a common multiple-choice protocol. Bold indicates the best result per column; blue rows show our training stages. For RL, Avg. reports the mean and sample standard deviation of the five-benchmark average across three seeds.
Method
Text-heavy
Graph-heavy
Visual-heavy
Time-range
Training-free
67.3
41.8
43.9
53.2
+ SFT
70.1
44.2
46.8
56.4
+ RL (static tasks)
72.6
47.0
49.5
58.8
+ RL ( VideoGym )
73.9
57.5
57.0
64.2
Δ
+ 1.3
+10.5
+7.5
+5.4
Table 2: Accuracy by question type. RL rows are three-seed means. Δ gives the gain of RL ( VideoGym ) over RL (static tasks). Bold gains exceed 5 percentage points. Question types follow the task-bank labeling protocol.
Figure 3: Task allocation and policy learning in VideoGym . (a) Source-pool distribution and SFT accuracy by question type. (b) Curriculum arm probabilities from one training run. (c) Accuracy versus the number of unique raw questions at a fixed rollout budget, with generated variants included in VideoGym training. (d) GRPO advantage standard deviation under binary and composite rewards. Both main RL settings use the composite reward; Appendix E.1 discusses this shared optimization signal.
Allocation
Accuracy
Tokens
Aug. (%)
Uniform
62.02±0.44
0.987
41.6
Fixed initial-error
63.33±0.40
1.000
45.8
Fixed pilot-average
63.85±0.42
1.014
52.7
VideoGym
64.37±0.34
1.021
53.2
Table 3: Allocation on a shared task bank. Five-benchmark accuracy across three training seeds, relative training tokens, and accepted-augmentation exposure. All rows match the rollout budget. The pilot-average diagnostic uses one additional pilot run.
Table 7
Training
Acc. (%)
Suff. (%)
Joint (%)
Fixed initial-error
61.9
75.6
59.4
VideoGym
69.4
83.1
67.5
Table 6: Paired evidence acquisition. The same 160 held-out questions, initial observations, and observation limits. Acc. is answer accuracy; Suff. is source-verified evidence sufficiency; Joint requires both.
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Allocation
Seed 1
Seed 2
Seed 3
Mean
SD
Uniform
62.22
62.32
61.52
62.02
0.44
Fixed initial-error
63.40
63.70
62.90
63.33
0.40
Fixed pilot-average
63.76
64.30
63.48
63.85
0.42
VideoGym
64.36
64.72
64.04
64.37
0.34
Appendix
Table 7: Shared-bank training repetitions. Each entry is the five-benchmark mean for one training seed. The diagnostic pilot is separate.
Questions
Valid / audited
Valid (%)
95% CI
Original seeds
199/200
99.5
97.2–99.9
Accepted variants
194/200
97.0
93.6–98.6
Appendix
Table 8: Source-video audit. Balanced samples of 50 questions per type. Validity requires a supported, unambiguous answer and answerable format. Intervals are Wilson 95% intervals for this balanced audit.
Type
Valid
U
A
F
Added
Duplicate
text
49
0
0
1
24
9
graph
47
1
2
0
33
10
visual
50
0
0
0
34
6
time-range
48
1
1
0
27
8
Appendix
Table 9: Audit breakdown. Each type has 50 accepted variants. U, A, and F denote unsupported answers, ambiguity, and malformed tasks. Added and Duplicate are counted among valid variants.
Outcome
Both
Fixed only
Adaptive only
Neither
Correct answer
86
13
25
36
Sufficient evidence
110
11
23
16
Correct and sufficient
82
13
26
39
Appendix
Table 10: Paired outcomes on 160 questions. Columns partition the evaluation set. These counts expose both gains and regressions.
Subset
Accuracy
Sufficiency
Correct and sufficient
All 160
7.5 [0.0, 15.0]
7.5 [0.6, 14.4]
8.1 [0.6, 15.6]
Initial deficit, 96
9.4 [-1.0, 19.8]
12.5 [1.0, 24.0]
10.4 [0.0, 20.8]
Appendix
Table 11: Paired changes in percentage points. Brackets give 95% percentile intervals from 5,000 bootstrap resamples of paired videos, stratified by question type. Each item comes from a distinct video.