Manuscript Offprint
arXiv:2610.21422Where, How, and When: Query-Guided Grounding for Video Understanding
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Understanding video content requires reasoning across multiple levels of granularity, from identifying individual objects to interpreting their relationships and localizing specific temporal actions or moments. This thesis explores three distinct grounding tasks that correspond to fundamental questions in query-guided video understanding: Where key objects are present (object-level grounding), How these objects interact (relationship-level grounding), and When specific actions occur (moment-level grounding). These tasks collectively enable a structured interpretation of dynamic scenes in videos, progressing from fine-grained object localization to coarse temporal localization.
For object-level grounding, we present QDETRv (Query-guided Detection Transformer for Videos), a novel extension of Detection Transformer that enables one-shot localization of unseen objects in videos. QDETRv employs (i) query-context fusion, where query features are integrated with contextual video frames to enable effective temporal reasoning; (ii) memory module to maintain temporal consistency across frames; and (iii) unsupervised pretraining strategy using synthetic object trajectories with recurrent queries and feature-reconstruction objectives for a better initialization, and thereby achieves substantial gains over competitive baselines. Taking it forward, to address the limitations of QDETRv, we propose the Temporal Object-Aware Vision Transformer (TOViT), which leverages a language-aligned, large-scale pre-trained open-set vision encoder. This enhances semantic discrimination, enabling better separation of visually similar objects through rich linguistic priors. Additionally, TOViT introduces a filtering mechanism that propagates high-confidence object features across frames, allowing temporal consistency to support the detection of small and partially visible objects.
For relationship-level grounding, we propose few-shot referring relationships in videos where given a query visual relationship, i.e. (subject, predicate, object) and a target video, the task is to localize the entities using only a few support videos sharing the same predicate. Our method formulates this as an optimization over a T-partite random field, with candidate bounding boxes as vertices across T frames. A relation network with query-conditioned translational embeddings is trained via episodic meta-learning. Two aggregation techniques, Global Semantic Aggregation (GSA) and Local Localization Aggregation (LLA), incorporate temporal context, and belief propagation-based message passing produces subject-object trajectories. Experiments show strong performance, effectively addressing the long-tail distribution of visual relationships.
For moment-level grounding, we propose Moment Alignment Transformer (MATR) for video-to-video moment retrieval. MATR employs dual-stage Dynamic Time Warping for pre- and post-fusion alignment within a transformer, capturing fine-grained temporal correlations. Learnable query vectors guide moment localization via classification and boundary prediction heads. A self-supervised pretraining strategy with temporal augmentations further enhances
ii generalization. We further extended MATR to support text-to-video moment retrieval and achieved comparable, if not better performance to the state-of-the-art methods.
In short, this thesis progressively advances the understanding of where, how, and when in query-guided video comprehension by proposing a series of principled solutions spanning spatial, relational, and temporal grounding. We believe that the ideas and frameworks presented here will open up promising research avenues in various application domains such as sports analytics, manufacturing, and skill understanding, among others.
iii
Acknowledgements
The completion of this doctoral dissertation represents not just a personal milestone but the culmination of years of collaboration, support, and encouragement from numerous individuals that have profoundly shaped my academic journey.
First and foremost, I extend my deepest gratitude to my PhD advisor, Dr. Anand Mishra, whose guidance and mentorship have been essential in shaping both this research and my development as a scholar. His pursuit of excellence, dedication to rigorous research methodology, and promotion of innovative thinking have been a constant source of inspiration throughout my doctoral journey. Dr. Mishra's ability to balance constructive criticism with encouragement, his open-door policy for discussions ranging from technical challenges to career guidance have been invaluable. His hard work and dedication to maintaining the highest standards of research quality continue to motivate me, and I am grateful for the excellent opportunities he provided that allowed me to excel across multiple dimensions of academic research. I fondly remember how, during my first publication, Dr. Mishra spent late night with me in the lab, patiently guiding me through the process of clear academic writing, thoughtful experimental design, and effective presentation of research. I am also thankful for his generous support for my participation in national and international conferences, which greatly enriched my academic exposure. Furthermore, his efforts in facilitating collaborations with industry partners provided me with invaluable real-world insights and broadened the practical relevance of my research.
I am deeply grateful to my PhD committee members, Dr. Suman Kundu, Dr. Ravi Kiran, and Dr. Angshuman Paul, for their thoughtful engagement with my research and their invaluable suggestions that helped refine this work. I extend special appreciation to Dr. Manish Gupta for his consistent feedback and guidance during our weekly meetings and paper writing. I am also thankful to Dr. Anutosh Maitra, Dr. Sowmya Rasipuram, and Roshni Ramnani for their collaboration and constructive feedback during our weekly discussions.
This research would not have been possible without the financial support of our funding agencies and industry collaborators. I acknowledge the University Grants Commission (UGC) for providing the fellowship that supported my doctoral studies. I am particularly thankful to Microsoft and Accenture for their research grants and collaborative partnerships that provided computing resources for our lab and also offered valuable insights into real-world applications.
I extend my sincere appreciation to the faculty, staff, and administration of IIT Jodhpur for creating an environment conducive to high-quality research and learning. The institution's commitment to enabling innovation and providing state-of-the-art research facilities has been fundamental to the success of this work. I am particularly grateful for the technical support staff (Rimpesh) who ensured that our computational infrastructure remained robust and accessible.
iv throughout the demanding phases of this research.
My doctoral journey has been greatly enriched by the opportunity to work alongside talented students and research associates in our lab. I have been fortunate to collaborate with several undergraduate and research associates, including Prajwal, Saswat, Shreya, Abu, Kranti, and Uday. The doctoral journey, with its inevitable challenges and moments of uncertainty, has been made more manageable and enjoyable through the friendship with my fellow graduate students. I am grateful to my friends, fellow graduates and lab-mates, Abhirama, Rishab, Rekhansh, Vishnu, Kartik, Surbhi, Somraj, Abhishek, Niveddita, Neelu, Akshita, Satyam, Prince, Pushkar, and Anoop who have been my companions through both the challenging and successful moments of this journey. Our discussions, ranging from technical debates to philosophical conversations about research and life, have provided both intellectual stimulation and emotional support.
Perhaps most importantly, I owe my deepest gratitude to my family, whose support, sacrifice, and belief in my aspirations have been the foundation upon which this achievement stands. My brother deserves special recognition for shouldering additional family responsibilities, allowing me to focus entirely on my studies. My mother and sister have been pillars of emotional support throughout this journey, providing comfort during difficult times and celebrating each milestone along the way. Their unconditional love, patience during my long absences, and faith in my abilities have sustained me through the challenging phases of this work.
I also wish to acknowledge my young nieces, Pankhudi and Miradhya, whose joyful presence during family visits provided much needed respite from the intensity of research work. Their innocent curiosity and their ability to bring laughter and lightness to family gatherings have been precious gifts that reminded me of the importance of maintaining balance in life.
At this point, I also wish to remember my late father, whose teachings continue to guide me even in his absence. His belief in never losing hope and his lessons on perseverance during difficult times have been a constant source of strength throughout my doctoral journey. The values he instilled in me have not only shaped my character but also carried me through the most challenging phases of my life.
Finally, I acknowledge that this doctoral dissertation represents not just my individual effort, but the collective contribution of all these individuals and institutions. While my name appears on the cover, the ideas, insights, and innovations presented within these pages have been shaped by many interactions, discussions, and collaborations. Any errors or shortcomings in this work remain entirely my responsibility, while its contributions to the field of computer vision and video understanding reflect the collective wisdom and support of this remarkable community of scholars, friends, and family members who have accompanied me on this transformative journey.
Yogesh Kumar
V
vi
3.3.1 Unsupervised Pretraining of QDETRv ..... 30
3.4 Experiments and Results ..... 31
3.4.1 Datasets and Performance Measure ..... 31
3.4.2 Baselines and Implementation Details ..... 32
3.5 Results and Discussions ..... 33
3.5.1 Performance of QDETRv ..... 33
3.5.2 Ablation Study on Temporal Context Module ..... 34
3.5.3 Fine-tuning with varied Temporal Context Windows ..... 34
3.5.4 Cross-attention Visualization for varied temporal context ..... 34
3.5.5 Ablation on Recurrent Queries ..... 35
3.5.6 Class-wise Performance ..... 35
3.5.7 Qualitative Results ..... 36
3.5.8 Failure Case Analysis ..... 36
3.6 Summary ..... 37
4 Few-Shot Object Grounding in Videos ..... 38
4.1 Introduction ..... 38
4.2 Related Work ..... 40
4.3 Method ..... 41
4.3.1 Problem Formulation ..... 41
4.3.2 Design Motivation and Architectural Overview ..... 41
4.3.3 Object-aware Temporally consistent FSVOD framework ..... 42
4.4 Experiments and Results ..... 45
4.4.1 Datasets ..... 45
4.4.2 Baselines ..... 45
4.4.3 Performance Measure ..... 46
4.4.4 Implementation Details ..... 46
4.4.5 Results and Discussion ..... 47
4.4.6 Main Results ..... 47
4.4.7 Temporal vs. Non-temporal Methods ..... 47
4.4.8 Comparison with adapted Temporal Methods ..... 49
4.4.9 Improvements over Specialized Few-Shot Methods: ..... 49
4.4.10 Advantage of Temporal Fusion (Object Aware Decoder) ..... 49
4.4.11 Effect of Threshold ( ) on Temporal propagation ..... 49
4.4.12 Few-shot Performance Comparison ..... 51
4.4.13 Error Type Analysis ..... 51
4.4.14 Qualitative Results ..... 51
4.4.15 Efficiency Analysis ..... 52
4.4.16 Comparison against a Generic Video-LLM ..... 52
4.5 Summary ..... 53
5 Few-Shot Relationships Grounding in Videos ..... 54
5.1 Introduction ..... 55
5.2 Related Work ..... 56
5.3 Proposed Method ..... 57
5.3.1 Few-shot Referring Relationship as an optimization on a T-partite random field ..... 58
vii
5.3.2 Query-conditioned Relationship Embedding ..... 59
5.3.3 Learning Relation Network with Few Examples ..... 61
5.3.4 Trajectory Generation ..... 62
5.4 Experiments and Results ..... 62
5.4.1 Datasets ..... 62
5.4.2 Performance Measure ..... 63
5.4.3 Baselines ..... 63
5.4.4 Implementation Details ..... 66
5.4.5 Results and Discussions ..... 67
5.5 Summary ..... 70
6 Moment Grounding in Videos ..... 72
6.1 Introduction ..... 72
6.2 Related Work ..... 74
6.2.1 Video Moment Retrieval (VMR) ..... 74
6.2.2 Alignment in Videos ..... 75
6.2.3 Video Encoder Pre-training ..... 75
6.3 Background: Dynamic Time Warping ..... 76
6.4 The MATR Model ..... 77
6.4.1 Motivation behind MATR Architecture ..... 77
6.4.2 Architecture Details ..... 77
6.4.3 Self-supervised Pre-training Strategy ..... 80
6.5 Datasets ..... 81
6.5.1 ActivityNet-VRL Dataset [173] ..... 81
6.5.2 Our proposed SportsMoments Dataset ..... 82
6.6 Experiments and Results ..... 86
6.6.1 Baselines ..... 86
6.6.2 Implementation Details ..... 87
6.6.3 Results and Discussion ..... 89
6.7 Summary ..... 97
7 Conclusions and Future Scope ..... 98
7.1 Summary and Discussion ..... 98
7.1.1 Transferability of Components Across Tasks ..... 100
7.1.2 Training Cost and Reproducibility ..... 100
7.2 Potential Applications ..... 101
7.3 Future Directions ..... 101
7.3.1 Unified "Any-Query, Any-Grounding" ..... 101
7.3.2 Efficiency and Streaming Video ..... 102
7.3.3 Directions with Video LLMs ..... 102
List of Publications ..... 104
Bibliography ..... 106
viii
List of Figures
1.1 Thesis goal ..... 2
1.2 One-shot object localizations task ..... 7
1.3 Few-shot Referring Relationship task ..... 8
1.4 Video-to-video Moment Retrieval Task ..... 10
3.1 Illustration of the proposed task ..... 26
3.2 Illustration of the proposed QDETRv ..... 28
3.3 Unsupervised Video Pretraining ..... 29
3.4 Ablation study on the temporal context window size ..... 33
3.5 Cross-attention visualization on test frame ..... 35
3.6 Qualitative results ..... 36
3.7 Failure Cases ..... 36
4.1 Few-shot Object Detection ..... 39
4.2 Object-aware Temporal Consistency ..... 42
4.3 Few-shot heads ..... 43
4.4 Threshold effect ..... 48
4.5 Qualitative Results ..... 50
4.6 Error Type Analysis ..... 51
5.1 The proposed problem setup ..... 54
5.2 Illustration of T-partite random field ..... 57
5.3 spatiotemporal localization accuracy ..... 69
5.4 Qualitative result on a selection of test videos ..... 70
6.1 Video-to-video Moment Retrieval goal ..... 73
6.2 Moment Alignment TRansformer (MATR) ..... 78
6.3 Self-supervised Pre-training Strategy ..... 81
6.4 Distribution visualization ..... 83
6.5 Frequency distribution of action classes ..... 84
6.6 Qualitative Results ..... 93
ix
List of Tables
2.1 Representative Transformer architectures ..... 18
2.2 Few-shot Learning Approaches ..... 22
3.1 Overview of the Vid-OR and VidVRD datasets ..... 31
3.2 Comparative performance of different baselines ..... 33
3.3 Ablation studies on recurrent queries during pretraining ..... 34
3.4 Class-wise performance comparison ..... 35
4.1 Overview of the datasets used in this work ..... 46
4.2 Performance Comparison in 5-shot setting ..... 47
4.3 Few-shot performance comparison ..... 48
4.4 Advantage of Object Aware Temporal-fusion ..... 48
4.5 Inference cost comparison ..... 52
5.1 Comparison of baseline and proposed method ..... 67
5.2 Performance of few-shot referring relationship in videos ..... 67
5.3 Ablation study ..... 68
5.4 Predicate-wise Performance ..... 68
5.5 Performance comparison of translational and Concat relationship embedding ..... 68
5.6 Performance comparison for unseen subject and object ..... 70
6.1 Statistical Comparison of Datasets ..... 82
6.2 Temporal Characteristics of Videos ..... 83
6.3 YouTube IDs used for SportsMoments dataset creation. We used 80 videos for dataset curation ..... 85
6.4 Main Table ..... 88
6.5 Text-VMR Comparison ..... 89
6.6 Impact of Pre-Fusion and Post-Fusion ..... 89
6.7 Impact of Pre-training ..... 89
6.8 Advantage of Predicting Using Prediction Heads ..... 92
6.9 Performance Comparison of Sequence Alignment Methods ..... 92
6.10 Comparison of Video Feature Extraction Backbones ..... 92
6.11 Robustness Analysis ..... 94
6.12 Efficiency analysis of MATR ..... 96
6.13 Impact of frame sampling rate ..... 96
X
Introduction
The digital era has witnessed explosive growth in the generation of video data. Recent studies show that video accounts for more than 80% of global internet traffic [1], with platforms like YouTube receiving more than 20 million uploads per day . Surveillance systems generate petabytes of footage daily [2], while billions of smartphone users continuously create and share videos. This massive volume of visual data presents unprecedented opportunities for insight in domains such as sports analytics, manufacturing, skill understanding, healthcare, education, security, and scientific research. However, this abundance also presents major challenges. The sheer scale of video content far exceeds what humans can view and analyze manually. To enable scalable and timely understanding, there is a pressing need for automatic tools that can flexibly interpret video content, adapt to novel scenarios, and extract user-relevant insights with minimal supervision.
Crucially, such tools must go beyond generic summarization and support targeted video understanding, where users seek specific insights into particular tasks or events rather than exhaustive analysis of entire videos. For instance, in the sports domain, one may wish to identify a specific object such as a player, a football, or a goalpost; an interaction like a player kicking the football; or a moment/action such as a shot on goal or a successful save. These examples underscore the need for query-based grounding systems that can parse dynamic gameplay on demand and retrieve user-defined information with minimal supervision and effort.
In this thesis we study query-based grounding tasks and introduce methods that enable flexible and targeted interpretation of video content with minimal supervision, even in open-world settings. Toward this end, the goal of this thesis is illustrated in Figure 1.1. Consider a video of a football match. Understanding the unfolding play requires addressing three core questions while handling potentially unseen players, formations, or gameplay scenarios. Specifically: (Objective (i). Understanding where) identifying key entities such as players, the ball, and goalposts, even when player appearances, jerseys, or camera perspectives differ from training examples. This objective is achieved through query-guided object localization using visual queries; (Objective (ii). Understanding how) recognizing interactions such as “player kicking the ball”, even when the interaction patterns or strategies differ from those observed during training, which is addressed through relationship grounding using visual-relationship queries; and (Objective (iii). Understanding when) detecting key temporal events such as a “goal” even when the exact action instance or context was not seen during training, handled via video moment retrieval using video queries.
This query-driven formulation enables the system to interpret video content based on
Objective (i). Understanding “Where”
Query (q)

Query (q)
Objective (ii). Understanding “How”
Query (q): <person kicking ball>
Query (q): <person guarding goal>



Objective (iii). Understanding “When”
Query (q): Find the goal resulting from a corner kick
or

Goal
Figure 1.1: Thesis Objectives. This work aims to advance query-guided video understanding by addressing three core questions: where objects are present, how they interact, and when specific actions occur. Consider a football match: understanding the play requires (i) identifying key entities such as the ball, goalposts, and the players (where important objects are), (ii) recognizing interactions like "player kicking the ball to a teammate" (how objects interact), and (iii) localizing key events such "goa" moment (when critical actions occur). Together, these tasks enable structured interpretation of complex, fast-paced sports scenes, moving beyond frame-level recognition toward temporally grounded, interaction-aware understanding.
user-defined interests, eliminating the need to manually view entire videos. Each task is designed to handle novel visual elements that may not have been encountered during training, ensuring adaptability in open-world settings. Collectively, the three grounding tasks, object-level, relationship-level, and moment-level, capture the multidimensional nature of video understanding: objects serve as the foundational elements of scenes, relationships encode meaningful interactions that define activities, and temporal grounding pinpoints when key events unfold. By tackling these objectives through targeted queries, our approach empowers machines to retrieve specific user-relevant information from unstructured videos with minimal supervision. This provides scalable and user-centric video interpretation systems that flexibly generalize to unseen concepts and deliver actionable insights in dynamic environments.
The following sections present a discussion of the key challenges, prior work, and our core contributions.
1.1 CHALLENGES
While addressing the proposed-task towards query-guided video understanding we tackled following challenges.
1.1.1 THE SCALABILITY CHALLENGE
Many video understanding methods face a major limitation: they rely heavily on detailed annotations for every possible scenario. Traditional supervised approaches demand large-scale training datasets that cover all object types [3], relationships [4], actions, and moments [5] that may arise during deployment or test time making them difficult to scale in real-world settings.
This challenge is particularly pronounced when systems are expected to generalize from limited supervision. In many practical cases, models must detect unfamiliar objects, interpret novel interactions, or localize complex actions using only a handful of examples. For instance, identifying an unexpected road obstacle, understanding a rare interaction like “plane flying above truck,” or retrieving fine-grain actions such as “bicycle kicks” from a footwall match video. The annotation burden becomes even more severe due to the compositional nature of visual understanding, where the number of possible object-relationship combinations grows exponentially.
To address the scalability challenge, the chapters 3, 4, and 5 focus on methods that can be learned with one or a few examples. Instead of relying on exhaustive annotations, we develop methods to generalize from one or a few examples, allowing scalable models. This shift from annotation-heavy pipelines to adaptive learning frameworks provides a step toward building practical, flexible video AI systems.
1.1.2 OPEN-SET GENERALIZATION
Real-world environments are inherently open-set: new objects, interactions, and events frequently emerge without prior labels or limited training instances. Systems designed under closed-set assumptions, where all categories are known in advance, struggle to adapt, especially in dynamic domains like autonomous driving, surveillance, and content retrieval. This mismatch between training and deployment distributions creates a critical need for open-set generalization, where models must recognize and reason about novel concepts at test time.
In video understanding, this challenge is amplified by the temporal and compositional complexity of visual scenes. Unlike static images, videos require consistent interpretation across frames, making it harder to detect and track unseen categories, relationships, or actions. Traditional pipelines with fixed category heads or frame-wise processing often fail to maintain temporal coherence or calibrate unknowns. Recent open-vocabulary approaches [6, 7] leverage language-aligned encoders to extend recognition to novel classes, but typically lack object-aware temporal modeling, resulting in fragmented or inconsistent detections for unseen concepts.
To address these limitations, chapters 3, 4, and 6 propose query-conditioned formulations that enable open-set generalization in video tasks. Our methods are designed to adapt for unseen examples at test time while leveraging temporal structure for robust grounding.
1.1.3 BEYOND STATIC ANALYSIS
Moving from static image understanding to video analysis introduces a new dimension of complexity, time. Unlike images, videos contain evolving scenes where objects move, interact, and change appearance across frames. This temporal axis brings several challenges; models must handle motion blur, occlusions, deformations, and viewpoint shifts while maintaining consistent predictions over time. Frame-wise methods that ignore temporal context often suffer from fragmented tracks and unstable boundaries, especially when objects are briefly missed or partially visible.
Effective video understanding requires spatiotemporal reasoning: systems must integrate information across frames to preserve continuity and suppress noise. For localization and detection, temporal fusion and cross-attention mechanisms help propagate high-confidence signals and maintain object identity. For temporal action/moment grounding, precise temporal alignment is essential, must match query and target sequences despite variations in speed, duration, and execution style, placing accurate start-end boundaries rather than relying on isolated frame-level matches.
To address these challenges, our work incorporates video-specific architectural designs that go beyond per-image processing. We introduce temporal cross-attention modules, memory-based fusion strategies (chapter 3), and sequence-level alignment objectives (chapter 6) that enable robust spatio-temporal localizations and retrieval across time. These components allow our models to maintain coherence, adapt to dynamic content, and deliver temporally consistent predictions, advancing video understanding beyond static analysis.
1.2 PRIOR WORKS
1.2.1 OBJECT DETECTION AND GROUNDING
Object detection and localization in images have evolved from traditional CNN-based approaches like Faster R-CNN [8], which use region proposal networks for candidate generation, and YOLO [9], which formulates detection as a single-stage regression problem for real-time performance, to transformer-based methods like DETR [10] that treat detection as a set prediction task. These methods typically rely on predefined object categories and extensive supervised training on large datasets [8, 9]. Query-based object localization represents a paradigm shift, using visual queries such as single images of target objects to localize instances in target scenes. Methods like CoAE [11] employ co-attention mechanisms to establish correspondences between query images and target regions, while OS2D [12] provides versatile one-stage detection, enabling detection of novel object categories without extensive retraining.
Extending object detection from images to videos introduces significant additional challenges beyond static image detection. The temporal nature of videos creates complexities, including appearance variations due to illumination changes, motion blur, viewpoint shifts, and occlusions where objects disappear and reappear across frames. Videos require temporal consistency to maintain coherent object identities and smooth trajectories across consecutive frames. Many existing methods process frames independently or use simple temporal aggregation that fails to capture complex object dynamics effectively [13, 14]. In this thesis (chapter 3), we developed a query-guided detection framework [15] specifically designed for video object localization using image queries, incorporating cross-attention mechanisms that capture information from neighboring frames to enable robust localization while maintaining temporal consistency.
1.2.2 VISUAL RELATIONSHIP DETECTION AND GROUNDING
Visual relationship detection in images focuses on understanding interactions between objects by identifying subject-predicate-object triplets such as “person riding bicycle” or “bird flying above car”. Early approaches concentrated on spatial relationships and human-object interactions, with scene graphs introduced to represent multiple visual relationships in structured formats. Traditional methods [16, 17] rely on strong supervision with extensive annotations for every possible subject-predicate-object combination, limiting scalability to diverse relationship types. Query-based relationship grounding [18], particularly referring relationships, represents a more flexible paradigm where systems must localize subject and object entities given specific relationship queries, typically using iterative message-passing mechanisms and language priors.
Extending visual relationship detection and grounding from images to videos introduces substantial temporal complexities beyond static image analysis [4, 19]. Videos contain dynamic relationships that evolve over time, such as temporal predicates like “chasing” or “following” that have limited understanding in static images. Objects involved in relationships undergo appearance changes, occlusions, and motion patterns that must be tracked consistently across frames, while maintaining relationship consistency to avoid temporal discontinuities. Recent video relationship detection methods have incorporated transformer architectures and temporal attention mechanisms [19], but most struggle with novel relationship types not seen during training. In this thesis (chapter 5), we address few-shot referring relationships in videos, where the model localizes subject and object entities corresponding to unseen relationship queries using only a few support examples, formulating this as an optimization problem over a temporal random field with belief propagation.
1.2.3 VIDEO ACTION OR MOMENT GROUNDING
Video moment retrieval majorly focused on text-based approaches that locate temporal segments in videos matching natural language descriptions [20, 21]. Early methods employed CNN-based video encoders combined with RNN-based text encoders [22, 23], using simple alignment mechanisms to match textual queries with video content. These approaches often struggled with complex semantic understanding and temporal reasoning, relying on basic feature concatenation or attention mechanisms. The introduction of transformer architectures revolutionized this field, with methods like Moment-DETR [20], QD-DETR [21], and UniVTG [24] leveraging self-attention and cross-attention mechanisms to achieve better alignment between text queries and video segments, significantly improving localization accuracy through end-to-end learning.
However, text-based approaches face inherent limitations when describing complex visual moments, temporal dynamics, or nuanced actions that are difficult to articulate precisely in natural language. This challenge motivated the development of video-to-video moment retrieval (Vid2VidMR), where actual video clips serve as queries instead of text descriptions. Video-based approaches like GDP [23], FFI+SRM [22], and SRL [25] enable more intuitive querying by allowing users to specify target moments using videos, particularly valuable for complex activities that are hard to describe verbally. These methods face unique challenges in aligning video sequences and capturing temporal correlations between query and target videos, requiring sophisticated temporal modeling to handle variations in motion, appearance, and timing. Our work (chapter 6) [26, 27] has explored dual-stage sequence alignment, self-supervised pretraining objectives, and transformer-based architectures specifically designed for video-to-video alignment to improve performance in this challenging task.
1.2.4 TRANSFORMER-BASED VIDEO UNDERSTANDING
Transformer architectures [28] were originally introduced for natural language processing, utilizing self-attention mechanisms to model long-range dependencies without recurrent connections. Their success in NLP motivated adaptation to computer vision, starting with Vision Transformer (ViT) [29] for image classification by treating image patches as tokens. DETR [10] further revolutionized object detection by formulating it as a set prediction problem using transformer encoder-decoder architectures, eliminating hand-crafted components like non-maximum suppression. Adapting transformers for video understanding introduced unique temporal modeling challenges beyond static image analysis, requiring mechanisms to capture relationships across frames while maintaining computational efficiency.
Video-specific transformer variants [21, 20] incorporated spatiotemporal attention mechanisms and cross-attention to align information between different temporal segments or between query and target video content. Methods like Trans-VOD [30] addressed video challenges by designing attention patterns that capture both short-term motion and long-term temporal dependencies while handling variable video lengths. Vision-language transformers pretrained on large-scale image-text datasets, such as Video-OWLViT [7], a CLIP-based model, have proven particularly effective for video tasks requiring semantic understanding of novel concepts, transferring rich semantic knowledge for few-shot and open-vocabulary understanding. In this thesis, we leverage transformer architectures through cross-attention mechanisms that capture temporal context (chapter 3) from neighboring frames, dual-stage sequence alignment for video-to-video matching (chapter 6), and query-guided attention that enables detection and localization of novel objects or relationships using minimal supervision.
Query Image
Target Video

Input
Output
Figure 1.2: Given an unseen query image and a target video, the model is expected to localize all instances of objects present in the query image on the target video.
1.3 THESIS OBJECTIVES AND CONTRIBUTIONS
1.3.1 OBJECTIVE-1
Understanding “Where”: Develop a query-guided approach for object grounding that operates in open-set settings using one or a few visual examples.
Query-Guided Object Grounding. Given a visual query (e.g., an image or visual embedding of an object) and a target video consisting of frames, the goal of query-guided object localization is to determine a set of spatio-temporal regions
that correspond to the visual entity represented by q, where n represents the number of instances of the query object. Formally, the task can be viewed as learning a function
where localizes the queried object across frames as shown in Figure 1.2.
Unlike conventional object grounding systems limited to a fixed set of categories, our aim is to identify any visual entity specified through a query, thereby enabling open-world generalization. The problem becomes particularly challenging in videos, where objects exhibit temporal dynamics, occlusions, and appearance variations, requiring consistent localization across frames with little to no task-specific supervision.
To address this, we study the problem in two related settings: one-shot and few-shot video object localization. In the one-shot setting, the model receives a single query image and localizes the corresponding object in the video. In contrast, the few-shot setting provides a small support set of examples that guide the localization of novel object instances.
For the one-shot scenario, we introduce QDETRv (Query-Guided DETR for Videos) [15] (chapter 3), a transformer-based architecture that extends DETR with temporal modeling

<bird, fly above, person>
video-1
<helicopter, fly above, train>
video-2
<plane, fly above, truck>
video-3
Support Set
<plane, fly above, plane>
video-4

<plane, fly above, person>
Test video
Output
Figure 1.3: Given a query visual relationship as <subject, predicate, object> and a test video, our goal is to localize the subject and object on the test video with the help of a support set containing a few videos with the same predicate. In this example, the goal is to spatio-temporally localize the plane (subject) and person (object) that are connected via fly above (predicate), with the help of a support set containing only four videos sharing the predicate fly above. It should be noted here that fly above is unseen during training. We refer to this problem as few-shot referring relationship in videos.
capabilities. QDETRv employs (i) query-context fusion, where query features are integrated with contextual video frames to enable effective temporal reasoning; (ii) memory module to maintain temporal consistency across frames; and (iii) unsupervised pretraining strategy using synthetic object trajectories with recurrent queries and feature-reconstruction objectives, and thereby achieves substantial gains over competitive baselines. Taking it forward, we extended QDETRv for few-shot object grounding.
Building on this, we proposed a temporal object-aware Vision Transformer [31] (chapter 4) that addresses QDETRv's limitations by leveraging language aligned large-scale pre-trained open-set detectors. It integrates semantic knowledge from vision-language models like OWL-ViT to enable effective knowledge transfer and robust object generalization across time. The method introduces a filtering mechanism that propagates high-confidence object features across frames, enabling efficient progression and reduced noise. It integrates feature interaction between current frames and past detections to maintain temporal coherence without explicit object-tube proposals. Parallel classification and detection heads are optimized for few-shot settings, achieving state-of-the-art performance.
Together, these contributions advance the understanding of “where” objects are located in videos, establishing a robust foundation for open-world and query-driven object grounding under limited supervision.
1.3.2 OBJECTIVE-2
Understanding “How”: Develop a query-guided method to ground unseen object interactions (visual relationships) spatio-temporally using few examples.
Query-Guided Relationship Grounding. Given a visual relationship query , where s and o denote subject and object visual entities, and p represents a predicate describing their interaction, and a target video consisting of T frames, the goal of relationship grounding is to identify spatio-temporal trajectories
such that the localized regions correspond to entities engaged in interaction p, where n is the number of instances of the query visual relation. Formally, the task can be defined as learning a mapping
where grounds relationships in videos by jointly reasoning over spatial and temporal dependencies of entities, as illustrated in Figure 1.3.
While object localization answers “where” entities are, understanding “how” they interact provides a richer, more compositional understanding of dynamic scenes. For example, the relationships “person near bicycle” and “person riding bicycle” represent semantically distinct interactions despite involving the same entities. Modeling such relational semantics is crucial for high-level reasoning and event understanding. However, existing relationship detection methods rely on exhaustive annotation of subject-predicate-object triplets [4], which severely limits scalability and generalization in realistic, open-world video settings. In videos, these challenges are further amplified by temporal evolution, occlusions, and discontinuities, as relationships appear, vanish, and transform over time.
To address these challenges, we propose the task of few-shot referring relationship grounding in videos [32] (5), where the goal is to ground novel subject-object interactions with limited supervision. The problem is formulated as an optimization over a T-partite random field, where T denotes the number of frames in the video. Each vertex represents a candidate subject-object pair, and the objective function combines frame-level detection potentials with relationship similarity potentials learned through episodic meta-training. This design allows the model to generalize to unseen predicates while maintaining temporal coherence across frames.
Our approach introduces query-conditioned translational relationship embeddings that capture semantic interactions between entities in a structured embedding space. These embeddings are enhanced using two complementary attention-based aggregation mechanisms: (i) Global Semantic Aggregation (GSA), which fuses I3D features across all frames using learnable attention weights to incorporate long-range contextual cues, and (ii) Local Localization Aggregation (LLA), which focuses on spatial and ROI features from neighboring frames within a temporal window, thereby addressing occlusions and partial visibility.
A meta-learned Relation Network computes similarity scores between support and query relationships, enabling robust matching even for unseen predicates. The resulting optimization is efficiently solved via belief propagation-based message passing on the random field, producing consistent and temporally aligned subject-object trajectories.
Together, these contributions advance the understanding of “how” objects interact in videos, bridging the gap between object-level detection and event-level reasoning, and enabling scalable few-shot grounding of visual relationships under dynamic video conditions.
Query Video

