Paper commentary
Temporal Sentence Grounding with Relevance Feedback in Videos
Temporal grounding model learns to reject queries that match no video segment
- Problem Existing temporal sentence grounding models always return a start and end time, because they assume every query matches a segment. When the query describes something the video never shows, they still output boundaries, and those boundaries are wrong.
- Method TSG-RF adds a relevance decision before grounding. RaTSG uses one multi-task network to judge relevance, and it returns boundaries only when a segment is found.
- Results On Charades-RF, RaTSG scored 76.85 Acc, compared to 71.94 Acc for the cascaded VSLNet++ baseline.
Why grounding fails on queries with no match
Temporal sentence grounding asks a model to return the start and end of the video segment that matches a text query. The usual setup takes for granted that such a segment is always present, so every query gets a boundary pair. When the query describes something the video never shows, the model still outputs boundaries, and those boundaries are wrong.
The authors trace this to an inability to say whether a grounding result is warranted at all. Standard grounding heads score start and end positions for any query-video input, so the failure is built into the output design. A fix therefore has to add a decision step before boundaries are returned.
What a TSG-RF model must return
TSG-RF keeps the grounding goal and puts a relevance decision in front of it. If related content exists, the model returns the segment; if it does not, the grounding is discarded and the user gets an explicit no-match message.
The task thus has two outputs: a binary relevance decision for every pair, and boundaries only for pairs judged relevant. Evaluation has to score both outputs, which is why accuracy is reported alongside grounding recall.
Why not chain a discriminator and a grounder
The simplest option trains a relevance discriminator and sends only the relevant pairs to a TSG model. The authors point out that this route needs two trained models, which costs computation, storage and inference time.
They instead train one multi-task network so that relevance prediction and boundary prediction share knowledge. The baseline rows of the experiments follow the cascade, and the ++ suffix marks those variants.
Encoding video and query into one representation
A pretrained I3D extractor turns each video into a frame-wise feature sequence, and GloVe embeds the query words. Both sequences are mapped by fully connected layers to a shared dimension d, and the GloVe embeddings stay frozen during training. Inputs are capped at 128 frames, with longer videos downsampled and shorter ones zero-padded.
Bidirectional attention starts from a similarity matrix between frames and words and derives weights in both directions. The enhanced video feature \(V_q = \mathrm{FFN}([V; C^v; V \odot C^v; V \odot C^q])\) fuses the original frames, the text-weighted frames and their element-wise products. A sentence vector \(h_Q = Q^{\top}\,\mathrm{softmax}(QW)\), with \(W\) a learnable column, pools the word features.
Concatenating \(h_Q\) to every frame of \(V_q\) gives the contextual representation \(V'_q\) that both branches read.
Frame-level foreground scores
A fully connected layer scores each fused frame, and a sigmoid maps each score into the range from 0 to 1. The frame scores form \(S_f=\mathrm{sigmoid}(\mathrm{FC}(V'_q))\), with one foreground confidence per frame. Frames inside the annotated start and end indices are labeled foreground, and a binary cross-entropy loss averaged over frames supervises them.
The video is treated as a bag and its frames as instances, following multiple instance learning. The bag score is the maximum over frames, \(score_{fg}=\max(S_f)\), so one strong foreground frame is enough to make the bag positive. This suits the paper's view that a video can be partly related to a query.
Video-level relation signal
Frame features are weighted by a softmax over the frame-level similarity scores and summed into one video representation \(h_V\). The sentence vector and \(h_V\) are concatenated and projected to the relation signal \(g=\mathrm{FC}([h_Q;h_V])\). A fully connected layer with a sigmoid turns \(g\) into the video-level score \(score_{cg}\).
This score is trained with binary cross-entropy against the label for whether the sample has a grounding result. The same vector later serves as the special token of the grounding head, so the boundary loss in the total objective also shapes it.
Averaging two granularities into one decision
The two scores enter one equal-weight average, \(P_v=(score_{fg}+score_{cg})/2\). The authors treat both granularities as equally important, so neither score is weighted more. At inference the model returns a grounding result when \(P_v \ge m\) and reports no grounding result otherwise.
The threshold m is 0.5 for Charades-RF and 0.3 for ActivityNet-RF, chosen as the value with the highest validation accuracy. Thresholds are therefore dataset-specific, and the reported accuracy depends on that validation choice.
Grounding with a relation token at index zero
The grounding head prepends the relation signal \(g\) to the foreground-enhanced features, so it sits at index 0. Foreground enhancement multiplies \(V_q\) by \(S_f\), so frames the frame branch scores as background are dampened. Index 0 marks no relevant segment, and the grounding range for relevant samples is \([1,n]\).
Two stacked LSTM layers produce start and end feature sequences, and a softmax over feedforward outputs gives \(P_s\) and \(P_e\). For no-match samples the target is \(A=[0,0]\), and for matches \(A=[a_s,a_e]\) with \(1 \le a_s < a_e \le n\). The boundary loss takes the log probabilities of the true start and end indices, with a factor of one half.
Joint objective and boundary selection
Training minimizes \(L_{total}=L_{boundary}+\beta L_{frame}+\gamma L_{video}\), where \(\beta\) and \(\gamma\) set the balance of the three losses. The authors fix \(\beta=6\) and \(\gamma=6\) to balance the losses at the start of training. The training set was not reconstructed and holds only grounded samples, so each batch adds randomly selected videos paired with the query text as no-match samples.
For a sample predicted to have a grounding result, the model chooses \((\hat a_s,\hat a_e)\) with \(0 \le \hat a_s \le \hat a_e \le n\) by maximizing \(P_s^{\top}P_e\). The selection therefore uses both distributions together rather than each boundary on its own.
Reconstructing two TSG benchmarks
Charades-STA has 6,672 videos and 12,408 training pairs, and its original test set was randomly halved into validation and test sets. ActivityNet Captions contributes 37,421 training pairs, and its validation and test sets hold 17,505 and 17,031 pairs before augmentation. Adding an equal number of no-match samples to each split gives 35,010 and 34,062 pairs for the ActivityNet-RF validation and test sets.
Each no-match pair keeps a query and swaps in another randomly selected video from the library. A BERT similarity check accepts a candidate only when the maximum cosine similarity to that video's grounded queries is below 0.2. Table 7 lists Charades-RF with 12,408, 3,720 and 3,720 annotations, and 1,860 no-match pairs each in validation and test.
Scoring relevance and grounding
Relevance feedback is scored by accuracy, which counts how often the model correctly decides whether a pair has a grounding result. Grounding uses R{n}@{m} and mIoU, the measures used in earlier TSG work.
Because the sets include no-match pairs, IoU is redefined in four cases. If prediction and truth both have no grounding result, IoU is 1, and if only one side has one, IoU is 0. When both have a segment, IoU is the usual overlap between the predicted and true segments.
Comparison with cascaded baselines
The authors compare RaTSG with six traditional models: VSLNet, SeqPAN, EAMAT, ADPN, UniVTG and QD-DETR. Each one gets a separately trained relevance discriminator to form its ++ version. Without that discriminator the baselines score 50.00 Acc, because the test sets are balanced 1:1 between matched and unmatched samples.
On Charades-RF, RaTSG scored 76.85 Acc and 59.93 mIoU. VSLNet++ scored 71.94 Acc and 54.67 mIoU, while EAMAT++ scored the highest mIoU among the cascaded models at 56.23. On ActivityNet-RF, RaTSG scored 84.27 Acc and 61.15 mIoU, compared to 81.60 Acc and 58.65 mIoU for VSLNet++.
Coarse and fine scores on Charades-RF
Table 2 compares the full discriminator with versions that use only one granularity. With only the fine-grained score the model gives 75.35 Acc and 59.27 mIoU, and with only the coarse-grained score it gives 75.73 Acc and 59.18 mIoU. Using both gives 76.85 Acc and 59.93 mIoU.
The gains over either single score are small in this table. The authors attribute the weaker single-granularity results to their failure to perceive the various degrees of partial relevance.
What the relation token contributes
This ablation swaps the learned relation signal \(g\) for a randomly initialized vector. With the random vector the model scores 76.40 Acc, 66.18 at R1@0.3 and 57.82 mIoU on Charades-RF. With the learned signal it scores 76.85, 68.17 and 59.93.
The authors visualize the relation vectors with t-SNE and read the plot as showing relatively separate clusters for relevant and irrelevant samples. Those clusters are described as more concentrated, not as fully separated.
Does joint training help each branch
Removing the segment grounding module lowers relevance accuracy on Charades-RF from 76.85 to 75.59. Removing the relevance discriminator lowers grounding on Charades-STA, where mIoU falls from 53.02 to 49.37.
The authors conclude that the two tasks mutually enhance each other, and they present this as support for the dual-branch design.
Plugging the modules into EAMAT
The authors insert the relevance discriminator and relation-aware grounding into EAMAT to test whether they transfer. EAMAT scored 50.00 Acc and 27.27 mIoU, and EAMAT++ scored 71.94 Acc and 56.23 mIoU. EAMAT with the proposed modules scored 76.37 Acc and 59.58 mIoU.
The excerpt does not name the dataset for Table 6, so these numbers are read against the EAMAT++ row of the same table.
Where the predictions hold and fail
The qualitative examples compare RaTSG with VSLNet++ on queries with and without a matching segment. On the no-match query, RaTSG keeps foreground scores low and gives high probability to index 0, while VSLNet++ returns high foreground scores and a wrong segment. The authors attribute RaTSG's behavior to training with no-match samples, which teaches it how background frames resemble the text.
Two failure cases are reported. In one, the model misses a sneezing action because the audio cue that would reveal it is absent. In the other, it reads a closing action as the opening one. The authors suggest that audio features and temporal modeling could help.
Limits of the evidence
The experiments cover only the two reconstructed benchmarks, Charades-RF and ActivityNet-RF. No-match pairs come from random video swaps filtered by BERT similarity, and the paper evaluates no other way of building them. The training set was not reconstructed, so no-match behavior is learned from sampled batch pairs.
The threshold is chosen on validation data for each benchmark, so the accuracy numbers depend on that choice. The authors say RaTSG's mIoU rise is largest as the share of no-match samples grows, but this grouped analysis sits in an appendix and gives no numbers in the excerpt. The paper contrasts its design with concurrent work [21] in prose but does not compare against it in the tables.
The stated failure modes are audio-dependent actions and temporal order.
Paper info
- Authors
- Dong, Jianfeng, Peng, Xiaoman, Liu, Daizong, Qu, Xiaoye, Yang, Xun, Bao, Cuizhu, Wang, Meng
- Venue
- Advances in Neural Information Processing Systems · Published
- First published
- 2024-12-16
- Added
- 2026-11-26
- DOI
- 10.52202/079017-1365
- Original paper terms
- Check in the original ↗
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Dong, Jianfeng, Peng, Xiaoman, Liu, Daizong, Qu, Xiaoye, Yang, Xun, Bao, Cuizhu, Wang, Meng (2024). Temporal Sentence Grounding with Relevance Feedback in Videos. Advances in Neural Information Processing Systems. https://doi.org/10.52202/079017-1365
BibTeX
@article{jianfeng2024temporal,
title = {{Temporal Sentence Grounding with Relevance Feedback in Videos}},
author = {Dong, Jianfeng and Peng, Xiaoman and Liu, Daizong and Qu, Xiaoye and Yang, Xun and Bao, Cuizhu and Wang, Meng},
year = {2024},
journal = {Advances in Neural Information Processing Systems},
doi = {10.52202/079017-1365},
url = {https://papers.nips.cc/paper_files/paper/2024/hash/4b96695d9885f038110b8b16ef50e882-Abstract-Conference.html}
}