TL;DR
UniMD unifies Temporal Action Detection (TAD) and Moment Retrieval (MR) into a single framework by framing both as open-ended query tasks. By co-training on both tasks simultaneously using a shared set of parameters, the model exploits natural semantic synergies between action categories and language descriptions, achieving state-of-the-art results while reducing deployment costs.
What Problem Does This Paper Address?
Video understanding often involves two distinct but closely related tasks:
- Temporal Action Detection (TAD): Localizing pre-defined, closed-set actions (e.g., "cooking" or "running").
- Moment Retrieval (MR): Finding video segments that match open-ended natural language queries (e.g., "a person pours water into a pot").
Historically, researchers have treated these as independent problems, deploying separate, dedicated models for each. This creates an artificial separation and misses a massive opportunity: complex MR descriptions are frequently just sequences or combinations of simpler TAD actions.
This paper addresses this gap by asking a fundamental question: Can we build a single model that solves both tasks simultaneously and allows them to mutually benefit each other?
Methods
The authors introduce UniMD (Unified Moment Detection), an anchor-free, one-stage temporal detector designed to handle both tasks through a uniform interface.
Input Query ("a video of [action/event]") ──> CLIP Text Encoder ──> Shared Embedding Space
│
Video Frames ───────────────────────────────> ConvNext + BiFPN ───────────┴──> Query-Dependent Decoders
- Uniform Input Interface: Both tasks are converted into text queries (e.g., "a video of [action name]" for TAD, or the raw natural language description for MR).
- Dual Encoders: Text queries are mapped into a shared embedding space using a frozen, pre-trained CLIP text encoder. For video, instead of using a heavy Transformer, UniMD employs a pure convolutional backbone (ConvNext + BiFPN), arguing that local convolutional operations are more efficient at capturing short-term motion patterns for local action detection.
- Query-Dependent Decoders: To bridge the multi-modal gap, the architecture introduces two novel heads:
- Classification Head: Uses the CLIP text embeddings directly as a classifier against the visual features to generate foreground confidence scores.
- Regression Head: Employs a query transformation branch (an MLP and a resize operation) to transform text embeddings into a dynamic convolutional kernel. This kernel is convolved with visual features to predict precise start and end offsets.
- Synchronized Task Sampling: During co-training, this strategy prioritizes video samples containing annotations for both tasks within each training iteration, maximizing cross-task collaboration.
Datasets
The model is evaluated on three paired datasets where videos share the same source but feature different annotations for TAD and MR:
- Ego4D: Evaluated on Moment Query (TAD) and Natural Language Query (MR).
- Charades & Charades-STA: Closed-set action categories (TAD) paired with sentence descriptions (MR).
- ActivityNet & ActivityNet-Caption: Dense action categories (TAD) paired with open-ended event captions (MR).
Key Insights and Ideas
- Mutual Synergy is Real: MR annotations help TAD by providing context on action sequencing and co-occurrence (e.g., knowing that "sitting down" happens before "looking at a book"). Conversely, TAD provides fine-grained action decomposition that serves as strong negative or positive samples for MR.
- Data Efficiency via Co-training: Remarkably, co-training with synchronized task sampling allows the model to beat dedicated, single-task models even when trained on only a fraction of the data. For example, using just 25% of MR training data or 50% of TAD training data still yields superior performance compared to models trained exclusively on 100% of a single task's data. This proves the performance boost stems from semantic synergy, not just a larger volume of annotations.
Key Results
UniMD achieves state-of-the-art (SOTA) results across all three benchmarks while introducing negligible computational overhead (less than 1% compared to single-task architectures like ActionFormer):
- Ego4D: Reaches 23.25% mAP on TAD and 14.16% R1@30 on MR on the test set, establishing a new SOTA.
- Charades-STA: Achieves a new SOTA of 63.98% R1@50 for Moment Retrieval.
- ActivityNet: Achieves 39.83% mAP for TAD and 80.54% R5@50 for MR, outperforming strong dedicated baselines like InternVideo.
Limitations and Future Work
- Pre-training Pitfalls: The authors note that sequential pre-training (training on one task and fine-tuning on the other) can cause the model to overfit to a specific domain. For instance, pre-training on TAD actually hurt subsequent MR performance, highlighting the necessity of joint co-training.
- Dense Action Challenges: While UniMD performs competitively, specialized models utilizing graph-based classifiers (like CTRN) still hold a slight edge in highly dense action environments where modeling intricate action-to-action graphs is critical.
- Future Directions: The authors suggest that the insights and sampling methods developed here provide a valuable foundation for training larger language-based video models (e.g., LLaMA-vid) on localized action and event detection tasks.
Summary updated