Target Video
Output Segment
Figure 1.4: Given a query video depicting an unseen moment or action, the task is to temporally localize the corresponding moment or action within a target video.
1.3.3 OBJECTIVE-3
Understanding “When”: Develop an approach that, given a text or video query, can ground unseen temporal events in videos.
Video Moment Grounding. Given a query video (text or a video) and a target video consisting of frames, the goal of video moment grounding is to identify the temporal segment
in V that is semantically most similar to Q. Formally, the task can be expressed as learning a function
where aligns visual and temporal representations between Q and V to retrieve the corresponding moment as illustrated in Figure 1.4.
While the previous objectives addressed where objects appear and how they interact, this objective focuses on understanding when key events occur within a video. Moment-level grounding thus extends video understanding from spatial and relational reasoning to temporal reasoning, pinpointing the exact time intervals corresponding to meaningful actions or events. Traditional approaches typically employ text-based queries for temporal localization; however, such methods often face limitations in descriptive precision, temporal ambiguity, and modality mismatch, which hinder their ability to capture subtle visual cues such as motion dynamics, execution speed, or style variations.
To overcome these limitations, we introduce the Moment Alignment Transformer (MATR) for video-to-video moment retrieval (Vid2VidMR) [26, 27] (Chapter 6). In this formulation, a short video clip serves as a visual query to locate semantically similar moments within a longer target video. This visual-to-visual alignment paradigm leverages the full richness of motion and appearance information, offering a more precise and fine-grained retrieval framework than text-based approaches. Furthermore, we extended MATR to handle text queries and achieved performance comparable to state-of-the-art methods.
MATR employs a dual-stage sequence alignment strategy within a transformer architecture to model temporal dependencies between query and target sequences. Specifically, the method integrates Dynamic Time Warping (DTW) at two levels: (i) pre-fusion alignment, which enhances semantic correlation between query and target representations before transformer encoding, and (ii) post-fusion alignment, which refines target video features after fusion for more accurate temporal correspondence. This two-stage alignment enables MATR to capture both coarse-to-fine temporal relationships across varying time scales.
The architecture combines encoder representations with decoder-refined features through learnable query vectors that guide moment localization. Two prediction heads perform (i) foreground–background classification and (ii) boundary regression to predict the temporal boundaries ( ) of the retrieved segment. MATR is trained using a multi-objective loss that jointly optimizes alignment cost, classification accuracy, and boundary precision.
To further enhance model initialization and temporal reasoning, we introduce a self-supervised pretraining strategy, where MATR learns to localize randomly sampled clips within the same video. This auxiliary task aligns closely with the main Vid2VidMR objective and encourages robust temporal correspondence learning.
Together, these contributions advance the understanding of “when” events occur in videos, enabling temporally grounded, query-driven retrieval of meaningful moments. This complements the spatial (where) and relational (how) understanding objectives, thereby completing a holistic framework for query-guided video comprehension.
1.4 THESIS ORGANIZATION:
This thesis is organized as follows.
Chapter 2 provides a background of Transformer and Few-shot learning relevant to our work. This chapter establishes the foundation and contextualizes our contributions by highlighting key advancements and limitations in the field.
Chapter 3 presents a one-shot video object localization framework using Query-Guided DETR. We extend DETR with cross-attention, where queries stem from visual exemplars and key-value pairs encode spatio-temporal video features. The chapter introduces an unsupervised pre-training strategy leveraging synthetic object trajectories, recurrent memory, feature reconstruction, and temporal consistency. Key innovations include query-conditioned object tokens, multi-scale temporal fusion, and differentiable trajectory generation, enabling efficient localization of unseen objects across video sequences via selective attention. The work presented in this chapter has been published in the following publication: Yogesh Kumar, Saswat Mallick, Anand Mishra, Sowmya Rasipuram, Anutosh Maitra, Roshni Ramnani, QDETRv: Query-Guided DETR for One-Shot Object Localization in Videos, In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), pages 2831–2839, 2024 [15].
Chapter 4 introduces the Temporal Object-Aware Few-Shot Video Object Detection Transformer, which enhances object-level understanding by integrating OWL-ViT a large-scale vision-language model with specialized temporal modeling. We propose a filtering mecha-nism that selectively propagates high-confidence object features across frames using adaptive thresholding and cross-attention between current frame embeddings and previously detected object representations. The work presented in this chapter has been published in the following publication: Yogesh Kumar, Anand Mishra, Temporal Object-Aware Vision Transformer for Few-Shot Video Object Detection, In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), pages 5764–5772, 2026 [31].
In chapter 5 we proposed Few-Shot Referring Relationships that extends object level grounding to relationship level grounding through our T-partite random field formulation with belief propagation-based optimization. The chapter details query-conditioned translational relationship embeddings, Global Semantic Aggregation (GSA) and Local Localization Aggregation (LLA) mechanisms for enhanced relationship representations, and meta-learning frameworks using episodic training. The work presented in this chapter has been published in the following publication: Yogesh Kumar, Anand Mishra, Few-Shot Referring Relationships in Videos, In Proceedings of IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2289–2298, 2023 [32].
Chapter 6 introduces MATR, a transformer-based model for Video-to-Video Moment Retrieval using dual-stage Dynamic Time Warping (DTW) for sequence alignment. It features learnable queries, multi-scale encoder-decoder fusion, and self-supervised clip localization. Key innovations include differentiable DTW, boundary-aware classification, and temporal augmentations to improve generalization. The work presented in this chapter has been published in the following publications: (i) Yogesh Kumar, Uday Agarwal, Manish Gupta, Anand Mishra, Aligning Moments in Time using Video Queries, In Proceedings of International Conference on Computer Vision (ICCV), pages 20215–20225, 2025 [26], (ii) Yogesh Kumar, Uday Agarwal, Manish Gupta, Anand Mishra, Moment Alignment Transformer for Video-to-Video Moment Retrieval, Computer Vision and Image Understanding (CVIU), article 104959, 2026 [27].
Chapter 7 concludes the thesis by summarizing key contributions, acknowledging current limitations, and proposing future research directions in multi-granular video understanding. It highlights opportunities to extend the presented frameworks toward more scalable, generalizable, and interpretable video grounding systems.
Background
This chapter presents the foundational concepts and prior research that support the methods proposed in this thesis. We highlight key prior works that inform or are directly integrated into our contributions. Readers already familiar with these topics may choose to proceed directly to the next chapter, where our core methodologies are introduced.
2.1 TRANSFORMERS
The Transformer [28] represents a paradigm shift in deep learning architectures, replacing recurrent and convolutional operations with self-attention as the primary building block. Its introduction was motivated by the limitations of recurrent neural networks (RNNs) [33] and long short-term memory (LSTM) [34] models, which struggle with long-range dependencies and suffer from sequential processing bottlenecks. In contrast, the Transformer processes entire sequences in parallel and models pairwise interactions between tokens via attention, resulting in superior scalability and performance.
Formally, given an input sequence , the Transformer produces contextualized representations by allowing each token to attend to all others. The ability to capture global dependencies without recurrence or convolution has led to state-of-the-art performance across natural language processing (NLP) tasks such as machine translation, language modeling, and text generation.
Despite its strengths, the Transformer faces key limitations. The computational and memory cost of self-attention is with respect to sequence length n, making it expensive for long inputs (e.g., documents, videos). Furthermore, unlike CNNs, Transformers lack strong inductive biases such as locality and translation equivariance, requiring vast datasets for effective training. Overfitting and instability in low-data regimes remain challenges, although pretraining on massive corpora (e.g., BERT [35], GPT [36]) followed by fine-tuning has mitigated these issues in practice.
The flexibility of the Transformer has inspired numerous domain-specific adaptations across text, vision, multimodal, and video understanding. Table 2.1 provides a comparative summary of representative Transformer models, highlighting their key innovations, targeted modalities, and efficiency trade-offs.
2.1.1 TECHNICAL DETAILS
The Transformer consists of two major components: an encoder and a decoder, each composed of a stack of identical layers [28]. The encoder is responsible for mapping an input sequence to a contextualized representation, while the decoder autoregressively generates output tokens by attending both to previously generated tokens and the encoder output.
At the heart of the architecture lies the scaled dot-product attention mechanism, which enables each token to selectively focus on relevant parts of the input sequence. It operates on three components: queries (Q), keys (K), and values (V), computed by projecting each input embedding using learnable weight matrices , , and . Intuitively, queries represent what each token is looking for, keys encode what each token offers, and values carry the actual information to be aggregated. The attention scores are computed by comparing queries against keys, and these scores are used to weight the values:
where is the dimensionality of the keys. This formulation allows the model to dynamically integrate context from the entire sequence, enhancing representation quality.
To improve expressiveness, multi-head attention (MHA) extends this mechanism by projecting inputs into h different subspaces, computing attention independently in each, and concatenating the results:
This allows the model to capture diverse types of relationships simultaneously (e.g., syntactic and semantic dependencies in language, or local and global structures in vision).
Each encoder block contains:
-
Multi-head self-attention, where every token attends to all others in the input.
-
A position-wise feed-forward network (FFN), consisting of two linear layers with nonlinearity (ReLU or GELU).
-
Residual connections and layer normalization applied around each sub-layer for stable optimization.
Formally, for input at layer l:
The decoder mirrors this structure, but includes two additional mechanisms:
• Masked self-attention, which prevents access to future tokens and ensures autoregressive generation.
- Cross-attention, where queries come from the decoder and keys/values are taken from the encoder output, enabling the decoder to condition its predictions on the source sequence.
Since self-attention is permutation-invariant, positional encodings are added to input embeddings to encode sequence order. Vaswani et al. [28] introduced sinusoidal encodings:
where pos is the position index and d is embedding dimension. Later variants include learned embeddings and rotary position encodings.
By stacking L layers of encoders and decoders, the Transformer scales to highly expressive models. A task-specific output head (e.g., linear projection with softmax for classification, autoregressive token generation for language modeling, bounding box regression for detection) is applied on top of the final decoder or encoder outputs.
A key property of the Transformer is its modality-agnostic nature; as long as data can be represented as a sequence of embeddings, the architecture can process it. This includes words in a sentence, image patches, audio frames, or spatio-temporal video tokens. Thus, the Transformer has evolved into a general-purpose architecture for sequence-to-sequence modeling across diverse domains.
Despite these strengths, the quadratic cost in sequence length n remains a bottleneck for long sequences. This has motivated research into sparse, linear, or hierarchical attention mechanisms, such as Longformer [37], Performer [38], and hierarchical variants designed for vision and video tasks.
2.1.2 EXTENSIONS TO VISION AND MULTIMODALITY
The extension of Transformers to vision was pioneered by Vision Transformer (ViT) [29], which views an image as a sequence of patches rather than pixels. Specifically, an image is divided into non-overlapping patches of size , each flattened and linearly projected into an embedding:
where is a learnable projection matrix, is the flattened patch, and is a positional embedding that encodes spatial order. A learnable [CLS] token is prepended to the sequence, and its representation after the Transformer encoder is used for classification. Thus, the Transformer input is:
where P denotes positional encodings. ViT demonstrates that Transformers can match or surpass CNNs when pretrained on sufficiently large datasets (e.g., JFT-300M [39]).
To adapt Transformers more effectively for vision, several innovations were introduced. DeiT [40] showed that careful regularization and knowledge distillation from CNN teachers can enable ViT training on smaller datasets such as ImageNet-1k. Swin Transformer [41] introduced a hierarchical design by computing attention within shifted local windows and merging patches across stages, which reintroduces locality and reduces complexity. CvT [42] integrates convolutional projections into patch embedding and attention layers to recover inductive bias. Positional encoding strategies were also adapted for 2D spatial data, ranging from sine-cosine embeddings on a 2D grid to learnable embeddings and relative positional biases. These design choices illustrate how structural priors (e.g., locality, hierarchy) are injected back into the otherwise permutation-invariant Transformer.
Modality Adaptation. Transformers require each modality to be expressed as a sequence of tokens. Different modalities are adapted as follows:
Vision.
• Patch embedding: Instead of words, images are split into patches and projected into -dimensional embeddings, analogous to NLP token embeddings.
• Class token: A learnable [CLS] token is prepended for classification tasks.
• Hierarchical variants: Swin, CvT, and others employ patch merging, local windows, and convolutional tokenization to reintroduce inductive bias.
• Positional encoding: Essential to preserve 2D spatial order, typically via sine-cosine 2D embeddings, learnable embeddings, or relative position bias.
Multimodality
• Text: Standard subword tokenization (e.g., BPE) with embeddings plus positional encodings.
• Image (CLIP): A ViT-style vision encoder produces patch embeddings, while a Transformer text encoder handles subword tokens. Both are aligned with a contrastive loss:
where and are vision and text embeddings, and is a temperature parameter.
• Cross-attention (ViLBERT, LXMERT): Separate unimodal encoders produce features for image regions and words. Cross-attention layers then exchange information, e.g.,
• Unified tokenization (PaLI, Flamingo): All modalities are projected into a shared token space, allowing a single Transformer to attend jointly across them. For video/audio, temporal patches or spectrogram frames are tokenized in the same way as image patches.
Recent large-scale multimodal foundation models (e.g., Flamingo [43], PaLI [44]) demonstrate that with unified tokenization and sufficient scale, Transformers can serve as a backbone for diverse multimodal reasoning tasks.
Adapting Transformers to vision and multimodality involves three main components: (i) modality-specific tokenization (e.g., image patches, spectrogram frames, video cubes), (ii) positional encoding schemes to capture modality structure (1D for text, 2D for images, temporal encodings for video), and (iii) interaction mechanisms such as self-attention, cross-attention, or contrastive alignment. This flexibility makes the Transformer a unifying architecture across diverse modalities.
2.1.3 TRANSFORMERS FOR OBJECT DETECTION
Transformers have been adapted to object detection through DETR (DEtection TRansformer) [10], which formulates detection as a direct set prediction problem. Unlike anchor-based detectors (e.g., Faster R-CNN [45], RetinaNet [46]), DETR uses a fixed set of learnable object queries, which the Transformer decoder maps to bounding box coordinates and class labels. A CNN backbone extracts image features, which are flattened and fed into the Transformer encoder. The decoder cross-attends between object queries and encoder features, refining predictions iteratively.
The loss function combines a bipartite matching cost and a set-based prediction loss:
where denotes the optimal one-to-one assignment between predicted outputs and ground-truth targets y. This assignment is computed using the Hungarian algorithm, which minimizes a matching cost. Unlike traditional detectors that rely on heuristic post-processing (e.g., non-maximum suppression), this formulation treats object detection as a direct set prediction problem, ensuring permutation-invariant supervision and eliminating duplicate predictions.
DETR eliminates the need for non-maximum suppression (NMS) and anchor design, but requires longer training to converge. Deformable DETR [47] improves efficiency by restricting attention to sparse spatial locations using learned offsets. Variants such as DAB-DETR [48] and DN-DETR [49] further accelerate convergence and improve localization.
2.1.4 TRANSFORMERS FOR OPEN-WORLD AND OPEN-VOCABULARY DETECTION
Traditional object detectors are typically trained under a closed-world assumption, where the set of object categories is fixed and fully annotated. However, real-world environments are open-ended: models must detect known categories, localize novel or unseen classes, and continually adapt to new semantic spaces. This motivates two closely related paradigms: open-world object detection (OWOD) and open-vocabulary object detection (OVOD).
Problem Setup. In OWOD, let denote the set of known classes during training, and represent test-time classes, where are unseen. The model must: (i) detect and classify , (ii) localize instances of as “unknown,” and (iii) incrementally integrate with minimal supervision while avoiding catastrophic forgetting.
| Model | Modality / Task | Key Contributions and Innovations |
|---|---|---|
| Transformer [28] | Text (Seq2Seq) | Introduced self-attention and encoder-decoder architecture for sequence modeling. |
| BERT [35], GPT [36] | Text (Pretraining) | Masked LM (BERT) and autoregressive LM (GPT); fine-tuning for downstream tasks. |
| ViT [29] | Image (Classification) | Treats image as patch sequence; shows Transformers rival CNNs with large-scale pretraining. |
| DeiT [40] | Image (Classification) | Data-efficient ViT training via distillation and augmentation. |
| Swin Transformer [41] | Image (Dense Tasks) | Hierarchical features; shifted window attention for scalable vision tasks. |
| DETR [10] | Image (Detection) | Set prediction via object queries; removes anchors and NMS. |
| Deformable DETR [47] | Image (Detection) | Sparse deformable attention over sampled keypoints; faster training. |
| CLIP [50] | Image-Text (Retrieval) | Contrastive dual-encoder trained on web-scale image-text pairs. |
| ViLBERT [51] | Image-Text (VQA) | Cross-attention fusion for multimodal reasoning. |
| TimeSformer [52] | Video (Classification) | Factorized spatial-temporal attention for efficient video modeling. |
| ViViT [53] | Video (Classification) | Explores multiple spatio-temporal factorization strategies. |
| Video Swin [54] | Video (Detection/Action) | Extends Swin to 3D; hierarchical spatio-temporal features. |
| Flamingo [43], PaLI [44] | Image-Text-Video (Multimodal) | Unified multimodal models with few-shot capabilities and large-scale pretraining. |
| Moment-DETR [20] | Text-Video (Moment Retrieval) | Moment prediction as direct-set problem. |
| VRDFormer [55] | Video (Relation Detection) | End-to-end query-based framework with static and recurrent queries for spatio-temporal relation detection and tagging. |
| Tube-DETR [19] | Spatio-Temporal Video Grounding | Space-time transformer that jointly models temporal, spatial, and multi-modal interactions for spatio-temporal video grounding. |
| EGTR [56] | Image (Scene Graph Generation) | Extracts relation graph directly from DETR's self-attention; introduces adaptive smoothing and connectivity prediction for efficient one-stage SGG. |
| STTran [57] | Video (Dynamic Scene Graph Generation) | Spatial encoder for intra-frame context and temporal decoder for inter-frame dependencies; introduces multi-label margin loss and semi-constrained graph generation. |
| OWL-ViT [6] | Text and Image (Open-Vocabulary Detection) | Simplifies DETR by removing decoder; enables open-vocabulary and one-shot detection via contrastively pre-trained image-text encoders. |
| Video OWL-ViT [7] | Text and Video (Open-World Localization and Tracking) | Extends OWL-ViT to video by adding a temporal transformer decoder that propagates object queries across frames for end-to-end open-world tracking with improved temporal consistency. |
Table 2.1: Representative Transformer architectures across modalities and tasks. We summarize their core innovations and modality scope.
In OVOD, the objective is to enable detectors to recognize categories beyond by leveraging external semantic knowledge from language models or image-text pretraining, without explicit bounding-box annotations for novel classes.
Transformer-Based Approaches in OWOD. Transformers naturally support OWOD due to their query-centric design and compatibility with multimodal supervision:
• DETR-style extensions: DETR [10] reformulates detection as set prediction with object queries. OW-DETR [58] extends this idea with attention-driven pseudo-labeling, a novelty classification head, and an objectness branch to separate unknowns from background. Fast-OWDETR [59] reduces overhead via lightweight pseudo-label selection and improved bounding-box refinement.
• Incremental learning: Open World DETR [60] introduces exemplar replay buffers, multi-view consistency, and knowledge distillation to expand classification heads while mitigating catastrophic forgetting. PROB [61] models objectness using Gaussian distributions in embedding space, explicitly separating objectness from classification and facilitating smoother class expansion.
• Language-supervised detection: MAVL [62] and related models replace fixed classifier weights with CLIP-style text embeddings. This enables zero-shot transfer by aligning region features with category names or natural language descriptions, bridging OWOD and OVOD.
• Prompt-based adaptation: Lightweight prompt-tuning strategies allow frozen vision-language backbones (e.g., CLIP [50], PaLI [44], Flamingo [43]) to adapt their detection heads to new categories with minimal fine-tuning, improving scalability.
Transformer-Based Approaches in OVOD. In parallel, OVOD methods focus on leveraging vision-language pretraining and semantic supervision to enable vocabulary expansion without explicit bounding-box annotations:
• Knowledge distillation: ViLD [63] distills knowledge from CLIP into detection heads via dual-branch learning. HierKD [64] and LP-OVOD [65] extend this with loss refinements and pseudo-labeling schemes to improve transferability.
• Region-text pretraining: OVR-CNN [66] aligns region features with text embeddings, while GLIP [67] scales this to billions of image-text pairs with grounding supervision. RO-ViT [68] augments positional embeddings and replaces cross-entropy with focal loss for better region-level discrimination.
• Prompt modeling: PromptDet [69] and DetPro [70] design structured or continuous prompts to inject semantic priors. Context grading and background-aware prompts further refine alignment with novel categories.
OWOD vs. OVOD. While both paradigms extend closed-set detection, their emphases differ. OVOD leverages language and large-scale pretraining to broaden the detectable vocabulary in a zero- or few-shot fashion. OWOD additionally requires incremental adaptation: localizing unknowns, integrating them as novel known classes, and preserving prior knowledge. Thus, OVOD focuses on semantic expansion via language grounding, whereas OWOD addresses the dual challenges of unknown discovery and continual learning.
2.1.5 TRANSFORMERS FOR VIDEO UNDERSTANDING
Extending Transformers to video understanding requires modeling spatio-temporal dependencies efficiently. A straightforward approach is to tokenize video frames into spatio-temporal patches, but the resulting sequence length grows quadratically with both spatial and temporal resolution.
TimeSformer [52] addresses this by factorizing attention into temporal and spatial dimensions, reducing complexity from to . ViViT [53] explores several variants, including factorized encoder design and spatio-temporal pooling. Video Swin Transformer [54] adapts shifted window attention to 3D, producing hierarchical spatio-temporal representations.
For action detection and temporal localization, ActionFormer [71] uses a Transformer encoder to aggregate long temporal context efficiently. VideoBERT [72] adapts BERT-style masked prediction to video-text data, leveraging large-scale pretraining (e.g., HowTo100M [73]). TubeDETR [19] extends DETR-style architectures to spatio-temporal video grounding by introducing a dual-stream video-text encoder and a space-time transformer decoder. It avoids handcrafted proposals by using time-aligned queries and achieves efficient end-to-end grounding with reduced memory footprint.
Key challenges for video Transformers include: (1) handling long temporal data, (2) high memory/computation cost, (3) scarcity of labeled video data, and (4) robustness to variable frame rates and motion. Common implementation strategies involve using CLIP [50], 2D CNNs (e.g., ResNet [74], Swin [41]) for spatial encoding, followed by a temporal Transformer for sequence modeling. End-to-end video Transformers are increasingly feasible with advances in hardware and efficient attention mechanisms (e.g., sparse, linear, or axial attention).
Overall, Transformers have become central to video understanding, powering state-of-the-art results in classification, detection, retrieval, and captioning tasks, though scalability and efficiency remain open research directions.
2.2 FEW-SHOT LEARNING
Few-shot learning (FSL) addresses the fundamental challenge of enabling models to generalize to novel categories or tasks when only a handful of labeled examples are available [75]. Formally, let and denote disjoint sets of base and novel classes, respectively. A model is trained on a large-scale dataset , with , and evaluated on , where each class is represented by only labeled support samples . The learner must predict labels for a query set drawn from . The typical setting is , with (one-shot) or being the most common.
While the FSL framework naturally extends beyond classification to tasks such as object detection, segmentation, reinforcement learning, or cross-modal reasoning (e.g., vision–language), in this section we primarily focus on the classification setting. This restriction allows for a clearer comparison of methods under a standardized benchmark, while acknowledging that many techniques have broader applicability.
In practice, FSL is often framed as an N-way K-shot classification problem: given N novel classes and K support samples per class, the task is to predict the label of queries from those N classes. Training usually follows an episodic paradigm [76], where each training episode simulates a few-shot task by sampling N classes and K supports per class from , encouraging the model to generalize to .
The motivation for FSL arises from real-world scenarios where collecting large annotated datasets is infeasible, expensive, or even impossible. For example, rare diseases in medical imaging may have only a handful of expert-annotated scans, while autonomous driving must handle corner cases (e.g., animals crossing or unusual weather conditions) with extremely limited data. In natural language processing, low-resource languages often lack parallel corpora. Unlike conventional supervised learning, where abundant data supports statistical generalization, FSL emphasizes inductive bias, transfer of prior knowledge, and meta-level learning to overcome the data scarcity bottleneck.
2.2.1 APPROACHES
FSL research has produced multiple families of methods, each motivated by different perspectives on how humans generalize from few examples. These are summarized in Table 2.2, and expanded below.
(i) Metric-based approaches. These methods learn an embedding function that maps inputs into a metric space, where is the input space and is the embedding dimension. Classification is then performed by comparing query embeddings with class prototypes. Formally, given a query and a support set for class , the prototype is the mean of the support embeddings:
The query is assigned to the closest prototype according to a distance metric :
Siamese networks [77] pioneered pairwise similarity learning, while Matching Networks [76] used attention over support examples. Relation Networks [78] introduced non-linear metric learning. More recent methods like Meta-Baseline [79] integrate metric learning with pretrained backbones. These methods are computationally efficient and interpretable but degrade under domain shift when support and query distributions differ.
(ii) Optimization-based approaches. In this family, few-shot learning is framed as meta-learning across a distribution of tasks . Each task is split into a support set (used for adaptation) and a query set (used for evaluation). The key idea is to learn model parameters that can be quickly adapted to a task-specific parameter set using only , while still achieving good generalization on .
For example, Model-Agnostic Meta-Learning (MAML) [81] learns an initialization that
| Approach | Core Principle | Representative Methods | Strengths / Limitations |
|---|---|---|---|
| Metric-based | Learn a shared embedding space where classification is performed via similarity to class prototypes or exemplars. Often trained episodically. | Prototypical Nets [80], Matching Nets [76], Siamese Nets [77], RelationNet [78] | + Simple, fast inference; non-parametric adaptation.– Sensitive to embedding quality; vulnerable to domain shift. |
| Optimization-based | Meta-learn an initialization or update rule that enables rapid adaptation to new tasks with few gradient steps. | MAML [81], Reptile [82], Meta-SGD [83], ANIL [84], ProtoMAML [85] | + Strong task-level generalization.– Computationally heavy; unstable in high dimensions. |
| Data Augmentation / Generative | Enrich support data via synthetic samples or feature-level perturbations using generative models or semantic mixing. | FeatGen [86], GAN-based [87], VAE-based [88], Diffusion-based [89], CLIP-based [90] | + Mitigates scarcity; improves diversity.– Risk of unrealistic or biased samples. |
| Self-Supervised / Contrastive | Learn transferable representations via contrastive or self-supervised pretraining, then adapt to few-shot tasks. | MoCo [91], SimCLR [92], BYOL [93], DINO [94], SwAV [95] | + Strong embeddings; reduces label reliance.– Pretraining requires massive unlabeled data. |
| Transformer-based / Prompting | Use attention-based architectures or prompts to model task structure and leverage foundation models. | Few-shot Transformers [96], Prompt-tuning [97], GPT-4V-assisted FSL [98], Flamingo [43] | + Scales with LLMs; interpretable task conditioning.– Prompt sensitivity; high compute demand. |
Table 2.2: Major approaches in few-shot learning (FSL), with principles, representative methods, and trade-offs.
adapts to each task with a few gradient steps:
where is the adaptation step size and is the task-specific loss computed on the support set . The meta-objective is then to minimize the query loss after adaptation:
where denotes the loss evaluated on the query set . This formulation explicitly enforces that the learned initialization is such that, after fine-tuning on , the adapted model performs well on unseen samples from the same task.
Variants include Reptile [82], which simplifies the meta-update by averaging task-specific updates; ANIL [84], which adapts only the final classification head; and ProtoMAML [85], which integrates prototypes into the MAML framework. Latent Embedding Optimization (LEO) [99] further improves scalability by learning low-dimensional latent codes for each task. While optimization-based approaches provide strong task-level generalization, they can be computationally expensive and unstable in high-dimensional parameter spaces, requiring careful design and regularization.
(iii) Data augmentation and generative approaches. Generative methods aim to enrich the support set by synthesizing new examples. Early work used GANs [100] and VAEs [101] to produce class-consistent samples. More recently, diffusion models [89] have been employed for controlled generation. At the feature level, interpolation-based augmentation (e.g., Mixup) is widely used. Given two embeddings and , a mixed feature is created as
where is a hyperparameter controlling the interpolation. Recent advances leverage text-guided models such as CLIP, enabling semantically controlled hallucination [90]. While these methods increase diversity, they risk introducing unrealistic or biased samples.
(iv) Self-supervised and contrastive approaches. Self-supervised pretraining aims to learn transferable visual representations without requiring annotated labels, which can then be adapted to few-shot learning tasks. A dominant paradigm is contrastive learning, where augmented views of the same instance are treated as positives, and embeddings from other instances serve as negatives. The objective encourages invariance to data augmentations while enforcing instance discrimination. A widely used formulation is the InfoNCE loss:
where is the encoder, is a positive (augmented) sample of , are negatives drawn from the batch or memory bank, and is a temperature hyperparameter. This contrastive setup naturally aligns with few-shot settings by learning discriminative embeddings that generalize well across tasks.
Instance-level contrastive learning. SimCLR [92] relies on large batch sizes to provide sufficient negatives and employs strong augmentations (cropping, color jitter, blur) along with an MLP projection head. MoCo [91] alleviates the need for large batches by maintaining a dynamic memory queue of negatives and using a momentum encoder for stable representations. These methods yield highly discriminative embeddings suitable for metric-based FSL methods.
Bootstrap and redundancy-reduction approaches. BYOL [93] removes explicit negatives by using an online encoder and a momentum target encoder, where the online network learns to predict the target's representations. Despite lacking negatives, BYOL avoids representational collapse by architectural asymmetry. Similarly, SimSiam [102] shows that predictor asymmetry alone suffices. SwAV [95] departs from pairwise contrast by performing online clustering with a "swapped prediction" loss, aligning assignments of different augmentations, thereby learning more semantically structured embeddings.
Transformer-based SSL. Vision Transformer (ViT)-based self-supervised learning has emerged as particularly powerful for transferring to FSL tasks. DINO [94] employs a self-distillation framework, where a student network is trained to match the representations of a teacher network under different augmentations. The teacher parameters are updated as an exponential moving average (EMA) of the student parameters, ensuring stable training and preventing collapse. This design enables alignment of both patch-level and global representations, capturing fine-grained semantic correspondences.
Building on this idea, EsViT (Efficient Self-supervised Vision Transformers) [103] introduces token-level contrastive learning, where individual patch tokens are contrasted across different views in addition to global features. By encouraging local token consistency, EsViT enhances the contextual modeling capability of ViTs, which is particularly valuable for open-set and cross-domain few-shot learning. Overall, transformer-based SSL methods leverage contextual, patch-level interactions to produce richer representations, narrowing the gap between pretraining and the demands of real-world FSL.
(v) Transformer-based and prompt-oriented approaches. Transformers naturally model support-query interactions. Few-shot Transformers [96] use cross-attention between support and query embeddings for direct adaptation. Prompt-based methods, such as CoOp [97], learn continuous text prompts that adapt pretrained vision-language models (e.g., CLIP) for FSL. Large multimodal models like Flamingo [43] and GPT-4V [98] demonstrate few-shot reasoning via in-context learning, unifying few-shot and zero-shot paradigms. However, these methods remain sensitive to prompt design and require substantial computational resources.
Overall, the concepts reviewed in this chapter establish the technical foundations for our thesis. We discussed how Transformers evolved into a unified architecture for text, vision, and multimodal reasoning; how their query-based formulations enable object detection, open-world recognition, and video understanding; and how few-shot learning provides mechanisms for generalizing under limited supervision. These ideas directly underpin the design choices in our subsequent chapters, where we leverage Transformer-based models and low-supervision learning to develop effective methods for query-guided video understanding.
One-shot Object Grounding in Videos
In this chapter, we study one-shot video object localization problem that aims to localize instances of unseen objects in the target video using a single query image of the object. Toward addressing this challenging problem, we extend a popular and successful object detection method, namely DETR (Detection Transformer), and introduce a novel approach – query-guided detection transformer for videos (QDETRv). A distinctive feature of QDETRv is its capacity to exploit information from the query image and spatio-temporal context of the target video, which significantly aids in precisely pinpointing the desired object in the video. We incorporate cross-attention mechanisms that capture temporal relationships across adjacent frames to handle the dynamic context in videos effectively. Further, to ensure strong initialization for QDETRv, we also introduce a novel unsupervised pretraining technique tailored to videos. This involves training our model on synthetic object trajectories with an analogous objective as the query-guided localization task. During this pretraining phase, we incorporate recurrent object queries and loss functions that encourage accurate patch feature reconstruction. These additions enable better temporal understanding and robust representation learning. Our experiments show that the proposed model significantly outperforms the competitive baselines on two public benchmarks, VidOR and ImageNet-VidVRD, extended for one-shot open-set localization tasks.
The subsequent sections present the introduction, a review of related work, the proposed methodology, and a detailed analysis of results and discussions.
3.1 INTRODUCTION
The field of computer vision has long been engaged in the pursuit of localizing objects of interest within videos. In the past, the primary emphasis has been localizing the specified object within a single frame on the entire video [104]. Additionally, efforts have been made towards recognizing individuals based on their facial features [105] or clothing characteristics [106]. In a more novel direction, some research has explored using natural language or sketch-based queries to precisely locate objects within images [6, 107, 32, 108, 109]. As visual comprehension continues to advance, there is a need for localization methodologies that can effectively pinpoint unfamiliar objects in the video that were not encountered during the training phase and unexpectedly appeared during testing. This is particularly relevant in various application areas, including surveillance systems and industrial automation. We illustrate our open-set one-shot object localization goal in Figure 3.1.
To address the challenge posed by open-set one-shot object localization, our goal is to develop a model that, once trained, can localize any object query that might arise unexpectedly
Query Image
Target Video


Input

Output
Figure 3.1: Given an unseen query image and a target video, the model is expected to localize all instances of objects present in the query image on the target video. [Best viewed in color].
during testing. As noted in some of the recent works [11, 12], such a model should maintain its class-agnostic nature even during the training process. Our requisites, distinct from approaches, necessitate prior access to the list of category names during both training and testing [110, 111, 112]. To this end, we extend a popular and successful object detection method, namely DETR (Detection Transformer) [10], and introduce a novel query-guided detection transformer for videos – QDETRv. The QDETRv leverages the visual representation of the query image to better localize the target object in the video frames. To handle the temporal context in videos, we incorporate cross-attention that captures information from neighboring frames of the video. The key and value matrices of the cross-attention are obtained from the contextual and target frames, and the query matrix is derived from the query image. The cross-attention operation produces the final context-aware feature representation, which inputs the query-guided DETR. To ensure stronger initialization of QDETRv for our targeted task, we introduced an unsupervised, video-specific pretraining approach. During the pretraining phase, we employed a feature reconstruction loss combined with recurrent object queries to enhance representation quality and temporal learning.
To facilitate our study, we have extended two existing datasets, VidOR [113] and ImageNet-VidVRD [114], by splitting them into train and test sets such that there are no common object categories between the two sets. We obtain query images from each object category from the Google open-images [115] dataset. This dataset preparation ensures a realistic evaluation of one-shot learning performance on videos containing unseen objects. Here, we must highlight that we employ category-wise splits to conduct experiments. However, our model remains entirely class-agnostic during the training and testing phases. Our experimental results demonstrate the effectiveness of our proposed one-shot video object localization approach on the extended VidOR [113] and ImageNet-VidVRD [114] datasets. By combining the query-guided DETR with the video-specific context module, our method exhibits robust performance in localizing instances of unseen objects in target videos.
The contributions of this chapter are twofold: (i) We proposed a novel category-free and query-guided extension to DETR. Our proposed model – QDETRv incorporates a temporal module, capitalizing on temporal context for superior object localization within videos. (ii) We introduced a novel video-specific unsupervised pretraining for QDETRv. This pretraining objective is analogous to our downstream one-shot localization task, resulting in a notable improvement in the localization performance.
3.2 RELATED WORK
3.2.1 ONE/FEW-SHOT OBJECT DETECTION
Over the last few years, there has been significant progress in one/few-shot object detection, largely due to the adoption of sophisticated strategies such as attention mechanisms, transformers, and few-shot learning techniques [116, 117, 118, 119, 120, 110]. These strategies have been successful in a variety of domains, encompassing both image-based and video-based object detection, thus broadening the scope and application of these advanced detection methods. Recently, CoAE [11] and OS2D [12] have shown significant advancements toward one-shot object detection in images. The CoAE [11] makes ingenious use of co-attention and co-excitation mechanisms to generate region proposals and highlight correlated feature channels, thereby improving the accuracy and efficiency of object detection. On the other hand, the OS2D [12] model stands out as a versatile one-stage system that simultaneously performs localization and recognition tasks, proving its effectiveness in various detection scenarios. In the realm of few-shot object detection, recent innovations have resulted in the development of models like the feature reweighting-based model [119], the Multi-level Feature Enhancement (MFE) model [118], the Counting-DETR [121] model for few-shot object counting and detection, and the Fast Hierarchical Learning [122] model designed to address the catastrophic forgetting issue. These models, each exploring different aspects of few-shot learning, have contributed to improved performance across various datasets and settings. In the context of video object detection, models like the Tube Proposal Network with Temporal Matching Network [121] and the Thaw method [123] for few-shot learning in video object detection have been proposed. Both models harness the power of attention mechanisms, transformers, and few-shot learning techniques to achieve compelling results. There have been several successful advances towards developing DETR [10] variants in recent years for addressing different objectives; for example, in [124], authors proposed an incremental DETR that can generalize to novel classes with finetuning on a few examples. In [125] proposed different variants of object query, and [125] proposed an auxiliary one-to-many matching branch during training to enhance the performance of DETR for object detection in images. In [126] proposed UP-DETR method that enhances the original DETR [10] model by introducing unsupervised pretraining with a random query patch detection pretext task, demonstrating considerable performance improvement. The advancements in these areas suggest that the continuous refinement of these techniques can lead to substantial improvements in object detection across image and video domains with limited supervision.
3.2.2 TRANSFORMER-BASED PRETRAINING
Pretraining methods based on transformers, such as BERT [35] and GPT [127] for natural language processing, and ViT [29] for computer vision, have revolutionized the landscape of various tasks, including object detection. These methods leverage self-attention mechanisms to learn high-level semantic features from large-scale data, resulting in models with robust generalization capabilities. By pretraining on large-scale data with diverse modalities, such as image-text pairs [6], these models can enhance the quality of representation learning, and also enable the transfer of this knowledge to downstream tasks, even when object-level data are scarce, thereby circumventing some of the limitations of traditional methods. Furthermore,

