Papers › Expectation-Maximization Contrastive Learning for Compact Video-and-Language Representations

Expectation-Maximization Contrastive Learning for Compact Video-and-Language Representations

21 Nov 2022arXiv:2211.11427archive 2025-07-28

Peng Jin, Jinfa Huang, Fenglin Liu, Xian Wu, Shen Ge, Guoli Song, David A. Clifton, Jie Chen

Most video-and-language representation learning approaches employ contrastive learning, e.g., CLIP, to project the video and text features into a common latent space according to the semantic similarities of text-video pairs. However, such learned shared latent spaces are not often optimal, and the modality gap between visual and textual representation can not be fully eliminated. In this paper, we propose Expectation-Maximization Contrastive Learning (EMCL) to learn compact video-and-language representations. Specifically, we use the Expectation-Maximization algorithm to find a compact set of bases for the latent space, where the features could be concisely represented as the linear combinations of these bases. Such feature decomposition of video-and-language representations reduces the rank of the latent space, resulting in increased representing power for the semantics. Extensive experiments on three benchmark text-video retrieval datasets prove that our EMCL can learn more discriminative video-and-language representations than previous methods, and significantly outperform previous state-of-the-art methods across all metrics. More encouragingly, the proposed method can be applied to boost the performance of existing approaches either as a jointly training layer or an out-of-the-box inference module with no extra training, making it easy to be incorporated into any existing methods.

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="2211.11427")

Code

Syntology Ran 3 of 4 code samples harvested from 2 repositories linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · our draft was wrong; 2 ran · fixture could not drive it.

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

jpthu17/emcl officialmentioned in papermentioned on GitHubpytorch report
jpthu17/HBI mentioned on GitHubpytorch report
jpthu17/dicosa mentioned on GitHubpytorchApache-2.0 report
jpthu17/diffusionret mentioned on GitHubpytorchApache-2.0 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

4 samples harvested; 3 ran; 0 honoured the contract we drafted; 1 has 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 · our draft was wrong
2ran · fixture could not drive it
1unverified

Licence: 0 of the 4 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

get_args jpthu17/EMCL/video_retrieval/EMCL-Net/main_retrieval.py official repository ran · our draft was wrong MIT (permissive) · eba8c64dc2ab559d · report
set_seed_logger jpthu17/EMCL/video_retrieval/EMCL-Net/main_retrieval.py official repository unverified MIT (permissive) · 8952edef143f2747 · report
cluster_dpc_knn jpthu17/HBI/HBI/models/cluster.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · f09b191d136f2213 · report
index_points jpthu17/HBI/HBI/models/cluster.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · a1d91d4a1b5bbd6f · report

Tasks

Contrastive LearningRepresentation LearningRetrievalVideo CaptioningVideo Question AnsweringVideo RetrievalVisual Question Answering (VQA)

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Video Captioning MSR-VTT EMCL-Net BLEU-4 45.3 #22 of 24 Archive leaderboard report
Video Captioning MSR-VTT EMCL-Net CIDEr 54.6 #22 of 24 Archive leaderboard report
Video Captioning MSR-VTT EMCL-Net METEOR 30.2 #22 of 24 Archive leaderboard report
Video Captioning MSR-VTT EMCL-Net ROUGE-L 63.2 #22 of 24 Archive leaderboard report
Video Question Answering MSRVTT-QA EMCL-Net Accuracy 45.8 #9 of 14 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net++ text-to-video Mean Rank 1 #16 of 31 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net++ text-to-video R@1 50.6 #16 of 31 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net++ text-to-video R@5 78.7 #16 of 31 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net++ text-to-video R@50 98.1 #16 of 31 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net++ video-to-text Mean Rank 1 #16 of 31 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net++ video-to-text R@1 50.6 #16 of 31 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net++ video-to-text R@5 78.9 #16 of 31 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net++ video-to-text R@50 98.4 #16 of 31 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net text-to-video Mean Rank 2 #24 of 31 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net text-to-video R@1 41.2 #24 of 31 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net text-to-video R@5 72.7 #24 of 31 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net video-to-text Mean Rank 2 #24 of 31 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net video-to-text R@1 42.7 #24 of 31 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net video-to-text R@5 74 #24 of 31 Archive leaderboard report
Video Retrieval ActivityNet EMCL-Net video-to-text R@50 98.3 #24 of 31 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net++ text-to-video R@1 25.9 #15 of 38 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net++ text-to-video R@5 46.4 #15 of 38 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net++ video-to-text Mean Rank 8 #15 of 38 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net++ video-to-text R@1 26.7 #15 of 38 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net++ video-to-text R@10 54.4 #15 of 38 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net++ video-to-text R@5 44.7 #15 of 38 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net text-to-video R@1 23.9 #22 of 38 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net text-to-video R@10 50.9 #22 of 38 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net text-to-video R@5 42.4 #22 of 38 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net video-to-text Mean Rank 12 #22 of 38 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net video-to-text R@1 22.2 #22 of 38 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net video-to-text R@10 49.2 #22 of 38 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net video-to-text R@5 40.6 #22 of 38 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net (Ours)++ LSMDC Rohrbach et al. (2015) text-to-video Mean Rank 8 #38 of 38 Archive leaderboard report
Video Retrieval LSMDC EMCL-Net (Ours)++ LSMDC Rohrbach et al. (2015) text-to-video R@10 53.7 #38 of 38 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net++ text-to-video Mean Rank 1 #15 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net++ text-to-video R@1 51.6 #15 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net++ text-to-video R@10 85.3 #15 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net++ text-to-video R@5 78.1 #15 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net++ video-to-text Mean Rank 1 #15 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net++ video-to-text R@1 51.8 #15 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net++ video-to-text R@10 88 #15 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net++ video-to-text R@5 80.2 #15 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net text-to-video Mean Rank 2 #32 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net text-to-video R@1 46.8 #32 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net text-to-video R@10 83.1 #32 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net text-to-video R@5 73.1 #32 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net video-to-text Mean Rank 2 #32 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net video-to-text R@1 46.5 #32 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net video-to-text R@10 83.5 #32 of 63 Archive leaderboard report
Video Retrieval MSR-VTT-1kA EMCL-Net video-to-text R@5 73.5 #32 of 63 Archive leaderboard report
Visual Question Answering (VQA) MSRVTT-QA EMCL-Net Accuracy 0.458 #13 of 34 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

CLIPContrastive 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