Papers › HERO: Hierarchical Encoder for Video+Language Omni-representation Pre-training

HERO: Hierarchical Encoder for Video+Language Omni-representation Pre-training

1 May 2020EMNLP 2020 11arXiv:2005.00200archive 2025-07-28

Linjie Li, Yen-Chun Chen, Yu Cheng, Zhe Gan, Licheng Yu, Jingjing Liu

We present HERO, a novel framework for large-scale video+language omni-representation learning. HERO encodes multimodal inputs in a hierarchical structure, where local context of a video frame is captured by a Cross-modal Transformer via multimodal fusion, and global video context is captured by a Temporal Transformer. In addition to standard Masked Language Modeling (MLM) and Masked Frame Modeling (MFM) objectives, we design two new pre-training tasks: (i) Video-Subtitle Matching (VSM), where the model predicts both global and local temporal alignment; and (ii) Frame Order Modeling (FOM), where the model predicts the right order of shuffled video frames. HERO is jointly trained on HowTo100M and large-scale TV datasets to gain deep understanding of complex social dynamics with multi-character interactions. Comprehensive experiments demonstrate that HERO achieves new state of the art on multiple benchmarks over Text-based Video/Video-moment Retrieval, Video Question Answering (QA), Video-and-language Inference and Video Captioning tasks across different domains. We also introduce two new challenging benchmarks How2QA and How2R for Video QA and Retrieval, collected from diverse video content over multimodalities.

PaperPDFConference PDFCodeCode 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="2005.00200")

Code

Syntology Ran 5 of 13 code samples harvested from 2 repositories linked to this paper; 8 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 8 samples from 1 repository, 3 ran; community (archive-listed): 5 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.

linjieli222/HERO officialmentioned in papermentioned 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

13 samples harvested; 5 ran; 2 honoured the contract we drafted; 8 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.

2ran · honoured contract
1ran · our draft was wrong
2ran
8unverified

Licence: 8 of the 13 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.

swish linjieli222/HERO/model/layers.py official repository ran · our draft was wrong fingerprinted MIT recorded; this copy not marked cleared · pointer only · 0f786c407fb1ee4c · report
gelu linjieli222/HERO/model/layers.py official repository ran · honoured contract fingerprinted MIT recorded; this copy not marked cleared · pointer only · 29af270e862dd867 · report
gelu_new linjieli222/HERO/model/layers.py official repository ran · honoured contract fingerprinted MIT recorded; this copy not marked cleared · pointer only · de48fec0ec9764b0 · report
compute_accuracies linjieli222/HERO/eval_videoQA.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 29d0af7d06f51fd3 · report
compute_accuracies linjieli222/HERO/eval_violin.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 68545d5324dc298c · report
load_partial_checkpoint linjieli222/HERO/model/modeling_utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · c4a4d88af8bdc891 · report
mask_logits linjieli222/HERO/model/modeling_utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 247245b1fec40c1b · report
prune_linear_layer linjieli222/HERO/model/modeling_utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 57947ced49b189c3 · report
STConv3D linjieli222/hero_video_feature_extractor/mil-nce/model.py community (archive-listed) ran · metamorphic tier: invariant MIT (permissive) · 43a229d4e3c68d02 · report
SelfGating linjieli222/hero_video_feature_extractor/mil-nce/model.py community (archive-listed) ran · metamorphic tier: invariant MIT (permissive) · 8b37c80ce67e3097 · report
InceptionBlock linjieli222/hero_video_feature_extractor/mil-nce/model.py community (archive-listed) unverified MIT (permissive) · cf99554537d72250 · report
S3D linjieli222/hero_video_feature_extractor/mil-nce/model.py community (archive-listed) unverified MIT (permissive) · de412728921bec03 · report
build_model linjieli222/hero_video_feature_extractor/mil-nce/model.py community (archive-listed) unverified MIT (permissive) · 2a1f8712954c73f8 · report

Tasks

Language ModelingLanguage ModellingMasked Language ModelingMoment RetrievalQuestion AnsweringRepresentation LearningRetrievalVideo CaptioningVideo Corpus Moment RetrievalVideo Question AnsweringVideo Retrieval

Datasets

Introduced by this paper, per the archive.

How2QAHow2R

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Video Question Answering How2QA Hero w/ pre-training Accuracy 77.75 #5 of 8 Archive leaderboard report
Video Question Answering TVQA Hero w/ pre-training Accuracy 74.24 #5 of 6 Archive leaderboard report
Video Retrieval TVR Hero w/ pre-training R@1 4.34 #1 of 2 Archive leaderboard report
Video Retrieval TVR Hero w/ pre-training R@10 13.97 #1 of 2 Archive leaderboard report
Video Retrieval TVR Hero w/ pre-training R@100 21.78 #1 of 2 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

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerReLUResidual ConnectionSoftmaxTransformer

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