Figure 3.2: Illustration of the proposed QDETRv. The process begins with the feature extraction of a query image and video frames using a CNN encoder. A cross-attention mechanism and dot-product attention are used to create an attention map, transforming target frame features. The output is integrated into DETR's encoder, and predictions for bounding boxes are generated using the DETR decoder. [Best viewed in color].
unsupervised pretraining techniques, such as the random query patch detection proposed by UP-DETR [126], have shown promise in enhancing the performance of object detection models. By capitalizing on the strengths of the transformer architecture in capturing long-range dependencies and spatial localization, these techniques offer exciting avenues for future research and development in object detection.
3.3 QUERY-GUIDED DETR FOR VIDEOS (QDETRV)
A key motivation behind QDETRv is that one-shot video localization requires identifying unseen objects from just a single query image, making it essential to exploit both the query's visual cues and the temporal structure of the video. QDETRv achieves this by integrating query-guided cross-attention with frame-to-frame temporal context, enabling precise matching even when the target object appears with variations across time. Moreover, its video-specific unsupervised pretraining equips the model with strong spatio-temporal priors, allowing it to generalize beyond seen categories. Together, these capabilities make QDETRv particularly effective for open-set one-shot localization in videos.
Following, we discuss the formulation of the problem and architectural details.
Given a query image featuring an unseen object, the objective is to spatiotemporally localize all instances of the unseen object within a target video V. Videos, with their intricate interplay of spatial and temporal dimensions, present both opportunities and challenges for localization. Harnessing this complexity effectively ensures high precision and reduces false localization. To this end, in this work, we proposed QDETRv that effectively harnesses the temporal context from the neighboring frames for better localization of unseen objects.
In this work, we utilize a query image , a frame , and a set of adjacent frames from the target video. These frames are defined as , where to with temporal context

Figure 3.3: Unsupervised Video Pretraining: Each frame, along with its associated query patch and context frame, is fed into QDETRv. The model detects the patch on every frame using decoded object queries responsible for predicting the bounding box. These decoded queries are then forwarded to the next frame as object queries for the decoder. Containing the semantic information extracted from previous frames for patch objects, they facilitate the detection in subsequent frames. During this phase, an unsupervised query reconstruction loss is also applied as an extra supervisory mechanism. The model has been pre-trained on a synthetically created dataset to enhance its performance. [Best viewed in color].
window for the frame of the video V.
Feature Encoding: The query image, target, and contextual frames are processed through a Convolutional Neural Network (CNN) encoder to generate corresponding feature representations. This results in the dimensions and , where and are the height and width of the CNN feature maps and , and are the channel dimensions.
Cross-Attention Mechanism for Temporal Context: In our work, we utilize the cross-attention mechanism [28] to encode temporal context within the target frame and enable interaction between the query image and the target frame. As part of this process, we first generate Query , Key , and Value matrices using convolution operations of kernel size . Subsequently, we apply the dot-product attention [28] between Query and Key, which results in an attention map. The latter serves as a storage of correspondences between the visual feature of the query image and the temporal context extracted from the video. This attention map is then used to transform the target frame features represented by Value. This process leads to output features , which can be defined by the following equations:
Here, represents element-wise multiplication. The output features are enriched by adding positional embedding and are then integrated into the encoder of DETR [10]. This allows the localization of unseen objects within the target frame, which is treated as a direct set problem similar to DETR [10]. The decoder's role is to generate pairs of predictions to accurately determine the bounding box of the query object in the current frame. Further, we leverage the Hungarian algorithm to calculate the matching cost between the prediction and the ground truth . Here, signifies the index of as computed by optimal bipartite matching.
Loss Formulation: The predicted result comprises three elements: (a) , this binary classification determines whether a match with the query object is found ( ) or not ( ) for each object query. (b) , this vector is responsible for defining the box center coordinates along with its width and height, represented as . (c) is feature reconstruction used during pretraining for additional supervision. Taking into account these definitions, we define the Hungarian loss for all matched pairs as:
In this equation, T is the number of frames, refers to the binary cross-entropy loss over two classes (match the query object vs. not match), and symbolizes the class balance weight. The is a combination of loss and the generalized IoU loss, with the weight hyper-parameters being the same as those in DETR [10].
3.3.1 UNSUPERVISED PRETRAINING OF QDETRV
Inspired by UP-DETR [126], we introduce a video-specific pretraining strategy suitable for QDETRv. This pretraining strategy is designed to locate a specific query patch within each frame, a process that aligns closely with our main objective. We devised a synthetic dataset based on the UCF101 [128] dataset inspired by [129]. Our video-specific pretraining aims to identify and locate the query patch in every video frame, mimicking our main video frame localization task, as visualized in Figure 3.3. To ensure our pretraining approach is effective and aligns well with our primary task, we have added two additional mechanisms: (i) We integrated an unsupervised query reconstruction loss, as suggested in [126]. This additional loss improves training signals and ensures high-quality embeddings are formed. The combined loss for this pretraining phase is represented as:
Here, represent the reconstruction loss defined below:
(ii) To enhance the temporal context further, we used recurrent object queries. We fed decoded object queries from the decoder (which localizes the query patch) into the decoder again for predicting the patch in the subsequent frame, as depicted in Figure 3.3. To incorporate recurrent queries, we used a memory module. The memory is a matrix where 100 is the number of object queries used in DETR, with each object query having a dimension of . During pretraining, for every frame, it stores decoded object queries (recurrent queries) responsible for localization. The recurrent queries carry temporal context from the previous frames and help to localize the object in the subsequent frames. Their utility is quantitatively evaluated in Table 3.3. We also incorporated an unsupervised image-level pretraining for UP-DETR [126]. During this image-level pretraining phase, the primary objective is to localize a randomly selected patch within the input image. For this pretraining stage, we employed the ImageNet [130] dataset.
| Split | Vid-OR | VidVRD | ||
|---|---|---|---|---|
| Seen | Unseen | Seen | Unseen | |
| #Train Videos | 4,795 | 6,164 | 574 | 758 |
| #Train Object Queries | 53,277 | 57,599 | 3,413 | 4,395 |
| #Train Object Categories | 75 | 75 | 30 | 30 |
| #Test Videos | 1,319 | 32 | 184 | 42 |
| #Test Object Queries | 29,108 | 407 | 1,088 | 112 |
| #Test Object Categories | 75 | 9 | 30 | 5 |
Table 3.1: Overview of the Vid-OR [113] and VidVRD [114] datasets, summarizing the distribution of training and testing videos, object queries, and object categories for both seen and unseen splits.
3.4 EXPERIMENTS AND RESULTS
3.4.1 DATASETS AND PERFORMANCE MEASURE
In this work, we employed three primary datasets: VidOR [113], ImageNet-VidVRD [114], and Open Images [115]. We further refined VidOR and ImageNet-VidCRD annotations, segregating super-classes like fruits and vegetables. Extracted target frames from both datasets were paired with Open Images. Some low-frequency classes were excluded during training, but all frames were used in testing. Note that our method is class-agnostic and does not use the class information during training and testing. Dataset statistics are provided in Table 3.1.
Dataset for Pretraining: For effective visual representation learning, synthetic datasets are crucial given the challenging task of annotating real object movements in videos. We begin by generating a simulated trajectory resembling object movement. Consistency is ensured using bounding boxes at chosen keyframes, with in-between positions filled by linear interpolation. Patches from real video frames are then superimposed on this trajectory. The UCF101 [128] dataset, featuring 13,320 videos with diverse complexities, was employed for pretraining, given its suitability to improve our approach.
Performance Measure: We have utilized the mean Average Precision (mAP) at an Intersection over Union (IoU) of 0.5 as our primary evaluation metric. Our evaluation operates framewise, considering each frame as a separate detection problem.
3.4.2 BASELINES AND IMPLEMENTATION DETAILS
The absence of prior work on class-agnostic one-shot video-based object localization methods inclines us to benchmark our proposed method against image-based techniques in a frame-wise fashion. However, such models might not be able to capture temporal aspects of the video.
RETRIEVAL-BASED APPROACH
A naive approach would involve combining an object detector that detects all objects as one class coupled with an image retrieval system for one-shot detection. This system utilizes the object detector's detections as a database and class objects as queries to search for relevant images. Inspired by baselines in [12], we utilized object detectors with identical architectures.
COAE [11]
It uses non-local operations to explore the co-attention embodied in each query-target pair and yield region proposals accounting for the one-shot situation. It then formulates a squeeze-and-co-excitation that adaptively emphasizes correlated feature channels to help uncover relevant proposals and, eventually, the target objects. This method intentionally casts the learning formulation such that it does not solely rely on the label information of training data but instead explores correlated evidence revealed by the query-target pairs.
OWL-VIT [6]
We used it as the one-shot image-conditioned object detection method for the video by applying it at each frame. OWL-ViT used a Vision Transformer architecture and contrastive image-text pretraining.
UP-DETR [126]
It refines the DETR model via unsupervised pretraining using a random query patch detection task. By selecting random image patches as queries and training the model to detect them, UP-DETR addresses challenges like balancing classification with localization by freezing the CNN backbone and managing multiple query patches with attention masks. This approach significantly boosts UP-DETR's performance in one-shot object detection, leveraging pretraining to achieve enhanced accuracy with minimal labeled data.
IMPLEMENTATION DETAILS
We pre-train and fine-tune our models using the Adam optimizer [131] with an initial learning rate = 1e-5. The initialization of our frame and query encoders leverages weights of ResNet-50
| Method | Pretraining | Vid-OR [113] | VidVRD [114] | ||
|---|---|---|---|---|---|
| Seen | Unseen | Seen | Unseen | ||
| CoAE [11] | - | 35.3 | 32.8 | 29.2 | 27.1 |
| Retrieval-Based [12] | - | 3.11 | 2.47 | 2.08 | 1.48 |
| OWL-ViT [6] | - | - | 28.6 | - | 22.5 |
| UP-DETR [126] | ✕ | 37.4 | 35.4 | 33.7 | 28.5 |
| UP-DETR [126] | ✓ | 41.7 | 38.1 | 39.4 | 37.1 |
| Ours | |||||
| QDETRv | ✕ | 40.2 | 38.6 | 38.9 | 35.7 |
| QDETRv | ✓ | 43.1 | 41.6 | 42.6 | 38.5 |
Table 3.2: Comparative performance of different baselines and our method on Vid-OR [113] and VidVRD [114] datasets. The metric for evaluation is mAP. QDETRv methods outperform other baselines across both datasets and splits, with pertaining significantly boosting the performance.

Figure 3.4: Ablation study on the temporal context window size using the VidOR dataset. A positive correlation is observed between the window size and the mAP.
pre-trained on the ImageNet dataset [130]. We train the model for 200 epochs with batch size = 350. Our implementation was done using the PyTorch library. We trained the model on three Nvidia-RTX A6000 GPUs.
3.5 RESULTS AND DISCUSSIONS
The results presented in Table 3.2 showcase the performance comparison of various methods applied for both of the datasets, Vid-OR [113] and VidVRD [114]. The methods assessed include baselines Retrieval-Based [12], OWL-ViT [6], CoAE [11], UP-DETR [126] (QDETRv without temporal module), and our QDETRv, with the latter two being tested both with and without pretraining.
3.5.1 PERFORMANCE OF QDETRV
For the Vid-OR dataset, QDETRv with video pretraining yielded the best performance with 43.1% for seen and 41.6% for unseen classes, surpassing its performance without pretraining, which scored 38.6% and 40.2%, respectively. It's important to note that unsupervised video pretraining improved the results significantly, highlighting its effectiveness as a strategy for this task. We get similar observations for the ImageNet-VidVRD dataset.
| Recurrent Query | VidVRD | VidOR |
|---|---|---|
| ✕ | 37.9 | 40.3 |
| ✓ | 38.5 | 41.6 |
Table 3.3: Ablation studies on recurrent queries during pretraining showed improved performance. This highlights the importance of adding temporal context in the pretraining phase.
3.5.2 ABLATION STUDY ON TEMPORAL CONTEXT MODULE
To evaluate the effectiveness of the temporal context module integrated into QDETRv, we conducted an ablation study where this module was removed. We exclusively adopted an image-level approach for unsupervised pretraining, eliminating the recurrent queries and leveraging the ImageNet [130] dataset. Without a context module with image-level pretraining, our method becomes similar to UP-DETR [126]. The results from this ablation demonstrated a notable 3.2% performance boost for QDETRv without pretraining. Furthermore, with pretraining, there was a 1.4% enhancement in performance on VidOR [113] dataset for the unseen test set as shown in Table 3.2. These findings confirm the significant contribution of the temporal context module to the model's efficacy, both in the presence and absence of pretraining.
3.5.3 FINE-TUNING WITH VARIED TEMPORAL CONTEXT WINDOWS
As we progressed to the fine-tuning stage, we explored different temporal context windows, spanning a range from 3 to 9, as depicted in Figure 3.4. Interestingly, our results indicated that as the temporal context window expanded, there was a corresponding enhancement in performance. This trend underscores the pivotal role of temporal context in improving localization accuracy. This accuracy curve should be read alongside its cost. For a window of size , the cross-attention in the temporal context module is computed over the target frame together with its context frames, so both the FLOPs and the activation memory of that module grow linearly in the window size, while the encoder–decoder cost is unchanged. Widening the window therefore buys accuracy at a linear price, and the practical ceiling is set by memory rather than by any accuracy plateau. At the operating point we adopt, QDETRv runs at 11 FPS with 7.6 GB of peak memory, benchmarked under identical conditions against the methods reported in Chapter 4. That comparison also indicates the preferable direction for deployment: rather than widening a fixed window, the framework of Chapter 4 propagates only high-confidence object features across frames and is both faster (14 FPS) and more accurate for a modest 0.5 GB of additional memory, so selective propagation dominates window widening.
3.5.4 CROSS-ATTENTION VISUALIZATION FOR VARIED TEMPORAL CONTEXT
Figure 3.5 shows the cross-attention visualization on the test frame for different window sizes. The attention to the object of interest improves with an increase in the window size, showing the efficacy of temporal context being utilized from context frames of the video.

Target Frame

window size: 3
window size: 5
window size: 7
window size: 9
Figure 3.5: Cross-attention visualization on test frame with varying window size. Attention improves on objects of interest with an increase in window size.
| Method | Bear | Carrot | Coconut | Frisbee | Kangaroo | Lemon | Leopard | Melon | Orange | Stop sign |
|---|---|---|---|---|---|---|---|---|---|---|
| CoAE | 37.8 | 19.2 | 33.6 | 25.4 | 42.6 | 21.3 | 46.9 | 22.8 | 28.1 | 30.6 |
| OWL-ViT | 35.7 | 20.3 | 28.5 | 21.7 | 38.6 | 22.8 | 42.8 | 20.3 | 25.3 | 27.4 |
| UP-DETR | 47.5 | 32.6 | 36.1 | 32.8 | 50.1 | 30.2 | 50.7 | 31.4 | 30.2 | 35.3 |
| QDETRv | 47.9 | 35.3 | 38.6 | 33.4 | 51.4 | 30.9 | 52.3 | 33.2 | 30.8 | 35.8 |
Table 3.4: Class-wise performance comparison. Each column indicates performance for distinct object categories. Larger objects like bears, kangaroos, and leopards are better detected than smaller ones like coconuts and lemons.
3.5.5 ABLATION ON RECURRENT QUERIES
Table 3.3 presents an ablation study focusing on the impact of recurrent queries during the pretraining phase. When recurrent queries are employed (indicated by √), there's a noticeable performance improvement on both datasets: 0.6% on ImageNet-VidVRD [114] and 1.3% on VidOR [113], compared to when these queries are omitted (✗). While seemingly modest, these increments emphasize the added value of recurrent queries in capturing intricate temporal information during pretraining.
3.5.6 CLASS-WISE PERFORMANCE
Table 3.4 shows the class-wise performance on the VidOR dataset. Intriguingly, larger-sized objects like bear, kangaroo, and leopard generally achieve better performance compared to relatively smaller objects such as coconut and lemon. The model performs better on larger objects because they occupy more pixels and provide stronger visual features, making them easier to localize reliably. In contrast, small objects offer limited resolution and weaker feature cues, which reduces detection accuracy.
A promising direction to mitigate this issue within our current framework is to incorporate multi-scale attention or lightweight FPN-style feature fusion. By leveraging multi-level feature maps with higher spatial granularity, the model can better preserve fine details and improve localization of small objects.

Figure 3.6: Qualitative results. In the green box results, QDETRv accurately localizes objects from the query image on the left. The red box highlights the model's limitations, with missed localization in videos where the object is only partially visible in the query image.

i
ii
iii
iv
Figure 3.7: Failure Cases. We observed the following major failure types: (i) The occluded object is missed, (ii) A visually similar object is detected as dear on the top left, (iii) a few small instances of the hammer are missed, (iv) an overlapping instance is commonly detected as a single object.
3.5.7 QUALITATIVE RESULTS
QDETRv effectively localizes query objects both spatially and temporally within the videos, as shown in the first two rows of Figure 3.6. Notably, in the second video, QDETRv adeptly identifies multiple instances of the object.
3.5.8 FAILURE CASE ANALYSIS
While our proposed methodology has shown promising results, it does come with a few limitations: our model QDETRv highly relies on the quality of the query image for object localization in videos. As shown in Figure 3.6 (red box), occluded query images often lead to weak or missing localization. Further, we observe the following major failure cases: (i) occlusion, (ii) visually similar object, (iii) small object, and (iv) overlapping instances on randomly selected video frames. Figure 3.7 shows a selection of these examples. We leave addressing these limitations of the current model as the future scope of this work.
3.6 SUMMARY
In this chapter, we introduced the novel class-agnostic query-guided DETR for videos (QDETRv), effectively enhancing video object localization using a query image and temporal context. We showed evaluations on two extended datasets that displayed superior and consistent performance of QDETRv, particularly when paired with video-specific unsupervised pretraining. While showing promise, our approach has a few limitations, including limited success in localizing small or occluded object instances. Further, it struggles to differentiate between visually similar objects. We leave addressing these limitations as future work and firmly believe this work will open up new research avenues in open-set one-shot video object localization.
In the following chapter, we generalize the one-shot object grounding paradigm to a few-shot setting and introduce a novel framework.
Few-Shot Object Grounding in Videos
Few-shot Video Object Detection (FSVOD) addresses the challenge of detecting novel objects in videos with limited labeled examples, overcoming the constraints of traditional detection methods that require extensive training data. This task presents key challenges, including maintaining temporal consistency across frames affected by occlusion and appearance variations, and achieving novel object generalization without relying on complex region proposals, which are often computationally expensive and require task-specific training. Our novel object-aware temporal modeling approach addresses these challenges by incorporating a filtering mechanism that selectively propagates high-confidence object features across frames. This enables efficient feature progression, reduces noise accumulation, and enhances detection accuracy in a few-shot setting. By utilizing few-shot trained detection and classification heads with focused feature propagation, we achieve robust temporal consistency without depending on explicit object tube proposals. Our approach achieves performance gains, with AP improvements of 3.7% (FSVOD-500), 5.3% (FSYTV-40), 4.3% (VidOR), and 4.5% (VidVRD) in the 5-shot setting. Further results demonstrate improvements in 1-shot, 3-shot, and 10-shot configurations.
The subsequent sections present the introduction, a review of related work, the proposed methodology, and a detailed analysis of the results and discussions.
4.1 INTRODUCTION
Object detection in videos has witnessed significant progress with the advent of deep learning-based methods in the last few years [132, 133, 123, 110]. However, most traditional methods focus on closed-set detection, where models are trained on predefined object categories with extensive labeled samples per category. This makes them impractical for many real-world applications that require the detection of novel object categories with limited training samples. Few-Shot Video Object Detection (FSVOD) [110] addresses this challenge by enabling models to detect novel objects in videos using only a few examples as shown in Figure 4.1.
Unlike widely-studied few-shot object detection in images [124, 120, 119, 118, 116], FSVOD must account for temporal consistency, motion blur, occlusion, and variations in object appearance between frames, making the task substantially more difficult [110]. Existing approaches for FSVOD [117, 134, 135, 15] face several limitations, such as they often process frames independently without leveraging temporal information [117], struggle with false positives due to weak temporal matching [110], use region or tube proposal networks not optimized for few-shot scenarios [117, 110, 135], and have difficulties with visually-similar objects and occlusions [15].
Support Set

Target Video
Input
Output
Figure 4.1: Given a support set containing novel objects and a target video, the goal of FSVOD [110] is to detect all the instances of novel objects on the target video. We propose object-aware temporally consistent few-shot object detection framework that significantly improves state of the art for this task. [Best viewed in color].
On the other hand, recent advances in vision-language models like Video OWL-ViT [7] have demonstrated impressive capabilities in open-vocabulary video object detection by leveraging CLIP's vision-language pre-training. Video OWL-ViT can be naturally adapted for few-shot video object detection by replacing text prompts with visual prompts from support images, enabling the detection of novel objects using only a few examples. However, this adaptation faces a key limitation, i.e., lack of object-aware temporal modeling, as it processes frames independently on the detected objects, resulting in inconsistent object detection across frames.
Our approach leverages vision-language pretrained frame encoder to transfer semantic knowledge from image-text data, enabling recognition of novel object categories. Furthermore, contrastively-trained vision encoder is more effective in distinguishing between visually similar objects across different categories and handles partially visible or occluded objects compared to CNN backbones (like ResNet [74]) used in prior methods [110, 135, 15]. This robust feature representation serves as the foundation for our temporal consistency mechanism. To enhance this consistency, we fuse representations of previously detected objects with current frame detections, preserving relevant temporal information and adapting to appearance changes over time. Unlike methods that process frames independently, our approach maintains memory of past observations for better temporal reasoning. Our detection is directly optimized to condition on few-shot visual examples, providing better results compared to traditional region proposal networks. Further, unlike conventional tracking-by-detection pipelines [110, 135], our end-to-end learning of video-specific object representations leads to superior generalization.
In summary, in this chapter we make the following contributions: (i) We revisit the relatively under-explored task of Few-Shot Video Object Detection (FSVOD) and introduce simple yet effective task-specific innovations. Our key contribution is a novel object-aware temporal modeling approach, that selectively propagates high-confidence object features across frames. This enables efficient feature progression, reducing noise accumulation, and improving detection accuracy in few-shot video scenarios. (ii) For the first time, we adapt large-scale pre-trained vision-language models for FSVOD, aligning with recent trends in open-world detection. This integration enables novel object detection by leveraging broad visual-linguistic knowledge, facilitating efficient adaptation and strong generalization to unseen categories. (iii) We perform extensive evaluations against baselines and state-of-the-art methods on four public FSVOD benchmarks. Our approach achieves significant performance gains, with AP improvements of 3.7% (FSVOD-500), 5.3% (FSYTV-40), 4.3% (VidOR), and 4.5% (VidVRD) in the 5-shot setting. Further, we observe consistent improvements across 1-shot, 3-shot, and 10-shot setups, demonstrating robust generalization across different few-shot scenarios.
4.2 RELATED WORK
Few-Shot Object Detection: Recent advances in few-shot object detection (FSOD) have been driven by attention mechanisms, transformers, and meta-learning techniques. Approaches like CoAE [11] and OS2D [12] have pushed the boundaries of one-shot object detection in images through co-attention mechanisms and versatile one-stage approach, respectively. For traditional FSOD, methods such as feature reweighting [119], contrastive proposal encoding [116], and hierarchical learning [122] have demonstrated improved performance across various benchmarks. In addition, several DETR variants [124, 125, 126] have emerged and shown promising results for few-shot object detection in images. Although FSOD in images provides the foundational techniques and can be trivially extended to videos by performing few-shot detection on frames independently. Our experiments suggest that they often fall short. The inherent temporal nature of videos introduces additional complexities that require specialized approaches to maintain consistency across frames while preserving the few-shot learning paradigm. We introduce object-aware temporal consistency to overcome the inherent challenges specific to video.
While few-shot object detection in images has been extensively studied, its video counterpart remains relatively under explored. Qi et al. [110] have formally introduced a few-shot video object detection task and accompanying datasets. They proposed a proposal-based approach, where object detection trajectories are first proposed and later refined using the matching network. Kumar et al. [15] have specifically studied this problem for one-shot settings using a novel query-guided variant of DETR. More recently, Wentano et al. [135] enhanced temporal information by context fusion. Our work addresses key limitations of existing FSVOD methods by utilizing a transformer-based backbone (OWL-ViT) pre-trained on large-scale image-text pairs, replacing the CNN-based backbones used in prior approaches and improves semantic knowledge transfer. In addition, unlike proposal-based networks not optimized for few-shot scenarios, our proposal-free method conditions detection directly on few-shot-trained heads and improves generalization to novel object categories.
Open-World Object Detection: There is a fundamental shift in computer vision literature toward detecting novel visual concepts driven by models pre-trained on large-scale vision and language data [136, 137]. These large models help in detecting novel objects by leveraging their broad visual and linguistic knowledge, efficient adaptation, and improved generalization to unseen categories. Recent works like OWL-ViT [6] and Video OWL-ViT [7] leverage vision-language models pretrained on large-scale data to detect open-vocabulary concepts. Methods like GLIP [67] and OpenSeed [138] further advance this paradigm by incorporating grounded pretraining and structured knowledge distillation. Open-world object detectors can be extended for image-conditioned detection, enabling users to detect objects by providing a few visual examples. In this work, we leverage OWL-ViT encoders for image-conditioned detection in a few-shot setup and enhance the existing Video OWL-ViT [7] by introducing an object-aware decoder that significantly improves temporal consistency across video frames, and thereby the few-shot video object detection performance.
4.3 METHOD
Few-shot video object detection (FSVOD) aims to detect novel object categories that were not encountered during training. The task involves a support set containing a few images of novel object classes and a target video consisting of multiple frames. The goal is to identify and localize all instances of the objects from the support set across every frame of the target video, as shown in Figure 4.1.
4.3.1 PROBLEM FORMULATION
In the FSVOD task, we aim to locate and classify all instances of objects belonging to novel classes in a target video using only a few support examples. Formally, given an N-way K-shot support set where represents the j-th support image of class , and a target video with T frames, our goal is to detect all instances of the N novel classes across all frames. For each frame , the model predicts a set of object bounding boxes along with their class labels.
4.3.2 DESIGN MOTIVATION AND ARCHITECTURAL OVERVIEW
Our proposed approach is designed to address the following unique challenges associated with FSVOD task: (i) the limited supervision requiring efficient knowledge transfer, (ii) the necessity for temporal consistency across sequential frames despite appearance variations due to motion, occlusion, and viewpoint shifts, and (iii) the open-set recognition capability to distinguish between novel objects and background elements without explicit training.
To address these challenges, we propose an object-aware, temporally consistent few-shot video object detection framework. Our approach consists of the following main components: a language-aligned vision encoder that provides semantically rich visual representations, a temporal fusion decoder that selectively propagates high-confidence object features across frames and, few-shot matching and detections heads that aligns query frame features with support examples. Figures 4.2,4.3 illustrates our overall framework.

Figure 4.2: Object-aware Temporal Consistency. We utilize the OWL-ViT encoder output tokens as queries but, critically, only forward the matched object tokens ( ) as key-value pairs to the next frame's decoder. This mechanism selectively propagates high-confidence object features across frames. This enables efficient feature progression, reducing noise accumulation. We empirically found a threshold ( ) and compared it with class probability ( ) scores for selective propagation. This selective propagation mechanism significantly reduces noise accumulation across frames and maintains focused, consistent visual representations of detected objects throughout the video sequence.
4.3.3 OBJECT-AWARE TEMPORALLY CONSISTENT FSVOD FRAMEWORK
LANGUAGE-ALIGNED VISION ENCODER:
Traditional CNN backbones like ResNet [74], trained solely on visual classification tasks, often struggle to generalize to novel classes with limited examples. To overcome this limitation, the recent trend [136, 7] is to use a pretrained vision encoder that has been aligned with language semantics through large-scale vision-language pretraining. We adopt this by utilizing an OWL-ViT encoder pretrained on large-scale image-text pairs. This encoder transforms each input image I into a grid of patch embeddings , where P is the number of patches and D is the embedding dimension.
SUPPORT SET ENCODING:
(i) Support Feature Extraction. Given a support set S containing K examples for each of the N novel classes, we extract patch-level features from each support image. For each support image , the encoder generates both patch embeddings , and their corresponding objectness scores for each patch, . A higher objectness score indicates a higher probability of an object being present in that particular patch. To obtain an object-centric representation, we

