Papers › Video Corpus Moment Retrieval with Contrastive Learning

Video Corpus Moment Retrieval with Contrastive Learning

13 May 2021arXiv:2105.06247archive 2025-07-28

Hao Zhang, Aixin Sun, Wei Jing, Guoshun Nan, Liangli Zhen, Joey Tianyi Zhou, Rick Siow Mong Goh

Given a collection of untrimmed and unsegmented videos, video corpus moment retrieval (VCMR) is to retrieve a temporal moment (i.e., a fraction of a video) that semantically corresponds to a given text query. As video and text are from two distinct feature spaces, there are two general approaches to address VCMR: (i) to separately encode each modality representations, then align the two modality representations for query processing, and (ii) to adopt fine-grained cross-modal interaction to learn multi-modal representations for query processing. While the second approach often leads to better retrieval accuracy, the first approach is far more efficient. In this paper, we propose a Retrieval and Localization Network with Contrastive Learning (ReLoCLNet) for VCMR. We adopt the first approach and introduce two contrastive learning objectives to refine video encoder and text encoder to learn video and text representations separately but with better alignment for VCMR. The video contrastive learning (VideoCL) is to maximize mutual information between query and candidate video at video-level. The frame contrastive learning (FrameCL) aims to highlight the moment region corresponds to the query at frame-level, within a video. Experimental results show that, although ReLoCLNet encodes text and video separately for efficiency, its retrieval accuracy is comparable with baselines adopting cross-modal interaction learning.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2105.06247")

Code

Syntology Ran 5 of 14 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · honoured contract; 4 ran with no contract checked.

By repository: community (archive-listed): 14 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

IsaacChanghau/ReLoCLNet mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 5 ran; 1 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
4ran
9unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from IsaacChanghau/ReLoCLNet. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_overlap IsaacChanghau/ReLoCLNet/utils/basic_utils.py community (archive-listed) ran MIT (permissive) · 74637d0535a2a594 · report
compute_temporal_iou IsaacChanghau/ReLoCLNet/utils/temporal_nms.py community (archive-listed) ran fingerprinted MIT (permissive) · ea2ba2c075c6b18b · report
mask_logits IsaacChanghau/ReLoCLNet/method_tvr/model.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 1c17153fb5488283 · report
time_to_index IsaacChanghau/ReLoCLNet/utils/basic_utils.py community (archive-listed) ran MIT (permissive) · 65345dbb8096725d · report
uniform_feature_sampling IsaacChanghau/ReLoCLNet/utils/basic_utils.py community (archive-listed) ran fingerprinted MIT (permissive) · 2429bc2313c0669b · report
count_parameters IsaacChanghau/ReLoCLNet/utils/model_utils.py community (archive-listed) unverified MIT (permissive) · edb929dece68582e · report
get_negative_expectation IsaacChanghau/ReLoCLNet/method_tvr/contrastive.py community (archive-listed) unverified MIT (permissive) · 4f45aaa5d5ee3903 · report
get_positive_expectation IsaacChanghau/ReLoCLNet/method_tvr/contrastive.py community (archive-listed) unverified MIT (permissive) · d71a913407877e0a · report
get_proposal_interface IsaacChanghau/ReLoCLNet/method_tvr/proposal.py community (archive-listed) unverified MIT (permissive) · 381069cbe9170bdd · report
log_sum_exp IsaacChanghau/ReLoCLNet/method_tvr/contrastive.py community (archive-listed) unverified MIT (permissive) · 80b5572ac3d22dd3 · report
onehot IsaacChanghau/ReLoCLNet/method_tvr/model_components.py community (archive-listed) unverified MIT (permissive) · 23b5db90923f7386 · report
pool_across_time IsaacChanghau/ReLoCLNet/utils/model_utils.py community (archive-listed) unverified MIT (permissive) · 286f821a3988fcbe · report
prepare_batch_inputs IsaacChanghau/ReLoCLNet/method_tvr/start_end_dataset.py community (archive-listed) unverified MIT (permissive) · 493ba890112a446e · report
temporal_non_maximum_suppression IsaacChanghau/ReLoCLNet/utils/temporal_nms.py community (archive-listed) unverified MIT (permissive) · d235ed6d33e43a98 · report

Tasks

Contrastive LearningMoment RetrievalRetrievalVideo Corpus Moment Retrieval

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Contrastive Learning

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections