Research
Explicit Temporal-Semantic Modeling for Dense Video Captioning via Context-Aware Cross-Modal Interaction
Explicit Temporal-Semantic Modeling for Dense Video Captioning via Context-Aware Cross-Modal Interaction Overview Research area: Computer Vision / multimodal video-language understanding, specifically
- arXiv
- 2511.10134
- Published
- 2025-11-13
- Authors
- Mingda Jia, Weiliang Meng, Zenghuang Fu, Yiheng Li, Qi Zeng, Yifan Zhang, Ju Xin, Rongtao Xu, Jiguang Zhang, Xiaopeng Zhang
AI summary
Explicit Temporal-Semantic Modeling for Dense Video Captioning via Context-Aware Cross-Modal InteractionOverview
Research area: Computer Vision / multimodal video-language understanding, specifically dense video captioning (DVC) with retrieval-augmented generation.
Technical level: Advanced. The paper assumes familiarity with transformer encoder-decoder architectures, CLIP-style contrastive vision-language embeddings, cross-attention fusion, the Hungarian matching algorithm, and captioning metrics such as CIDEr, METEOR, BLEU4 and SODA_c.
Scope (one sentence): The paper proposes CACMI (Context-Aware Cross-Modal Interaction), a framework that explicitly models temporal and semantic structure in untrimmed videos by clustering frames into pseudo-events and retrieving event-aligned sentences from a text bank, evaluated on ActivityNet Captions and YouCook2 (Jia et al., arXiv:2511.10134v1).
Authors and affiliations: Mingda Jia, Weiliang Meng, Zenghuang Fu, Yiheng Li, Qi Zeng, Yifan Zhang, Ju Xin, Rongtao Xu, Jiguang Zhang, Xiaopeng Zhang — with affiliations at MAIS, Institute of Automation, Chinese Academy of Sciences; the School of Artificial Intelligence, University of Chinese Academy of Sciences; the Northern Navigation Service Center, Qingdao; and Spatialtemporal AI. Weiliang Meng and Jiguang Zhang are listed as corresponding authors.
What This Paper Is About
Dense video captioning asks a model to do two things at once in a long, untrimmed video: find where each salient event starts and ends, and write a caption for it. Recent systems improve results by retrieving external sentences from a text memory bank, but the paper argues these pipelines use implicit modeling — fixed-size sliding windows over fragmented frame features — which breaks temporal continuity and leaves a gap between visual and textual modalities. CACMI's goal is to make the temporal structure of the video and the linguistic semantics of a text corpus explicit, so that retrieval is event-aligned and the fusion of vision and language is fine-grained.
Key Contributions
-
The CACMI framework for dense video captioning, built around explicit temporal-semantic modeling and context-aware cross-modal interaction, designed to exploit both the temporal structure inside videos and the semantic knowledge in a text corpus.
-
A Cross-modal Frame Aggregation (CFA) module that extracts temporally coherent, event-aligned semantic features via cross-modal retrieval. It contains two parts: Event Context Clustering (grouping frames by similarity with a temporal constraint) and Event Semantic Retrieval (matching cluster features against a sentence bank).
-
A Context-aware Feature Enhancement (CFE) module that uses query-guided attention — dual column-wise and row-wise attention over a visual-textual similarity matrix — to close the visual-linguistic modality gap, rather than relying on concatenation, simple addition or shared self-attention weights as in the CM² baseline.
-
Extensive experiments on ActivityNet Captions and YouCook2 showing state-of-the-art event localization and competitive-to-best captioning results without pretraining on additional video data.
Main Findings
-
Captioning on ActivityNet Captions (Table 1): CACMI scores BLEU4 2.44, METEOR 8.68, CIDEr 33.80 and SODA_c 6.39. For comparison, CM²† reaches 2.38 / 8.55 / 33.01 / 6.18, E²DVC 2.43 / 8.57 / 33.63 / 6.13, PDVC† 2.21 / 8.06 / 29.97 / 5.92, Vid2Seq (with pretraining) — / 8.50 / 30.10 / 5.80, OmniVID (with pretraining) 1.73 / 7.54 / 26.00 / 5.60, and UEDVC (with pretraining) reports SODA_c 5.50.
-
Captioning on YouCook2 (Table 2): CACMI scores BLEU4 1.70, METEOR 6.21, CIDEr 34.83, SODA_c 5.57, ahead of E²DVC (1.68 / 6.11 / 34.26 / 5.39), CM²† (1.63 / 6.08 / 31.66 / 5.34) and PDVC† (1.40 / 5.56 / 29.69 / 4.92). Vid2Seq, which uses pretraining, scores higher: — / 9.30 / 47.10 / 7.90. The authors attribute that gap to YouCook2's limited training videos and highly diverse event semantics, where Vid2Seq benefits from broader domain coverage.
-
Pretraining-free competitiveness: The paper states CACMI surpasses some pretrained models that use large-scale external video data, and that it notably outperforms all non-pretrained baselines on SODA_c, the metric for storytelling coherence across multiple events.
-
Localization on ActivityNet Captions (Table 3): CACMI reaches F1 57.10, recall 55.89 and precision 58.05, versus E²DVC (56.42 / 55.14 / 57.77), CM²† (55.21 / 53.71 / 56.81), PDVC† (54.78 / 53.27 / 56.38) and Vid2Seq (53.29 / 52.70 / 53.90).
-
Localization on YouCook2 (Table 3): CACMI reaches F1 29.34, recall 25.54 and precision 34.63, versus E²DVC (28.87 / 25.01 / 34.13), CM²† (28.43 / 24.76 / 33.38), Vid2Seq (27.84 / 27.90 / 27.80) and PDVC† (26.81 / 22.89 / 32.37).
-
Component ablation (Table 4, ActivityNet Captions): Using neither CFA nor CFE gives 2.38 / 8.55 / 33.01 / 6.18 and F1 55.21; CFA alone gives 2.37 / 8.63 / 33.62 / 6.26 and F1 56.07; CFE alone gives 2.41 / 8.59 / 33.48 / 6.31 and F1 56.95; using both gives the best result, 2.44 / 8.68 / 33.80 / 6.39 and F1 57.10. The authors describe CFE alone as producing a substantial boost, and the combination as showing strong synergy.
-
Number of clusters (Table 5): Results for 3 clusters are 2.32 / 8.53 / 32.84 / 6.12 with F1 54.91; 5 clusters 2.35 / 8.58 / 33.15 / 6.21 with F1 54.87; 7 clusters 2.36 / 8.63 / 33.24 / 6.28 with F1 56.02; 10 clusters 2.44 / 8.68 / 33.80 / 6.39 with F1 57.10; 15 clusters 2.28 / 8.49 / 32.98 / 6.19 with F1 55.15; the γ row reports 2.34 / 8.60 / 33.43 / 6.29 with F1 56.23. Optimal performance is reported at 10 clusters, balancing temporal coherence against semantic granularity.
-
Number of retrieved sentences (Table 6): With clusters fixed at 10, top-k of 10 gives 2.23 / 8.49 / 32.20 / 6.32 and F1 55.95; top-k 20 gives 2.31 / 8.60 / 32.26 / 6.21 and F1 55.50; top-k 40 gives the best 2.44 / 8.68 / 33.80 / 6.39 and F1 57.10; top-k 60 gives 2.27 / 8.50 / 32.25 / 6.25 and F1 56.39; top-k 80 gives 2.25 / 8.53 / 32.57 / 6.27 and F1 56.15.
-
Qualitative evidence: A t-SNE visualization of event features (after PCA dimensionality reduction) shows that frames grouped in the same cluster share temporal continuity and semantic similarity, while different clusters capture visually distinct content. A qualitative example on ActivityNet Captions shows CACMI producing more precise event boundaries and richer semantic details than the CM² baseline.
-
Analysis of the two failure modes it targets: The paper identifies temporal modeling deficiency (fixed windows focus only on local segments, producing discontinuous retrieval) and the modality gap (retrieved text fused via concatenation or basic attention fails to bridge visual-textual divergence) as the limitations of prior memory-based RAG pipelines.
Methodology in Plain English
The setup. Given an untrimmed video, the model must output a set of tuples (start time, end time, caption) for every salient event. Frames are sampled at 1 FPS and padded or subsampled to a fixed length: 100 frames for ActivityNet Captions and 200 for YouCook2. Frame features come from a pretrained CLIP ViT-L/14 image encoder; the sentence bank is encoded with the CLIP text encoder. All remaining hyperparameters are aligned with CM², and experiments run on an NVIDIA RTX A6000 GPU.
Step 1 — Grouping frames into pseudo-events (Event Context Clustering). Instead of chopping the video into fixed windows, the authors apply agglomerative clustering to the frame features using Euclidean distance as the similarity metric and Ward linkage for merging. Ward linkage minimizes the increase in within-cluster variance, encouraging compact, semantically coherent clusters. A temporal aggregation constraint is then applied: any two frames in a cluster must be no more than t_max apart in time; frames exceeding that threshold are pushed into a new cluster. The video ends up segmented into c clusters, each treated as a potential pseudo-event. Each cluster's feature is a "boundary-enhanced average": a bell-shaped weight distribution centered on the cluster midpoint is inverted and normalized so that features near the cluster boundaries get higher importance.
Step 2 — Retrieving aligned sentences (Event Semantic Retrieval). A cosine similarity matrix is computed between each pseudo-event feature and the encoded sentences in the corpus. Top-k retrieval selects the k most relevant text features per pseudo-event, and mean pooling over those top-k features produces one unified semantic feature vector per event. Because the sentence bank is large, the top-k step keeps the representation condensed.
Step 3 — Fusing vision and language (Context-aware Feature Enhancement). A similarity matrix is computed between frame-level visual features and event-level textual queries using linear projections scaled by the square root of the feature dimension. Two attention directions are derived: a column-wise softmax produces event-level visual context guided by text, and a row-wise softmax combined with the column-wise matrix produces a text query refined by the visual input. The original frame features are concatenated with both cross-attended feature sets and linearly projected. Separately, the event queries are average-pooled into a global text vector and replicated across all frames; this global context is fused with the refined features through a channel-wise 1D convolution to give the final enhanced frame features.
Step 4 — Joint prediction. A deformable transformer takes the enhanced features plus a set of learnable queries and produces event representations. Three parallel heads operate on them: a localization head (a multi-layer perceptron regressing event center and temporal span, with a confidence score), a captioning head (an LSTM with deformable soft attention around the predicted reference points, decoding word by word), and an event counter (max pooling over the queries followed by a fully connected layer, with the event count taken as the argmax at inference). The number of event queries is 10 for ActivityNet Captions and 100 for YouCook2; the number of clusters is 10 and 20 respectively; the soft top-k retrieval uses k = 40.
Training. Predicted and ground-truth event tuples are matched with the Hungarian algorithm, minimizing a matching loss combining a focal classification loss and a generalized IoU localization loss. The overall objective is a weighted sum of four terms: classification loss, localization loss, event-count cross-entropy loss, and caption word-prediction cross-entropy loss.
Evaluation. Captioning is scored with BLEU4, METEOR, CIDEr and SODA_c, averaged across IoU thresholds {0.3, 0.5, 0.7, 0.9}. Localization is scored with average precision, average recall and F1, also across IoU thresholds {0.3, 0.5, 0.7, 0.9}.
Why This Matters
The paper's central claim is that how you structure the retrieval step matters as much as how much external knowledge you retrieve. By replacing fixed windows with temporally constrained clusters and replacing naive concatenation with query-guided attention, CACMI improves both captioning and event boundaries while being trained without additional video pretraining — a meaningful signal in a subfield where many top results depend on large-scale pretraining.
Real-world applications (these follow from the task; the paper itself does not enumerate application scenarios):
- Video search and indexing over long archives, where users need both timestamps and descriptions of individual events.
- Accessibility: generating synchronized audio descriptions of events for viewers who are blind or low-vision.
- Instructional and procedural video analysis, the domain of YouCook2, where step-by-step events must be localized and described.
- Automated highlight or chapter generation for sports, cooking and social activity footage — the event categories the paper lists for ActivityNet Captions.
Industry relevance: Any product that must segment and describe long user-generated or professional video at scale benefits from accurate joint localization and captioning, including media asset management, video platforms, surveillance review, and training-content search. The method's reliance on a pretrained CLIP encoder and a text sentence bank, plus the explicit hyperparameters (10 or 100 queries, 10 or 20 clusters, top-k 40), makes the approach relatively concrete to reproduce; the authors state all other hyperparameters match CM².
Future Directions
-
Closing the pretraining gap on small, diverse datasets. CACMI trails Vid2Seq on YouCook2 (METEOR 6.21 vs 9.30, CIDEr 34.83 vs 47.10, SODA_c 5.57 vs 7.90), which the authors attribute to YouCook2's limited training videos and Vid2Seq's broader domain coverage. Whether temporal-semantic modeling can close that gap without external pretraining is an open question.
-
Making cluster count and top-k adaptive rather than tuned. The paper uses 10 and 20 clusters for the two datasets and top-k 40, and notes that a γ hyperparameter adaptively determines the optimal number of clusters "from 5 to 10" — while the ablation table also reports 3 and 15. Fully adaptive selection of both cluster granularity and retrieval breadth across datasets is a natural next step.
-
Generalizing the sentence bank. The retrieval quality depends on the external text corpus; the paper does not report how sensitive results are to the composition, size or domain of that bank, nor how the approach behaves on video domains outside ActivityNet Captions and YouCook2.
-
Extending explicit temporal-semantic modeling beyond DVC. The same pseudo-event clustering plus query-guided fusion could plausibly be applied to other dense video tasks (temporal grounding, video question answering), but the paper does not test this.
Target Audience
Researchers and graduate students working on video-language models, dense video captioning, retrieval-augmented generation for multimodal tasks, or temporal action localization. It is also relevant to practitioners building video search, indexing or description systems who need to understand the trade-offs between pretraining-heavy pipelines and retrieval-augmented, pretraining-free ones. Readers without a background in cross-attention, clustering and captioning metrics will find the method section demanding.
Authors’ abstract
Dense video captioning jointly localizes and captions salient events in untrimmed videos. Recent methods primarily focus on leveraging additional prior knowledge and advanced multi-task architectures to achieve competitive performance. However, these pipelines rely on implicit modeling that uses frame-level or fragmented video features, failing to capture the temporal coherence across event sequences and comprehensive semantics within visual contexts. To address this, we propose an explicit temporal-semantic modeling framework called Context-Aware Cross-Modal Interaction (CACMI), which leverages both latent temporal characteristics within videos and linguistic semantics from text corpus. Specifically, our model consists of two core components: Cross-modal Frame Aggregation aggregates relevant frames to extract temporally coherent, event-aligned textual features through cross-modal retrieval; and Context-aware Feature Enhancement utilizes query-guided attention to integrate visual dynamics with pseudo-event semantics. Extensive experiments on the ActivityNet Captions and YouCook2 datasets demonstrate that CACMI achieves the state-of-the-art performance on dense video captioning task.