Figure 4.3: Few-shot Classification and Detection Heads. Our architecture processes object queries through parallel projection heads for classification and localization. Classification embeddings are compared against support embeddings via cosine similarity, while the detection head predicts bounding box coordinates. The temporal consistency is maintained by propagating matched object queries across frames.
select the patch with the highest objectness score.
where is the selected patch embedding that best represents the target object in the support image. (ii) Support Prototype Generation. After extracting object-centric features ( ) from each support image, we aggregate information from the K support examples to form a class prototype. For each class , the final class prototype is computed by averaging across the K selected object-centric features. This aggregation creates a robust representation for each novel class that captures essential visual characteristics across multiple support examples, allowing the model to handle intra-class variations more effectively.
OBJECT-AWARE TEMPORAL FRAME DECODER:
(i) Target Frame Feature Extraction. For each frame in the target video, we extract patch embeddings using the OWL-ViT image encoder, . (ii) Temporal Fusion. To ensure temporal consistency in object detection across frames, we propose a filtering mechanism that selectively propagates high-confidence object features from one frame to the next. This approach facilitates efficient feature progression and minimizes noise accumulation by leveraging the embeddings of successfully detected objects from previous frames. By doing so, it enhances temporal consistency and improves the overall accuracy of object detection in video sequences.
For the first frame , we process the frame embeddings directly. For subsequent frames , we incorporate information from previous frame detections via a cross-frame interaction that selectively integrates object-level features to enhance temporal consistency. Specifically, we select embeddings from the few-shot classification head of the previous frame where detection confidence exceeds a threshold (shown in Figure 4.2):
where represents the classification probability for patch and class in frame . The current frame embeddings serve as queries, while the embeddings from Cls Head with high confidence score responsible for object detection (Figure 4.2), from the previous frame serve as both keys and values. The cross-frame interaction operation is computed as:
The resulting attention-weighted features are used to update the current frame representations:
These temporally enhanced features are then fed to the classification and localization heads for object detection in the current frame. By using attention between current frame features and previously detected objects representations, the model maintains better temporal consistency while detecting objects in the current frame.
FEW-SHOT DETECTION HEADS:
The temporally enhanced frame embeddings are processed through parallel classification and localization heads to produce the final detection results.
Classification Head. The classification head compares frame embeddings with support class prototypes to determine object categories. It projects frame embeddings to the classification space:
where is a learnable projection matrix.
For each patch embedding and class prototype , we compute cosine similarity:
Each patch is assigned a probability distribution over the N classes and background using softmax normalization of similarity scores, translating feature similarity into class probabilities.
Localization Head. The localization head predicts bounding box coordinates for detected objects through a multi-layer perceptron:
where each row represents the predicted bounding box parameters for each corresponding patch . For each patch , if its maximum classification score exceeds threshold , we consider it as a valid detection.
TRAINING OBJECTIVE:
Our model is trained end-to-end by optimizing a combined loss function across all video frames:
The classification loss ( ) uses cross-entropy to measure discrepancy between predicted and ground-truth class labels, while the localization loss ( ) combines L1 loss for coordinate distances and generalized IoU loss for handling varying box sizes. Following DETR [10], denotes the index of the prediction matched to ground-truth object , and is the number of objects in frame . The hyperparameters and control the weighting of the classification and localization losses.
4.4 EXPERIMENTS AND RESULTS
4.4.1 DATASETS
In this work, we utilized the FSVOD-500, FSYTV-40, VidOR, and VidVRD datasets, as proposed and repurposed in [110, 15]. These datasets are specifically designed for few-shot video object detection, providing a structured evaluation framework with disjoint training, validation, and testing classes. Detailed statistics of the datasets are provided in Table 4.1.
4.4.2 BASELINES
We evaluate our approach against temporal and non-temporal based few-shot object detection methods. The selection of baselines aims to provide comprehensive comparisons across different architectural paradigms and learning approaches. We exclude some results on certain datasets due to the unavailability of public codebases, such as TACF [135] on VidVRD and VidOR.
| Split | Vid-OR | VidVRD | FSVOD | FSYTV |
|---|---|---|---|---|
| #Train Videos | 6,164 | 758 | 2553 | 1627 |
| #Train Object Queries | 57,599 | 4,395 | - | - |
| #Train Object Categories | 75 | 30 | 320 | 30 |
| #Test Videos | 32 | 42 | 949 | 608 |
| #Test Object Queries | 407 | 112 | - | - |
| #Test Object Categories | 9 | 5 | 100 | 10 |
Table 4.1: Overview of the datasets used in this work.
Non-temporal Methods. To establish strong non-temporal baselines, we compare against several image-based few-shot detectors as discussed and compared in [110]. Traditional object detectors like Faster R-CNN [8] serve as fundamental baselines to validate the benefits of few-shot learning techniques. We include specialized few-shot detectors from [110] such as FSOD [117], RDN [139]. Further we included CoAE [11] designed for one-shot object detection and we extended it for few-shot detection by finding the best confident detections. CoAE leverage meta-learning and attention mechanisms to handle limited training data. Recent transformer-based approaches like OWL-ViT [6] and UP-DETR [129] are included to evaluate the effectiveness of large-scale pre-training. We also compare against a retrieval-based methods [140] that consider few-shot detection as the retrieval from the pool of proposals.
Temporal Methods. For temporal modeling comparisons, we include several video-based approaches. First, we incorporate methods adapted in [110], including MEGA [13], Ctracker [141], FairMOT [142], and CenterTrack [134]. Second, we evaluate modern tracking-by-detection approaches, DeepSort+YOLOv8 [143], TrackFormer [144], and ByteTrack [145] combined with CLIP [50] to measure similarity between detected object tubes and support images. For these approaches, we train models using examples from the support set to identify spatio-temporal tubes, then apply average pooling to compute similarities with support images, selecting tubes with maximum similarity across support images. Third, we compare against SoTA one/few-shot video detectors, including FSVOD [110], TACF [135], and QDETRv [15], which provide direct comparisons with our proposed method. Finally, we adapt Video Owl-ViT [7] by replacing its text-encoder with an OWL-ViT image-encoder and incorporating our few-shot detection and classification heads.
4.4.3 PERFORMANCE MEASURE
Following [110], we use Average Precision (AP) as evaluation metric. AP quantifies object detection accuracy by measuring the area under the precision-recall curve. AP50 and AP75 are variants that evaluate performance at specific Intersection over Union (IoU) thresholds of 50% and 75%, respectively.
4.4.4 IMPLEMENTATION DETAILS
We implement our model using a OWL ViT-L/16 for the vision encoder, pretrained with CLIP. The temporal fusion module employs a 4-head cross-attention mechanism with 1024-dimensional hidden states. The classification and localization heads use 2-layer MLPs with 512-dimensional hidden states. During training, we use AdamW optimization with a 1e-5 learning rate, 0.01 weight decay, and cosine scheduling with a linear warmup. The loss weighting parameters are set to , . We set and in our experiments. Our model was converged in four days using two Nvidia-A6000 GPUs.
| Method | FSVOD-500 | FSYTV-40 | VidOR | VidVRD | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AP | AP | AP | AP | ||||||||||
| Non-temporal | FR-CNN | 18.2 | 26.4 | 19.6 | 9.3 | 15.4 | 9.6 | 21.6 | 29.1 | 23.2 | 14.3 | 18.6 | 14.2 |
| FSOD | 21.1 | 31.3 | 22.6 | 12.5 | 20.9 | 13.0 | - | - | - | - | - | - | |
| RDN | 18.2 | 27.9 | 19.7 | 8.1 | 13.4 | 8.6 | - | - | - | - | - | - | |
| CoAE | 18.4 | 29.3 | 18.9 | 9.8 | 18.4 | 10.1 | 35.8 | 43.7 | 36.1 | 30.2 | 38.1 | 31.8 | |
| Retrieval-Based | 1.3 | 2.4 | 1.6 | 0.6 | 1.1 | 0.8 | 1.4 | 2.6 | 1.3 | 1.8 | 2.5 | 2.0 | |
| Owl-ViT | 14.8 | 25.3 | 16.7 | 10.6 | 19.8 | 11.2 | 30.1 | 37.3 | 31.2 | 23.6 | 32.1 | 23.9 | |
| UP-DETR | 20.1 | 27.6 | 21.2 | 11.8 | 19.4 | 12.1 | 39.7 | 47.5 | 40.0 | 11.6 | 18.3 | 12.5 | |
| Temporal | DeepSort+YOLOv8 + CLIP | 13.2 | 21.4 | 14.4 | 5.3 | 9.4 | 6.2 | 23.2 | 30.1 | 23.6 | 23.4 | 33.1 | 24.1 |
| TrackFormer + CLIP | 14.2 | 22.6 | 15.3 | 6.2 | 10.5 | 6.8 | 25.3 | 32.7 | 26.2 | 25.4 | 33.8 | 27.3 | |
| ByteTrack + CLIP | 14.7 | 23.9 | 15.8 | 7.9 | 15.6 | 8.1 | 24.9 | 31.4 | 25.3 | 25.6 | 36.2 | 26.2 | |
| MEGA | 16.8 | 26.4 | 17.7 | 7.8 | 13.0 | 8.3 | - | - | - | - | - | - | |
| CTracker | 20.1 | 30.6 | 21.0 | 8.9 | 14.4 | 9.1 | - | - | - | - | - | - | |
| FairMOT | 20.3 | 31.0 | 21.2 | 9.6 | 16.0 | 9.5 | - | - | - | - | - | - | |
| CenterTrack | 20.6 | 30.5 | 21.9 | 9.5 | 15.6 | 9.7 | - | - | - | - | - | - | |
| TACF | 26.9 | 39.2 | 27.9 | 15.9 | 24.2 | 17.9 | - | - | - | - | - | - | |
| Video Owl-ViT | 25.8 | 36.5 | 26.1 | 15.7 | 26.3 | 15.9 | 44.3 | 52.9 | 45.7 | 44.2 | 53.7 | 45.4 | |
| FSVOD | 25.1 | 36.8 | 26.2 | 14.6 | 21.9 | 16.1 | 45.1 | 54.3 | 46.2 | 40.7 | 53.5 | 43.7 | |
| QDETRv | 26.1 | 33.8 | 23.7 | 14.1 | 22.8 | 15.3 | 43.4 | 51.8 | 44.6 | 42.8 | 50.8 | 41.7 | |
| Ours | 30.6 | 42.9 | 32.1 | 21.2 | 29.8 | 23.5 | 49.4 | 57.3 | 50.2 | 48.7 | 57.8 | 49.2 | |
Table 4.2: Performance comparison on FSVOD-500, FSYTV-40, VidOR, and VidVRd in 5-shot set-up. Our Object-aware Video OWL-ViT consistently surpasses both state-of-the-art and baseline methods across all datasets and metrics.
4.4.5 RESULTS AND DISCUSSION
4.4.6 MAIN RESULTS
Our proposed approach achieves state-of-the-art performance across all four benchmark datasets. On FSVOD-500, we achieve AP of 30.6%, AP50 of 42.9%, and AP75 of 32.1%, surpassing TACF by margins of 3.7%, 3.7%, and 4.2%, highlighting robustness in localization and classification. Similarly, on FSYTV-40, our method yields 21.2% AP, 29.8% AP50, and 23.5% AP75, outperforming TACF by 5.3%, 5.6%, and 5.6%. Performance gains are more pronounced on VidOR and VidVRD, 49.4% AP, 57.3% AP50, and 50.2% AP75 for VidOR, and 48.7% AP, 57.8% AP50, and 49.2% AP75 for VidVRD, setting new benchmarks. These results underscore the effectiveness of our object-aware temporal modelling in capturing complex spatiotemporal dependencies with minimal supervision.
4.4.7 TEMPORAL VS. NON-TEMPORAL METHODS
The performance comparison clearly demonstrates the advantage of temporal methods over non-temporal. While non-temporal methods like UP-DETR and FSOD show competitive performance, they fundamentally fail to capture temporal dependencies crucial for video object detection. This is evidenced by the consistent performance gap between across all datasets.
| Method | FSVOD-500 | FSYTV-40 | VidOR | VidVRD | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AP | AP | AP | AP | ||||||||||
| 1-Shot | CoAE | 17.2 | 27.8 | 17.2 | 6.7 | 17.3 | 9.8 | 33.2 | 42.5 | 35.2 | 29.6 | 37.6 | 31.5 |
| UP-DETR | 17.3 | 24.3 | 18.4 | 9.7 | 16.9 | 9.9 | 35.6 | 45.2 | 37.2 | 8.5 | 15.2 | 9.3 | |
| DeepSort+YOLOv8 + CLIP | 12.2 | 20.1 | 12.8 | 4.1 | 7.9 | 4.7 | 21.4 | 28.4 | 22.7 | 21.9 | 31.7 | 22.8 | |
| FSVOD | 20.7 | 29.4 | 21.4 | 11.4 | 18.6 | 12.1 | 36.8 | 45.3 | 36.3 | 34.5 | 45.2 | 35.2 | |
| QDETRv | 25.2 | 34.9 | 25.8 | 13.6 | 24.1 | 14.2 | 41.8 | 50.3 | 42.2 | 40.3 | 49.7 | 40.1 | |
| Video OWL-ViT | 23.8 | 33.8 | 24.7 | 12.4 | 22.7 | 13.2 | 40.3 | 51.7 | 41.5 | 39.8 | 47.6 | 40.2 | |
| Ours | 27.4 | 39.1 | 28.9 | 18.3 | 26.2 | 19.7 | 45.2 | 54.1 | 47.6 | 45.3 | 54.5 | 46.8 | |
| 3-Shot | CoAE | 17.8 | 28.2 | 17.6 | 6.9 | 17.5 | 9.8 | 33.3 | 42.6 | 35.6 | 29.9 | 37.8 | 31.9 |
| UP-DETR | 17.9 | 25.1 | 18.8 | 10.2 | 17.5 | 10.3 | 36.2 | 46.8 | 38.3 | 9.3 | 16.1 | 10.4 | |
| DeepSort+YOLOv8 + CLIP | 12.7 | 20.4 | 13.7 | 4.3 | 8.3 | 4.9 | 22.0 | 28.8 | 23.1 | 22.0 | 31.9 | 23.4 | |
| FSVOD | 21.9 | 30.8 | 22.1 | 12.3 | 19.2 | 12.9 | 37.6 | 46.6 | 37.8 | 35.4 | 46.1 | 36.4 | |
| QDETRv | 25.6 | 35.2 | 26.3 | 13.8 | 24.5 | 14.5 | 42.1 | 50.8 | 42.7 | 40.8 | 50.3 | 40.6 | |
| Video OWL-ViT | 24.1 | 34.6 | 25.2 | 12.7 | 23.2 | 13.8 | 40.6 | 52.5 | 41.8 | 40.4 | 48.3 | 40.7 | |
| Ours | 28.2 | 40.5 | 31.1 | 19.6 | 27.2 | 20.9 | 46.4 | 55.6 | 48.2 | 46.5 | 55.7 | 47.2 | |
| 10-Shot | CoAE | 20.1 | 29.9 | 19.7 | 10.2 | 19.8 | 12.3 | 37.2 | 44.9 | 38.2 | 32.3 | 39.7 | 32.7 |
| UP-DETR | 23.2 | 30.2 | 23.7 | 13.7 | 22.3 | 15.2 | 41.8 | 50.2 | 43.1 | 13.7 | 21.2 | 15.4 | |
| DeepSort+YOLOv8 + CLIP | 16.6 | 23.7 | 17.2 | 7.8 | 11.5 | 9.4 | 26.3 | 32.9 | 25.8 | 25.1 | 35.6 | 26.6 | |
| FSVOD | 27.2 | 38.5 | 28.6 | 16.1 | 25.8 | 17.9 | 47.3 | 56.7 | 48.4 | 44.7 | 54.9 | 44.9 | |
| QDETRv | 26.2 | 33.8 | 23.8 | 14.2 | 23.1 | 15.6 | 43.9 | 52.1 | 45.2 | 43.1 | 53.8 | 44.2 | |
| Video OWL-ViT | 26.7 | 35.8 | 27.1 | 14.2 | 25.1 | 14.9 | 43.7 | 54.2 | 44.1 | 43.7 | 52.8 | 44.3 | |
| Ours | 33.2 | 45.2 | 34.9 | 23.5 | 32.2 | 25.2 | 51.8 | 59.6 | 53.3 | 50.3 | 59.2 | 51.7 | |
Table 4.3: Few-shot performance comparison. Our method consistently outperforms SoTA and implemented baselines across all settings and datasets, demonstrating its effectiveness across diverse settings and datasets.
| Temopral Fusion | FSVOD-500 | FSYTV-40 | ||||
|---|---|---|---|---|---|---|
| AP | AP | |||||
| ✘ | 25.4 | 37.1 | 26.9 | 19.2 | 26.8 | 21.4 |
| ✓ | 30.6 | 42.9 | 32.1 | 21.2 | 29.8 | 23.5 |
Table 4.4: Advantage of Object Aware Temporal-fusion. Object-Aware Temporal Fusion improves detection performance across all metrics on FSVOD-500 and FSYTV-40 datasets. Removing the Temporal fusion (X) significantly reduces the performance shows the efficacy of object aware decoder.

Figure 4.4: Threshold effect () during the object-aware temporal consistency.
For instance, on FSVOD-500, even the best non-temporal method (UP-DETR with 20.1% AP) falls significantly short compared to our approach (30.6% AP), representing a substantial 10.5% absolute improvement. Similarly, on FSYTV-40, our method outperforms UP-DETR by 9.4%. This highlight the critical importance of modeling temporal information in video object detection, particularly in the few-shot set-up where limited examples make temporal continuity an essential cue for accurate detection.
4.4.8 COMPARISON WITH ADAPTED TEMPORAL METHODS
Despite leveraging strong trackers (ByteTrack, DeepSort, TrackFormer) with CLIP's rich semantic representations, these methods consistently underperform compared to dedicated video object detection architectures. The performance gap is substantial across all datasets: on FSVOD-500, the best tracker-based approach (ByteTrack+CLIP) achieves only 14.7% AP, less than half of our method's 30.6% AP. Similar patterns emerge on other datasets, with gaps of 13.3% AP on FSYTV-40, 24.5% AP on VidOR, and 23.1% AP on VidVRD. This significant under performance reveals that tracking methods struggle with few-shot detection when adopted without explicit few-shot modules.
4.4.9 IMPROVEMENTS OVER SPECIALIZED FEW-SHOT METHODS:
Our approach demonstrates significant improvements over previous specialized SoTA few-shot video detection methods, which represent the most direct competitors to our work. Compared to FSVOD, which pioneered dedicated architectures for few-shot video object detection, we achieve consistent gains across all datasets: 5.5% AP on FSVOD-500, 6.6% AP on FSYTV-40, 4.3% AP on VidOR, and 8.0% AP on VidVRD. Similar, observation we got for specialized few-shot method, TACF. Similarly, our approach significantly outperformed the adapted Video OWL-ViT method. The consistent performance gains over these specialized methods highlight several key advantages of our approach: (1) more effective temporal aggregation through our object-aware frame encoder, (2) better feature matching between support and query examples using few-shot designed heads.
4.4.10 ADVANTAGE OF TEMPORAL FUSION (OBJECT AWARE DECODER)
In Table 4.4 on FSVOD-500, AP rises from 25.4% to 30.6% (+5.2%), AP from 37.1% to 42.9% (+5.8%), and AP from 26.9% to 32.1% (5.2%) when temporal fusion used. On FSYTV-40, AP improves from 19.2% to 21.2% (+2.0%), AP from 26.8% to 29.8% (+3.0%), and AP from 21.4% to 23.5% (+2.1%). These gains highlight the decoder's enhanced temporal reasoning detection performance.
4.4.11 EFFECT OF THRESHOLD ( ) ON TEMPORAL PROPAGATION
Figure 4.4 demonstrates the relationship between confidence threshold and detection performance. As the threshold decreases from 0.98 to 0.70, the average number of detections increases from 2 to 23, indicating more objects are detected at lower confidence levels. The AP follows a

Figure 4.5: . Qualitative comparison of detection results across SoTA methods for two test videos from FSVOD-500. Our approach accurately detects multiple instances of the Bactrian camel (top) having a different visual appearance and precisely localizes the Autogyro (bottom), even as it moves farther from the camera in the subsequent frames. Notably, competing methods miss some camel instances, while Video OWL-ViT fails to detect all instances in the first two frames.
non-linear pattern, initially improving as the threshold decreases, reaching a peak of 30.6 at a threshold of 0.94, before gradually declining to 17.7 at 0.70. This pattern suggests that while lower thresholds increase detection quantity, they also introduce false positives that reduce precision. The optimal threshold (0.94) represents the balance point between detection coverage and precision, with performance degrading when the threshold is excessively relaxed. Since the optimum is a property of the confidence distribution of the vision–language scores, and that distribution shifts with object size, scene clutter and category granularity, the best value of is dataset-dependent to some degree. In practice the same value transfers across our four benchmarks without per-dataset retuning, which suggests that the sensitivity is mild for datasets of broadly similar composition, though a domain differing substantially in these respects would warrant repeating this ablation. We did not explore an automatic mechanism for setting . The most natural option would replace the absolute threshold with a per-frame quantile of the score distribution, propagating the top- of detections, which self-calibrates when the score distribution shifts and moves the tuning burden to q, a considerably less sensitive quantity. A small learned gate over the detection embedding and its score, trained jointly with the detection loss, would remove the hyper-parameter altogether at the cost of a more complex propagation module.

Figure 4.6: Error type analysis on FSVOD val set. A lower AP score is better.
4.4.12 FEW-SHOT PERFORMANCE COMPARISON
Table 4.3 shows consistent improvement of our method across baselines in 1-shot, 3-shot, and 10-shot settings. In the 1-shot case, we achieve 27.4% AP on FSVOD-500 and 18.3% on FSYTV-40, outperforming FSVOD by 6.7% and 6.9%, respectively. In the 10-shot setup, our method attains 33.2% AP on FSVOD-500 and 23.5% on FSYTV-40, with gains of 6.0% and 7.4% over FSVOD. Similar improvements across other benchmarks further validate our approach.
4.4.13 ERROR TYPE ANALYSIS
Following TIDE [146], we analyze error types in Fig. 4.6. Classification errors dominate all approaches (19-28 AP@0.5), with our method achieving lowest classification (19) and localization (5) errors. Video-OWLViT excels in background handling (0.7) but suffers from high classification errors (28), while QDETRv performs the poorest overall. Improving feature discrimination and localization precision are key challenges.
4.4.14 QUALITATIVE RESULTS
Figure 4.5 shows qualitative results on two videos from FSVOD-500. Our method demonstrates several advantages. In the first video, our approach successfully detects multiple instances of the same object category (bactrian camel), while competing methods miss some instances. Video OWL-ViT fails to detect all instances in the first two frames, highlighting the effectiveness of our object-aware decoder. In the second video featuring an autogiro, most methods can detect the object, but our approach provides more accurate bounding boxes. QDETRv particularly struggles when the object becomes smaller in the frame.
| Method | FPS | Memory (GB) | AP (FSVOD-500) |
|---|---|---|---|
| Ours | 14 | 8.1 | 30.6 |
| QDETRv | 11 | 7.6 | 26.1 |
| Video OWL-ViT | 10 | 8.4 | 25.8 |
| FSVOD | 16 | 5.8 | 25.1 |
| UP-DETR | 13 | 7.4 | 20.1 |
| CenterTrack | 12 | 6.2 | 20.6 |
| DeepSort+YOLOv8+CLIP | 9 | 7.9 | 13.2 |
Table 4.5: Inference cost and accuracy on FSVOD-500. Our method is both faster and more accurate than QDETRv and Video OWL-ViT; the only trade-off is against FSVOD, which is leaner but substantially less accurate.
4.4.15 EFFICIENCY ANALYSIS.
Our method achieves a strong balance between accuracy and efficiency, processing at 14 FPS with 8.1 GB of memory while attaining 30.6 AP. This is 40% faster than VideoOWL-ViT (10 FPS, 8.4 GB) and 27% faster than QDETRv (11 FPS, 7.6 GB), while providing substantially higher accuracy (+4.8 AP and +4.5 AP, respectively). Although FSVOD operates at 16 FPS with lower memory usage (5.8 GB), our approach delivers a +5.5% AP improvement with only a minor trade-off. Compared to other baselines, DeepSort runs at 9 FPS (7.9 GB), CenterTrack at 12 FPS (6.2 GB), and UP-DETR at 13 FPS (7.4 GB).
Table 4.5 collects these measurements. The comparison against QDETRv is worth stating explicitly, since our framework builds on a heavier vision–language backbone and might be expected to pay for it in latency. It does not: our method is 27% faster than QDETRv while gaining 4.5 AP, for only 0.5 GB of additional memory. The reason is architectural. We dispense with explicit object-tube proposals, which are the expensive component in tube-based methods, and the filtering mechanism propagates only high-confidence object features, so the number of tokens carried across frames remains small. The one genuine trade-off is against FSVOD, which is faster (16 FPS) and leaner (5.8 GB) at 5.5 AP lower accuracy; for a memory-constrained edge deployment where the difference between 5.8 GB and 8.1 GB is the binding constraint, FSVOD remains defensible, whereas with an 8 GB budget available our method dominates on both axes.
4.4.16 COMPARISON AGAINST A GENERIC VIDEO-LLM
To test the claim that specialised grounding still outperforms generic vision–language models on this task, we additionally evaluated Qwen3.5-VL [147] under the same protocol as our method, supplying the support image as the visual exemplar and scoring the predicted boxes with the same AP measure. The comparison is therefore like-for-like in the information available to each model. Qwen3.5-VL [147] reaches 15.6 AP on FSVOD-500 and 8.3 AP on FSYTV-40, well below our 30.6 and 21.2 respectively. We would not attribute this gap to model capacity. Qwen3.5-VL [147] matches an exemplar within a frame but has no mechanism for maintaining object identity across frames, so its detections are temporally inconsistent, which is precisely what the feature-propagation component supplies.
4.5 SUMMARY
In this chapter, we introduced a novel approach for Few-Shot Video Object Detection that incorporates a language-aligned vision encoder and a filtering mechanism to selectively propagate high-confidence object features across frames. This mechanism efficiently enhances feature progression, reduces noise accumulation, and improves detection accuracy in a few-shot video setting. Through extensive experiments on four datasets, our approach consistently outperforms state-of-the-art methods, achieving superior detection performance and demonstrating its effectiveness in real-world video object detection tasks.
In the next chapter, we shift from grounding individual objects to grounding the interactions between them, that is, understanding how two objects relate and behave together.
Few-Shot Relationships Grounding in Videos
Interpreting visual relationships is a core aspect of comprehensive video understanding. Given a query visual relationship as <subject, predicate, object> and a test video, our objective is to localize the subject and object that are connected via the predicate. Given modern visio-lingual understanding capabilities, solving this problem is achievable, provided that there are large-scale annotated training examples available. However, annotating for every combination of subject, object, and predicate is cumbersome, expensive, and possibly infeasible. Therefore, there is a need for models that can learn to spatially and temporally localize subjects and objects that are connected via an unseen predicate using only a few support set videos sharing the common predicate. We address this challenging problem, referred to as few-shot referring relationships in videos for the first time. To this end, we pose the problem as a minimization of an objective function defined over a T-partite random field. Here, the vertices of the random field correspond to candidate bounding boxes for the subject and object, and T represents the number of frames in the test video. This objective function is composed of frame-level and visual relationship similarity potentials. To learn these potentials, we use a relation network that takes query-conditioned translational relationship embedding as inputs and is meta-trained using support set videos in an episodic manner. Further, the objective function is minimized using a belief propagation-based message passing on the random field to obtain the spatiotemporal localization or subject and object trajectories. We perform extensive experiments using two public benchmarks, namely ImageNet-VidVRD and VidOR, and compare the proposed approach with competitive baselines to assess its efficacy.
(a) Problem Setup

<bird - fly above - person>
video-1
<helicopter - fly above - train>
video-2
<plane - fly above - truck>
video-3
Support Set
<plane - fly above - plane>
video-4
<plane - fly above - person>
Test video
Output
(b) Predicate Distribution
(c) Accuracy Distribution
Predicate
Figure 5.1: The proposed problem setup. (a). Given a query visual relationship as <subject, predicate, object> and a test video, our goal is to localize the subject and object on the test video with the help of a support set containing a few videos with the same predicate. In this example, the goal is to spatio-temporally localize the plane (subject) and person (object) that are connected via fly above (predicate), with the help of a support set containing only four videos sharing predicate fly above. It should be noted here that fly above is unseen during training. We refer this problem as few-shot referring relationship in videos. This problem setup is inspired by the real-world scenario where obtaining large-scale annotations for every visual relationship is practically infeasible. As shown in (b), a popular visual relationship video dataset, namely ImageNet-VidVRD, contains many predicates with very few examples, i.e., it has a long-tail distribution. Further, as shown in (c), the success of a modern visual relationship localization technique (vRGV) [4] is clearly proportional to predicate distribution in the training set. This calls a need for solving referring relationship tasks in a few-shot setup. We propose this task and present a novel principled solution.
The subsequent sections present the introduction, a review of related work, the proposed methodology, and a detailed analysis of results and discussions.
5.1 INTRODUCTION
Consider the following problem: given a video, a visual relationship query represented as a <subject, predicate, object> tuple, and a support set of a few videos containing the same predicate but not necessarily the same subjects and objects, our objective is to spatially and temporally localize both subjects and objects that are related via the predicate within the video. We refer to this problem as Few-shot Referring Relationship and illustrate it in Figure 5.1. Solving this problem has the potential to benefit cross-task video understanding [148] and video retrieval [149, 150], among other applications. Identifying its utility, referring relationship task for images has been first introduced by [18]. However, referring relationships in videos poses additional video-specific challenges, such as understanding dynamic visual relationships. Some of these challenges have been addressed in recent research by Xiao et al. [4], but with a reliance on strong supervision. Referring relationships in videos within a few-shot setup is an under-explored area. We aim to fill this research gap via our work.
Visual relationships inherently have long-tail distributions in any video collection. For example, Image-Net VidVRD [114] dataset includes approximately 18.9% predicates with more than 100 instances but 20.5% predicates with less than 10 instances. This phenomenon is also shown in Figure 5.1, where most predicates belong to the tail side of the distribution. The methods that work best for frequent visual relationships do not necessarily generalize well to unseen visual relationships. Moreover, in a real-world scenario annotating visual relationships for each combination of subject, object, and predicate are cumbersome, expensive, and possibly infeasible. Therefore, there is a need to study visual relationship tasks in a few-shot setup. For instance: only with a few examples of the fly above predicate, such as videos containing <bird, fly above, person>, <helicopter, fly above, train> as shown in Figure 5.1 (a), a model should be able to generalize to the unseen visual relationship, such as <plane, fly above, person>. We propose a solution for Few-shot Referring Relationship in videos in this work.
We pose the problem of a few-shot referring relationship in the video as a minimization of an objective function defined over a T-partite random field where T is the number of frames in the test video. Furthermore, the vertices of the random field are treated as random variables and represent candidate bounding boxes for the subject and objects. The objective function consists of frame-level potentials and visual relationship similarity potentials, both of which are learned using a relation network that takes query-conditioned translational relationship embeddings as inputs. We meta-train the relation network using support set videos in an episodic manner. Further, the objective function is minimized using a belief propagation-based message passing on the random field to obtain subject and object trajectories. We perform extensive experiments on two public benchmarks, namely ImageNet-VidVRD [114] and VidOR [151], and report the accuracy of localizing subject, object, and relation, denoted by , , and , respectively, along with other popular measures used in the literature. Our proposed approach clearly outperforms the related baselines.
The contributions of this chapter are three folds. (i) We propose a novel problem setup for referring relationship in videos, where the model must learn to localize the subject and object corresponding to a query visual relationship that was unseen during training using only a few support videos. (ii) We propose a new formulation to solve this task based on the minimization of an objective function on T-partite random field where T is the number of frames in the test video, and the vertices of the random field representing potential bounding boxes for subject and objects correspond to the random variables. (Section 5.3.1). (iii) Additionally, to enrich query-conditioned relational embeddings, we present two aggregation techniques, namely global semantic and local localization aggregations. The use of these aggregation techniques results in enhanced relationship representations, which helps to obtain better trajectories for objects and subjects related via the query visual relationship. This is evidenced by extensive experiments and ablations. (Sections 5.3.2 and 5.4.5).
5.2 RELATED WORK
Visual Relationships: Interpreting visual relationships in images [152, 16, 153] as well as videos [55, 154, 155, 156, 157] have gained huge attention over the last few years. They have also been key components of large-scale popular datasets such as Visual Genome [158] and Action Genome [5]. Visual relationships were studied with respect to object segmentation to leverage spatial relations [159] and to understand human-object interactions [160] via human-centric relationships. Krishna et al. [158] proposed the concept of scene graphs by combining multiple visual relationships in a graph structure. The structured representation of the scene graph is exploited for several tasks, including image retrieval [161]. Shang et al. [114] extended scene graphs from images to videos. Videos have spatiotemporal nature introducing dynamic relations that are not present in images. Scene graphs in videos represent fine-grain information that helps in the downstream task for spatiotemporal reasoning. Several works have been introduced that utilize visual relationships to improve downstream tasks such as an image or video captioning [17], visual grounding [162], visual question answering [163]. To localize subjects and objects connected via a query visual relationship, Krishna et al. [18] proposed referring relationship for images. Their proposed method used an iterative message-passing mechanism between subject and object using language priors to ground the query relations. Further, Xiao et al. [4] extended referring relationship to videos and refer it as visual relationship grounding in videos. In a similar spirit, but, in a few-shot set-up, we propose to spatiotemporally localize subjects and objects in a video for a given relationship.

