{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2508-15439","title":"Aligning Moments in Time using Video Queries","arxiv_id":"2508.15439","date":"2025-08-21","proceeding":"ICCV","authors":["Yogesh Kumar","Uday Agarwal","Manish Gupta","Anand Mishra"],"abstract":"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 13.1% in R@1 and 8.1% in mIoU on an absolute scale compared to state-of-the-art methods on the popular ActivityNet-VRL dataset. Additionally, on our newly proposed dataset, SportsMoments, MATR shows a 14.7% gain in R@1 and a 14.4% gain in mIoU on an absolute scale over strong baselines.","url_abs":"https://arxiv.org/abs/2508.15439","url_pdf":"https://arxiv.org/pdf/2508.15439","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2508.15439","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2508.15439"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/vl2g/MATR","reach":null}],"summary":{"ran":1,"ran_draft_wrong":1,"ran_fixture":2,"unverified":4},"by_repo_kind":{"found_in_text":{"samples":8,"ran":4,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"7f43eb575fd3e179","entry":"VarTable","repo":"vl2g/MATR","repo_kind":"found_in_text","path":"model/matr.py","file_url":"https://github.com/vl2g/MATR/blob/HEAD/model/matr.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7f43eb575fd3e179"}},{"code_sha256_prefix":"215efb486f250141","entry":"batch_NW","repo":"vl2g/MATR","repo_kind":"found_in_text","path":"model/matr.py","file_url":"https://github.com/vl2g/MATR/blob/HEAD/model/matr.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"215efb486f250141"}},{"code_sha256_prefix":"95f5c8a903667f35","entry":"minGamma","repo":"vl2g/MATR","repo_kind":"found_in_text","path":"model/matr.py","file_url":"https://github.com/vl2g/MATR/blob/HEAD/model/matr.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"95f5c8a903667f35"}},{"code_sha256_prefix":"c32dab01ad8e0a83","entry":"minProb","repo":"vl2g/MATR","repo_kind":"found_in_text","path":"model/matr.py","file_url":"https://github.com/vl2g/MATR/blob/HEAD/model/matr.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c32dab01ad8e0a83"}},{"code_sha256_prefix":"62e850bb45e52bc9","entry":"Model","repo":"vl2g/MATR","repo_kind":"found_in_text","path":"model/matr.py","file_url":"https://github.com/vl2g/MATR/blob/HEAD/model/matr.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"62e850bb45e52bc9"}},{"code_sha256_prefix":"f647cb52e33ece46","entry":"batch_dropDTW","repo":"vl2g/MATR","repo_kind":"found_in_text","path":"model/matr.py","file_url":"https://github.com/vl2g/MATR/blob/HEAD/model/matr.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f647cb52e33ece46"}},{"code_sha256_prefix":"6577fff738b3db0f","entry":"compute_alignment_loss","repo":"vl2g/MATR","repo_kind":"found_in_text","path":"model/matr.py","file_url":"https://github.com/vl2g/MATR/blob/HEAD/model/matr.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6577fff738b3db0f"}},{"code_sha256_prefix":"2785d66e6ea36b95","entry":"compute_all_costs","repo":"vl2g/MATR","repo_kind":"found_in_text","path":"model/matr.py","file_url":"https://github.com/vl2g/MATR/blob/HEAD/model/matr.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2785d66e6ea36b95"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CV","source":"arxiv_api"},"syntology_extracted_results":null}