Abstract
Temporal video alignment aims to synchronize the key events like object interactions or action phase transitions in two videos. Such methods could benefit various video editing, processing, and understanding tasks. However, existing approaches operate under the restrictive assumption that a suitable video pair for alignment is given, significantly limiting their broader applicability. To address this, we re-pose temporal alignment as a search problem and introduce the task of Alignable Video Retrieval (AVR). Given a query video, our approach can identify well-alignable videos from a large collection of clips and temporally synchronize them to the query. To achieve this, we make three key contributions: 1) we introduce DRAQ, a video alignability indicator to identify and re-rank the best alignable video from a set of candidates; 2) we propose an effective and generalizable frame-level video feature design to improve the alignment performance of several off-the-shelf feature representations, and 3) we propose a novel benchmark and evaluation protocol for AVR using cycle-consistency metrics. Our experiments on 3 datasets, including large-scale Kinetics700, demonstrate the effectiveness of our approach in identifying alignable video pairs from diverse datasets.
Introduction
Temporal video alignment—the process of synchronizing key events between two videos, such as two people performing a golf swing—is a foundational task for video editing, action analysis, and AI-driven video generation. However, current research typically operates under a "restrictive assumption": it assumes the user already possesses a perfectly matched pair of videos to align.
In real-world scenarios, finding a compatible video is the first hurdle. For instance, if a user has a video of someone "cutting a pineapple," they don't just need an algorithm to align it; they first need to find another video from a database that follows a similar sequence of events. Many actions are highly variable; one person might start by peeling the fruit, while another starts by slicing the top. Standard video retrieval, which focuses on category-level similarity, is insufficient for tasks requiring temporal compatibility. This paper introduces Alignable Video Retrieval (AVR) to bridge this gap.
Methods: The AVR Pipeline
The proposed approach moves beyond simple alignment to a three-stage retrieval and synchronization pipeline:
- Candidate Retrieval: The system uses standard clip-level features and a fast nearest-neighbor search to identify the top-$k$ most similar videos from a large-scale dataset.
- DRAQ Re-ranking: This is the core innovation. DRAQ (Dynamic Relative Alignment Quality) scores how "alignable" two videos are. It calculates the optimal alignment cost using Dynamic Time Warping (DTW) and compares it to the average cost of several random, sub-optimal alignment paths. If the optimal path is significantly cheaper than a random one, the videos are likely a high-quality match.
- Alignment with Contextualized Features: To improve frame-to-frame matching, the authors augment standard frame features. They concatenate each frame's feature vector with a "cumulative sum" of all previous frame features in that video. This provides "temporal context," helping the model distinguish if a specific pose occurs at the beginning or the end of an action sequence.
Key Insights and Evaluation
The "Relative" Advantage
Absolute DTW cost is often a poor indicator of alignability because it is heavily biased by visual appearance (e.g., two videos with similar backgrounds might have a low cost even if the actions do not match). DRAQ solves this by looking at the ratio of optimal cost to random cost, effectively normalizing for appearance and focusing on the structural alignment of the action.
Overcoming the Position Shortcut
The researchers discovered that some state-of-the-art alignment models were "gaming" existing benchmarks. By using Transformers with position encodings, these models were essentially matching frame indices (e.g., frame 10 to frame 10) rather than actual visual events. To address this, the authors proposed Aligned Phase Agreement (APA), a robust metric that measures how well semantic phases (like "ball release" in a pitch) actually overlap after alignment.
Benchmarking on Large-Scale Data
The approach was evaluated on three major datasets: PennAction (sports-heavy), UCF101 (action recognition), and Kinetics700 (diverse natural videos). Because large-scale datasets lack dense alignment labels, the authors introduced a cycle-consistency evaluation protocol. They warp a query video to a retrieved match and then warp it back; the "error" between the original and the round-tripped version serves as a proxy for alignment quality.
Results
- Improved Retrieval: Using DRAQ to re-rank the top 25 results improved Recall@1 across all datasets. On PennAction, it boosted R@1 from 82.09% to 82.40%, and on UCF101 from 81.60% to 81.81%.
- Superior Alignment: In cycle-consistency tests, the pipeline reduced the Cycle Phase Error (CPE) significantly. For example, using NMS features with DRAQ on Kinetics700 reduced the error from 0.86 to 0.0 on their annotated subset.
- Generalizability: The feature contextualization method improved the performance of various base models (BYOL, CARL, NMS), demonstrating its utility as a versatile enhancement for temporal tasks.
Limitations and Future Work
While AVR represents a significant step forward, several challenges remain. The current framework assumes that the entire query video should align with the entire retrieved video, which may not hold if videos contain extraneous segments. Additionally, the system assumes actions are monotonic (forward-moving) and may struggle with shuffled or repeated sequences. Finally, while DRAQ is efficient, computing a cost matrix for very large candidate sets ($k$) remains a potential computational bottleneck.
Summary updated