Figure 5.2: Illustration of T-partite random field. Here, we illustrate graph construction using three frames (T = 3) and three object bounding boxes (M = 3). The ordered pair of bounding boxes are represented as a node. For this example, each frame will result in nodes. Each node corresponds to a binary random variable that takes one of the two labels, i.e. . The green- and red-filled nodes correspond to those random variables that the optimization framework aims to assign 1 and 0, respectively, and the dotted blue line indicates the ground truth tracklet. [Best viewed in color].
Few-Shot Learning: Few-shot learning in the literature can be grouped into: (i) metric-based [77, 76, 80] and (ii) model-based [81, 164, 78] methods. We limit our discussion to only closely related works. Vinyals et al. [76] proposed matching networks that learn to compare using a small support set. Further, Sung et al. [78] proposed a relation network that learns from a few labeled images of the support set by comparing the query image. In this work, we have used a relation network to learn relationship similarity using the given support set videos, and this enabled us to obtain both frame-level and visual relationship similarity potentials.
5.3 PROPOSED METHOD
Task Definition: Given an unseen visual relationship consisting of subject (s), predicate (p), and object (o), i.e. as a query and a test video v along with a small support set of K videos containing the same predicate p, the goal is to obtain the sequence of bounding boxes (also known as trajectories) and corresponding to subject and object, respectively on the test video v. We refer to this task as few-shot referring relationship in videos. As an example, in Figure 5.1 (a), is a query that needs to be spatiotemporally localized on a test video using a support set that contains four videos of fly above predicate. We pose this task as an optimization problem on a T-partite random field which we describe next.
5.3.1 FEW-SHOT REFERRING RELATIONSHIP AS AN OPTIMIZATION ON A T-PARTITE RANDOM FIELD
Given a test video , we split it into frames. Then, we obtain most confident object bounding boxes on each frame using FasterRCNN [8]. Video can be represented as a sequence of extracted bounding boxes, . The pair of these bounding boxes in each frame is a candidate solution for referring relationship task. While finding the optimal solution using a brute force technique is combinatorial and practically infeasible, we solve it using optimization on a -partite random field. To this end, we construct a -partite graph representing the test video as follows: for a frame , we represent each pair of bounding boxes as nodes and their all possible next and previous-frame connections as edges. More precisely, the set of vertices for a video contains ordered pair of bounding boxes as follows: , and the set of edges is defined as . Each vertex of this graph is a binary random variable that takes one of two labels for the given query . Figure 5.2 illustrates the construction of graph for a three-frame test video. It is worth making the cost of this construction explicit, since the term “-partite random field” may suggest a more expensive inference procedure than is actually required. Each frame contributes binary nodes, and the edge set defined above connects only the same ordered pair across consecutive frames. The graph therefore decomposes into independent chains of length . Belief propagation on a chain is exact and linear in its length, so inference costs over binary variables and is trivially parallel across the chains. The cost is thus linear in the number of frames, which means that long videos are not the binding constraint; the quadratic term is , so doubling the number of candidate boxes per frame quadruples the node count, and densely annotated settings are the harder case. Where a video is long enough for memory to become a concern, the natural mitigations are sampling keyframes, since a relationship persists across adjacent frames and not every frame need form a graph layer, and capping through proposal suppression. It should be noted here that the selected nodes (corresponding subject and object bounding box) from each frame form subject and object trajectories. To obtain optimal subject and object trajectories ( and ) for a given visual relationship , we solve following optimization problem:
(5.1)
Here, represents the neighboring nodes to frame i, and is a learnable parameter of a neural network that needs to be trained using support set videos. Specifically, we use support set videos to meta-train relation network ( ) in a few-shot way. We describe the relation network used in our framework and its training strategy in detail in Section 5.3.3. Further, in the aforementioned objective function, the terms and denote frame-level and visual relationship similarity potentials that are defined next.
FRAME-LEVEL POTENTIALS ( )
We compute frame-level potentials such that the cost of selecting a node to form a trajectory is low if the selected node is semantically similar to query predicate , otherwise high. Mathematically,
where, is the relationship pair in the support set video connected via query predicate and is a visual relationship embedding in video for and bounding boxes of frame. Thus, gives the negative of average similarity of node with respect to the relationship of having predicate as . The returns a value closer to 1 when it represents visually and semantically similar visual relationships, and closer to 0, otherwise.
VISUAL RELATIONSHIP SIMILARITY POTENTIALS ( )
To ensure that coherent (both semantically and visually) visual relationships are being selected across frames, we define visual relationship similarity potential such that the cost of selecting a similar visual relationship in the optimal tracklet is low. To this end, the visual relationship similarity potential is computed as follows:
where is a visual relationship embedding in the video for and bounding boxes of frame. The computation of these relationship embeddings and details of the relation network follows next.
5.3.2 QUERY-CONDITIONED RELATIONSHIP EMBEDDING
We describe the representation of a frame-level visual relationship in this section. To this end, we first obtain extracted objects for each frame of the video using Faster-RCNN [8]. Then, given a query relationship , for each frame, an object or subject representation corresponding to and bounding box of frame respectively are obtained by the following equations:
Here, , , and are learnable parameters. In addition, the variables and represent the ROI appearance and spatial features of the corresponding bounding boxes, while and represent the GloVe word embeddings for the subject and object, respectively. Moreover, denotes the concatenation operation.
From here onwards, for the sake of simplicity of notations, we represent and as and respectively. It should be noted that and can be used directly for obtaining relationship embeddings that can be used to compute frame-level and visual relationship similarity potentials. However, to further enrich these representations, we present the following two attention-based aggregation techniques:
(i) Global Semantic Aggregation (GSA): The subject and object representations, i.e. and learned using eq. (5.4) and (5.5) are independent of other frames in the video. However, the global semantic context information from other frames may help in enriching subject and object representation. Therefore, we fused the I3D-features [165] of every frame by weighting them with a global attention vector which is computed as follows:
Where is a learnable attention unit, and it is defined as follows:
where, , and are learnable parameters and represent the I3D-feature for frame. Finally, after aggregating the global semantic information the subject representation is obtained as:
Similarly, object representation after global semantic aggregation is obtained as:
Here, and are initial subject and object features obtained using eq. (5.4) and (5.5), respectively.
(ii) Local Localization Aggregation (LLA): For adding the context from the adjacent frames as a local localization context, we considered a window size of five, i.e., for frame, we considered to frames. The local context helps with partially visible or occluded objects. We fuse the local spatial and ROI features from the adjacent frames weighted by the local attention vector for the subject ( ) which is computed as follows:
Here, is the initial representation of subjects obtained from eq. (5.4) and is obtained as:
where to are stacked ROI and spatial features of all objects from their respective frame numbers. , , and are learnable parameters. Then, from eqs. (5.7) to (5.10), local localization information-aggregated subject and object features, and , are obtained.
Obtaining Relationship Embedding: To obtain relationship embedding, we first enrich subject and object representations as follows:
Where, , , and are learnable parameters. Finally, for any pair of subject and object, of frame of a video , the relationship embedding with respect to query visual relationship is computed as a translation vector in lower dimensional relation space similar to VTrasE [166] as follows:
where, , , , and are learnable parameters and , are subject and object representation obtained from eq. (5.13) and (5.14) respectively.
5.3.3 LEARNING RELATION NETWORK WITH FEW EXAMPLES
The proposed problem formulation has to learn the similarity between object pairs as the visual relationships using a few videos from . We have selected the Relation Network ( ) [78], a metric-based meta-learning approach, as our method of choice. After learning the similarity measure for the unseen predicate, is used to compute both frame-level as well as visual relationship similarity potentials.
For a pair of object pairs and , their representation as a visual relationship, , are obtained using eq. (5.15). Then pairwise similarity score is computed as:
where , b are learnable parameters matrix and bias vector respectively. Further, is computed using the following equation:
where , and are learnable parameters matrices, and bias vectors, and and are sigmoid and hyperbolic tangent activation functions, respectively.
For each support set video, we extract ground truth positive and negative object pairs. Positive object pairs are connected via the query relation predicate , while negative object pairs are picked randomly from a set containing pairs of objects that are not connected via predicate . We used ground-truth spatial and its corresponding ROI features to get the relation embedding using eq. (5.15). learns to return higher similarity between semantically similar pairs of relationships while lower similarity for other pairs. Let us consider a set of positive object pairs and negative object pairs extracted from the , where is the number of positive or negative object pairs extracted from each support set video. Finally, the is meta-trained on using the following episodic loss.
(5.18)
5.3.4 TRAJECTORY GENERATION
To generate the final trajectories of the subject and object, we used three different optimization approaches. In the first technique, we used only frame-level potential to select a node with the optimal potential value, which was determined as the minimum value among all the nodes at frame . We skipped a frame if the optimal potential value is higher than the fixed threshold (= -0.5). As an alternative to this, we also used a greedy solver by selecting a node from frame using the first technique, and then, we find the next node in the next frame with optimal . We skipped a frame if the optimal potential value is higher than the fixed threshold (= -0.5). In our full model, we used both frame-level potential and visual relationship similarity potential and used belief propagation using message passing [167] to find the optimal trajectories.
5.4 EXPERIMENTS AND RESULTS
5.4.1 DATASETS
We have used two video benchmark datasets, namely, VidOR [113, 151] and ImageNet-VidVRD [114] in our experiments. ImageNet-VidVRD contains 1000 videos obtained from the ILVSRC2016-VID dataset [130]. It has 132 predicates and 35 object categories. VidOR is a large-scale dataset containing 10,000 videos obtained from YFCC100M collection. VidOR contains 50 predicates and 80 object categories. For our problem setting, we split both datasets into disjoint sets based on predicates and videos by randomly assigning 35 and 15 predicates to the train and test sets of VidOR, while assigning 88 and 22 predicates to the train and test sets of ImageNet-VidVRD, respectively.
5.4.2 PERFORMANCE MEASURE
In this work, we adopt widely-used evaluation metrics in the referring relationship and video understanding literature, as described in [18, 168, 4]. Specifically, we calculate the subject and object accuracy, which represents the percentage of correct trajectories returned by the model for the entire test set. A relation accuracy is defined as the percentage of correct subject and object pair trajectories. Here, a pair is considered correct if both subject and object trajectories are correct. For spatiotemporal accuracy, , , of the subject or object, a trajectory is considered correct if at least 50% of the bounding boxes across frames have intersection over union (IoU) with respect to ground truth bounding boxes. Similarly, for spatiotemporal accuracy of relation, , a pair of subject and object is considered true only if both trajectories are spatiotemporally accurate (i.e. at least 50% of the bounding boxes across frames have IoU). For spatial accuracy, , , a trajectory is considered true if the average of IoUs of the bounding box with respect to ground truth is at least 0.5. The mean IoU for a trajectory is an average of the IoU score for all bounding boxes with respect to ground truth. The mean IoU of the subject or object, , is the average of the mean IoU of the subject or object for the entire test set.
5.4.3 BASELINES
To the best of our knowledge, we are the first to approach referring relationships in videos in a few-shot setup, and there are no existing baselines in the literature that can be directly compared to our approach. Therefore, we adopt closely related methods as our baselines to compare the effectiveness of our method as follows:
(I) FEW-SHOT VISUAL RELATION CO-LOCALIZATION (VRC):
Few-shot VRC has originally been proposed for localizing common subjects and objects in a bag of images in a few-shot setup [169]. We adopt it for videos by treating object trajectory pairs in the test and support set videos as a bag and performing visual relationship co-localization at the frame level.
(II) VISUAL VRGV [4]
tackles the same task as ours but differs significantly in supervision. We adapted vRGV for our few-shot problem setup for a fair comparison. Recall that in our problem setup, the model is trained in episodes, and each episode contains a support set of a few videos and a test video for evaluation. We utilize all available videos from the train set to train the vRGV model. During testing for each episode, we fine-tune the model on the support set and then perform localization for the given query visual relationship on the test video. We refer to these baselines as vRGV in a few-shot setup or vRGV-fs.
(III) TRACKLET-BASED APPROACH:
In this section, we provide a detailed explanation of the proposed tracklet-based. Consider notations independent of the main method.
Tracklet Detector. For each video, using a pre-trained detector, we extract all tracklets (represented as a set ) features and spatio-temporal locations. Each entity having length as number of frames is categorized by a time slot and bounding box coordinate . For each entity , tracklet feature is a combination of spatial and appearance features. Spatial feature is formed as the concatenation of all box offset and coordinate , where is defined between two consecutive frames as box coordinate offset, i.e., . For appearance each frame is extracted using RoIAlign [8] based on box locations. For entity , the tracklet feature is formed as,
where , and c are learnable linear models and is concatenation operation.
Relationship Pair Proposal. The goal of this module is to propose relationship pair proposals. Given a video , the first tracklet set is extracted using a pre-trained detector. An attention score is calculated for each tracklet for finding whether a tracklet contains a subject similar for the object. A tracklet having a high attention score is more likely to contain the desired object/subject category. To this end, corresponding to subjects, an attention vector is computed , where SubAtt is attention unit which takes all tracklet features along with word2vec features of query subject and predicate. Similarly for objects, we have . To calculate attention vectors first a score for each entity (subject/object) is computed as,
where and are learnable linear functions. Finally, the attention vector is computed as,
Similarly, an attention vector corresponding to an object is computed. To make entity tracklet features aware of each other we use an attention-shifting mechanism [4], where attention is shifted from one entity to every other entity. Attention shift from subject to object computed as, , similarly object to subject , where and are learnable parameters. Then entity tracklet features aware of each other computed as, and , where and are objects and subject features respectably and and are linear learnable modules. Finally, probable query relationship pair proposals are computed as,
where is a set pair proposals features, and is function to enumerate all possible pair proposals.
Metric Learner. This module aims to rank the pair proposals produced by the pair proposal module. A deep metric is learned with the help of support set videos in a few-shot way. Deep metric learns to project positive pair proposals (pair proposals with the same predicate) close in the feature space while negative pair proposals (pair proposals with different predicates) are far away.
Feature Extraction. Given a support set video, we have ground truth bbox tracklets of entities (subject) of query predicate. We extracted appearance feature based on bbox using a pre-trained detector. To incorporate spatial and visual features, the final subject features is computed using equation 1. Similarly, object feature is computed. Then positive predicate feature is computed as . Similarly, for each supported video, negative predicate feature is computed where the predicate is not the same as in the query relationship.
A metric learner ML is defined as a linear differentiable model and trained using the ground truth positive and negative predicate feature in a supervised setting. The loss function for this module is defined as,
(5.23)
The pair proposals produced by the relationship proposal module are ranked by the learned deep metric ML. The top-ranked pair proposal has the lowest distance from all the positive ground truth predicates. The top-ranked pair is returned by the following equation.
Reconstruction module. This module aims to ensure the effective use of word embedding of query relationships in the aforementioned modules. We took the inspiration of reconstruction as weak supervision [170, 4] to use query relationship embedding effectively. The first few (set as hyperparameters) top-ranked predicate feature returns from the previous module are stacked together to form an encoding for the LSTM, i.e., , where return the top-ranked stacked predicate features. LSTM considers relation as a textual phrase and reconstructs it using a single layer of LSTM. This module is trained using the following loss function,
Training and Inference. The top-ranked feature contains the tracklet information of the subject and object related to the query predicate. But the query visual relation might not span the whole duration of the subject and object and can be in multiple time slots. To correctly find the duration and probable multiple slots we learn another linear model to predict each frame whether it belongs to a query relationship or not. The linear model is defined as,
has a dimension equal to twice the max frame length in the dataset. For each common frame of subject and object, we have a score for starting of the relationship and similarly for the end of a relationship. This module is trained using the following supervised loss,
tIOU computes the temporal intersection over the union of predicted predicates with respect to the ground truth bounding boxes. The start and end of the query relation are extracted as,
The frames which are not contained within the common duration of the subject and object are removed. The lowest frame number is selected from as the start of the relationship and the lowest frame from such that is selected from as the end of the relation. The frames contained in between and are removed from and to find another query relation instant in a similar way.
Finally, all modules are combined during training as an end-to-end differential function. The overall model is trained using the following loss function,
where and are hyperparameters.
5.4.4 IMPLEMENTATION DETAILS
For frame-level detection, we utilized FasterRCNN [8], which was pre-trained on MS-COCO with ResNet-101 as the backbone. We extracted the 30 most confident object bounding boxes for each frame. Our implementation was done using PyTorch. We optimized the model parameters using Adam [131] with an initial learning rate of 1e-5, while also employing a dropout rate of 0.3 to reduce overfitting. To prevent overfitting, we used early stopping. We trained the model on an Nvidia-RTX A6000 GPU.
| Approach | Support Set Size | VidVRD | VidOR | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| tracklet-based | 2 | 12.3 | 12.1 | 12.2 | 11.7 | 8.8 | 10.9 | 10.7 | 10.1 | 10.3 | 7.3 |
| tracklet-based | 4 | 12.6 | 12.9 | 12.8 | 12.0 | 9.6 | 11.1 | 11.0 | 10.9 | 10.4 | 8.2 |
| tracklet-based | 8 | 13.4 | 13.2 | 13.7 | 13.3 | 10.4 | 12.8 | 12.6 | 13.2 | 13.0 | 9.7 |
| w/o vis.sim. potential, w/o GSA, w/o LLA | 2 | 19.2 | 18.2 | 17.8 | 19.9 | 15.9 | 19.3 | 18.1 | 18.4 | 19.8 | 16.7 |
| w/o vis.sim. potential, w/o GSA, w/o LLA | 4 | 19.6 | 19.1 | 18.2 | 20.8 | 16.3 | 19.8 | 18.7 | 18.5 | 20.4 | 17.3 |
| w/o vis.sim. potential, w/o GSA, w/o LLA | 8 | 20.2 | 19.6 | 18.5 | 21.6 | 17.1 | 20.2 | 19.4 | 18.7 | 20.9 | 18.4 |
| w/o vis.sim. potential | 2 | 21.4 | 20.6 | 22.1 | 21.3 | 16.9 | 19.3 | 21.4 | 21.4 | 21.8 | 17.2 |
| w/o vis.sim. potential | 4 | 22.6 | 21.9 | 22.3 | 22.9 | 17.2 | 20.9 | 22.5 | 22.7 | 22.1 | 17.6 |
| w/o vis.sim. potential | 8 | 22.9 | 22.3 | 22.8 | 23.7 | 17.8 | 21.3 | 22.8 | 23.4 | 23.7 | 18.6 |
| Greedy Solver | 2 | 23.8 | 23.2 | 22.9 | 25.2 | 22.4 | 23.7 | 21.7 | 23.4 | 24.7 | 20.4 |
| Greedy Solver | 4 | 25.4 | 24.7 | 24.3 | 26.4 | 22.8 | 24.2 | 23.8 | 24.5 | 25.8 | 21.7 |
| Greedy Solver | 8 | 25.7 | 25.4 | 25.1 | 26.7 | 23.1 | 24.8 | 23.8 | 24.7 | 26.4 | 22.3 |
| Full model | 2 | 24.5 | 26.3 | 25.7 | 26.7 | 24.3 | 24.8 | 25.7 | 26.1 | 26.8 | 22.6 |
| Full model | 4 | 26.8 | 27.1 | 26.0 | 27.9 | 25.1 | 25.3 | 26.2 | 26.3 | 27.0 | 23.8 |
| Full model | 8 | 27.4 | 28.3 | 26.8 | 28.2 | 25.7 | 26.1 | 27.3 | 26.8 | 27.6 | 24.4 |
Table 5.1: Comparison of baseline and proposed method on different support set sizes. For every method (baseline and all variants of our method) the performance is increased with an increase in support set size.
| Method | ImageNet-VidVRD | VidOR | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| VRC [169] | 8.4 | 10.7 | 11.9 | 8.6 | 10.3 | 11.2 | 5.8 | 7.2 | 9.9 | 10.3 | 8.0 | 10.1 | 11.1 | 5.6 |
| vRGV-fs [4] | 8.2 | 11.1 | 12.4 | 8.3 | 11.6 | 12.9 | 6.1 | 7.5 | 10.3 | 10.9 | 7.3 | 10.7 | 11.4 | 6.3 |
| Tracklet-based | 12.6 | 15.1 | 15.9 | 12.8 | 14.8 | 15.3 | 9.6 | 11.1 | 13.7 | 14.2 | 10.9 | 12.6 | 13.8 | 8.2 |
| Ours | ||||||||||||||
| w/o vis.sim. potential, w/o GSA, w/o LLA | 19.6 | 21.4 | 19.1 | 18.2 | 18.7 | 20.8 | 16.3 | 19.8 | 20.7 | 18.7 | 18.5 | 19.2 | 20.4 | 17.3 |
| w/o GSA, w/o LLA | 25.3 | 26.9 | 25.8 | 25.7 | 25.1 | 26.5 | 22.8 | 24.5 | 24.9 | 25.1 | 24.9 | 25.1 | 22.3 | 21.9 |
| w/o vis.sim. potential | 22.6 | 22.8 | 21.9 | 22.3 | 21.4 | 22.9 | 17.2 | 20.9 | 21.3 | 22.5 | 22.7 | 21.7 | 22.1 | 17.6 |
| Greedy solver | 25.4 | 26.5 | 24.7 | 24.3 | 23.8 | 26.4 | 22.8 | 24.2 | 25.6 | 23.8 | 24.5 | 22.7 | 25.8 | 21.7 |
| Full model | 26.8 | 28.4 | 27.1 | 26.0 | 25.1 | 27.9 | 25.1 | 25.3 | 26.9 | 26.2 | 26.3 | 25.7 | 27.0 | 23.8 |
Table 5.2: Performance of few-shot referring relationship in videos. Each method is trained on the same split of train and test datasets with a support size of four videos. Ours (full model) represents the proposed method where global semantic aggregation (GSA) and local localization aggregation (LLA) are performed to enrich the query-conditioned relationship representation, a translational relation embedding is learned, and an objective function containing frame-level and visual similarity potential is optimized using belief propagation on the T-partite random field. For more details, refer Section 5.4.
5.4.5 RESULTS AND DISCUSSIONS
We compare our approach with baselines discussed in Section 5.4.3 on VidOR and ImageNet-VidVRD datasets in Table 5.2. We observe that the baselines modified using prior works, namely VRC and vRGV, exhibit weaker performance across all the evaluated metrics. The tracklet-based approach performs marginally better than these baselines. However, its performance is heavily bottle-necked with the quality of tracklets generated. Our approach, without the proposed global semantic and local localization aggregation itself, surpasses these baselines. We also observed a positive impact of frame-level and visual relationship similarity potential; for example, in Table 5.2, the accuracy of localizing relationship has increased by (absolute scale) in the full model with respect to the greedy solver on ImageNet-VidVRD dataset. The superior performance of our method can be attributed to the principled optimization framework, the proposed aggregation techniques, query-conditioned learning of relationship embeddings, and the effective utilization of support set videos to meta-train relation networks. To show the efficacy of our method and to justify the choice of different modules, we conduct the following ablations and analyses:
| GSA | LLA | |||
|---|---|---|---|---|
| ✕ | ✕ | 21.3 | 22.1 | 20.8 |
| ✓ | ✕ | 24.7 | 23.5 | 22.8 |
| ✕ | ✓ | 22.3 | 21.7 | 21.1 |
| ✓ | ✓ | 26.8 | 26.0 | 25.1 |
Table 5.3: Ablation study to demonstrate the importance of global semantic aggregation (GSA) and local localization aggregation (LLA) on the ImageNet-VidVRD dataset. Our full model (the last row) performs better as compared to the settings where one or both of these are removed.
| Metric | Static | Dynamic | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| stop front | taller | right | larger | stand front | sit behind | above | left | walk behind | run beneath | move right | play | feed | faster | move front | fly above | |
| 30.1 | 28.8 | 28.6 | 30.9 | 29.7 | 26.5 | 31.4 | 25.8 | 19.2 | 21.5 | 23.7 | 27.4 | 28.5 | 22.4 | 25.9 | 22.8 | |
| 28.3 | 30.1 | 27.5 | 27.2 | 26.5 | 23.8 | 30.1 | 23.3 | 19.1 | 21.7 | 22.8 | 28.9 | 27.2 | 22.3 | 24.4 | 24.3 | |
| 27.6 | 26.2 | 26.3 | 25.5 | 25.9 | 22.2 | 27.8 | 22.5 | 18.6 | 19.8 | 22.6 | 26.2 | 26.1 | 19.2 | 23.1 | 21.4 | |
Table 5.4: Predicate-wise performance of the proposed method on ImageNet-VidVRD Dataset grouped into static and dynamic categories.
| Relationship Embedding | |||
|---|---|---|---|
| Concatenation | 18.3 | 20.1 | 18.7 |
| Translation Embedding | 26.8 | 26.0 | 25.1 |
Table 5.5: Performance comparison of translational and Concat relationship embedding on ImageNet-VidVRD dataset. In this study, both embeddings are fused with the global and local context.
GLOBAL SEMANTIC AND LOCAL LOCALIZATION AGGREGATION:
We remove global semantic (GSA) and local localization aggregation (LLA) in our full model to analyze their effect. In other words, we used equations (5.4) and (5.5) to obtain the subject and object representation and analyze its effect on the ImageNet-VidVRD dataset in Table 5.3. We observe that our full model that uses these two aggregation techniques performs better as compared to the settings where one or both of these are removed.
TRANSLATIONAL RELATION EMBEDDING:
In the second ablation, we justify the choice of translation visual relationship embedding. To this end, we replaced the translational embedding in eq. (5.15) with a simple concatenation of subject and object representation. As shown in Table 5.5, translational relationship embedding used in our model is significantly more robust than simple concatenation embeddings.
EFFECT OF VISUAL RELATIONSHIP SIMILARITY POTENTIAL:
To study the effect of visual relationship similarity potential in our optimization framework, we evaluate our model with and without this potential. Table 5.2 clearly indicates the utility of this potential where our full model that uses both visual relationship similarity and frame-level potential significantly surpass the variant that does not use visual relationship similarity.

Predicate Frequency (higher to lower)
Figure 5.3: Spatiotemporal localization accuracy of the proposed method with different support sizes on the ImageNet-VidVRD.
potential.
EFFECT OF SUPPORT SET SIZE/LONG-TAIL:
To analyze the effect of support set size, we perform experiments by varying its size. Specifically, we present a bar chart showing achieved using our approach on ImageNet-VidVRD dataset with a support set varying from 1 to 70 videos in Figure 5.3. We observe an intuitive gain with a larger support set.
UNSEEN SUBJECTS OR OBJECTS:
The predicate in the query visual relationship is always unseen in our setup. We further analyze cases where either subject or object is also unseen during training in Table 5.6. The model performs reasonably well for localizing subjects and objects in videos, even in these cases with an intuitive drop in performance as compared to cases where only the predicate is unseen, and both subject and object are seen.
PERFORMANCE ON STATIC AND DYNAMIC RELATIONS:
In order to analyze the performance of our approach for different types of relations, we present the predicate-wise results in Table 5.4. The results reveal that our proposed approach generally achieves better performance for static relationships. Nonetheless, despite the additional challenges posed by dynamic relationships, such as the presence of moving objects and subjects, occlusion, motion blur, and deformation, our approach demonstrates reasonable results for dynamic predicates highlighting its robustness. This gap follows directly from the structure of the objective. The frame-level potential is computed from a single frame's box pair and therefore carries no motion information, while only the pairwise potential links consecutive frames. Static predicates such as "beneath" and "above" are consequently decidable from alone, whereas dynamic predicates such as "chase" and "follow" depend on , which is the

bird fly_with bird

person fall_off bicycle
Figure 5.4: Qualitative result on a selection of test videos. Each subject and object of the query relationship is spatiotemporally localized on the test videos. Red and blue color bounding boxes represent the subject and object, respectively. [Best viewed in color].
| subject | object | |||
|---|---|---|---|---|
| ✓ | ✓ | 28.3 | 27.6 | 27.3 |
| ✓ | ✕ | 23.7 | 21.4 | 18.6 |
| ✕ | ✓ | 19.4 | 20.5 | 17.2 |
Table 5.6: Performance comparison when subject or object is unseen during training on ImageNet-VidVRD dataset.
weaker of the two signals in the few-shot regime where potentials are meta-learned from only a handful of support videos. This also indicates the natural remedy, namely richer motion features in the pairwise potential.
QUALITATIVE RESULTS:
Figure 5.4 shows a selection of qualitative results of our approach on ImageNet-VidVRD dataset where query visual relationships, <bird, fly with, bird>, and <person, fall off, bicycle> are referred in the respective video by localizing the subject and object connected to the query predicate. Our method is successful in localizing subjects and objects connected via dynamic relationships indicating the effectiveness of our approach.
5.5 SUMMARY
In this chapter, we approached the problem from frame-level object detection to video-level trajectory generation by optimizing an objective function on a random field in a few-shot way. We used global semantic and local localization aggregation to enhance query-conditioned translation visual relationship embedding. The objective function is minimized using belief propagation on the random field. We performed experimental comparisons along with ablation studies to show the efficacy of our approach. We firmly believe that our work will open up several future research towards the larger exciting goal of comprehensive cross-task video understanding.
In the next chapter, we move from spatial reasoning to temporal reasoning and focus on identifying when key actions or moments occur within a video.
Moment Grounding in Videos
Video-to-video moment retrieval (Vid2VidMR) is the task of localizing unseen events or moments in a target video using a query video. This task poses several challenges, such as the need for semantic frame-level alignment and modeling complex dependencies between query and target videos. To tackle this challenging problem, we introduce MATR (Moment Alignment Transformer), a transformer-based model designed to capture semantic context as well as the temporal details necessary for precise moment localization. MATR conditions target video representations on query video features using dual-stage sequence alignment that encodes the required correlations and dependencies. These representations are then used to guide foreground/background classification and boundary prediction heads, enabling the model to accurately identify moments in the target video that semantically match with the query video. Additionally, to provide a strong task-specific initialization for MATR, we propose a self-supervised pre-training technique that involves training the model to localize random clips within videos. Extensive experiments demonstrate that MATR achieves notable performance improvements of 15.4% in R@1 and 11.4% in mIoU on an absolute scale compared to the state-of-the-art methods on the popular ActivityNet-VRL dataset. Additionally, on our newly proposed dataset, SportsMoments, MATR shows a 16.4% gain in R@1 and a 16.3% gain in mIoU on an absolute scale over strong baselines.
The subsequent sections present the introduction, a review of related work, the proposed methodology, and a detailed analysis of results and discussions.
6.1 INTRODUCTION
Video moment retrieval is the task of temporally localizing the start and end times of a moment in a target video described by a given query. Although text-based video moment retrieval has been extensively explored [20, 21, 171, 24, 172], it often poses challenges for users attempting to describe specific moments verbally. For example, consider a spectacular bicycle kick in soccer (Fig. 6.1 top). Although an expert can search by naming or describing it in detail, a beginner in soccer may struggle to describe this impressive move accurately. They might say something like “The player kicked the ball while in the air”, which lacks the nuance needed to convey the athleticism and artistry involved. Such a description may lead to poor results for someone searching for similar moments. In contrast, if a soccer trainee shows a short video clip of a bicycle kick, the input is rich and crisp, making it easier for a retriever to locate similar moments in a
A moment is a continuous segment of frames within a target video that best represents the actions, events, or interactions described by the query.
Video Query
Text Query

"A stock man is lifting dumbbells to his sides with controlled motion to target his shoulder muscles, maintaining proper form throughout."
"A man positions himself beneath the ball, leaping into the air, bending his knees and arching his back. As he flips backward, he connects with the ball using his foot."
Vid2Vid Moment Retrieval
Query Video
Frame to
Frame
Alignment

Target Video
Output Segment
Figure 6.1: (Top): Activity where text falls short to explain complex action or events, such as dumbbell side raises and bicycle kick, necessitating the need for a more intuitive query modality for localizing semantically matching moments. (Bottom): Shows the Vid2Vid moment retrieval setting, which is the goal of this work.
target soccer match video. This approach aligns with how users naturally would prefer to search content within the same (video) modality, making it a more effective method for retrieving specific moments. Fig. 6.1 (bottom) shows a video cover drive query in cricket that is localized in a target video.
Therefore, in this chapter, we study video-to-video moment retrieval (Vid2VidMR) where the aim is to temporally localize a moment in the target video with a high semantic match between the moment and the query video. Vid2VidMR, a task formally introduced by Feng et al. [173], has many potential application areas, such as sports video analytics, educational content creation and e-learning, and surveillance systems. This task is challenging and requires semantic frame-level alignment and modeling complex dependencies between query and target videos. This task is further complicated by the immense search space of thousands of frames, making efficient yet accurate processing essential. The need for a semantic understanding of video content and variety in video length, context, and action speed calls for adaptive models capable of generalizing across diverse scenarios. Addressing these challenges demands advanced temporal video modeling techniques.
To address the aforementioned challenges, we propose MATR (Moment Alignment TRansformer) – a method that uses explicit ‘dual-stage sequence alignment’ to capture the required correlation and temporal details essential for accurate moment localization. By conditioning target video representations on query features, MATR produces query-aligned representations that encode the necessary correlations and temporal dependencies between the two videos. We use differentiable dynamic time warping [174, 175] loss for aligning the query and target videos, and represent the target video by conditioning it on the query video to focus on correlated temporal features. These representations guide a classification head to discriminate relevant moments from the irrelevant background and a boundary prediction head to mark the start and end of the identified moment in the target video. Further, to enhance our model's generalization using unlabeled videos, we introduce a self-supervised pre-training strategy which involves training MATR to localize randomly sampled clips within the same video, enabling it to learn the moment localization skill in a self-supervised manner.
We evaluate MATR on public ActivityNet-VRL [173] benchmark and on our newly introduced dataset on the sports domain, viz. SportsMoments, covering two of the most popular sports, namely soccer and cricket. The proposed dataset SportsMoments contains complex video queries that are hard to describe in text, as shown in Fig. 6.1. Also, SportsMoments provides a challenging large-scale benchmark to provide a comprehensive study on vid-to-vid moment retrieval task. Our approach achieves significant performance gains, with an improvement of 15.4% and 11.4% in R@1 and mIoU, respectively, on ActivityNet-VRL outperforming the state-of-the-art methods. Furthermore, MATR outperforms the implemented strong baselines on our proposed data set with 16.4% gains in R@1 and 16.3% gains in mIoU, all on an absolute scale.
Our contributions are as follows: (i) We introduce MATR, which uses explicit dual-stage sequence alignment within a transformer framework between target and query video to capture temporal correlations and dependencies for accurate moment localization. (ii) We propose a self-supervised pre-training objective that enhances model initialization by understanding rich video structure without requiring any labeled data. (iii) We conduct extensive experiments and ablations to study the efficacy of our framework against competitive baselines and state-of-the-art methods. Our findings offer valuable insights into our design choices, and our approach advances the state-of-the-art on Vid2VidMR.
6.2 RELATED WORK
6.2.1 VIDEO MOMENT RETRIEVAL (VMR)
VMR has recently gained significant interest in the research community [176, 177, 178, 20, 21, 24, 172, 171, 179, 180, 181, 182, 183]. Unlike video action understanding tasks such as action classification [184, 185, 186, 187, 165, 188, 189, 190] or temporal action localization [191, 192, 193], VMR focuses on identifying segments that semantically align with a broader range of queries, which may describe complex and context-specific moments. This focus on semantic alignment rather than predefined action categories enables VMR to address more flexible and nuanced video understanding scenarios, ranging from identifying specific events to capturing abstract concepts in videos. The complexity of VMR stems from the need to understand both the query's semantics and the temporal dynamics within target videos, requiring sophisticated cross-modal reasoning capabilities. Based on the query modality, existing VMR methods can be broadly grouped into (i) textual query-based approaches like Moment-DETR [20], QD-DETR [21], UniVTG [24], and (ii) video query-based approaches like GDP [23], FFI+SRM [22], SRL [25]. While text-based VMR has seen extensive research attention due to the relative simplicity of handling textual queries, video query-based approaches remain less explored despite their practical importance in applications like video surveillance, sports analytics, and content recommendation systems. Our work falls under video query-based VMR (Vid2VidMR). However, in addition to developing a new approach tailored for video query, we also adapt several text-query-based methods to make them suitable for Vid2VidMR and compare our method against both text and video query-based methods.
6.2.2 ALIGNMENT IN VIDEOS
Alignment has been a thrust area in the video understanding community. It has been applied to a wide range of video understanding tasks, including video retrieval [194], procedural steps alignment [175], action recognition [195], anomaly detection [196], movie understanding [197], and video synchronization [198, 199]. These alignment approaches vary in their formulation, ranging from classical dynamic programming methods like Dynamic Time Warping (DTW) to more recent neural network-based techniques that learn alignment patterns from data. The effectiveness of alignment methods is particularly evident in tasks requiring the establishment of temporal correspondence between different sequences or modalities. Researchers have also explored sequence alignment for the text-VMR task, e.g., Chowdhury et al. [200] used sequence alignment between CNN representation of frames and GRU representation of text query to perform text-VMR. Their approach demonstrated that even simple alignment techniques could improve localization performance by establishing correspondences between textual descriptions and visual content. Jung et al. [201] used alignment to enhance semantic understanding between query and target video at the abstract level for the text-VMR task. However, their alignment is not at the sequence level. Despite these advances, most existing works utilize alignment in a single stage of their pipelines, limiting their ability to capture both low-level visual similarities and high-level semantic relationships simultaneously. Compared to the existing literature, MATR goes beyond traditional sequence alignment by introducing a dual-stage alignment mechanism, leveraging transformer-based feature fusion, and maintaining flexibility with multiple alignment strategies. These innovations enable it to achieve more accurate and context-aware video moment retrieval compared to existing approaches.
6.2.3 VIDEO ENCODER PRE-TRAINING
Recent works [36, 202] have shown that pre-training on web-scale datasets can be highly effective for various downstream tasks in natural language processing as well as computer vision. The ability to transfer knowledge from large-scale datasets to specific tasks has become a cornerstone of modern deep learning approaches. The video representation learning community has also leveraged self-supervised pre-training techniques designed for training effective encoders [203, 204, 205, 15, 206, 207, 129], which can be finetuned for enhanced performance on downstream tasks. Unlike image-based pre-training, video pre-training must capture both spatial and temporal dynamics, making it particularly challenging yet rewarding when successful. These approaches have exploited temporal coherence and visual consistency in videos to learn meaningful features. For example, studies like [129, 15] explored the random spatio-temporal trajectory detection (constructed with a sequence of random patches) for object detection.
Inspired by these methods, which harness task-specific pre-training objectives for various video analytics tasks, we propose a novel self-supervised pre-training objective specially designed for the video-to-video moment retrieval task.
6.3 BACKGROUND: DYNAMIC TIME WARPING
Dynamic Time Warping (DTW) [208] is a widely used method for aligning and comparing two sequences, such as time series, that may vary in length or exhibit local accelerations and decelerations. Unlike the Euclidean distance, which requires sequences to be of the same length and aligned in time, DTW is robust to temporal shifts and distortions, making it a popular choice in speech, gesture, and time-series analysis [209].
Let and denote two sequences of possibly different lengths and , where is the feature dimension. The pairwise dissimilarity between sequence elements is encoded in a cost matrix , with entries for a chosen distance function (e.g., squared Euclidean).
An alignment between X and Y is represented by a binary matrix , where indicates that is matched to . The set of all valid alignments, , enforces monotonicity and continuity constraints so that alignments are contiguous and order-preserving.
DTW computes the minimum total alignment cost over all valid alignments:
where is the Frobenius inner product. This optimization can be efficiently solved by dynamic programming in time and space.
Limitations DTW's flexibility enables robust sequence comparison and alignment, even when sequences are stretched or compressed in time. However, a key limitation of DTW is that it is not differentiable with respect to its inputs, as the minimum over alignments introduces discontinuities. This non-differentiability makes DTW unsuitable as a loss function in gradient-based learning frameworks.
Soft-DTW Differentiable Relaxation To address this, soft-DTW [209] replaces the hard minimum in DTW with a differentiable soft-minimum (log-sum-exp) operator, parameterized by a smoothing parameter . The soft-minimum operator is defined as:
The soft-DTW cost is then given by:
As , soft-DTW recovers the original DTW; for , it aggregates the costs of all possible alignments, weighting them exponentially by their cost. This smoothing ensures that soft-DTW is differentiable everywhere with respect to its inputs, enabling its use as a loss function for end-to-end training of models that output sequences.
6.4 THE MATR MODEL
Our objective is to temporally localize a moment in a target video using a query video . We represent the target and query videos as sequences of and uniformly sampled frames, respectively. We refer to this problem as Vid2VidMR. In this work, we present Moment Alignment TRansformer (MATR) – a transformer-based architecture that leverages explicit alignment for precise moment localization. MATR transforms the target video into a query-aligned representation via a transformer framework to exploit finer-level correlation and dependencies for precise moment localization.
6.4.1 MOTIVATION BEHIND MATR ARCHITECTURE
Video moments vary significantly in duration, motion patterns, and visual appearance, making their retrieval inherently challenging. Additionally, preserving the correct temporal order of events is crucial for accurate localization, as moments often involve complex interactions that unfold over time. A robust Vid2VidMR model must, therefore, capture both high-level semantic relationships and fine-grained frame dependencies to ensure precise alignment between the query and target video.
To address these challenges, MATR incorporates an explicit dual-stage sequence alignment strategy within a transformer-based encoder-decoder framework. This strategy enables MATR to learn a query-aligned representation of the target video by combining the abstract representation from the encoder with the refined fine-grained features from the decoder. In doing so, it facilitates precise moment localization by leveraging both global semantic alignment and fine-grained temporal dependencies between the query and target videos. Fig. 6.2 illustrates the overall architecture of MATR, which we discuss in detail in the following.
6.4.2 ARCHITECTURE DETAILS
Input Representation. We uniformly sample frames every 2 seconds to obtain M and N frames from the target and query videos, respectively. We encode these frames using a frozen CLIP [50] (ViT-B/32) encoder along with a linear projection module. CLIP is applied separately to both videos to obtain target video embeddings and query video embeddings . The linear projection module is a two-layer perceptron, each with layer normalization and dropout. It maps 512-dimensional CLIP embeddings to d-dimensional outputs. The resulting projected features ( and ) are concatenated along the sequence length dimension to form the input to the transformer encoder, denoted as .

