Towards Agentic Video Corpus Moment Retrieval
Organizations: Northwestern University · Dolby
Abstract
Video corpus moment retrieval (VCMR) requires finding the video and time interval that match a text query in a corpus of videos. We present RELAY, a training-free framework for VCMR that shares memory across queries. RELAY processes a batch of queries in three stages: search with a query bank, ranking with video notes, and localization with video prompt caching. In the search stage, an embedding model scores each video by its best-matching frame. The query bank penalizes videos that score highly for many other queries in the batch. In the ranking stage, a vision-language model (VLM) writes notes on each candidate video's scenes, people, objects, and actions once. Then, a large language model (LLM) reranks the candidates from these notes. In the localization stage, a VLM predicts the time interval of the moment in the top-ranked video. When multiple queries select the same video, prompt caching lets the VLM reuse its frames. On the three VERIFIED benchmarks, RELAY outperforms the trained baselines in video retrieval R@1 without training. Without any labeled moment, its predicted intervals are shorter than the annotated ones. In VCMR, it achieves similar performance to VideoSearch-R1 on one benchmark and trails it at IoU 0.5 on the other two. Human annotators also mark shorter moments than the original annotations of the benchmarks. A single margin, calibrated on a few labeled queries, widens the predicted interval to the annotation convention of the benchmarks. With it, RELAY outperforms the trained baselines in VCMR at IoU 0.5.
Figures & tables
| Charades-FIG | DiDeMo-FIG | ActivityNet-FIG | |||||||||||
| VR | VCMR R@1 | VR | VCMR R@1 | VR | VCMR R@1 | ||||||||
| Method | Trained | R@1 | R@10 | 0.5 | 0.7 | R@1 | R@10 | 0.5 | 0.7 | R@1 | R@10 | 0.5 | 0.7 |
| HERO [ 23 ] | ✓ | 1.69 | 11.51 | 0.11 | 0.05 | 8.48 | 39.52 | 0.24 | 0.17 | 7.95 | 36.49 | 1.46 | 0.75 |
| XML [ 21 ] | ✓ | 2.80 | 14.11 | 1.05 | 0.43 | 14.83 | 53.95 | 3.19 | 2.32 | 13.46 | 49.99 | 2.81 | 1.63 |
| ReLoCLNet [ 49 ] | ✓ | 2.42 | 12.61 | 0.78 | 0.30 | 14.08 | 50.88 | 3.74 | 1.92 | 17.49 | 56.49 | 3.72 | 2.23 |
| CONQUER [ 13 ] | ✓ | 2.80 | 14.11 | 1.21 | 0.65 | 14.83 | 53.95 | 5.48 | 3.66 | 13.46 | 49.99 | 2.95 | 1.63 |
| VR | VCMR R@1 | Tokens | Frames | |||
| R@1 | 0.5 | 0.7 | ranking | localization | ||
| Relay w/ margin | 32.77 | 21.37 | 14.84 | 10.5k | 7.8k | 54.8 |
| Relay w/o margin | 32.77 | 11.75 | 5.38 | 10.5k | 7.8k | 54.8 |
| Relay w/o video prompt caching | 32.77 | 20.51 | 14.11 | 10.5k | 22.8k | 129.3 |
| Relay w/o fusion | 32.04 | 20.22 | 13.44 | 10.5k | 22.7k | 129.0 |
| Relay w/o query bank | 29.68 | 18.74 | 12.69 | 10.4k | 22.5k | 128.0 |
| Charades-FIG | DiDeMo-FIG | ActivityNet-FIG | |||||||
| VR | VCMR R@1 | VR | VCMR R@1 | VR | VCMR R@1 | ||||
| Query bank | R@1 | 0.5 | 0.7 | R@1 | 0.5 | 0.7 | R@1 | 0.5 | 0.7 |
| Test queries | 32.77 | 11.75 | 5.38 | 64.64 | 14.88 | 5.91 | 65.96 | 22.39 | 13.31 |
| w/ margin | 32.77 | 21.37 | 14.84 | 64.64 | 32.44 | 16.37 | 65.96 | 24.91 | 13.92 |
| Training queries | 32.93 | 11.67 | 5.19 | 62.47 | 14.48 | 5.83 | 64.88 | 22.28 | 13.38 |
| w/ margin | 32.93 | 21.26 | 14.95 | 62.47 | 31.27 | 15.50 | 64.88 | 24.78 | 13.82 |
| Charades-FIG | DiDeMo-FIG | ActivityNet-FIG | |||||||
| VR | VCMR R@1 | VR | VCMR R@1 | VR | VCMR R@1 | ||||
| Queries | R@1 | 0.5 | 0.7 | R@1 | 0.5 | 0.7 | R@1 | 0.5 | 0.7 |
| Batch | 32.77 | 11.75 | 5.38 | 64.64 | 14.88 | 5.91 | 65.96 | 22.39 | 13.31 |
| w/ margin | 32.77 | 21.37 | 14.84 | 64.64 | 32.44 | 16.37 | 65.96 | 24.91 | 13.92 |
| Stream | 32.15 | 11.80 | 5.35 | 63.72 | 14.88 | 5.66 | 65.09 | 22.27 | 13.27 |
| w/ margin | 32.15 | 21.24 | 14.84 | 63.72 | 32.07 | 16.00 | 65.09 | 24.67 | 13.77 |
| vs. annotation | vs. annotators | |||||
| Moment | 0.5 | 0.7 | 0.5 | 0.7 | offset | length |
| Charades-STA | ||||||
| Benchmark Annotation | – | – | 49.7 | 17.9 | 1.0 | 7.1 |
| Human annotator | 44.0 | 18.0 | 67.2 | 37.6 | 0.7 | 4.2 |
| + 2 s margin | 73.7 | 51.6 | 51.6 | 18.3 | 0.8 | 7.8 |
| Relay | 23.4 | 11.6 | 43.2 | 22.9 | 0.8 | 2.9 |
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| Notation | Description |
| Temporal interval from time to time | |
| Cosine similarity of two embeddings | |
| Temporal intersection over union of two intervals | |
| Output of the VLM for the given text and frames | |
| Output of the LLM for the given text | |
| Corpus of videos |
| Task | Dataset | Query type | Split | Videos | Queries | Video (s) | Moment (s) | Words |
| VCMR, VR | Charades-FIG [ 4 ] | fine-grained | test | 1,334 | 3,720 | 29.6 | 8.0 | 15.4 |
| DiDeMo-FIG [ 4 ] | fine-grained | test | 1,002 | 4,013 | 29.1 a | 6.5 | 16.3 | |
| ActivityNet-FIG [ 4 ] | fine-grained | test | 4,866 | 16,966 | 118.1 | 40.2 | 25.8 | |
| VCMR | Charades-STA [ 9 ] | original | test | 1,334 | 3,720 | 29.6 | 8.0 | 6.2 |
| DiDeMo [ 1 ] | original | test | 1,004 | 4,021 | 29.1 a | 6.5 | 7.5 | |
| ActivityNet Captions [ 18 ] | original | val | 4,917 | 17,505 | 118.2 | 37.7 | 13.6 |
| Margin (s) | ||||||
| 0 | ||||||
| Relay , VCMR | ||||||
| Charades-FIG | 9.7 | 13.6 | 15.4 | 19.3 | 18.5 | 16.2 |
| DiDeMo-FIG | 15.0 | 21.8 | 30.0 | 35.2 | 34.8 | 17.2 |
| ActivityNet-FIG | 23.6 | 24.4 | 24.4 | 26.6 | 26.4 | 26.0 |
| Relay , annotated video | ||||||
| Same benchmark | Charades-FIG | |||||
| 0.5 | 0.7 | 0.5 | 0.7 | |||
| Charades-FIG | ||||||
| 5 | 2.95 | 20.9 | 13.0 | – | – | – |
| 10 | 2.85 | 21.1 | 13.1 | – | – | – |
| 20 | 2.85 | 21.2 | 13.3 | – | – | – |
| 50 | 2.80 | 21.4 | 13.8 | – | – | – |
| Charades-FIG | DiDeMo-FIG | ActivityNet-FIG | ||||
| 0.5 | 0.7 | 0.5 | 0.7 | 0.5 | 0.7 | |
| Relay | 11.75 | 5.38 | 14.88 | 5.91 | 22.39 | 13.31 |
| + 2 s per side ( Relay w/ margin) | 21.37 | 14.84 | 32.44 | 16.37 | 24.91 | 13.92 |
| + 52% of its length per side | 16.42 | 9.17 | 22.13 | 10.04 | 24.89 | 11.60 |
| Two intervals: the action | 10.38 | 4.78 | 13.06 | 5.28 | 22.51 | 13.31 |
| + 2 s per side | 20.19 | 14.19 | 28.38 | 12.98 | 24.75 | 13.77 |
| Charades-STA | DiDeMo | ActivityNet Captions | TVR | |||||
| Method | 0.5 | 0.7 | 0.5 | 0.7 | 0.5 | 0.7 | 0.5 | 0.7 |
| MCN (TEF) a [ 7 ] | 0.13 | 0.08 | 0.88 | 0.58 | 0.12 | 0.07 | – | – |
| CAL (TEF) a [ 7 ] | 0.23 | 0.12 | 0.97 | 0.66 | 0.21 | 0.12 | – | – |
| XML [ 21 ] | 0.3 b | 0.22 b | 2.26 | 1.59 | – | – | 5.28 | 2.62 |
| HERO [ 23 ] | – | – | – | 2.14 | – | – | – | 5.13 |
| HAMMER [ 47 ] | – | – | – | – | 2.94 | 1.74 | 9.19 | 5.13 |
| VR R@1 | VCMR | |||||
| Length (s) | Queries | Notes (s) | Bank | Relay | Gain | 0.5 |
| Charades-FIG | ||||||
| 7–27 | 927 | 0.49 | 27.1 | 30.6 | +3.6 | 21.5 |
| 27–31 | 912 | 0.50 | 30.8 | 36.7 | +5.9 | 24.8 |
| 31–33 | 949 | 0.50 | 30.0 | 33.5 | +3.5 | 20.9 |
| 33–72 | 932 | 0.56 | 25.5 | 30.3 | +4.7 | 18.5 |
| Charades-FIG | DiDeMo-FIG | ActivityNet-FIG | ||||||||
| Method | Trained | 0.3 | 0.5 | 0.7 | 0.3 | 0.5 | 0.7 | 0.3 | 0.5 | 0.7 |
| VideoSearch-R1 [ 20 ] | ✓ | 16.5 | 13.4 | 8.2 | 33.3 | 30.2 | 19.7 | 33.8 | 22.3 | 12.3 |
| Relay | – | 19.17 | 11.75 | 5.38 | 27.73 | 14.88 | 5.91 | 34.40 | 22.39 | 13.31 |
| w/ the whole activity | – | 24.33 | 14.06 | 6.99 | 31.37 | 16.25 | 7.40 | 38.59 | 25.38 | 15.17 |
| w/ TFVTG’s moment | – | 23.15 | 17.23 | 8.60 | 30.18 | 19.89 | 7.63 | – | – | – |
| w/ DiDeMo’s segments | – | – | – | – | 44.95 | 41.27 | 29.85 | – | – | – |
| 0.3 | 0.5 | 0.7 | |
| Charades-FIG | |||
| VR R@1 | |||
| Relay | |||
| w/ the whole activity | |||
| w/ TFVTG’s moment | |||
| Relay w/ margin | |||
| IoU | Margin (s) | |||||||||||
| 0 | ||||||||||||
| Relay | ||||||||||||
| Charades-FIG | 0.5 | 0.5 | 1.6 | 3.2 | 6.3 | 8.9 | 11.7 | 14.9 | 18.8 | 21.4 | 21.6 | 18.1 |
| 0.7 | 0.1 | 0.3 | 0.8 | 2.0 | 3.1 | 5.4 | 7.4 | 10.2 | 14.8 | 14.1 | 7.4 | |
| DiDeMo-FIG | 0.5 | 0.5 | 1.3 | 2.9 | 6.8 | 9.7 | 14.9 | 20.1 | 26.5 | 32.4 | 32.5 | 18.9 |
| 0.7 | 0.1 | 0.3 | 0.8 | 2.1 | 4.0 | 5.9 | 8.6 | 11.2 | 16.4 | 14.9 | 8.5 | |
| Predicted interval (s) | Annotation (s) | Margin hits | ||||||||||
| Queries | 25% | 50% | 75% | 25% | 50% | 75% | Short | Centered | Queries | Short | After 30 s | |
| Charades-FIG | 1,219 | 2.1 | 4.5 | 9.5 | 5.6 | 7.3 | 10.2 | 41.4 | 74.5 | 379 | 92.1 | – |
| DiDeMo-FIG | 2,594 | 1.5 | 3.5 | 8.0 | 5.0 | 5.0 | 5.0 | 43.0 | 62.4 | 761 | 87.5 | 6.2 |
| ActivityNet-FIG | 11,189 | 4.2 | 12.5 | 41.4 | 11.0 | 26.8 | 55.9 | 40.7 | 68.8 | 753 | 87.8 | – |
| Charades-FIG | DiDeMo-FIG | ActivityNet-FIG | |||||||
| New | Cached | Output | New | Cached | Output | New | Cached | Output | |
| Notes (shared) | 4.3k | 0.0k | 241 | 4.1k | 0.0k | 186 | 4.6k | 0.0k | 324 |
| Ranking call | 6.2k | 0.0k | 33 | 7.5k | 0.0k | 33 | 11.0k | 0.0k | 34 |
| Localization | 7.8k | 21.2k | 29 | 11.2k | 30.5k | 34 | 23.6k | 29.7k | 45 |
| Total | 18.3k | 21.2k | 302 | 22.8k | 30.5k | 254 | 39.3k | 29.7k | 404 |
| R@1 | Tokens | |||||
| 0.5 | 0.7 | All | New | Difference 0.5 / 0.7 | ||
| Charades-FIG dev | one call per query | 61.8 | 40.5 | 23.4k | 20.5k | |
| video prompt caching | 66.3 | 43.1 | 33.2k | 10.1k | +4.5 / +2.7 | |
| video prompt caching, every turn kept | 68.4 | 44.1 | 33.2k | 9.4k | +6.6 / +3.7 | |
| same, queries in reversed order | 64.5 | 41.9 | 33.3k | 8.9k | +2.7 / +1.4 | |
| Charades-FIG test | one call per query | 20.5 | 14.1 | 22.8k | 22.8k | |
| Charades-FIG | DiDeMo-FIG | ActivityNet-FIG | |||||||
| VR | VCMR 0.5 | Tokens | VR | VCMR 0.5 | Tokens | VR | VCMR 0.5 | Tokens | |
| Search | 24.0 | 11.5 | 0.0k | 68.6 | 20.2 | 0.0k | 61.6 | 21.2 | 0.0k |
| Search with query bank | 28.3 | 14.2 | 0.0k | 72.6 | 21.4 | 0.0k | 62.2 | 21.2 | 0.0k |
| Relay w/o query bank | 25.9 | 15.2 | 35.5k | 68.8 | 33.2 | 46.1k | 66.6 | 25.8 | 63.6k |
| Relay w/o fusion | 32.4 | 19.3 | 35.2k | 66.8 | 31.8 | 45.6k | 64.2 | 26.8 | 62.7k |
| Relay | 33.7 | 19.3 | 35.3k | 73.2 | 35.2 | 45.7k | 66.8 | 26.6 | 62.7k |
| Charades-FIG | DiDeMo-FIG | ActivityNet-FIG | |||||||
| VR | 0.5 | +2 s | VR | 0.5 | +2 s | VR | 0.5 | +2 s | |
| Relay | 32.77 | 11.75 | 21.37 | 64.64 | 14.88 | 32.44 | 65.96 | 22.39 | 24.91 |
| w/ fallback to the next videos | 36.83 | 12.90 | 24.46 | 68.08 | 15.67 | 34.59 | 69.23 | 23.45 | 26.26 |
| w/ fallback, the interval of the fallback call | 36.83 | 13.20 | 24.17 | 68.08 | 15.42 | 31.62 | 69.23 | 24.85 | 27.08 |
| upper bound, annotated video in the top 3 | 48.71 | 17.18 | 32.26 | 81.78 | 18.81 | 40.74 | 79.97 | 26.72 | 29.78 |
| upper bound, annotated video in the top 10 | 62.42 | 21.56 | 41.45 | 89.86 | 20.93 | 44.65 | – | – | – |
| Charades-FIG | DiDeMo-FIG | ActivityNet-FIG | ||||
| R@1 | R@10 | R@1 | R@10 | R@1 | R@10 | |
| No query bank | 25.97 | 58.52 | 57.06 | 86.99 | 60.11 | 86.84 |
| The split’s queries ( Relay ) | 28.36 | 62.42 | 61.48 | 89.86 | 62.28 | 87.60 |
| without the query itself | 28.41 | 62.39 | 61.53 | 89.78 | 62.22 | 87.59 |
| All training queries | 28.04 | 61.91 | 59.61 | 89.04 | 60.37 | 86.92 |
| 100 training queries | 26.33 | 59.97 | 59.62 | 89.43 | 58.69 | 86.27 |
| Charades-FIG | DiDeMo-FIG | ActivityNet-FIG | |||||||
| Arrival | Stream | w/o itself | from training | Stream | w/o itself | from training | Stream | w/o itself | from training |
| 1–100 | 0.60 | 0.40 | 2.20 | +0.80 | +0.40 | +1.60 | 1.90 | 1.90 | +0.41 |
| 101–500 | +1.75 | +1.65 | +2.90 | +4.70 | +4.60 | +2.90 | 0.89 | 1.04 | +0.36 |
| 501–1,000 | +1.44 | +1.36 | +1.60 | +3.16 | +2.96 | +2.68 | 0.54 | 0.75 | +0.17 |
| 1,001–2,000 | +2.14 | +1.98 | +2.52 | +3.36 | +3.26 | +2.36 | +0.38 | +0.21 | +0.58 |
| 2,001 on | +2.18 | +2.14 | +2.18 | +4.50 | +4.54 | +3.36 | +1.63 | +1.58 | +0.95 |
| vs. annotation | vs. refined annotation | |||||
| Moment | 0.3 | 0.5 | 0.7 | 0.3 | 0.5 | 0.7 |
| Charades-STA (872 sentences), in the annotated video | ||||||
| Annotation | – | – | – | 65.9 | 36.1 | 14.6 |
| Relay | 48.3 | 26.4 | 12.2 | 62.5 | 41.7 | 22.8 |
| Relay w/ margin | 85.9 | 74.5 | 53.0 | 70.9 | 41.6 | 18.7 |
| ActivityNet Captions (1,314 sentences), in the annotated video | ||||||