Beyond Caption-Based Queries for Video Moment Retrieval
Organizations: University of Barcelona · Computer Vision Center · University of Bristol
Abstract
In this work, we investigate the degradation of existing VMR methods, particularly of DETR architectures, when trained on caption-based queries but evaluated on search queries. For this, we introduce three benchmarks by modifying the textual queries in three public VMR datasets -- i.e., HD-EPIC, YouCook2 and ActivityNet-Captions. Our analysis reveals two key generalization challenges: (i) A language gap, arising from the linguistic under-specification of search queries, and (ii) a multi-moment gap, caused by the shift from single-moment to multi-moment queries. We also identify a critical issue in these architectures -- an active decoder-query collapse -- as a primary cause of the poor generalization to multi-moment instances. We mitigate this issue with architectural modifications that effectively increase the number of active decoder queries. Extensive experiments demonstrate that our approach improves performance on search queries by up to 14.82% mAP_m, and up to 21.83% mAP_m on multi-moment search queries. The code, models and data are available in the project webpage: https://davidpujol.github.io/beyond-vmr/
Figures & tables
| Dataset | # videos | # queries | Duration per video(s) | Moments per query | Moments per query (multi) | # multi. queries | % multi. queries | Query length |
| HD_EPIC [ 33 ] | 156 | 59,454 | 954 | 1.00 | 0.00 | 0 | 0.00 | |
| HD_EPIC-S1 | 156 | 36,819 | 954 | 1.61 | 3.64 | 8,560 | 23.25 | |
| HD_EPIC-S2 | 156 | 31,521 | 954 | 1.88 | 3.87 | 9,717 | 30.83 | |
| HD_EPIC-S3 | 156 | 10,266 | 954 | 5.79 | 11.09 | 4,873 | 47.47 | |
| ANC [ 19 ] | 14950 | 71,957 | 152.8 | 1.00 | 0.00 | 0 | 0.00 | |
| ANC-S | 14950 | 59,138 | 152.8 | 1.21 | 2.45 | 8,818 | 14.91 |
| Model | Input | Variant | R m | mAP m | ||||||
| @0.1 | @0.3 | @0.5 | Avg. | @0.1 | @0.3 | @0.5 | Avg. | |||
| CG-DETR | S1 | base | 28.61 | 17.95 | 8.99 | 18.51 | 36.21 | 22.84 | 11.59 | 23.54 |
| -SA+QD | 29.87 | 19.69 | 10.86 | 20.14 | 39.74 | 26.49 | 14.87 | 27.03 | ||
| S2 | base | 24.71 | 15.52 | 7.89 | 16.04 | 32.15 | 20.1 | 10.29 | 20.84 | |
| -SA+QD | 26.17 | 17.00 | 9.40 | 17.52 | 35.38 | 23.39 | 13.04 | 23.93 | ||
| S3 | base | 9.50 | 4.61 | 2.08 | 5.39 | 16.20 | 8.01 | 3.58 | 9.26 | |
| Model | Variant | R m | mAP m | ||||||
| @0.1 | @0.3 | @0.5 | Avg. | @0.1 | @0.3 | @0.5 | Avg. | ||
| CG-DETR | base | 28.92 | 19.87 | 11.22 | 20.00 | 38.83 | 26.96 | 15.21 | 27.00 |
| -SA+QD | 29.97 | 20.32 | 11.38 | 20.55 | 41.00 | 29.40 | 17.21 | 29.20 | |
| LD-DETR | base | 33.13 | 23.48 | 11.70 | 22.70 | 41.69 | 30.04 | 15.58 | 29.10 |
| -SA+QD | 35.86 | 24.76 | 13.17 | 24.59 | 45.66 | 33.09 | 18.74 | 32.49 | |
| Model | Variant | R m | mAP m | ||||||
| @0.1 | @0.3 | @0.5 | Avg. | @0.1 | @0.3 | @0.5 | Avg. | ||
| CG-DETR | base | 60.44 | 40.89 | 24.56 | 41.96 | 72.12 | 54.92 | 36.42 | 54.48 |
| -SA+QD | 63.75 | 43.12 | 25.50 | 44.12 | 74.00 | 56.42 | 38.20 | 56.20 | |
| LD-DETR | base | 62.58 | 43.00 | 26.08 | 43.88 | 73.35 | 56.17 | 36.79 | 55.43 |
| -SA+QD | 65.21 | 43.89 | 25.77 | 44.95 | 74.25 | 56.31 | 36.69 | 55.75 | |
| Variant | # active | % match P | % match GT | ||
| base | 16.04 | 20.84 | |||
| + 1-to-5 matching [ 21 ] | 14.66 | 16.30 | |||
| + 1-to-k matching [ 21 ] | 10.78 | 11.01 | |||
| +group_matching [ 8 ] | 15.34 | 17.97 | |||
| +hybrid [ 16 ] | 14.67 | 17.04 | |||
| +ms_matcher [ 49 ] | 15.75 | 20.94 |
| Variant | # active | % match P | % match GT | ||
| -SA+QD (ours) | 17.52 | 23.93 | |||
| + 1-to-k matcher [ 21 ] | 10.38 | 10.39 | |||
| +group_matching [ 8 ] | 17.30 | 23.71 | |||
| +hybrid [ 16 ] | 17.91 | 24.38 |
Appendix figures & tables30 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Input | Variant | |||||||||
| @0.1 | @0.3 | @0.5 | @0.1 | @0.3 | @0.5 | @0.1 | @0.3 | @0.5 | |||
| CG-DETR | Original | base | 34.44 | 21.63 | 11.32 | 42.69 | 26.96 | 14.26 | 42.69 | 26.96 | 14.26 |
| -SA+QD | 34.24 | 22.68 | 12.59 | 45.79 | 30.52 | 17.16 | 45.79 | 30.52 | 17.16 | ||
| S1 | base | 28.61 | 17.95 | 8.99 | 36.21 | 22.84 | 11.59 | 38.52 | 24.33 | 12.27 | |
| -SA+QD | 29.87 | 19.69 | 10.86 | 39.74 | 26.49 | 14.87 | 41.65 | 27.98 | 15.85 | ||
| base (oracle) | 28.85 | 17.44 | 9.08 | 40.42 | 25.12 | 13.1 | 42.58 | 26.74 | 14.02 | ||
| Model | Input | Variant | ||||||||||||
| @0.1 | @0.3 | @0.5 | @0.75 | @0.1 | @0.3 | @0.5 | @0.75 | @0.1 | @0.3 | @0.5 | @0.75 | |||
| CG-DETR | Orig. | base | 63.32 | 50.71 | 37.79 | 20.11 | 69.47 | 55.55 | 41.04 | 17.18 | 69.47 | 55.55 | 41.04 | 17.18 |
| -SA+QD | 62.46 | 51.05 | 37.19 | 20.27 | 70.25 | 57.97 | 42.79 | 18.05 | 70.25 | 57.97 | 42.79 | 18.05 | ||
| S | base | 28.92 | 19.87 | 11.22 | 4.60 | 38.83 | 26.96 | 15.21 | 4.07 | 47.74 | 33.61 | 19.40 | 5.27 | |
| -SA+QD | 29.97 | 20.32 | 11.38 | 4.36 | 41.00 | 29.4 | 17.21 | 4.65 | 49.52 | 36.41 | 21.86 | 6.33 | ||
| LD-DETR | Orig. | base | 68.06 | 56.34 | 39.75 | 19.69 | 73.15 | 60.62 | 42.79 | 15.88 | 73.15 | 60.62 | 42.79 | 15.88 |
| Model | Input | Variant | ||||||||||||
| @0.1 | @0.3 | @0.5 | @0.75 | @0.1 | @0.3 | @0.5 | @0.75 | @0.1 | @0.3 | @0.5 | @0.75 | |||
| CG-DETR | Orig. | base | 75.48 | 60.00 | 44.02 | 26.21 | 82.31 | 69.36 | 53.15 | 25.7 | 82.31 | 69.36 | 53.15 | 25.7 |
| -SA+QD | 75.19 | 60.30 | 44.96 | 26.47 | 82.25 | 69.91 | 54.5 | 25.67 | 82.25 | 69.91 | 54.5 | 25.67 | ||
| S | base | 60.44 | 40.89 | 24.56 | 12.97 | 72.18 | 54.9 | 36.41 | 15.07 | 73.34 | 55.84 | 37.49 | 15.71 | |
| -SA+QD | 63.75 | 43.12 | 25.50 | 13.36 | 74.00 | 56.42 | 37.2 | 15.09 | 75.54 | 57.52 | 38.52 | 15.78 | ||
| LD-DETR | Orig. | base | 75.72 | 60.63 | 45.17 | 27.15 | 82.73 | 70.3 | 54.46 | 26.62 | 82.73 | 70.3 | 54.46 | 26.62 |
| Benchmark | Input | ||||||
| @0.1 | @0.3 | @0.5 | @0.1 | @0.3 | @0.5 | ||
| HD-EPIC | Original | 30.56 | 23.83 | 16.46 | 43.70 | 36.08 | 26.89 |
| S1 | 21.45 | 16.50 | 10.98 | 31.48 | 25.71 | 18.83 | |
| S2 | 16.97 | 13.47 | 8.83 | 25.93 | 21.48 | 15.58 | |
| S3 | 5.64 | 4.59 | 3.07 | 9.63 | 8.01 | 5.91 | |
| YC2-S | Original | 77.66 | 66.09 | 49.31 | 84.78 | 75.02 | 60.22 |
| Variant | active | ||||||
| @0.1 | @0.3 | @0.5 | @0.1 | @0.3 | @0.5 | ||
| base | 24.71 | 15.52 | 7.89 | 32.15 | 20.1 | 10.29 | |
| +actionness [ 27 ] | 26.04 | 16.05 | 8.11 | 32.26 | 19.96 | 10.23 | |
| +SFL [ 18 ] | 21.83 | 11.22 | 4.82 | 27.54 | 14.48 | 6.31 | |
| -SA+QD (ours) | 26.17 | 17.00 | 9.40 | 35.38 | 23.39 | 13.04 | |
| Input data | Model | Split | ||||||
| @0.1 | @0.3 | @0.5 | @0.1 | @0.3 | @0.5 | |||
| S1 | base | single | 31.47 | 20.09 | 10.19 | 39.29 | 25.02 | 12.68 |
| multi | 22.90 | 13.73 | 6.77 | 29.97 | 18.46 | 9.57 | ||
| -SA+QD | single | 31.61 | 21.39 | 12.25 | 41.72 | 28.23 | 16.25 | |
| multi | 26.18 | 16.16 | 8.11 | 35.66 | 22.89 | 12.12 | ||
| S2 | base | single | 26.62 | 16.90 | 8.50 | 34.55 | 21.56 | 10.87 |
| Input data | Model | Split | ||||||
| @0.1 | @0.3 | @0.5 | @0.1 | @0.3 | @0.5 | |||
| S | base | single | 39.43 | 28.70 | 17.54 | 50.62 | 36.31 | 22.06 |
| multi | 24.22 | 15.89 | 8.40 | 33.58 | 22.77 | 12.12 | ||
| -SA+QD | single | 39.26 | 29.47 | 17.88 | 51.83 | 39.44 | 24.75 | |
| multi | 25.82 | 16.08 | 8.48 | 36.18 | 24.81 | 13.8 | ||
| Input data | Model | Split | ||||||
| @0.1 | @0.3 | @0.5 | @0.1 | @0.3 | @0.5 | |||
| S | base | single | 60.63 | 39.87 | 24.59 | 72.39 | 54.65 | 37.12 |
| multi | 60.26 | 42.58 | 24.46 | 71.72 | 55.32 | 35.10 | ||
| -SA+QD | single | 65.03 | 42.55 | 26.00 | 75.0 | 56.61 | 38.45 | |
| multi | 61.72 | 44.16 | 24.70 | 72.42 | 56.24 | 35.21 | ||
| Dataset | Split | Specificity | ||||||
| @0.1 | @0.3 | @0.5 | @0.1 | @0.3 | @0.5 | |||
| HD-EPIC-S1 | single | Orig. | 38.53 | 24.81 | 13.04 | 46.04 | 29.74 | 15.74 |
| S | 31.47 | 20.09 | 10.19 | 39.29 | 25.02 | 12.68 | ||
| multi | Orig. | 25.97 | 15.03 | 7.74 | 35.75 | 21.21 | 11.2 | |
| S | 22.90 | 13.73 | 6.77 | 29.97 | 18.46 | 9.57 | ||
| HD-EPIC-S2 | single | Orig. | 38.79 | 25.32 | 13.26 | 46.26 | 30.25 | 16.03 |
| Variant | ||||||
| 0.1 | 0.3 | 0.5 | 0.1 | 0.3 | 0.5 | |
| base | 24.71 | 15.52 | 7.89 | 32.15 | 20.1 | 10.29 |
| + 1-to-5 matching [ 21 ] | 24.00 | 15.11 | 7.97 | 29.35 | 18.36 | 9.6 |
| + 1-to-k matching [ 21 ] | 18.31 | 8.80 | 4.12 | 18.47 | 8.87 | 4.16 |
| +group_matching [ 8 ] | 24.33 | 15.85 | 8.86 | 31.21 | 20.12 | 11.14 |
| +hybrid matching [ 16 ] | 23.98 | 15.19 | 7.75 | 30.53 | 19.07 | 9.71 |
| Variant | ||||||
| 0.1 | 0.3 | 0.5 | 0.1 | 0.3 | 0.5 | |
| -SA+QD (ours) | 26.17 | 17.00 | 9.40 | 35.38 | 23.39 | 13.04 |
| + 1-to-k matcher [ 21 ] | 17.88 | 9.18 | 4.10 | 17.89 | 9.19 | 4.11 |
| +group matcher [ 8 ] | 25.72 | 17.17 | 9.02 | 35.36 | 23.37 | 12.41 |
| +hybrid matcher [ 16 ] | 26.59 | 17.60 | 9.55 | 35.79 | 24.13 | 13.24 |
| -SA | +QD | ||||||
| 0.1 | 0.3 | 0.5 | 0.1 | 0.3 | 0.5 | ||
| 24.71 | 15.52 | 7.89 | 32.15 | 20.1 | 10.29 | ||
| ✓ | 23.97 | 14.73 | 7.25 | 32.17 | 20.58 | 10.33 | |
| ✓ | 24.45 | 16.24 | 8.83 | 31.58 | 21.07 | 11.66 | |
| ✓ | ✓ | 26.17 | 17.00 | 9.40 | 35.38 | 23.39 | 13.04 |
| 0.1 | 0.3 | 0.5 | 0.1 | 0.3 | 0.5 | |
| 0.00 | 24.71 | 15.52 | 7.89 | 32.15 | 20.1 | 10.29 |
| 0.25 | 26.17 | 17.00 | 9.40 | 35.38 | 23.39 | 13.04 |
| 0.50 | 1.82 | 0.86 | 0.31 | 6.72 | 3.49 | 1.32 |
| Model | # queries | # active | ||||||
| 0.1 | 0.3 | 0.5 | 0.1 | 0.3 | 0.5 | |||
| base | 5 | 22.41 | 14.12 | 6.94 | 27.78 | 17.46 | 8.71 | |
| 10 | 23.60 | 15.39 | 7.65 | 29.4 | 19.05 | 9.59 | ||
| 20 | 24.71 | 15.52 | 7.89 | 32.15 | 20.1 | 10.29 | ||
| 30 | 21.88 | 15.00 | 7.86 | 28.83 | 19.65 | 10.39 | ||
| 50 | 11.66 | 6.10 | 2.74 | 18.12 | 10.02 | 4.58 | ||
| Caption: “Holding the ball of chicken and potato mixture in my left hand while I get some flour in my right hand so that I can sprinkle over the ball” |
| S1: “Hold the mixture and get some flour to sprinkle over it” |
| S2: “Sprinkle flour on the mixture” |
| S3: “Prepare food” |
| Representative: “Tear the lettuce and place it on the plate” |
| Caption1: “Tear the lettuce leaves in half again and place onto the plate that is on top of the weighing scale .” |
| Caption2: “Tear the lettuce leaves in half again and put the pieces onto the plate .” |
| Caption3: “Use both hands to tear the lettuce leaves in half again and place the pieces onto the plate .” |
| Caption4: “Use both hands to tear the lettuce leaves in half .” |
| Caption5: “Use both hands to tear the lettuce leaf in half” |
| Representative: “Close a cupboard” |
| Caption1: “With my right hand , close the bottom cupboard .” |
| Caption2: “With my right hand , close the cupboard .” |
| Caption3: “Close the cupboard by pushing it with my left hand .” |
| Caption4: “Having realized this is the wrong cupboard , close it again by pushing it with my left hand .” |
| Caption5: “I close the cupboard by pushing it with my right hand .” |
| Representative: “Open a book” |
| Caption1: “Push down in the center of the recipe book along the spine to try and make sure it stays open onto the countertop.” |
| Caption2: “Pick up the recipe book using the right hand and flipping it over so that the recipe can be seen.” |
| Representative: “Clean a bowl.” |
| Caption1: “Realise there is some old food or dirt on the bottom of the bowl.” |
| Caption: “Add strained tomato puree to the blond roux and stir the mixture continuously” |
| S: “Add ingredient.” |
| Caption: “Add salt to the pan and mix” |
| S: “Season food.” |
| Representative: “Add ingredients.” |
| Caption1: “Crack one egg into a bowl” |
| Caption2: “Add one table spoon of oil salt and cayenne pepper and baking powder and beat” |
| Caption3: “Add one cup of beer and mix” |
| Caption4: “Add one quarter cup of corn meal and one cup of flour” |
| Caption5: “Add onions into batter and drop into hot oil” |
| Caption: “The man is washing a side of the car.” |
| S: ‘A person performs a task on a vehicle.” |
| Caption: “The person then moves back and fourth on the machine while rowing his arms back and fourth.” |
| S: “A person uses a machine.” |
| Representative: “People play a game.” |
| Caption1: “A man and woman are shown standing on a tennis court passing a ball back and fourth.” |
| Caption2: “The players volley and the play is pressed to the back of the court hitting long shots.” |
| Caption3: “The players volley and the birdie is hit out of view and the player retrieves it then serves.” |
| Caption4: “The players have a long volley until the play in the foreground misses and the birdie lands at her feet.” |
| Caption5: “People play games of badminton on indoor courts.” |