Figure 6.2: Moment Alignment TRansformer (MATR) Architecture. We represent the target video as a query-aligned representation capturing the required correlation and dependencies with query video at the abstract level (output of encoder) and finer level (output of decoder). These features are used to extract foreground target frames, as well as localize the relevant moment in terms of start and end times via two prediction heads. The alignment is computed using representations both before and after the encoder (shown using blue dotted and red dashed lines, respectively). [Best viewed in color].
Encoder. The combined target and query video representation ( ) is processed through a series of standard Transformer [28] encoder layers, each comprising a multi-head self-attention mechanism and a feed-forward network. Further, following the prior works [10, 210, 211], fixed positional encodings are added to the input of each attention layer to preserve temporal order. The encoder generates a fused representation of the target video conditioned on the query video. Here and represent the target and query parts respectively.
Dual-stage Sequence Alignment. The transformer encoder computes effective features by performing a joint understanding (or fusion) of target and query video frames. The final goal of Vid2VidMR is to localize a moment in the target video that semantically matches the content of the query video. In other words, we would prefer the features of the moment in the target to align strongly with the features of the query video. Therefore, we perform dual-stage sequence alignment, i.e., before and after the encoder. In our model, we incorporate several alignment techniques—including soft-DTW [209], TCC [196], DropDTW [175], and OTAM [212], etc. to enable robust temporal matching between query and target videos. While our framework supports all these methods, we describe the alignment process here using soft-DTW for clarity.
Pre-fusion alignment: Before encoder fusion, given the target and query video feature sequences, and , soft-DTW outputs a binary alignment matrix and an alignment cost matrix . is an alignment matrix such that:
further, soft-DTW finds the optimal alignment by minimizing the pre-fusion alignment loss , defined as:
such that aligned frames in the target are contiguous. Here is a smoothing factor for soft-min operator. The value of in Soft-DTW is selected empirically to balance smoothness and alignment fidelity. Note that is the alignment cost matrix with elements defined by cosine similarity:
Pre-fusion alignment enhances the semantic representation of target and query video. These enhanced representations are further processed by the encoder. The encoder outputs the fused representation of the target and query.
Post-fusion alignment: Given the post-fusion target and query video feature sequences, and , soft-DTW outputs a binary alignment matrix and an alignment cost matrix , soft-DTW achieves optimal alignment between and by minimizing the post-fusion alignment loss , defined as:
Post-fusion alignment refines target video features by leveraging fused query-target representations, ensuring fine-grained semantic matching for precise moment localization.
Decoder. The decoder in MATR further refines the target video representation by processing aligned query-target features, enabling fine-grained temporal matching and enhancing frame-level precision for accurate moment localization. To this end, the post-fusion alignment matrix defines a contiguous sub-sequence which aligns best with the query video. These aligned target features, capturing query-aligned fine-grained information, are passed as input to the decoder for further refinement. The decoder consists of Transformer layers, each containing a multi-head self-attention layer, a multi-head cross-attention layer, and a feed-forward network. The input to the decoder comprises fixed size learnable query vectors denoted by . These queries guide the extraction of refined features relevant to moment localization. As these queries are processed through each decoder layer, they are refined to capture intricate temporal dependencies, with positional encodings applied at each attention layer. The cross-attention layers enable interaction between from the encoder (which serve as keys and values) and representations of moment queries (which serve as queries). The final decoder output, , provides a refined fine-grained set of target video features conditioned on the query video.
Finally, the encoder and decoder representations are combined as , making the final target video representation query-aligned. The final query-aligned representation, combining the abstract and fine-grained semantics, serves as input for the prediction heads.
Prediction Heads. The prediction heads consist of three sequential convolutional layers each having kernels followed by a ReLU activation. Finally, a sigmoid activation function is applied to produce the foreground predictions . The model is trained using the following binary cross-entropy loss to distinguish foreground (relevant moment) from background predictions:
where is the ground truth label, with and indicating foreground and background, respectively.
In addition to foreground classification, the boundary prediction head is designed to estimate the start and end boundaries for the moment at every position. This head shares the same initial structure as the classification head but differs in the final output, producing two channels for left and right boundary offsets relative to the current position. Specifically, given , the boundary prediction head outputs predicted offsets for each position , where and represent the left and right boundary offsets, respectively. The boundary prediction head is trained with a combination of smooth L1 and generalized intersection over union (IoU) loss [213], specifically applied to foreground positions ( ), defined as:
Here, denotes the ground truth offset. The parameters and weigh the contributions of the smooth L1 and IoU losses, ensuring that boundary localization focuses on the predictions identified as foreground.
Convolutional layers operate along the temporal axis over the concatenated encoder query-conditioned and decoder-aligned target features. This preserves temporal continuity, enabling fine-grained predictions without boundary artifacts.
Overall Loss. The overall loss function is computed as a combination of multiple objectives, accounting for alignment costs (pre- and post-fusion alignment), foreground/background classification, and boundary localization. For S training samples, this multi-objective overall loss is defined as:
where the s control the importance of each component.
Inference. During inference, given a target video and a query video , we pass both through the model to generate foreground probabilities and boundary predictions using the two prediction heads. To handle the densely generated boundaries, while predicting , we apply 1-dimensional non-maximal suppression with a threshold of 0.7, filtering out highly overlapping boundaries and producing the final set of predictions. We choose corresponding to position with highest .
6.4.3 SELF-SUPERVISED PRE-TRAINING STRATEGY
The video representation learning community has leveraged self-supervised pre-training techniques designed for training effective encoders [203, 204, 205, 15, 206, 207, 129], which can be finetuned for enhanced performance on downstream tasks. In this work, we introduce a self-supervised pre-training objective designed to improve temporal localization capabilities.

Figure 6.3: Proposed self-supervised pre-training strategy: Given a target video, a query clip is randomly sampled from it and processed by the model. The model then predicts the boundaries of the selected clip within the target video, highlighting the corresponding frames with a green border. (Best viewed in color)
without relying on labeled data. Specifically, given a target video , a query clip is randomly sampled from as shown in Fig. 6.3. The model is then trained to localize this query clip in . This pre-training objective closely aligns with the task of Vid2VidMR. To enhance generalization capabilities and encourage the model to become robust to variations in both appearance and timing, we apply one of the following random augmentations to each of the query clips: reversing frames, adding gaussian noise, slowing down or speeding up the action, thereby doubling the number of pre-training samples. These augmentations introduce temporal and spatial variations, enabling the model to learn diverse representations.
The overall pre-training loss, , combines the foreground-background classification loss, the boundary prediction loss, pre-fusion and post-fusion alignment costs. The total loss is averaged over P pre-training samples as:
where the s control the importance of each component.
6.5 DATASETS
We use the following two datasets to compare our proposed approach with existing Vid2VidMR methods and other strong baselines:
6.5.1 ACTIVITYNET-VRL DATASET [173]
ActivityNet-VRL is the popular benchmark dataset shared by Feng et al. [173], based on the ActivityNet video understanding benchmark [214] consisting of 200 action classes. The dataset is split into 160 disjoint classes for training and 20 classes each for the validation and test splits. Furthermore, the training set comprises 463K query-target video pairs, while the validation set and the test set have 829 and 978 query-target video pairs, respectively. As shown in Table 6.1,
| Dataset | Split | # Pairs | # Classes |
|---|---|---|---|
| SportsMoments | Train | 750,393 | 16 |
| Val | 10,000 | 4 | |
| Test | 10,000 | 9 | |
| ActivityNet-VRL [173] | Train | 462,872 | 160 |
| Val | 829 | 20 | |
| Test | 978 | 20 |
Table 6.1: Statistical Comparison Between ActivityNet-VRL and the Proposed SportsMoments Dataset. While ActivityNet-VRL contains greater class diversity (160 training classes), SportsMoments offers substantially larger validation and test sets (10,000 pairs each versus 829/978), enabling more comprehensive evaluation of model generalization capabilities.
this class-disjoint split ensures that models are evaluated on unseen activity categories, providing a rigorous test of generalization capabilities. The temporal characteristics of ActivityNet-VRL are detailed in Table 6.2, revealing that target videos have an average duration of 38.2 seconds (median 29.3 seconds), with substantial variation ranging from very short clips (1.3 seconds) to longer recordings (191.5 seconds). Query videos are significantly shorter, averaging just 8.2 seconds (median 7.2 seconds), with lengths varying from 0.5 to 57.2 seconds. This substantial difference between query and target video durations highlights the challenging nature of the temporal localization task, where models must identify short actions within much longer contexts. The extensive training set, combined with diverse activity categories and varying video lengths, makes ActivityNet-VRL a comprehensive benchmark for evaluating the generalization capabilities of Vid2VidMR models across different types of human activities.
6.5.2 OUR PROPOSED SPORTSMOMENTS DATASET
One of the most promising applications for Vid2VidMR lies in the area of sports analytics. Although there exist large-scale sports datasets such as Sports-1M [215], they are primarily tailored for broader sports video classification tasks and do not contain fine-grained sports actions and moments, such as "Cover Drive," "Ducking a Bouncer," "Goal Kick," or "Penalty." Secondly, although ActivityNet-VRL covers a wide range of action categories (including sports actions), it only encompasses broader categories such as "Playing Polo" and does not focus on capturing higher-granularity events within a sport. Towards filling this gap, we introduce the SportsMoments dataset, which consists of ~770K query-target pairs annotated from 176.6 hours of complete match footage of two of the most popular sports, viz. soccer and cricket. We obtain a total of 80 full-length cricket and soccer match videos from YouTube. We then curate a list of 29 action classes comprising 13 soccer and 16 cricket actions, respectively. Given this list, we employed two annotators, each with strong knowledge of these sports, to mark the start and end timestamps for the specified actions in the videos. We split SportsMoments into training, validation, and test sets. The training split consists of approximately 750K pairs spanning 16 classes, while the validation and test splits each contain 10K pairs, covering 4 and 9 classes, respectively. Action classes are disjoint across the train, validation, and test sets, ensuring no overlap. Additionally, each split includes cricket and soccer actions for a well-rounded distribution. The statistics of the dataset are provided in Tables 6.1 and 6.2.
Additionally, we leverage the unlabeled videos from the Kinetics700 [165] dataset for pre-training.
| Dataset | Type | Mean | Median | Max. | Min. |
|---|---|---|---|---|---|
| SportsMoment | Target Video | 98.3 | 98.2 | 208.8 | 35.4 |
| Query Video | 6.0 | 5.0 | 66.0 | 1.0 | |
| ActivityNet-VRL | Target Video | 38.2 | 29.3 | 191.5 | 1.3 |
| Query Video | 8.2 | 7.2 | 57.2 | 0.5 |
Table 6.2: Temporal Characteristics of Videos in SportsMoments and ActivityNet-VRL Datasets. SportsMoment contains significantly longer target videos (98.3s mean vs 38.2s) while maintaining shorter query segments (6.0s vs 8.2s).

Figure 6.4: We visualize the distribution of a) target video durations and b) query video durations in our proposed dataset, SportsMoments.
SPORTSMOMENTS DATASET CURATION
The construction of query and target videos follows a systematic process. Each annotated segment in the dataset serves as a potential query video associated with its corresponding action class. To create a target video, the annotated segment is offset by a duration ranging between 30 to 60 seconds on either side, i.e., both towards the start and end of the segment. Additionally, a scaling factor of of the annotated segment's duration is applied to this offset to account for variability in segment lengths.
During the annotation phase, to maintain data quality, we ensured that immediately overlapping segments (representing the same action occurring within 2 seconds) are merged into a single segment. Furthermore, since the dataset uses full-length matches for annotation, the number of overlapping segments across different classes is negligible, ensuring that the dataset remains clean and avoids ambiguities.
Annotation verification and agreement. Each annotator's work was independently reviewed by the other, and any segment on which the two disagreed was removed rather than adjudicated, so the released dataset contains only mutually confirmed annotations. Of the candidate segments produced in the first pass, of cricket segments and of soccer segments were confirmed. The disagreements are highly structured. In cricket, classes defined by outcome, such as Four, Six, Bowled and LBW, reach agreement, whereas classes defined by batting technique, such as Sweep Shot, Yorker and Cover Drive, reach only ; almost all disagreement falls in the latter group. Outcomes are unambiguously signalled in broadcast footage through the scoreboard or the umpire signal, whereas technique classes require discriminating visually
Video Action Classes

Action Classes
Figure 6.5: Frequency distribution of action classes in the SportsMoments dataset. The dataset comprises a wide range of actions across the two sports, including frequent activities such as "header," "four," and "throw," as well as less common ones like "red card" and "uppercut." The figure highlights the variation in class occurrences, reflecting the diversity and imbalance in real-world sports scenarios.
similar strokes. This is precisely the fine-grained difficulty the dataset is intended to capture, and it also locates where any residual label noise is concentrated. The higher soccer rate is consistent with this explanation, since the soccer taxonomy is largely outcome-defined. We note that, because the second annotator marked candidates as correct or incorrect rather than supplying an independent label, the figures above are verification statistics rather than a chance-corrected agreement coefficient such as Cohen's .
Guarding against query-target leakage. A query and its target are always drawn from different source videos, so a target never contains the query segment itself and retrieval cannot be solved by locating a copy of the query. In addition, the action classes in the train, validation and test splits are disjoint, so no class seen during training appears at test time. Together these two constraints ensure that the reported performance reflects generalisation to unseen actions rather than memorisation of specific footage.
Each pair in the dataset consists of a short clip acting as a query video coupled with a longer target video belonging to the same action class. For the creation of training pairs, we adopt a strategy similar to that used in [173]. A query video can be paired with all target videos of the same class. Unlike [173], which generates such exhaustive pairings on the fly, we precompute and store all possible pairs during the dataset creation process.
For the test and validation splits, we curate a fixed set of 10,000 pairs for each split. These splits are designed to ensure fair representation of all classes, thereby enabling balanced evaluation across the dataset.
Compared to SportsMoments, ActivityNet-VRL has a greater variety of classes in the training split, which supports more diverse class coverage. However, SportsMoments has significantly more pairs overall in the validation and test splits, which provide a broader evaluation framework for our tasks. The target videos in SportsMoments benchmark range from a minimum of 35.4 seconds to an upper bound of 208.8 seconds with the mean and median lengths being 98.3 and 98.2 seconds respectively. The query video is constrained to be at least 1 second in duration as we believe this to be the minimum duration in which an action/event can be depicted coherently. Maximum length of a query video in our proposed dataset is 66 seconds consisting of overlapping scenes of the same action including replays from different perspectives. Mean and Median of the query videos are 6.0 seconds and 5.0 seconds, respectively. For ActivityNet-VRL, the training split has 462,872 pairs covering 160 classes, while the validation and test splits have 829 and 978 pairs, respectively, each covering 20 classes.
We collected 64 cricket and 16 soccer full length matches collectively spanning 176.6 hours. We were able to extract 4999 segments from all the matches, with the average length of each segment being 6.0 seconds. Out of these 4999 segments 2925 fall under cricket and 2074 belong to soccer. Each segment is annotated with its start and end timestamp. The number of segments per-class is shown in Figure 6.5. Table 6.1 shows a comparison between the proposed SportsMoments and the repurposed ActivityNet [173].
| 4a5Oou5u3io | GrIOmtbyHNc | 5j2tQfj2Osk | mo3H_qusvxI | RpmSeHG8SJ0 | cpU0GSxliSU |
|---|---|---|---|---|---|
| EOvpUWZC6ng | Txq8RoclyKM | -vYVBUyEuAA | IvjBlpb8GTA | ukuNIWxcR2k | LmqBbPwCy8o |
| zuPuDzEWI-A | OFbyNU6UQQs | iPXz5XWfj1k | IA5BNsNu6fw | 9sRb61qsoLs | X0we8220k74 |
| MbdWVX2jUhA | 04vWaGaqw-4 | 92s9HCGG4vQ | BMXfphiHj1s | 1yHWGw8DH4A | shyBGceNASI |
| YqKYpgZ9FWU | GxO1tlZKa8E | qElsVosGiXA | zUTUA0TKvfQ | G4vxbWF79f4 | v9Akttif8gY |
| Mtnmvuhs2RA | 3K90O0Y9NZc | 9gyv2xh7qQw | 1-SCubr2yc4 | ezQUPi74IIQ | cTqY53zWypk |
| qQfuOCns4P4 | iGGEIV40TcU | X6VNTk-Vl5w | iFYm_ogzmdA | 6j1Oj5N7kwE | WkEvdVImkec |
| wTN82hUkhWk | rpPCjyVfQOo | L7olqH38dzw | farmGHpVCEk | S825iLaZQhg | T-c3B0lJjvE |
| ku0Y8TA8L44 | bSRB7ysDRQw | 90yyJvfbwAs | 9oRmmeKJ6WM | 6f9v2z5HYX4 | eeaHNmIuP3c |
| 5OGkvFUl3G8 | ePmiyHWxMDk | CuEC8Twrcgo | nc9nA8fG87Q | 9dy7kpALSAE | EedISWx_fCo |
| 9lz5VV-8XEc | qEgOfHT_MnI | snM7xGdWHSc | Us_6Nzj3Fic | H7q7q1IwEY4 | xYbklmu4ZsE |
| stWSFacouPM | RRk3S82oH9M | XJgOiFkOgzo | RKP_Mg4piUA | 2rLijqEM3Nw | rfl6elqYCKA |
| cdkiRWd15RA | FXF7c2LyGDo | hUBLgzSEaS4 | X9ny1p0D61I | qWlfNQRd0uY | tDeoIdYvh6g |
| W_j6PHiin_0 | fWCU_oJyD38 |
Table 6.3: YouTube IDs used for SportsMoments dataset creation. We used 80 videos for dataset curation.
YOUTUBE IDS USED IN SPORTSMOMENTS
We also release the YouTube IDs of videos used in our dataset, 80 in total as shown in Table 6.3. For cricket, we have a total of 64 videos, 26 of which are full length twenty over games, 9 are fifty over games, 26 of which are highlights of different matches, one of which is a part of a full length match and 3 videos are that of a single day Test-match innings. The remaining 16 matches are that of full length football matches from various leagues.
6.6 EXPERIMENTS AND RESULTS
6.6.1 BASELINES
We experiment with an extensive set of strong baselines grouped into four categories as follows.
FULLY-SUPERVISED VID2VIDMR METHODS
We compare with Vid2VidMR methods like CGBM [173], GDP [23], SRL [25], FFI+SRM [22], SST [216] and Video-level match [173]. These approaches represent traditional fully-supervised methods that have been specifically designed for video-to-video moment retrieval tasks. Many of these methods rely on sophisticated attention mechanisms to establish correspondences between query and target video features, but they often lack the explicit alignment strategies that our approach incorporates. Their performance varies significantly based on the feature extraction backbones and matching strategies employed, with more recent methods generally achieving better results through improved feature representation learning. Further, Huo et al. [22] adapt text-VMR methods like VSLNet [217], MABAN [218] and 2D-TAN [219] by replacing their text encoders with a C3D [187] feature extractor to extract query video features. This adaptation enables text-based methods to process video queries, providing a more direct comparison with our approach. While these adaptations demonstrate reasonable performance, they often struggle with effectively modeling the temporal dynamics present in video queries, as they were originally designed for a different modality of text. This highlights the need for approaches like ours that are specifically engineered to handle the unique challenges of video-to-video correspondence. All of these models have been trained on ActivityNet-VRL.
VISION-LANGUAGE MODELS (VLMS)
VLMs like Video-LLaMa [220], Video-LLaVa [221], and TimeChat [222] have shown promising results for multimodal text-video tasks like Video VQA, captioning, etc. These foundation models leverage large-scale pre-training on diverse multimodal datasets to develop general representations that can be applied to various downstream tasks with minimal adaptation. Their ability to understand complex semantic concepts across modalities makes them attractive candidates for video understanding tasks. Despite their impressive performance on various video understanding tasks, these models face inherent limitations when applied to video-to-video retrieval. The primary challenge stems from their architectural design, which is optimized for text-video interactions rather than video-video comparisons that require fine-grained temporal alignment capabilities. Unfortunately, they have not been pre-trained with video to video aligned data. This lack of video to video pretraining significantly impacts their ability to perform well on our task without substantial modification. To this end, we first represent the query video using a state-of-the-art captioner, i.e., mPLUG-OWL [223]. This conversion from video to text enables these text-centric models to process video queries indirectly. However, this approach inevitably loses some of the rich temporal and visual information present in the original query video, potentially limiting performance on tasks that require precise temporal alignment. Next, the VLMs are zero-shot prompted to generate start and end moment timestamps given the query caption and target video tokens.
TEXT-VMR METHODS
Moment-DETR [20], QD-DETR [21], CG-DETR [171], BM-DETR [201] and UniVTG [24] have been originally proposed for text-VMR. These methods represent the current state-of-the-art approaches for textual moment retrieval and serve as strong baselines when adapted to video queries. Each of these approaches employs a different architectural design, with more recent methods like UniVTG leveraging unified vision-text encoders for improved cross-modal understanding, while earlier methods like Moment-DETR primarily rely on transformer-based encoders with cross-attention mechanisms. We compare with five variants of these methods. The zero-shot variant (a) uses caption from mPLUG-OWL [223] to represent the query video, and leverages the pretrained checkpoints. This approach tests how well existing models can transfer to our task without any task-specific training. Variants (b) and (c) both use a caption from mPLUG-OWL [223] to represent the query video, but train a randomly initialized checkpoint (variant b) or finetune the pre-trained checkpoint (variant c), respectively. These variants evaluate whether task-specific training improves performance when using text representations of video queries. Though textual representations capture semantic content, they inevitably lose important visual and temporal nuances present in the original query videos, potentially limiting the upper bound on performance for these text-based variants. Variants (d) and (e) are equivalent to (b) and (c), where their CLIP text encoder is replaced by CLIP ViT/B-32 vision encoder, and therefore take the query video directly as input along with the target video. These latter variants provide the most direct comparison to our approach as they process video queries without converting to text intermediaries.
IMAGE-VMR METHODS
Our work focuses on video moment retrieval using ‘video’ queries. As a single image query may not effectively capture the temporal aspects of a video query, this comparison may not be appropriate. The fundamental limitation here is that static images lack the ability to represent dynamic actions and temporal evolution that characterize video content. This limitation becomes particularly evident in scenarios involving complex activities with significant motion patterns or when distinguishing between visually similar actions that differ primarily in their temporal execution. However, we still design baselines by representing the video by its key-frame (more precisely, the middle frame) using Text-VMR methods, namely Moment-DETR, QD-DETR, and UniVTG. This simplified representation allows us to quantify the value of temporal information in query videos compared to static image representations.
6.6.2 IMPLEMENTATION DETAILS
We choose a hidden dimension of 1024 with k = 4 layers in both encoders and apply a dropout rate of 0.1 and 0.5 within the transformer and linear projection layers, respectively. Model weights are initialized using Xavier initialization [224]. To optimize the model parameters, we
| Methods | Variants | Query Modality | ActivityNet-VRL [214] | SportsMoments | |||
|---|---|---|---|---|---|---|---|
| mIoU | R@1 | mIoU | R@1 | ||||
| Fully-supervised | Random | - | Video | 7.3 | 16.2 | - | - |
| Video Match | - | Video | 12.4 | 24.3 | - | - | |
| SST | - | Video | 17.1 | 33.2 | - | - | |
| CGBM | - | Video | 25.7 | 43.5 | - | - | |
| GDP | - | Video | 27.8 | 44.0 | - | - | |
| SRL | - | Video | 40.6 | 29.3 | - | - | |
| 2D-TAN | - | Video | 45.3 | 39.6 | - | - | |
| MABAN | - | Video | 42.8 | 37.5 | - | - | |
| VSLNet | - | Video | 27.2 | 43.8 | - | - | |
| FFI+SRM | - | Video | 48.7 | 40.6 | - | - | |
| VLMs | Video-LLaVA | - | Video | 15.1 | 14.7 | 13.8 | 11.9 |
| Video-LLaMA | - | Video | 14.7 | 13.9 | 12.5 | 11.2 | |
| Video-LLaMA2 | - | Video | 17.6 | 15.2 | 14.7 | 13.4 | |
| TimeChat | - | Video | 26.4 | 23.8 | 22.6 | 21.3 | |
| I-VMR | Moment-DETR | - | Image | 35.6 | 32.5 | 25.2 | 18.5 |
| QD-DETR | - | Image | 37.2 | 38.1 | 27.7 | 20.7 | |
| UniVTG | - | Image | 38.8 | 42.0 | 34.6 | 37.2 | |
| Text-VMR | Moment-DETR | (a) Zero-shot | Text | 28.2 | 22.8 | 3.7 | 0.9 |
| (b) Trained | Text | 37.1 | 35.8 | 31.4 | 29.2 | ||
| (c) Finetuned | Text | 40.0 | 38.9 | 35.8 | 34.0 | ||
| (d) Trained | Video | 35.9 | 34.7 | 28.7 | 24.2 | ||
| (e) Finetuned | Video | 40.0 | 39.9 | 30.4 | 25.1 | ||
| QD-DETR | (a) Zero-shot | Text | 25.4 | 22.2 | 6.3 | 2.6 | |
| (b) Trained | Text | 38.4 | 39.0 | 29.8 | 27.2 | ||
| (c) Finetuned | Text | 41.6 | 45.2 | 36.0 | 33.5 | ||
| (d) Trained | Video | 39.7 | 41.0 | 27.2 | 25.1 | ||
| (e) Finetuned | Video | 42.5 | 42.7 | 35.4 | 30.6 | ||
| UniVTG | (a) Zero-shot | Text | 32.4 | 26.7 | 11.4 | 6.0 | |
| (b) Trained | Text | 43.8 | 45.6 | 41.5 | 36.5 | ||
| (c) Finetuned | Text | 45.8 | 46.4 | 44.8 | 39.2 | ||
| (d) Trained | Video | 48.4 | 49.8 | 43.2 | 39.5 | ||
| (e) Finetuned | Video | 49.1 | 50.7 | 43.6 | 41.8 | ||
| CG-DETR | (a) Zero-shot | Text | 25.9 | 21.9 | 3.3 | 1.6 | |
| (b) Trained | Text | 39.4 | 38.4 | 35.1 | 31.3 | ||
| (c) Finetuned | Text | 41.0 | 43.2 | 35.4 | 32.5 | ||
| (d) Trained | Video | 40.0 | 41.7 | 36.6 | 35.1 | ||
| (e) Finetuned | Video | 40.1 | 41.7 | 37.2 | 34.8 | ||
| BM-DETR | (a) Zero-shot | Text | 30.6 | 25.1 | 8.3 | 5.7 | |
| (b) Trained | Text | 44.2 | 46.1 | 42.6 | 38.4 | ||
| (c) Finetuned | Text | 46.1 | 46.7 | 45.2 | 39.6 | ||
| (d) Trained | Video | 50.7 | 53.2 | 45.6 | 44.2 | ||
| (e) Finetuned | Video | 50.9 | 53.7 | 47.6 | 44.9 | ||
| Ours | MATR | Trained (CLIP + soft-DTW) | Text | 49.3 | 50.1 | 48.4 | 47.9 |
| Finetuned (CLIP + soft-DTW) | Text | 49.7 | 50.9 | 49.1 | 48.3 | ||
| Trained (CLIP + soft-DTW) | Video | 53.2 | 54.8 | 56.2 | 52.7 | ||
| Finetuned (CLIP + soft-DTW) | Video | 56.8 | 57.1 | 59.2 | 56.5 | ||
| Trained (CLIP + OTAM) | Video | 57.1 | 57.4 | 61.4 | 57.9 | ||
| Finetuned (CLIP + OTAM) | Video | 58.2 | 58.7 | 62.2 | 58.6 | ||
| Trained (Slow-Fast + soft-DTW) | Video | 54.7 | 55.9 | 58.3 | 55.4 | ||
| Finetuned (Slow-Fast + soft-DTW) | Video | 57.6 | 58.3 | 60.4 | 58.2 | ||
| Trained (Slow-Fast + OTAM) | Video | 58.3 | 57.9 | 62.2 | 59.1 | ||
| Finetuned (Slow-Fast + OTAM) | Video | 60.1 | 59.4 | 63.9 | 61.3 | ||
Table 6.4: Comparing MATR with fully-supervised Vid2VidMR methods, VLMs, image-VMR methods, and variants of Text-VMR methods. Trained implies random initialization. Finetuned implies initialization using a pre-trained (respective to each architecture) checkpoint. Query video can be represented using text captions or as video itself. Since MATR is inherently designed to take video query as input, experimenting with text captions is not needed. For more details of baselines and their variants, please refer to Section 6.6.1. Results for the overall best, best among implemented baselines and previously reported SOTA are highlighted in bold, underline and box, respectively.
| Method | Recall | mAP | |||
|---|---|---|---|---|---|
| R1@0.5 | R1@0.7 | mAP@0.5 | mAP@0.75 | Avg. | |
| Moment-DETR | 53.9 | 34.8 | - | - | 32.2 |
| QD-DETR | 62.7 | 46.7 | 62.2 | 41.8 | 41.2 |
| UniVTG | 59.7 | 45.8 | 61.9 | 41.9 | 38.8 |
| BM-DETR | 63.6 | 46.8 | 63.7 | 43.5 | 44.2 |
| CG-DETR | 67.4 | 52.1 | 65.6 | 45.7 | 44.9 |
| Ours (MATR) | 64.3 | 54.2 | 61.1 | 44.0 | 42.5 |
Table 6.5: Comparative Analysis of MATR versus State-of-the-Art Text-VMR Models on the QVHighlights Dataset. While primarily designed for video queries, our approach demonstrates competitive performance on text queries.
| Pre-Fusion | Post-Fusion | ActivityNet-VRL | SportsMoments | ||
|---|---|---|---|---|---|
| mIoU | R@1 | mIoU | R@1 | ||
| ✕ | ✕ | 49.7 | 50.2 | 49.1 | 46.6 |
| ✕ | ✓ | 52.3 | 52.9 | 53.1 | 48.2 |
| ✓ | ✕ | 50.4 | 51.2 | 52.4 | 46.7 |
| ✓ | ✓ | 53.2 | 54.8 | 56.2 | 52.7 |
Table 6.6: Impact of Pre-Fusion and Post-Fusion Alignment Strategies on MATR Performance. This study is done with CLIP features, soft-DTW alignment and without pre-training.
| Pre-training | Augmentation | ActivityNet-VRL | SportsMoments | ||
|---|---|---|---|---|---|
| mIoU | R@1 | mIoU | R@1 | ||
| ✕ | - | 53.2 | 54.8 | 56.2 | 52.7 |
| ✓ | ✕ | 54.1 | 55.6 | 56.9 | 53.6 |
| ✓ | ✓ | 56.8 | 57.1 | 59.2 | 56.5 |
Table 6.7: Impact of Pre-training and Data Augmentation on MATR Performance Across both Datasets. This study is done with CLIP features and soft-DTW alignment.
utilize the AdamW optimizer [225] with an initial learning rate of 1e-4 and a weight decay of 1e-4. Training was done on two NVIDIA A6000 GPUs. We trained our model for 200 epochs with a batch size of 1200 while using ActivityNet-VRL. For SportsMoments, we used 40 epochs with a batch size of 40. We set the number of learnable queries and all lambda's in both pre-training and finetuning losses to 1.
6.6.3 RESULTS AND DISCUSSION
Table 6.4 shows our main results where we compare MATR with fully-supervised Vid2VidMR methods, VLMs, image-VMR methods, and five variants of each of the Text-VMR methods. As mentioned before, these variants correspond to zero-shot, finetuned, or trained setups. As usual, the trained setup implies random initialization, while the finetuned setup implies initialization using a pre-trained checkpoint (different for each architecture). Query video can be represented using text (T) captions or as the video (V) itself. For MATR, we show results with various video feature extraction backbones and sequence alignment methods. Following previous work, we report the standard mean Intersection over Union (mIoU) and Recall@1 IoU=0.5 metrics.
COMPARISON WITH FULLY-SUPERVISED VID2VIDMR METHODS
For a fair comparison, we directly use the reported results from original papers for fully-supervised methods on ActivityNet-VRL. Consequently, we do not report their results on SportsMoments. As shown in Table 6.4, MATR outperforms the best method, FFI+SRM, with an 11.4% gain in mIoU and achieves a 15.4% improvement in R@1 over GDP, which had the highest recall. These results underscore MATR's superior ability to accurately localize moments using video queries, validating its effectiveness across diverse and challenging benchmarks.
COMPARISON WITH VLMS
Table 6.4 shows that our method MATR outperforms all four VLM-based baselines by a significant margin. This performance gap indicates the limitations of general-purpose vision-language models when applied to specialized temporal tasks without task-specific architectures. In comparison, the best-performing baseline, TimeChat [222], achieves 26.4% mIoU and 23.8% R@1 on ActivityNet-VRL, and 22.6% mIoU and 21.3% R@1 on SportsMoments. The performance difference between TimeChat and our method (33.7% mIoU difference on ActivityNet-VRL and 41.3% mIoU on SportsMoments) highlights the importance of architectures specifically designed for temporal reasoning and alignment. Other methods, such as Video-LLaVA [221], Video-LLaMA [220], and Video-LLaMA2 [226], perform significantly worse. Despite the impressive general capabilities of these models in video understanding tasks, their performance on the fine-grained temporal localization required for moment retrieval remains limited. These results show that task-specific models for Vid2VidMR are significantly better.
COMPARISON WITH TEXT-VMR METHODS
Table 6.4 shows that amongst all the five variants, the finetuned variants are typically better than the trained variants, i.e., variant (c) is better than (b), and (e) is better than (d). On both ActivityNet-VRL and SportsMoments, BM-DETR achieves the best results among variants that use video queries. However, our MATR model outperforms BM-DETR by 9.2% in mIoU and 5.7% in R@1 on ActivityNet-VRL. On SportsMoments, MATR shows a further improvement, surpassing BM-DETR by 16.3% in mIoU and 16.4% in R@1. These gains highlight the superior performance of MATR compared to the text-VMR methods when used with video query input. When text captions are used to represent the query, we observe similar trends as in the video query input case. Among the baselines, BM-DETR performs the best. However, MATR outperforms it by 3.6% in mIoU and 4.2% in R@1 on ActivityNet-VRL. On SportsMoments, MATR achieves 3.9% higher mIoU and 8.7% higher R@1 than BM-DETR. These results demonstrate the superior performance of MATR compared to the text-VMR methods when used with text query input for Vid2VidMR. One surprising finding is that Moment-DETR and QD-DETR perform worse with video queries compared to text queries, even after fine-tuning, especially for SportsMoments. On the other hand, UniVTG and CG-DETR show expected trends, i.e., performance is better with video queries than with text queries for these two models.
COMPARISON WITH IMAGE-VMR
Table 6.4 shows that the best-performing approach, UniVTG [24], achieves a mIoU of 38.8% and 42.0% R@1 on ActivityNet-VRL and 34.6% mIoU and R@1 37.2% on SportsMoments. This performance gap is particularly evident when comparing across different evaluation metrics and datasets, highlighting the inherent limitations of image-based representations for temporal tasks. Although this is comparable to previous fully supervised methods, it still lags significantly behind our MATR. The substantial performance difference (21.3% mIoU and 17.4% R@1 on ActivityNet-VRL, 29.3% mIoU and 24.1% R@1 on SportsMoments) demonstrates that video queries contain crucial motion patterns and temporal context that static images simply cannot capture. This further goes to show the importance of temporal dynamics captured by video queries as compared to static image queries.
COMPARISON ON TEXT-VMR TASK
Experimental results in Table 6.5 demonstrate that our proposed model achieves competitive performance on the Text-VMR task on the QVHighlights dataset, particularly excelling in temporal boundary precision with the highest R1@0.7 score of 54.2%. While CG-DETR maintains superiority in most metrics (R1@0.5, mAP@0.5, mAP@0.75, and average mAP), our approach shows a notable 2.1% improvement over CG-DETR in R1@0.7, suggesting better precision in temporal localization. The trade-off appears to be a slight decrease in mAP metrics compared to CG-DETR, though our model still outperforms earlier approaches like Moment-DETR and competes well with other recent methods.
ADVANTAGE OF DUAL SEQUENCE ALIGNMENT
Table 6.6 shows the impact of different alignment strategies in MATR on both datasets. We evaluate the effect of incorporating alignment at the pre-fusion and post-fusion stages. The pre-fusion alignment helps establish initial cross-modal correspondences, while post-fusion alignment refines these relationships after contextual encoding. Our results indicate that the combined use of both pre-fusion and post-fusion alignment achieves the best performance, suggesting that alignment is important to ensure both before and after the encoder. This dual alignment strategy enables the model to progressively refine cross-modal relationships at multiple levels of abstraction. Models with alignment either before (pre) or after (post) show moderate gains over neither. The incremental improvements demonstrate that each alignment stage contributes uniquely to the model's ability to localize moments. Removing post-fusion alignment hurts more than removing pre-fusion alignment, suggesting that post-fusion alignment is more important. This indicates that alignment after contextual encoding captures more semantically meaningful relationships between modalities. Omitting alignment entirely results in the lowest scores. The significant performance drop (3.5% mIoU on ActivityNet-VRL and 7.1% mIoU on SportsMoments) when removing both alignment stages emphasizes their complementary nature. This highlights the importance of dual alignment for effectively capturing relevant temporal information for video query-based moment localization.
| ActivityNet-VRL | SportsMoments | |||
|---|---|---|---|---|
| mIoU | R@1 | mIoU | R@1 | |
| Pre-fusion alignment (A) | 34.1 | 32.6 | 31.6 | 29.8 |
| Post-fusion alignment (A) | 38.3 | 35.2 | 36.4 | 33.5 |
| Prediction-heads | 56.8 | 57.1 | 59.2 | 56.5 |
Table 6.8: Advantage of predicting using prediction heads on the decoder. This study is done with CLIP features, soft-DTW alignment and with pre-training.
| Alignment | ActivityNet-VRL | SportsMoments | ||
|---|---|---|---|---|
| mIoU | R@1 | mIoU | R@1 | |
| None | 50.4 | 51.8 | 52.1 | 48.6 |
| TCC [196] | 52.4 | 52.7 | 53.9 | 52.8 |
| Needleman-Wunsch [227] | 50.8 | 51.2 | 52.6 | 49.5 |
| LCSS [228] | 50.9 | 52.6 | 53.7 | 49.6 |
| Drop-DTW [175] | 54.2 | 54.7 | 55.6 | 54.7 |
| Soft-DTW [209] | 56.8 | 57.1 | 59.2 | 56.5 |
| OTAM [212] | 58.2 | 58.7 | 62.2 | 58.6 |
Table 6.9: Performance Comparison of Sequence Alignment Methods. This comparison is done with CLIP features.
| Feature | ActivityNet-VRL | SportsMoments | ||
|---|---|---|---|---|
| mIoU | R@1 | mIoU | R@1 | |
| ResNet [74] | 42.3 | 42.8 | 50.6 | 48.1 |
| I3D [165] | 43.7 | 43.4 | 52.2 | 50.6 |
| S3D [188] | 46.2 | 47.5 | 53.9 | 52.1 |
| C(2+1)D [229] | 46.6 | 47.1 | 53.3 | 50.9 |
| CLIP [50] | 53.2 | 54.8 | 56.2 | 52.7 |
| Slow-Fast [189] | 54.7 | 55.9 | 58.3 | 55.4 |
| CLIP [50] + Slow-Fast [189] | 52.5 | 53.4 | 52.6 | 51.4 |
Table 6.10: Comparison of Video Feature Extraction Backbones. Slow-Fast networks achieve superior performance across both datasets. This study was done with soft-DTW alignment and without pretraining.
EFFECT OF PRE-TRAINING
We analyze the impact of pre-training and data augmentation on model performance in Table 6.7. On ActivityNet-VRL, without pre-training, the model achieves 53.2% mIoU and 54.8% R@1. Adding pre-training without augmentation yields 54.1% mIoU and 55.6% R@1, demonstrating the benefit of leveraging large-scale video-text datasets prior to task-specific fine-tuning. The best results are obtained by using pre-training with augmentation, leading to a significant boost to 56.8 mIoU and 57.1% R@1, a 3.6% improvement in mIoU over the baseline. Similar trends are observed on the SportsMoments dataset, where the full configuration achieves 59.2% mIoU and 56.5% R@1, confirming the generalizability of our approach across different datasets. During augmentation for each sampled clip, one of the following transformations is applied: reversing frames, adding Gaussian noise, slowing down the action, or increasing the action speed. These augmentations enhance the model's robustness to temporal variations and noise, which are common challenges in real-world video understanding scenarios. The consistent performance improvements across both datasets highlight the importance of our two-stage training strategy in developing robust video moment retrieval systems.
Query Video
Target Video

