[Paper Review] A Hierarchical Multi-Modal Encoder for Moment Localization in Video Corpus
This paper proposes HAMMER, a hierarchical multi-modal encoder that jointly models video at frame-level and clip-level representations using cross-modal attention to improve moment localization in untrimmed video corpora. By integrating video retrieval, temporal localization, and masked language modeling in a multi-task framework, HAMMER achieves state-of-the-art performance on ActivityNet Captions and TVR datasets, demonstrating robustness to long video lengths and improved localization accuracy over flat baselines.
Identifying a short segment in a long video that semantically matches a text query is a challenging task that has important application potentials in language-based video search, browsing, and navigation. Typical retrieval systems respond to a query with either a whole video or a pre-defined video segment, but it is challenging to localize undefined segments in untrimmed and unsegmented videos where exhaustively searching over all possible segments is intractable. The outstanding challenge is that the representation of a video must account for different levels of granularity in the temporal domain. To tackle this problem, we propose the HierArchical Multi-Modal EncodeR (HAMMER) that encodes a video at both the coarse-grained clip level and the fine-grained frame level to extract information at different scales based on multiple subtasks, namely, video retrieval, segment temporal localization, and masked language modeling. We conduct extensive experiments to evaluate our model on moment localization in video corpus on ActivityNet Captions and TVR datasets. Our approach outperforms the previous methods as well as strong baselines, establishing new state-of-the-art for this task.
Motivation & Objective
- To address the challenge of localizing short, semantically relevant video segments in long, untrimmed videos using natural language queries.
- To improve video understanding at multiple temporal granularities—frame-level for precise localization and clip-level for efficient retrieval.
- To develop a unified model that jointly optimizes for video retrieval, moment localization, and masked language modeling.
- To reduce computational complexity in video corpus search by enabling hierarchical representation learning across modalities.
- To demonstrate robustness to long videos with increasing irrelevant content, where flat models degrade significantly.
Proposed method
- HAMMER employs a two-level hierarchical encoder: a frame-level transformer encoder and a clip-level encoder built on top of frame-level features.
- Cross-modal attention is applied at three levels—frame, clip, and full video—between text queries and visual/ASR features to align modalities.
- Visual features are extracted using I3D and ResNet-152 models at 3 FPS, then concatenated into 3072-dimensional vectors; ASR embeddings are derived from RoBERTa and max-pooled every 1.5 seconds.
- The model uses a multi-task learning objective combining video retrieval, temporal localization, and masked language modeling to improve joint representation learning.
- For multi-modal fusion, query representations attend to both visual and ASR features, which are then concatenated and normalized before being used in downstream tasks.
- The model is trained end-to-end with Adam optimizer, using a linear warmup and cosine decay learning rate schedule, with input sequences capped at 128 frames (ActivityNet) or 96 frames (TVR).
Experimental results
Research questions
- RQ1Can a hierarchical multi-modal encoder improve moment localization in untrimmed video corpora compared to flat, single-granularity models?
- RQ2How does the inclusion of clip-level representations enhance retrieval and localization performance on long videos?
- RQ3To what extent does multi-task learning with masked language modeling improve the quality of video-text representations?
- RQ4How does the model perform on long videos with high levels of irrelevant content, where flat models struggle?
- RQ5What is the relative contribution of visual and ASR features to the final localization accuracy?
Key findings
- HAMMER achieves state-of-the-art performance on both ActivityNet Captions and TVR datasets for video retrieval, moment localization in single videos, and moment localization in video corpora.
- The model outperforms strong baselines, especially on long videos, where the performance of flat models degrades significantly due to irrelevant content.
- The hierarchical design enables robust performance across varying video lengths, showing minimal drop in accuracy as video length increases.
- Ablation studies confirm that clip-level representation is critical for accurate localization, with the clip encoder often correcting errors made by the frame encoder.
- The addition of ASR features improves performance on TVR, particularly in cases with ambiguous visual content, by providing complementary linguistic context.
- The multi-task objective, including masked language modeling, enhances the quality of contextualized representations, leading to better generalization across tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.