Ground Truth [2.1, 18.1]
MATR (Ours) [3.2, 16.6]
UniVTG [7.3, 18.4]
Moment-DETR [7, 12]
QD-DETR [5.9, 12.8]
CG-DETR [6.3, 18.7]
BM-DETR [6.1, 19.1]
Ground Truth [10.8, 28.1]
MATR (Ours) [10.3, 27.8]
UniVTG [12.3, 29.1]
Moment-DETR [11.4, 28.5]
QD-DETR [9.2, 27.8]
CG-DETR [10, 29.8]
BM-DETR [10.9, 28.8]
Ground Truth [13.8, 18.1]
MATR (Ours) [13.8, 17.9]
UniVTG [8, 17.3]
Moment-DETR[9, 22.2]
QD-DETR [11.2, 14.1]
CG-DETR [14.8, 23.6]
BM-DETR[12.2, 19.3]
Ground Truth [6.6, 16.7]
MATR (Ours) [6.2, 16.7]
UniVTG [5.5, 14.1]
Moment-DETR [4, 12.5]
QD-DETR [5.8, 13.8]
CG-DETR [8.4, 16.1]
BM-DETR [5, 17.2]
Figure 6.6: Visualization of Vid2VidMR on four query-target samples. Our proposed MATR model shows improved generalization capabilities over the best-performing baseline methods (variant (e), i.e., finetuned with video query input). The visualization demonstrates how our approach more accurately aligns with ground truth temporal boundaries across diverse activity types and durations. Start and end times for the ground truth and predicted moments are shown in the brackets.
PREDICTIONS FROM HEADS VS ALIGNMENT MATRICES
Table 6.8 shows that prediction heads outperform both pre-fusion and post-fusion alignment strategies across datasets. This highlights the limitations of direct alignment in capturing
| Noise Type | ActivityNet-VRL | SportsMoments | ||
|---|---|---|---|---|
| mIoU | R@1 | mIoU | R@1 | |
| Frame Reverse | 42.7 | 43.1 | 43.1 | 44.6 |
| Speed Variation | 53.3 | 55.9 | 57.4 | 55.3 |
| Gaussian Noise | 55.8 | 56.3 | 58.5 | 56.1 |
| None | 56.8 | 57.1 | 59.2 | 56.5 |
Table 6.11: Robustness Analysis of MATR against Different Types of Perturbations. This study is done with CLIP features, soft-DTW alignment and with pre-training.
fine temporal boundaries. The transformer decoder refines coarse alignments and models complex temporal relationships, leading to significant gains in mIoU and R@1. While post-fusion alignment performs better than pre-fusion, suggesting that fused features improve cross-modal matching, both are modest compared to the improvements from prediction heads. These results emphasize the decoder's critical role in transforming alignment signals into precise moment predictions.
ABLATION ON ALIGNMENT LOSSES
MATR can incorporate different alignment methods. Table 6.9 compares the performance of different alignment methods on both ActivityNet-VRL and SportsMoments datasets. Our extensive ablation study comparing different alignment methods for MATR reveals that OTAM achieves the best performance across both datasets, with substantial improvements of 7.8% and 10.1% in R@1 over the baseline on ActivityNet-VRL and SportsMoments, respectively. Temporal alignment is clearly beneficial, as all methods outperform the non-aligned baseline, with sophisticated approaches like OTAM and DTW showing particularly strong gains. Among the evaluated methods, OTAM consistently achieves the highest performance (58.2% mIoU, 58.7% R@1 on ActivityNet-VRL and 62.2% mIoU, 58.6% R@1 on SportsMoments), followed closely by soft-DTW, which demonstrates the second-best results across both datasets. The performance improvements from simpler alignment methods like TCC and LCSS are more modest but still significant, confirming that the choice of alignment algorithm plays a crucial role in moment retrieval performance.
Although OTAM attains the best accuracy, we retain soft-DTW as the reference configuration throughout the remaining ablations. Soft-DTW is the method with which MATR was developed and the one for which this chapter gives the full derivation, and every other ablation in this section was run under it, so keeping it fixed leaves those comparisons mutually consistent. Re-running the full suite under OTAM would be unlikely to change any of the conclusions, since the two differ by a small and roughly constant offset. Soft-DTW is also preferable on its own merits in some settings: its -smoothed minimum aggregates over all alignment paths weighted by cost rather than committing to a single best path, which yields smoother gradients when frame-level similarities are noisy, and it is differentiable everywhere, which is the property that allows it to serve as and and on which the dual-stage design depends.
ABLATION ON FEATURE BACKBONES
The ablation study in Table 6.10 on feature backbones for MATR demonstrates that more advanced video feature extractors consistently yield better performance across both evaluated datasets. Specifically, Slow-Fast achieves the highest performance with 54.7% mIoU and 55.9% R@1 on the ActivityNet-VRL dataset, and 58.3% mIoU and 55.4% R@1 on the SportsMoments dataset, showing a clear advantage over traditional architectures like ResNet and I3D. Interestingly, CLIP also performs strongly, particularly on the first dataset, suggesting that vision-language pre-training provides valuable transferable features for moment retrieval tasks. Surprisingly, the combination of CLIP and Slow-Fast features doesn't lead to further improvements and actually performs worse than either backbone individually, indicating potential feature redundancy or integration challenges that warrant further investigation in future work.
ROBUSTNESS STUDY OF MATR
From the robustness study presented in Table 6.11, we observe that our MATR demonstrates varying degrees of resilience to different types of noise. The model shows remarkable stability against Gaussian noise and speed variations, with performance drops of only 1.0% and 3.5% in mIoU, respectively, on ActivityNet-VRL, suggesting effective handling of these common real-world variations. Frame reversal causes a more significant performance decline (14.1% mIoU drop on ActivityNet-VRL), indicating that temporal direction remains an important signal for the model. This comprehensive analysis demonstrates that while MATR is robust to several common video distortions, it appropriately remains sensitive to semantic query relevance.
The asymmetry between speed variation and frame reversal follows directly from the design. DTW exists to absorb local accelerations and decelerations, so a query performed faster or slower than the target is handled by the warping path; frame reversal, by contrast, violates the monotonicity constraint that all valid alignments enforce and cannot be represented at all. Both perturbations also appear as augmentations during self-supervised pre-training, which further explains the speed robustness. Perspective mismatch between query and target was not isolated under controlled perturbation, but it is present throughout the evaluation rather than absent from it: SportsMoments is built from broadcast footage, and its longer query clips consist of overlapping views of the same action including replays from different camera angles. The qualitative results below make the same point on ActivityNet-VRL, where MATR localises correctly under significant viewpoint change, across multi-shot sequences with varying camera angles, and between different environments.
QUALITATIVE RESULTS
We present moment retrieval results on four samples in Fig. 6.6, where we compare our proposed approach to variant (e) (refer to Sec.6.6.1 for details) of the four best-performing baselines. Our proposed MATR model exhibits the highest overlap with the ground truth for the given query, accurately identifying the correct temporal boundaries. Among the baseline methods, BM-DETR and UniVTG achieve strong overlap; however, they are still outperformed by our approach.
| Method | Params (M) | FLOPs (G) | Inference Time (ms) | Memory (GB) | Throughput (FPS) |
|---|---|---|---|---|---|
| Moment-DETR | 45.2 | 12.3 | 48.5 ± 2.1 | 2.1 | 20.6 |
| QD-DETR | 62.8 | 16.7 | 52.3 ± 2.4 | 2.6 | 19.1 |
| UniVTG | 38.4 | 10.2 | 45.8 ± 2.0 | 2.0 | 21.8 |
| CG-DETR | 69.5 | 18.1 | 58.4 ± 2.6 | 3.1 | 17.1 |
| BM-DETR | 81.3 | 23.8 | 71.5 ± 3.5 | 3.8 | 14.0 |
| MATR (Ours) | 58.6 | 15.4 | 53.8 ± 2.3 | 2.5 | 18.6 |
Table 6.12: Efficiency analysis of MATR and baselines. All measurements conducted on an NVIDIA A6000 GPU with batch size 1, averaged over 100 inference runs.
| Sampling Rate | ActivityNet-VRL | SportsMoments | Inference Time (ms) | Memory (GB) | ||
|---|---|---|---|---|---|---|
| mIoU | R@1 | mIoU | R@1 | |||
| 1 frame/4s | 51.3 | 52.1 | 53.8 | 50.2 | 30.1 | 1.7 |
| 1 frame/3s | 54.2 | 55.4 | 56.4 | 53.6 | 41.2 | 2.1 |
| 1 frame/2s (default) | 56.8 | 57.1 | 59.2 | 56.5 | 53.8 | 2.5 |
| 1 frame/1s | 56.2 | 56.8 | 59.5 | 56.1 | 95.6 | 4.4 |
| 1.5 frames/s | 55.8 | 56.3 | 58.1 | 55.4 | 137.4 | 6.3 |
| 2 frames/s | 55.4 | 55.9 | 57.6 | 54.8 | 178.9 | 8.1 |
Table 6.13: Impact of frame sampling rate on MATR performance and cost. Inference time and memory measured on an NVIDIA A6000 GPU.
EFFICIENCY ANALYSIS
Since the dual-stage design invokes sequence alignment twice, once before and once after the encoder, and each stage is in the query and target sequence lengths, it is reasonable to ask whether alignment dominates the cost. Table 6.12 shows that it does not. All measurements are taken on an NVIDIA A6000 GPU with batch size 1, averaged over 100 inference runs. MATR requires 15.4 GFLOPs and 58.6M parameters, with 53.8 ms inference and 2.5 GB peak memory. It is therefore cheaper than BM-DETR (23.8 GFLOPs, 81.3M parameters, 71.5 ms, 3.8 GB) and CG-DETR (18.1 GFLOPs, 58.4 ms, 3.1 GB), both of which are single-stage, while achieving 9.2% higher mIoU than BM-DETR. Against BM-DETR specifically, MATR uses 27.9% fewer parameters, 35.3% fewer FLOPs and 34.2% less memory, and is 24.7% faster. The reason alignment does not dominate is that it operates on sequences of at most a few hundred sampled frames rather than on raw video.
COST AS A FUNCTION OF SEQUENCE LENGTH
Table 6.13 reports how accuracy and cost vary with the frame sampling rate, which controls the sequence length for a target video of fixed duration. Inference time ranges from 30.1 ms at 1 frame/4s to 178.9 ms at 2 frames/s, and peak memory from 1.7 GB to 8.1 GB. The default rate of 1 frame/2s sits at the accuracy knee: doubling the rate to 1 frame/1s raises inference time by 77.7% and memory by 76.0% for a 0.3% change in mIoU, and denser sampling degrades accuracy through redundancy between highly correlated adjacent frames. Sparser sampling at 1 frame/4s costs 5.5% mIoU on ActivityNet-VRL, indicating that critical motion cues are missed. Under a fixed 48 GB budget at the default resolution, this corresponds to a maximum processable target duration of roughly 8 minutes at the default rate, extending to roughly 33 minutes at 1 frame/4s. All ActivityNet-VRL (max 191.5 s) and SportsMoments (max 208.8 s) videos are therefore comfortably within range at the default setting.
FAILURE CASE ANALYSIS
To characterise the practical limitations of MATR, we inspected the 100 test samples with the lowest mIoU and identified three dominant failure modes. First, perceptually different action representations, where the same action appears visually distinct across query and target, for example normal versus seated rope skipping, producing large cross-instance feature distances that weaken alignment. Second, viewpoint variation, where query and target are recorded from substantially different perspectives, such as a third-person view against a first-person view. Third, speed variation, where the action is performed at noticeably different speeds, for example a normal-speed pole vault against a slow-motion replay, causing soft-DTW to match incorrectly stretched sub-sequences. These modes are consistent with the robustness results reported above and indicate that viewpoint-invariant and speed-invariant representations remain the principal open problem for this task.
CROSS-DOMAIN GENERALISATION
To assess robustness to cross-domain appearance shift, we converted the query videos in the test set into cartoon/anime-style footage using DCT-Net, leaving the target videos unchanged. MATR achieves 38.3% mIoU under this setting, despite the frozen CLIP encoder never having seen cartoon-style imagery during training. This indicates that the model retains meaningful localisation ability even under a large stylistic gap between query and target, while the drop relative to the unperturbed setting shows that appearance-invariant and domain-adaptive representation learning remains an important direction for future work.
6.7 SUMMARY
In this chapter, we introduced MATR, a well-motivated approach for Vid2VidMR. By combining the abstract representation of the encoder and the refined fine-grained features of the decoder conditioned on aligned query features, MATR effectively captures both semantic and temporal information, enabling accurate moment localization. Our self-supervised pre-training strategy further improves the model initialization and boosts performance. Extensive experiments showed that MATR outperforms strong baselines on both ActivityNet-VRL and our novel SportsMoments dataset, showcasing its effectiveness in tackling this challenging task. Although MATR excels at localizing moments using video queries, future research can extend it to multimodal queries and develop more efficient architectures to enhance scalability for Vid2VidMR.
The following chapter presents the conclusion of our work, discusses its limitations, and outlines potential directions for future research.
Conclusions and Future Scope
This thesis advances query-guided video understanding across three complementary levels, object, relationship, and moment, enabling machines to answer where, how, and when in open-world videos with minimal supervision. The motivation for this work is twofold. First, real-world deployments often encounter long-tailed and continuously evolving visual concepts, making exhaustive annotation and closed-set training impractical. Second, users increasingly demand targeted, example-driven retrieval, locating a specific object, interaction, or moment, without manually scanning long videos. To address these challenges, this thesis proposes query-driven grounding frameworks that leverage minimal supervision, temporal reasoning, and query-based generalization to perform robust video understanding.
7.1 SUMMARY AND DISCUSSION
At the object level (understanding “where”), this thesis advances video object grounding through two complementary frameworks designed to localize novel objects in videos using minimal supervision. For the one-shot scenario, we introduce QDETRv (Query-Guided DETR for Videos, a transformer-based architecture that extends DETR with temporal modeling capabilities. QDETRv employs (i) query–context fusion, where query features are integrated with contextual video frames to enable effective temporal reasoning; (ii) a memory module that maintains temporal consistency across frames; and (iii) an unsupervised pretraining strategy using synthetic object trajectories with recurrent queries and feature reconstruction objectives. These components collectively enhance temporal modeling and generalization, allowing QDETRv to achieve substantial gains over competitive baselines. We further extend one-shot object grounding to few-shot object grounding. To this end, we proposed the Temporal Object-Aware Vision Transformer, which leverages large-scale, language-aligned, pre-trained vision encoders. This framework integrates semantic knowledge from vision–language models like OWL-ViT to enable effective knowledge transfer and robust object generalization over time. The model introduces a filtering mechanism that propagates high-confidence object features across frames, enabling efficient progression and reduced noise. It further incorporates feature interaction between current frames and past detections to maintain temporal coherence without explicit object-tube proposals, which are often computationally expensive and require task-specific training. Parallel classification and detection heads are optimized for few-shot settings, achieving state-of-the-art performance on FSVOD-500, FSYTV-40, VidOR, and VidVRD benchmarks. Together, these contributions advance the understanding of “where” objects are located in videos.
At the relationship level (understanding "how"), this thesis extends individual object grounding to model interactions between objects through few-shot referring relationship grounding in videos. The task is formulated as inference over a T-partite random field, where T denotes the number of frames in the video, and each vertex represents candidate subject-object pairs. Meta-learned potentials and query-conditioned translational embeddings are introduced to encode relational semantics and capture meaningful interactions between entities. The model achieves improved subject-object-predicate localization accuracy, with ablation studies validating the complementary roles of Global Semantic Aggregation (GSA), which captures long-range contextual dependencies, and Local Localization Aggregation (LLA), which focuses on fine-grained spatial cues and temporal consistency. Despite these advances, grounding dynamic predicates with complex temporal evolution remains challenging, and performance is influenced by the quality of subject-object proposals and the computational cost of message passing across frames. Future extensions could involve joint optimization of proposals and relationships using tubelet-level candidates, sparse or neural message passing for improved scalability, and end-to-end integration with open-vocabulary detectors to enhance better generalization to unseen subjects and objects. Moreover, extending the formulation to include temporal-tubes of objects for predicates would naturally connect "how" and "when," enabling richer and temporally grounded scene graphs that capture evolving visual relationships over time.
At the moment level (understanding when), the thesis introduces the Moment Alignment Transformer (MATR) for video-to-video moment retrieval. MATR aligns a short query clip with a longer target video using dual-stage sequence alignment, employing differentiable Dynamic Time Warping before and after fusion to refine temporal correspondences. The model achieves notable gains in mIoU and Recall@1 on ActivityNet-VRL and SportsMoments, demonstrating the importance of explicit sequence alignment and task-aligned self-supervised pretraining. However, computational cost increases with sequence length, and the current design also focuses on single-moment retrieval, overlooking multi-event queries. We further extended MATR to support text-to-video moment retrieval and achieved comparable, if not better, performance to the state-of-the-art methods. Future extensions could include hierarchical coarse-to-fine retrieval for efficiency, non-monotonic or skip-aware alignment for flexibility, and multimodal query fusion with text or audio to improve disambiguation and generalization. The restriction to single-moment retrieval deserves particular comment, since it follows the benchmark specification rather than a limitation of the architecture: Vid2VidMR as formalised in the literature, and as evaluated on ActivityNet-VRL, assumes one ground-truth moment per query-target pair. Two routes would lift it. The lighter of the two requires no retraining at all: a long target video could be partitioned into overlapping chunks, with MATR run on each chunk against the same query and predictions above a confidence threshold pooled across chunks to yield multiple moments. This would be parallel across chunks and would bound peak memory by chunk length rather than video length, at the cost of truncating moments that straddle a chunk boundary and requiring per-chunk scores to be normalised before pooling. The principled route would instead replace the single boundary head with a set-prediction head over the l learnable queries that MATR already carries, trained with Hungarian matching against a variable number of ground-truth moments; this would also require a benchmark providing multi-moment ground truth, which neither dataset used here currently does.
7.1.1 TRANSFERABILITY OF COMPONENTS ACROSS TASKS
As the three tasks were formulated and solved independently, experimentation revealed that two components were transferable across them. Language-aligned visual backbones from the CLIP family were useful at two of the three levels, as OWL-ViT in the few-shot object framework and as a frozen CLIP encoder in MATR; in both cases the gain came from semantic priors that the task-specific training data could not supply, in the object setting for separating visually similar categories and in the moment setting as the strongest single backbone on ActivityNet-VRL. Object-level temporal state propagation also transferred: the recurrent-query memory module in QDETRv and the confidence-thresholded feature propagation in the few-shot framework are the same principle at different levels of maturity, the second having been designed directly from the limitations of the first. Two components did not transfer, for structural rather than empirical reasons. The dual-stage alignment losses presuppose two sequences to align, whereas in the object and relationship tasks the query is a single image or a triplet, so there is no second sequence and the loss has no natural analogue. Belief propagation over the T-partite field is likewise tied to the pairwise subject-object candidate structure of the relationship task and has no counterpart in single-entity grounding. Cross-task joint training was not attempted, and closing that gap is precisely the aim of the unified architecture outlined in Section 7.3.
Overall, these contributions collectively demonstrate that temporal reasoning and query conditioning enable flexible, open-world grounding in videos under minimal supervision, forming a scalable foundation for structured video understanding.
7.1.2 TRAINING COST AND REPRODUCIBILITY
The computational requirements of each contribution are distributed across the implementation sections of the individual chapters, which makes the overall cost hard to assess; we therefore summarise them here. QDETRv is pretrained on synthetic trajectories over UCF101 together with image-level pretraining on ImageNet, and is trained on three NVIDIA RTX A6000 GPUs using Adam with a learning rate of 1e-5 for 200 epochs at a batch size of 350, initialised from an ImageNet-pretrained ResNet-50. The few-shot object framework builds on OWL-ViT ViT-L/16 used off the shelf, and converges in approximately four days on two A6000 GPUs using AdamW with weight decay 0.01 and a cosine schedule with linear warmup. The few-shot relationship framework is meta-trained episodically on support sets rather than pretrained on a separate corpus. MATR is pretrained on unlabeled Kinetics-700 with a frozen CLIP ViT-B/32 encoder and trained on two A6000 GPUs with AdamW at a learning rate of 1e-4. For reproducibility, the category-disjoint VidOR and VidVRD splits used throughout the object and relationship chapters are themselves a contribution of this thesis and are released alongside the code. For SportsMoments, the source video identifiers are listed in this chapter, and we additionally release the segment-level timestamp annotations and the pre-computed validation and test pair lists, which is what makes the benchmark reproducible in practice rather than merely re-collectable.
7.2 POTENTIAL APPLICATIONS
The proposed methods have broad applicability across domains where query-based grounding can replace exhaustive manual analysis of videos. In sports analytics, these models can automatically extract highlights, track players, and retrieve tactical plays from exemplar clips. In manufacturing, they can detect defective components or rare fault patterns from a few visual examples, enabling rapid adaptation to new products. In education and skill learning, exemplar-based moment retrieval supports indexing and feedback in instructional videos, helping systems identify critical steps such as “when the weld begins” or “when the coffee is poured.” In healthcare, temporal grounding can detect and timestamp key events such as falls or procedural deviations from limited annotated data. In security and forensics, query-based localization allows analysts to locate specific objects or interactions across long surveillance videos with minimal supervision.
Together, these applications highlight the versatility of query-driven grounding systems, where users specify what to find via queries rather than predefined class names, enabling adaptive and efficient video understanding across diverse domains.
7.3 FUTURE DIRECTIONS
In this section, we outline research directions that extend and broaden query-guided video understanding.
7.3.1 UNIFIED “ANY-QUERY, ANY-GROUNDING”
Our current methods have shown remarkable performance on three video grounding tasks: QDETRv handles image queries for object grounding, the relationship grounding framework processes visual triplets, and MATR operates on video/text queries for temporal grounding. One of the promising future directions of this thesis is to develop a unified architecture that can handle multiple query modalities such as image, video, and text, and generate diverse grounding outputs such as boxes, masks, relation spans, and moments through a shared backbone with task-agnostic query-target fusion. This would involve using a modality-agnostic encoder, similar to CLIP or Video-OWL, to process different types of queries while encoding the target video with temporal tokens. Dual-stage alignment could then be used to produce query-aligned target features that are consistently reused across all prediction heads. Building on this shared representation, the system could support multiple heads for detection, segmentation, relation trajectories, and moment boundaries, effectively extending the capabilities of architectures like QDETRv and MATR. Finally, incorporating class-agnostic matching and open-vocabulary priors, together with few-shot prototype heads and temporal filtering, would enable robust handling of uncertainty and open-set scenarios. However, we note that such an extension is non trivial and would require additional rigorous experimental studies involving architectural integration, joint training, and appropriate multi-task evaluation, which is beyond the scope of the current thesis.
7.3.2 EFFICIENCY AND STREAMING VIDEO
A key challenge moving forward is to scale grounding to live video streams and long-duration content while operating under tight computational budgets. One promising direction is to explore streaming transformers that maintain causal state caching, along with keyframe-adaptive token sparsification and memory-augmented decoders that reuse high-confidence tokens across time to enable low-latency updates. We have taken initial steps in both directions: language-guided temporal token pruning reduces the number of video tokens a VideoLLM must process [230], and a strictly causal state-space core supports streaming video anomaly detection [231]. These ideas naturally extend the object-aware temporal propagation strategies used in few-shot VOD. Another opportunity lies in using lightweight prefilters that identify candidate windows based on query-conditioned signatures before applying more expensive grounding modules.
A related and largely untested axis is generalisation to fully unstructured, in-the-wild footage. The benchmarks used in this thesis are less curated than they may appear: VidOR is built from user-generated social-media video with handheld camera motion and clutter, FSVOD-500 and FSYTV-40 draw from YouTube, and SportsMoments consists of full-length broadcast matches with panning, cuts, replays and on-screen graphics. Category shift is also tested by construction throughout, since every benchmark uses class-disjoint train and test splits. What remains genuinely untested is egocentric video, where the camera is itself the actor and ego-motion, hand occlusion and objects leaving frame are constant, together with untrimmed long-form video at the scale of hours rather than the few-minute targets considered here. We would expect the few-shot object framework to degrade most gracefully, since its open-vocabulary priors are domain-robust and confidence-thresholded propagation naturally discards unreliable frames, and QDETRv to suffer most, given its documented sensitivity to occlusion and small objects. The relationship framework would be limited by proposal quality under ego-motion rather than by the random field itself, and MATR by the growth of the retrieval space in long-form video rather than by camera motion. Egocentric benchmarks such as Ego4D, whose episodic-memory and moment-queries tasks map closely onto the where and when formulations of this thesis, are the natural setting in which to test these expectations.
7.3.3 DIRECTIONS WITH VIDEO LLMS
Contemporary Video LLMs show considerable promise, yet they still fall short of specialized grounding methods when precise localization and timestamping are required, especially in the absence of strong video-to-video alignment or object-aware temporal modeling; a survey of current VideoLLM benchmarks and evaluation practices is presented in [232]. A promising direction is to adopt a hybrid approach, in which Video LLMs handle intent parsing, disambiguation, and iterative refinement of the user's query, while the actual fine-grained grounding is delegated to dedicated modules, such as object-aware few-shot VOD and dual alignment Vid2VidMR proposed in this thesis. Making such hybrid systems trustworthy also requires verifying that the evidence a Video LLM cites in its answers is actually grounded in the video [233].
In summary, this thesis establishes a foundation for query-driven, open-world video grounding and highlights the path toward unified, efficient, systems that can seamlessly process long, dynamic, and complex videos. Continued research along these directions promises not only better models but also more practical video understanding for real-world applications.
List of Publications
PUBLICATIONS FORMING PART OF THIS THESIS
[1] Yogesh Kumar, Anand Mishra. Few-Shot Referring Relationships in Videos. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2289–2298, 2023 [32].
[2] Yogesh Kumar, Saswat Mallick, Anand Mishra, Sowmya Rasipuram, Anutosh Maitra, Roshni Ramnani. QDETRv: Query-Guided DETR for One-Shot Object Localization in Videos. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), volume 38, pages 2831–2839, 2024 [15].
[3] Yogesh Kumar, Uday Agarwal, Manish Gupta, Anand Mishra. Aligning Moments in Time using Video Queries. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 20215–20225, 2025 [26].
[4] Yogesh Kumar, Anand Mishra. Temporal Object-Aware Vision Transformer for Few-Shot Video Object Detection. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), volume 40, pages 5764–5772, 2026 [31].
[5] Yogesh Kumar, Uday Agarwal, Manish Gupta, Anand Mishra. Moment Alignment Transformer for Video-to-Video Moment Retrieval. Computer Vision and Image Understanding (CVIU), article 104959, 2026 [27].
OTHER PUBLICATIONS DURING THE PHD (NOT PART OF THIS THESIS)
[6] Shreya Shukla, Prajwal Gatti, Yogesh Kumar, Vikash Yadav, Anand Mishra. Towards Making Flowchart Images Machine Interpretable. In Proceedings of the International Conference on Document Analysis and Recognition (ICDAR), pages 505–521, 2023 [234].
[7] Uday Agarwal, Yogesh Kumar, Abu Shahid, Prajwal Gatti, Manish Gupta, Anand Mishra. CHAPVIDMR: Chapter-Based Video Moment Retrieval using Natural Language Queries. In Proceedings of the Indian Conference on Computer Vision, Graphics and Image Processing (ICVGIP), pages 1–9, 2024 [183].
[8] Yogesh Kumar. VideoLLM Benchmarks and Evaluation: A Survey. arXiv preprint arXiv:2505.03829, 2025 [232].
[9] Yogesh Kumar. Language-Guided Temporal Token Pruning for Efficient VideoLLM Processing. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), Main Conference, 2025 [230].
[10] Yogesh Kumar. Catching Hallucinated Citations in Video-LLM Question Answering: A Self-Verification Pipeline and Verifier Ablation Study. arXiv preprint arXiv:2608.15574, 2026 [233].
[11] Yogesh Kumar. Strictly Causal Streaming Video Anomaly Detection with a Theoretically-Grounded State-Space Core. arXiv preprint arXiv:2608.24810, 2026 [231].
Bibliography
[1] Cisco. Cisco annual internet report (2018–2023) white paper, March 2020. Accessed 2023. Reports that video accounts for more than 80% of global internet traffic.
[2] Datenwissen. Exploring the untapped riches of video surveillance, 2023. Reports that by end of 2023, new security cameras generate more than 5,500 petabytes of data daily.
[3] Gedas Bertasius, Lorenzo Torresani, and Jianbo Shi. Object detection in video with spatiotemporal sampling networks. In ECCV, 2018.
[4] Junbin Xiao, Xindi Shang, Xun Yang, Sheng Tang, and Tat-Seng Chua. Visual relation grounding in videos. In ECCV, 2020.
[5] Jingwei Ji, Ranjay Krishna, Li Fei-Fei, and Juan Carlos Niebles. Action genome: Actions as compositions of spatio-temporal scene graphs. In CVPR, 2020.
[6] Matthias Minderer, Alexey Gritsenko, Austin Stone, Maxim Neumann, Dirk Weissenborn, Alexey Dosovitskiy, Aravindh Mahendran, Anurag Arnab, Mostafa Dehghani, Zhuoran Shen, et al. Simple open-vocabulary object detection with vision transformers. arXiv preprint arXiv:2205.06230, 2022.
[7] Georg Heigold, Matthias Minderer, Alexey Gritsenko, Alex Bewley, Daniel Keysers, Mario Lučić, Fisher Yu, and Thomas Kipf. Video owl-vit: Temporally-consistent open-world localization in video. In ICCV, 2023.
[8] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NeurIPS, 2015.
[9] Zixiao Zhang, Xiaoqiang Lu, Guojin Cao, Yuting Yang, Licheng Jiao, and Fang Liu. Vit-yolo: Transformer-based yolo for object detection. In CVPR, 2021.
[10] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In ECCV, 2020.
[11] Ting-I Hsieh, Yi-Chen Lo, Hwann-Tzong Chen, and Tyng-Luh Liu. One-shot object detection with co-attention and co-excitation. In NeurIPS, 2019.
[12] Anton Osokin, Denis Sumin, and Vasily Lomakin. Os2d: One-stage one-shot object detection by matching anchor features. In ECCV, 2020.
[13] Yihong Chen, Yue Cao, Han Hu, and Liwei Wang. Memory enhanced global-local aggregation for video object detection. In CVPR, 2020.
[14] Yuheng Shi, Naiyan Wang, and Xiaojie Guo. YOLOV: making still image object detectors great at video object detection. CoRR, 2022.
[15] Yogesh Kumar, Saswat Mallick, Anand Mishra, Sowmya Rasipuram, Anutosh Maitra, and Roshni Ramnani. QDETRv: Query-guided DETR for one-shot object localization in videos. In AAAI, volume 38, pages 2831–2839, 2024.
[16] Kongming Liang, Yuhong Guo, Hong Chang, and Xilin Chen. Visual relationship detection with deep structural ranking. In AAAI, 2018.
[17] Ting Yao, Yingwei Pan, Yehao Li, and Tao Mei. Exploring visual relationship for image captioning. In ECCV, 2018.
[18] Ranjay Krishna, Ines Chami, Michael Bernstein, and Li Fei-Fei. Referring relationships. In CVPR, 2018.
[19] Antoine Yang, Antoine Miech, Josef Sivic, Ivan Laptev, and Cordelia Schmid. Tubedetr: Spatio-temporal video grounding with transformers. In CVPR, 2022.
[20] Jie Lei, Tamara L. Berg, and Mohit Bansal. Detecting moments and highlights in videos via natural language queries. In NeurIPS, 2021.
[21] WonJun Moon, Sangeek Hyun, Sanguk Park, Dongchan Park, and Jae-Pil Heo. Query-dependent video representation for moment retrieval and highlight detection. In CVPR, 2023.
[22] Shuwei Huo, Yuan Zhou, Ruolin Wang, Wei Xiang, and Sun-Yuan Kung. Semantic relevance learning for video-query based video moment retrieval. IEEE Trans. Multim., 25:9290–9301, 2023.
[23] Long Chen, Chujie Lu, Siliang Tang, Jun Xiao, Dong Zhang, Chilie Tan, and Xiaolin Li. Rethinking the bottom-up framework for query-based video localization. In AAAI, 2020.
[24] Kevin Qinghong Lin, Pengchuan Zhang, Joya Chen, Shraman Pramanick, Difei Gao, Alex Jinpeng Wang, Rui Yan, and Mike Zheng Shou. Univtg: Towards unified video-language temporal grounding. In ICCV, 2023.
[25] Ruolin Wang and Yuan Zhou. A feature pair fusion and hierarchical learning framework for video re-localization. In ICIP, 2020.
[26] Yogesh Kumar, Uday Agarwal, Manish Gupta, and Anand Mishra. Aligning moments in time using video queries. In ICCV, pages 20215–20225, 2025.
[27] Yogesh Kumar, Uday Agarwal, Manish Gupta, and Anand Mishra. Moment alignment transformer for video-to-video moment retrieval. Computer Vision and Image Understanding, page 104959, 2026.
[28] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017.
[29] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth words: Transformers for image recognition at scale. In ICLR, 2021.
[30] Qianyu Zhou, Xiangtai Li, Lu He, Yibo Yang, Guangliang Cheng, Yunhai Tong, Lizhuang Ma, and Dacheng Tao. Transvod: End-to-end video object detection with spatial-temporal transformers. CoRR, 2022.
[31] Yogesh Kumar and Anand Mishra. Temporal object-aware vision transformer for few-shot video object detection. In AAAI, volume 40, pages 5764–5772, 2026.
[32] Yogesh Kumar and Anand Mishra. Few-shot referring relationships in videos. In CVPR, pages 2289–2298, 2023.
[33] Larry R Medsker, Lakhmi Jain, et al. Recurrent neural networks. Design and applications, 5(64-67):2, 2001.
[34] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
[35] Jacob Devlin Ming-Wei Chang Kenton and Lee Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT, 2019.
[36] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. GPT-4 technical report. arXiv preprint arXiv:2303.08774, 2023.
[37] Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020.
[38] Krzysztof Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamas Sarlos, Peter Hawkins, Jared Davis, Afroz Mohiuddin, Lukasz Kaiser, et al. Rethinking attention with performers. arXiv preprint arXiv:2009.14794, 2020.
[39] Chen Sun, Abhinav Shrivastava, Saurabh Singh, and Abhinav Gupta. Revisiting unreasonable effectiveness of data in deep learning era, 2017.
[40] Hugo Touvron, Matthieu Cord, and Hervé Jégou. Deit iii: Revenge of the vit. In ECCV, 2022.
[41] Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In CVPR, 2021.
[42] Haiping Wu, Bin Xiao, Noel Codella, Mengchen Liu, Xiyang Dai, Lu Yuan, and Lei Zhang. Cvt: Introducing convolutions to vision transformers. In ICCV, 2021.
[43] Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katherine Millican, Malcolm Reynolds, et al. Flamingo: a visual language model for few-shot learning. In NeurIPS, 2022.
[44] Xi Chen, Xiao Wang, Soravit Changpinyo, Anthony J Piergiovanni, Piotr Padlewski, Daniel Salz, Sebastian Goodman, Adam Grycner, Basil Mustafa, Lucas Beyer, et al. Pali: A jointly-scaled multilingual language-image model. arXiv preprint arXiv:2209.06794, 2022.
[45] RCNN Faster. Towards real-time object detection with region proposal networks. In NeurIPS, 2015.
[46] Yuanyuan Wang, Chao Wang, Hong Zhang, Yingbo Dong, and Sisi Wei. Automatic ship detection based on retinanet using multi-resolution gaofen-3 imagery. Remote Sensing, 11(5):531, 2019.
[47] Xizhou Zhu, Weijie Su, Lewei Lu, Bin Li, Xiaogang Wang, and Jifeng Dai. Deformable DETR: deformable transformers for end-to-end object detection. In ICLR, 2021.
[48] Shilong Liu, Feng Li, Hao Zhang, Xiao Yang, Xianbiao Qi, Hang Su, Jun Zhu, and Lei Zhang. Dab-detr: Dynamic anchor boxes are better queries for detr. arXiv preprint arXiv:2201.12329, 2022.
[49] Feng Li, Hao Zhang, Shilong Liu, Jian Guo, Lionel M Ni, and Lei Zhang. Dn-detr: Accelerate detr training by introducing query denoising. In CVPR, 2022.
[50] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In ICML, 2021.
[51] Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. In NeurIPS, 2019.
[52] Gedas Bertasius, Heng Wang, and Lorenzo Torresani. Is space-time attention all you need for video understanding? In ICML, 2021.
[53] Anurag Arnab, Mostafa Dehghani, Georg Heigold, Chen Sun, Mario Lučić, and Cordelia Schmid. Vivit: A video vision transformer. In ICCV, 2021.
[54] Ze Liu, Jia Ning, Yue Cao, Yixuan Wei, Zheng Zhang, Stephen Lin, and Han Hu. Video swin transformer. In CVPR, 2022.
[55] Sipeng Zheng, Shizhe Chen, and Qin Jin. Vrdformer: End-to-end video visual relation detection with transformers. In CVPR, 2022.
[56] Jinbae Im, JeongYeon Nam, Nokyung Park, Hyungmin Lee, and Seunghyun Park. Egtr: Extracting graph from transformer for scene graph generation. In CVPR, 2024.
[57] Yuren Cong, Wentong Liao, Hanno Ackermann, Bodo Rosenhahn, and Michael Ying Yang. Spatial-temporal transformer for dynamic scene graph generation. In ICCV, 2021.
[58] Akshita Gupta, Sanath Narayan, KJ Joseph, Salman Khan, Fahad Shahbaz Khan, and Mubarak Shah. Ow-detr: Open-world detection transformer. In CVPR, 2022.
[59] Xuanying Chen. Fast OWDETR: Transformer for open world object detection. PhD thesis, Nanyang Technological University, 2022.
[60] Na Dong, Yongqiang Zhang, Mingli Ding, and Gim Hee Lee. Open world detr: Transformer based open world object detection. arXiv preprint arXiv:2212.02969, 2022.
[61] Orr Zohar, Kuan-Chieh Wang, and Serena Yeung. Prob: Probabilistic objectness for open world object detection. In CVPR, 2023.
[62] Muhammad Maaz, Hanoona Rasheed, Salman Khan, Fahad Shahbaz Khan, Rao Muhammad Anwer, and Ming-Hsuan Yang. Class-agnostic object detection with multi-modal transformer. In ECCV, 2022.
[63] Xiuye Gu, Tsung-Yi Lin, Weicheng Kuo, and Yin Cui. Open-vocabulary object detection via vision and language knowledge distillation. arXiv preprint arXiv:2104.13921, 2021.
[64] Zongyang Ma, Guan Luo, Jin Gao, Liang Li, Yuxin Chen, Shaoru Wang, Congxuan Zhang, and Weiming Hu. Open-vocabulary one-stage detection with hierarchical visual-language knowledge distillation. In CVPR, 2022.
[65] Chau Pham, Truong Vu, and Khoi Nguyen. Lp-ovod: Open-vocabulary object detection by linear probing. In WACV, 2024.
[66] Alireza Zareian, Kevin Dela Rosa, Derek Hao Hu, and Shih-Fu Chang. Open-vocabulary object detection using captions. In CVPR, 2021.
[67] Liunian Harold Li, Pengchuan Zhang, Haotian Zhang, Jianwei Yang, Chunyuan Li, Yiwu Zhong, Lijuan Wang, Lu Yuan, Lei Zhang, Jenq-Neng Hwang, et al. Grounded language-image pre-training. In CVPR, 2022.
[68] Dahun Kim, Anelia Angelova, and Weicheng Kuo. Region-aware pretraining for open-vocabulary object detection with vision transformers. In CVPR, 2023.
[69] Chengjian Feng, Yujie Zhong, Zequn Jie, Xiangxiang Chu, Haibing Ren, Xiaolin Wei, Weidi Xie, and Lin Ma. Promptdet: Towards open-vocabulary detection using uncurated images. In ECCV, 2022.
[70] Yu Du, Fangyun Wei, Zihe Zhang, Miaojing Shi, Yue Gao, and Guoqi Li. Learning to prompt for open-vocabulary object detection with vision-language model. In CVPR, 2022.
[71] Chen-Lin Zhang, Jianxin Wu, and Yin Li. Actionformer: Localizing moments of actions with transformers. In ECCV, 2022.
[72] Chen Sun, Austin Myers, Carl Vondrick, Kevin Murphy, and Cordelia Schmid. VideoBERT: A joint model for video and language representation learning. In ICCV, 2019.
[73] Antoine Miech, Dimitri Zhukov, Jean-Baptiste Alayrac, Makarand Tapaswi, Ivan Laptev, and Josef Sivic. HowTo100M: Learning a Text-Video Embedding by Watching Hundred Million Narrated Video Clips. In ICCV, 2019.
[74] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
[75] Yaqing Wang, Quanming Yao, James T Kwok, and Lionel M Ni. Generalizing from a few examples: A survey on few-shot learning. ACM Computing Surveys (CSUR), 53(3):1–34, 2020.
[76] Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In NeurIPS, 2016.
[77] Gregory Koch, Richard Zemel, Ruslan Salakhutdinov, et al. Siamese neural networks for one-shot image recognition. In ICML deep learning workshop, 2015.
[78] Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip HS Torr, and Timothy M Hospedales. Learning to compare: Relation network for few-shot learning. In CVPR, 2018.
[79] Yinbo Chen, Zhuang Liu, Huijuan Xu, Trevor Darrell, and Xiaolong Wang. Meta-baseline: Exploring simple meta-learning for few-shot learning. In ICCV, 2021.
[80] Jake Snell, Kevin Swersky, and Richard S Zemel. Prototypical networks for few-shot learning. arXiv preprint arXiv:1703.05175, 2017.
[81] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, 2017.
[82] Alex Nichol and John Schulman. Reptile: a scalable metalearning algorithm. arXiv preprint arXiv:1803.02999, 2018.
[83] Zhenguo Li, Fengwei Zhou, Fei Chen, and Hang Li. Meta-sgd: Learning to learn quickly for few-shot learning. arXiv preprint arXiv:1707.09835, 2017.
[84] Aniruddh Raghu, Maithra Raghu, Samy Bengio, and Oriol Vinyals. Rapid learning or feature reuse? towards understanding the effectiveness of maml, 2020.
[85] Eleni Triantafillou, Tyler Zhu, Vincent Dumoulin, Pascal Lamblin, Utku Evci, Kelvin Xu, Ross Goroshin, Carles Gelada, Kevin Swersky, Pierre-Antoine Manzagol, et al. Meta-dataset: A dataset of datasets for learning to learn from few examples. arXiv preprint arXiv:1903.03096, 2019.
[86] Heethanjan Kanagalingam, Thenukan Pathmanathan, Navaneethan Ketheeswaran, Mokeeshan Vathanakumar, Mohamed Afham, and Ranga Rodrigo. A feature generator for few-shot learning, 2024.
[87] Esther Robb, Wen-Sheng Chu, Abhishek Kumar, and Jia-Bin Huang. Few-shot adaptation of generative adversarial networks, 2020.
[88] Edgar Schonfeld, Sayna Ebrahimi, Samarth Sinha, Trevor Darrell, and Zeynep Akata. Generalized zero-and few-shot learning via aligned variational autoencoders. In CVPR, 2019.
[89] Giorgio Giannone, Didrik Nielsen, and Ole Winther. Few-shot diffusion models, 2022.
[90] Yuwei Tang, Zhenyi Lin, Qilong Wang, Pengfei Zhu, and Qinghua Hu. Amu-tuning: Effective logit bias for clip-based few-shot learning. In CVPR, 2024.
[91] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In CVPR, 2020.
[92] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In ICML, 2020.
[93] Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent-a new approach to self-supervised learning. In NeurIPS, 2020.
[94] Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In ICCV, 2021.
[95] Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. In NeurIPS, 2020.
[96] Bowen Dong, Pan Zhou, Shuicheng Yan, and Wangmeng Zuo. Self-promoted supervision for few-shot transformer. In ECCV, 2022.
[97] Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei Liu. Learning to prompt for vision-language models. IJCV, 130(9):2337–2348, July 2022.
[98] OpenAI. Gpt-4 technical report, 2023.
[99] Andrei A Rusu, Dushyant Rao, Jakub Sygnowski, Oriol Vinyals, Razvan Pascanu, Simon Osindero, and Raia Hadsell. Meta-learning with latent embedding optimization. arXiv preprint arXiv:1807.05960, 2018.
[100] Yu-Xiong Wang, Ross Girshick, Martial Hebert, and Bharath Hariharan. Low-shot learning from imaginary data. In CVPR, 2018.
[101] Yunchen Pu, Zhe Gan, Ricardo Henao, Xin Yuan, Chunyuan Li, Andrew Stevens, and Lawrence Carin. Variational autoencoder for deep learning of images, labels and captions. In NeurIPS, volume 29, 2016.
[102] Xinlei Chen and Kaiming He. Exploring simple siamese representation learning. In CVPR, 2021.
[103] Chunyuan Li, Jianwei Yang, Pengchuan Zhang, Mei Gao, Bin Xiao, Xiyang Dai, Lu Yuan, and Jianfeng Gao. Efficient self-supervised vision transformers for representation learning. arXiv preprint arXiv:2106.09785, 2021.
[104] Sivic and Zisserman. Video google: A text retrieval approach to object matching in videos. In ICCV, 2003.
[105] Josef Sivic, Mark Everingham, and Andrew Zisserman. Person spotting: video shot retrieval for face sets. In CIVR, 2005.
[106] Roberto Brunelli and Daniele Falavigna. Person identification using multiple cues. PAMI, 17:955–966, 1995.
[107] Arka Sadhu, Kan Chen, and Ram Nevatia. Zero-shot grounding of objects from natural language queries. In CVPR, 2019.
[108] Aditay Tripathi, Rajath R Dani, Anand Mishra, and Anirban Chakraborty. Sketch-guided object localization in natural images. In ECCV, 2020.
[109] Aditay Tripathi, Rajath R Dani, Anand Mishra, and Anirban Chakraborty. Multimodal query-guided object localization. Multimedia Tools and Applications, 2023.
[110] Qi Fan, Chi-Keung Tang, and Yu-Wing Tai. Few-shot video object detection. In ECCV, 2022.
[111] Xuefeng Du, Xin Wang, Gabriel Gozum, and Yixuan Li. Unknown-aware object detection: Learning what you don't know from videos in the wild. In CVPR, 2022.
[112] Wenteng Liang, Feng Xue, Yihao Liu, Guofeng Zhong, and Anlong Ming. Unknown sniffer for object detection: Don't turn a blind eye to unknown objects. In CVPR, 2023.
[113] Xindi Shang, Donglin Di, Junbin Xiao, Yu Cao, Xun Yang, and Tat-Seng Chua. Annotating objects and relations in user-generated videos. In ICMR. ACM, 2019.
[114] Xindi Shang, Tongwei Ren, Jingfan Guo, Hanwang Zhang, and Tat-Seng Chua. Video visual relation detection. In ACM MM, 2017.
[115] Alina Kuznetsova, Hassan Rom, Neil Alldrin, Jasper Uijlings, Ivan Krasin, Jordi Pont-Tuset, Shahab Kamali, Stefan Popov, Matteo Malloci, Alexander Kolesnikov, Tom Duerig, and Vittorio Ferrari. The open images dataset v4: Unified image classification, object detection, and visual relationship detection at scale. IJCV, 2020.
[116] Bo Sun, Banghuai Li, Shengcai Cai, Ye Yuan, and Chi Zhang. Fsce: Few-shot object detection via contrastive proposal encoding. In CVPR, 2021.
[117] Qi Fan, Wei Zhuo, Chi-Keung Tang, and Yu-Wing Tai. Few-shot object detection with attention-rpn and multi-relation detector. In CVPR, 2020.
[118] Jiaxi Wu, Songtao Liu, Di Huang, and Yunhong Wang. Multi-scale positive sample refinement for few-shot object detection. In ECCV, 2020.
[119] Bingyi Kang, Zhuang Liu, Xin Wang, Fisher Yu, Jiashi Feng, and Trevor Darrell. Few-shot object detection via feature reweighting. In CVPR, 2019.
[120] Xin Wang, Thomas Huang, Joseph Gonzalez, Trevor Darrell, and Fisher Yu. Frustratingly simple few-shot object detection. In ICML, 2020.
[121] Thanh Nguyen, Chau Pham, Khoi Nguyen, and Minh Hoai. Few-shot object counting and detection. In ECCV, 2022.
[122] Yihang She, Goutam Bhat, Martin Danelljan, and Fisher Yu. Fast hierarchical learning for few-shot object detection. In Proc. IROS, 2022.
[123] Zhongjie Yu, Gaoang Wang, Lin Chen, Sebastian Raschka, and Jiebo Luo. When few-shot learning meets video object detection. In ICPR, 2022.
[124] Na Dong, Yongqiang Zhang, Ming Ding, and Gim Hee Lee. Incremental-detr: Incremental few-shot object detection via self-supervised learning. In AAAI, 2022.
[125] Ding Jia, Yuhui Yuan, Haodi He, Xiaopei Wu, Haojun Yu, Weihong Lin, Lei Sun, Chao Zhang, and Han Hu. Detrs with hybrid matching. In CVPR, 2022.
[126] Zhigang Dai, Bolun Cai, Yugeng Lin, and Junying Chen. Up-detr: Unsupervised pre-training for object detection with transformers. In CVPR, 2021.
[127] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. In NeurIPS, 2020.
[128] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012.
[129] Guangting Wang, Yizhou Zhou, Chong Luo, Wenxuan Xie, Wenjun Zeng, and Zhiwei Xiong. Unsupervised visual representation learning by tracking patches in video. In CVPR, 2021.
[130] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. IJCV, 115:211–252, 2014.
[131] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
[132] Xizhou Zhu, Yujie Wang, Jifeng Dai, Lu Yuan, and Yichen Wei. Flow-guided feature aggregation for video object detection. In ICCV, 2017.
[133] Haiping Wu, Yuntao Chen, Naiyan Wang, and Zhaoxiang Zhang. Sequence level semantics aggregation for video object detection. In ICCV, 2019.
[134] Xingyi Zhou, Vladlen Koltun, and Philipp Krähenbühl. Tracking objects as points. In ECCV, 2020.
[135] Wentao Han, Jie Lei, Fahong Wang, Zunlei Feng, and Ronghua Liang. Temporal aggregation with context focusing for few-shot video object detection. In SMC, 2023.
[136] Guangxing Han and Ser-Nam Lim. Few-shot object detection with foundation models. In CVPR, 2024.
[137] Prannay Kaul, Weidi Xie, and Andrew Zisserman. Multi-modal classifiers for open-vocabulary object detection. In ICML, 2023.
[138] Jian Zhang, Haobo Zhao, Binghao Wang, Yujun Shi, Xiaobo Zhu, Qingyun Guo, Tianqi Cai, Chang Liu, Weijie Li, Shuang Xu, and Jingdong Wang. Simple open-vocabulary semantic segmentation. In CVPR, 2023.
[139] Jiaqi Deng, Yingwei Pan, Ting Yao, Wengang Zhou, Houqiang Li, and Tao Mei. Relation distillation networks for video object detection. In ICCV, 2019.
[140] Filip Radenović, Giorgos Tolias, and Ondřej Chum. Cnn image retrieval learns from bow: Unsupervised fine-tuning with hard examples, 2016.
[141] Jiayuan Peng, Chuang Wang, Fang Wan, Yuxuan Wu, Yibing Wang, Yu-Wing Tai, Chengjie Wang, Jilin Li, Feiyue Huang, and Yun Fu. Chained-tracker: Chaining paired attentive regression results for end-to-end joint multiple-object detection and tracking. In ECCV, 2020.
[142] Yifu Zhang, Chunyu Wang, Xinggang Wang, Weiming Zeng, and Wenyu Liu. Fairmot: On the fairness of detection and re-identification in multiple object tracking. IJCV, 2021.
[143] Nicolai Wojke, Alex Bewley, and Dietrich Paulus. Simple online and realtime tracking with a deep association metric. In ICIP, 2017.
[144] Tim Meinhardt, Alexander Kirillov, Laura Leal-Taixe, and Christoph Feichtenhofer. Trackformer: Multi-object tracking with transformers. In CVPR, 2022.
[145] Yifu Zhang, Peize Sun, Yi Jiang, Dongdong Yu, Fucheng Weng, Zehuan Yuan, Ping Luo, Wenyu Liu, and Xinggang Wang. Bytetrack: Multi-object tracking by associating every detection box. In ECCV, 2022.
[146] Daniel Bolya, Sean Foley, James Hays, and Judy Hoffman. Tide: A general toolbox for identifying object detection errors. In ECCV, 2020.
[147] Qwen Team. Qwen3.5-omni technical report, 2026.
[148] Dimitri Zhukov, Jean-Baptiste Alayrac, Ramazan Gokberk Cinbis, David Fouhey, Ivan Laptev, and Josef Sivic. Cross-task weakly supervised learning from instructional videos. In CVPR, 2019.
[149] Jianfeng Dong, Xirong Li, Chaoxi Xu, Shouling Ji, Yuan He, Gang Yang, and Xun Wang. Dual encoding for zero-example video retrieval. In CVPR, 2019.
[150] Valentin Gabeur, Chen Sun, Karteek Alahari, and Cordelia Schmid. Multi-modal transformer for video retrieval. In ECCV, 2020.
[151] Bart Thomee, David A Shamma, Gerald Friedland, Benjamin Elizalde, Karl Ni, Douglas Poland, Damian Borth, and Li-Jia Li. Yfcc100m: The new data in multimedia research. Communications of the ACM, 2016.
[152] Xinyu Lyu, Lianli Gao, Yuyu Guo, Zhou Zhao, Hao Huang, Heng Tao Shen, and Jingkuan Song. Fine-grained predicates learning for scene graph generation. In CVPR, 2022.
[153] Yibing Zhan, Jun Yu, Ting Yu, and Dacheng Tao. On exploring undetermined relationships for visual relationship detection. In CVPR, 2019.
[154] Yiming Li, Xiaoshan Yang, and Changsheng Xu. Dynamic scene graph generation via anticipatory pre-training. In CVPR, 2022.
[155] Anoop Cherian, Chiori Hori, Tim K Marks, and Jonathan Le Roux. (2.5+ 1) d spatio-temporal scene graphs for video question answering. In AAAI, 2022.
[156] Kaifeng Gao, Long Chen, Yifeng Huang, and Jun Xiao. Video relation detection via tracklet based visual transformer. In ACM MM, 2021.
[157] Yicong Li, Xun Yang, Xindi Shang, and Tat-Seng Chua. Interventional video relation detection. In ACM MM, 2021.
[158] Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. IJCV, pages 32–73, 2017.
[159] Carolina Galleguillos, Andrew Rabinovich, and Serge Belongie. Object categorization using co-occurrence, location and appearance. In CVPR, 2008.
[160] Bangpeng Yao and Li Fei-Fei. Modeling mutual context of object and human pose in human-object interaction activities. In CVPR, 2010.
[161] Justin Johnson, Ranjay Krishna, Michael Stark, Li-Jia Li, David Shamma, Michael Bernstein, and Li Fei-Fei. Image retrieval using scene graphs. In CVPR, 2015.
[162] Ronghang Hu, Marcus Rohrbach, Jacob Andreas, Trevor Darrell, and Kate Saenko. Modeling relationships in referential expressions with compositional modular networks. In CVPR, 2017.
[163] Pan Lu, Lei Ji, Wei Zhang, Nan Duan, Ming Zhou, and Jianyong Wang. R-vqa: learning visual relation facts with semantic attention for visual question answering. In ACM SIGKDD, 2018.
[164] Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In ICLR, 2017.
[165] Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In CVPR, 2017.
[166] Hanwang Zhang, Zawlin Kyaw, Shih-Fu Chang, and Tat-Seng Chua. Visual translation embedding network for visual relation detection. In CVPR, 2017.
[167] Judea Pearl. Fusion, propagation, and structuring in belief networks. In Probabilistic and Causal Inference: The Works of Judea Pearl, 2022.
[168] Zhenfang Chen, Lin Ma, Wenhan Luo, and Kwan-Yee Kenneth Wong. Weakly-supervised spatio-temporally grounding natural sentence in video. In ACL, 2019.
[169] Revant Teotia, Vaibhav Mishra, Mayank Maheshwari, and Anand Mishra. Few-shot visual relationship co-localization. In ICCV, 2021.
[170] Anna Rohrbach, Marcus Rohrbach, Ronghang Hu, Trevor Darrell, and Bernt Schiele. Grounding of textual phrases in images by reconstruction. In ECCV, 2016.
[171] WonJun Moon, Sangeek Hyun, Su Been Lee, and Jae-Pil Heo. Correlation-guided query-dependency calibration in video representation learning for temporal grounding. CoRR, abs/2311.08835, 2024.
[172] Jin Yang, Ping Wei, Huan Li, and Ziyang Ren. Task-driven exploration: Decoupling and inter-task feedback for joint moment retrieval and highlight detection. In CVPR, 2024.
[173] Yang Feng, Lin Ma, Wei Liu, Tong Zhang, and Jiebo Luo. Video re-localization. In ECCV, 2018.
[174] Hiroaki Sakoe and Seibi Chiba. Dynamic programming algorithm optimization for spoken processing recognition. ICASSP, 1978.
[175] Nikita Dvornik, Isma Hadji, Konstantinos G. Derpanis, Animesh Garg, and Allan D. Jepson. Drop-DTW: Aligning common signal between sequences while dropping outliers. In NeurIPS, 2021.
[176] Lisa Anne Hendricks, Oliver Wang, Eli Shechtman, Josef Sivic, Trevor Darrell, and Bryan C. Russell. Localizing moments in video with natural language. In ICCV, 2017.
[177] Jie Lei, Licheng Yu, Tamara L. Berg, and Mohit Bansal. TVR: A large-scale dataset for video-subtitle moment retrieval. In ECCV, 2020.
[178] Jiyang Gao, Chen Sun, Zhenheng Yang, and Ram Nevatia. TALL: temporal activity localization via language query. In ICCV, 2017.
[179] Yicheng Xiao, Zhuoyan Luo, Yong Liu, Yue Ma, Hengwei Bian, Yatai Ji, Yujiu Yang, and Xiu Li. Bridging the gap: A unified video comprehension framework for moment retrieval and highlight detection. In CVPR, 2024.
[180] Shen Yan, Xuehan Xiong, Arsha Nagrani, Anurag Arnab, Zhonghao Wang, Weina Ge, David Ross, and Cordelia Schmid. Unloc: A unified framework for video localization tasks. In ICCV, 2023.
[181] Ye Liu, Siyuan Li, Yang Wu, Chang Wen Chen, Ying Shan, and Xiaohu Qie. UMT: unified multi-modal transformers for joint video moment retrieval and highlight detection. In CVPR, 2022.
[182] Jonghwan Mun, Minsu Cho, , and Bohyung Han. Local-Global Video-Text Interactions for Temporal Grounding. In CVPR, 2020.
[183] Uday Agarwal, Yogesh Kumar, Abu Shahid, Prajwal Gatti, Manish Gupta, and Anand Mishra. CHAPVIDMR: Chapter-based video moment retrieval using natural language queries. In ICVGIP, pages 1–9, 2024.
[184] Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In NeurIPS, 2014.
[185] Ji Lin, Chuang Gan, and Song Han. TSM: temporal shift module for efficient video understanding. In ICCV, 2019.
[186] Ceyuan Yang, Yinghao Xu, Jianping Shi, Bo Dai, and Bolei Zhou. Temporal pyramid network for action recognition. In CVPR, 2020.
[187] Du Tran, Lubomir D. Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In ICCV, 2015.
[188] Saining Xie, Chen Sun, Jonathan Huang, Zhuowen Tu, and Kevin Murphy. Rethinking spatiotemporal feature learning: Speed-accuracy trade-offs in video classification. In ECCV, 2018.
[189] Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. Slowfast networks for video recognition. In ICCV, 2019.
[190] Chuhan Zhang, Ankush Gupta, and Andrew Zisserman. Temporal query networks for fine-grained video understanding. In CVPR, 2021.
[191] Runhao Zeng, Wenbing Huang, Mingkui Tan, Yu Rong, Peilin Zhao, Junzhou Huang, and Chuang Gan. Graph convolutional networks for temporal action localization. In CVPR, 2019.
[192] Zixin Zhu, Wei Tang, Le Wang, Nanning Zheng, and Gang Hua. Enriching local and global contexts for temporal action localization. In ICCV, 2021.
[193] Zheng Shou, Dongang Wang, and Shih-Fu Chang. Temporal action localization in untrimmed videos via multi-stage cnns. In CVPR, 2016.
[194] Xiaohan Wang, Linchao Zhu, and Yi Yang. T2vlad: global-local sequence alignment for text-video retrieval. In CVPR, 2021.
[195] Pelin Dogan, Boyang Li, Leonid Sigal, and Markus Gross. A neural multi-sequence alignment technique (neumatch). In CVPR, 2018.
[196] Debidatta Dwibedi, Yusuf Aytar, Jonathan Tompson, Pierre Sermanet, and Andrew Zisserman. Temporal cycle-consistency learning. In CVPR, 2019.
[197] Dawit Mureja Argaw, Joon-Young Lee, Markus Woodson, In-So Kweon, and Fabian Caba Heilbron. Long-range multimodal pretraining for movie understanding. ICCV, 2023.
[198] Rao, Gritai, and Shah. View-invariant alignment and matching of video sequences. In ICCV, 2003.
[199] Flavio Padua, Rodrigo Carceroni, Geraldo Santos, and Kiriakos Kutulakos. Linear sequence-to-sequence alignment. TPAMI, 32, 2008.
[200] Niluthpol Chowdhury Mithun, Sujoy Paul, and Amit K Roy-Chowdhury. Weakly supervised video moment retrieval from text queries. In CVPR, 2019.
[201] Minjoon Jung, Youwon Jang, Seongho Choi, Joochan Kim, Jin-Hwa Kim, and Byoung-Tak Zhang. Background-aware moment detection for video moment retrieval. In WACV, 2025.
[202] Rohit Girdhar, Alaaeldin El-Nouby, Zhuang Liu, Mannat Singh, Kalyan Vasudev Alwala, Armand Joulin, and Ishan Misra. Imagebind: One embedding space to bind them all. In CVPR, 2023.
[203] Rui Qian, Tianjian Meng, Boqing Gong, Ming-Hsuan Yang, Huisheng Wang, Serge Belongie, and Yin Cui. Spatiotemporal contrastive video representation learning. In CVPR, 2021.
[204] AJ Piergiovanni, Anelia Angelova, and Michael S Ryoo. Evolving losses for unsupervised video representation learning. In CVPR, 2020.
[205] Jinpeng Wang, Yuting Gao, Ke Li, Jianguo Hu, Xinyang Jiang, Xiaowei Guo, Rongrong Ji, and Xing Sun. Enhancing unsupervised video representation learning by decoupling the scene and the motion. In AAAI, 2021.
[206] Hsin-Ying Lee, Jia-Bin Huang, Maneesh Singh, and Ming-Hsuan Yang. Unsupervised representation learning by sorting sequences. In ICCV, 2017.
[207] Nitish Srivastava, Elman Mansimov, and Ruslan Salakhudinov. Unsupervised learning of video representations using lstms. In ICML, 2015.
[208] Hiroaki Sakoe and Seibi Chiba. Dynamic programming algorithm optimization for spoken word recognition. In ICASSP, 1978.
[209] Marco Cuturi and Mathieu Blondel. Soft-dtw: a differentiable loss function for time-series. In ICML, 2017.
[210] Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin Tran. Image transformer. In ICML, 2018.
[211] Irwan Bello, Barret Zoph, Quoc Le, Ashish Vaswani, and Jonathon Shlens. Attention augmented convolutional networks. In ICCV, 2019.
[212] Kaidi Cao, Jingwei Ji, Zhangjie Cao, Chien-Yi Chang, and Juan Carlos Niebles. Few-shot video classification via temporal alignment. In CVPR, 2020.
[213] Hamid Rezatofighi, Nathan Tsoi, JunYoung Gwak, Amir Sadeghian, Ian Reid, and Silvio Savarese. Generalized intersection over union: A metric and a loss for bounding box regression. In CVPR, 2019.
[214] Fabian Caba Heilbron, Victor Escorcia, Bernard Ghanem, and Juan Carlos Niebles. Activitynet: A large-scale video benchmark for human activity understanding. In CVPR, 2015.
[215] Andrej Karpathy, George Toderici, Sanketh Shetty, Thomas Leung, Rahul Sukthankar, and Li Fei-Fei. Large-scale video classification with convolutional neural networks. In CVPR, 2014.
[216] Shyamal Buch, Victor Escorcia, Chuanqi Shen, Bernard Ghanem, and Juan Carlos Niebles. SST: single-stream temporal action proposals. In CVPR, 2017.
[217] Hao Zhang, Aixin Sun, Wei Jing, Liangli Zhen, Joey Tianyi Zhou, and Rick Siow Mong Goh. Natural language video localization: A revisit in span-based question answering framework. IEEE Trans. Pattern Anal. Mach. Intell., 44(8):4252–4266, 2022.
[218] Xiaoyang Sun, Hanli Wang, and Bin He. MABAN: multi-agent boundary-aware network for natural language moment retrieval. IEEE Trans. Image Process., pages 5884–5896, 2021.
[219] Songyang Zhang, Houwen Peng, Jianlong Fu, and Jiebo Luo. Learning 2d temporal adjacent networks for moment localization with natural language. In AAAI, 2020.
[220] Hang Zhang, Xin Li, and Lidong Bing. Video-LLaMA: An instruction-tuned audio-visual language model for video understanding. In EMNLP, 2023.
[221] Bin Lin, Bin Zhu, Yang Ye, Munan Ning, Peng Jin, and Li Yuan. Video-llava: Learning united visual representation by alignment before projection. In EMNLP, 2024.
[222] Shuhuai Ren, Linli Yao, Shicheng Li, Xu Sun, and Lu Hou. Timechat: A time-sensitive multimodal large language model for long video understanding. In CVPR, 2024.
[223] Qinghao Ye, Haiyang Xu, Jiabo Ye, Mingshi Yan, Anwen Hu, Haowei Liu, Qi Qian, Ji Zhang, Fei Huang, and Jingren Zhou. mplug-owi2: Revolutionizing multi-modal large language model with modality collaboration. CVPR, 2024.
[224] Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feed-forward neural networks. In International Conference on Artificial Intelligence and Statistics, 2010.
[225] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In ICLR, 2019.
[226] Zesen Cheng, Sicong Leng, Hang Zhang, Yifei Xin, Xin Li, Guanzheng Chen, Yongxin Zhu, Wenqi Zhang, Ziyang Luo, Deli Zhao, and Lidong Bing. Videollama 2: Advancing spatial-temporal modeling and audio understanding in video-llms. arXiv preprint arXiv:2406.07476, 2024.
[227] Saul B Needleman and Christian D Wunsch. A general method applicable to the search for similarities in the amino acid sequence of two proteins. Journal of Molecular Biology, pages 443–453, 1970.
[228] Narao Nakatsu, Yahiko Kambayashi, and Shuzo Yajima. A longest common subsequence algorithm suitable for similar text strings. Acta Inf., pages 133–142, 1982.
[229] Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In CVPR, 2018.
[230] Yogesh Kumar. Language-guided temporal token pruning for efficient VideoLLM processing. In EMNLP, 2025.
[231] Yogesh Kumar. Strictly causal streaming video anomaly detection with a theoretically-grounded state-space core. arXiv preprint arXiv:2608.24810, 2026.
[232] Yogesh Kumar. VideoLLM benchmarks and evaluation: A survey. arXiv preprint arXiv:2505.03829, 2025.
[233] Yogesh Kumar. Catching hallucinated citations in Video-LLM question answering: A self-verification pipeline and verifier ablation study. arXiv preprint arXiv:2608.15574, 2026.
[234] Shreya Shukla, Prajwal Gatti, Yogesh Kumar, Vikash Yadav, and Anand Mishra. Towards making flowchart images machine interpretable. In ICDAR, pages 505–521, 2023.