Papers › Oscar: Object-Semantics Aligned Pre-training for Vision-Language Tasks

Oscar: Object-Semantics Aligned Pre-training for Vision-Language Tasks

13 Apr 2020ECCV 2020 8arXiv:2004.06165archive 2025-07-28

Xiujun Li, Xi Yin, Chunyuan Li, Pengchuan Zhang, Xiao-Wei Hu, Lei Zhang, Lijuan Wang, Houdong Hu, Li Dong, Furu Wei, Yejin Choi, Jianfeng Gao

Large-scale pre-training methods of learning cross-modal representations on image-text pairs are becoming popular for vision-language tasks. While existing methods simply concatenate image region features and text features as input to the model to be pre-trained and use self-attention to learn image-text semantic alignments in a brute force manner, in this paper, we propose a new learning method Oscar (Object-Semantics Aligned Pre-training), which uses object tags detected in images as anchor points to significantly ease the learning of alignments. Our method is motivated by the observation that the salient objects in an image can be accurately detected, and are often mentioned in the paired text. We pre-train an Oscar model on the public corpus of 6.5 million text-image pairs, and fine-tune it on downstream tasks, creating new state-of-the-arts on six well-established vision-language understanding and generation tasks.

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

Code

Syntology Ran 11 of 23 code samples harvested from 3 repositories linked to this paper; 12 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 7 ran with no contract checked.

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

microsoft/Oscar officialmentioned in papermentioned on GitHubpytorch report
ThanThoai/Visual-Question-Answering_Vietnamese mentioned on GitHubpytorchApache-2.0 report
milvlg/rosita mentioned on GitHubpytorch report
rmokady/clip_prefix_caption 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

23 samples harvested; 11 ran; 1 honoured the contract we drafted; 12 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
3ran · our draft was wrong
7ran
12unverified

Licence: 0 of the 23 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 3 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.

make_data_sampler microsoft/Oscar/oscar/run_captioning.py official repository ran MIT (permissive) · e17f1049b8148f71 · report
Backbone milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) ran Apache-2.0 (permissive) · bb6ea058ef7c09e1 · report
FeedForward milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · 1e4945df552f6045 · report
LayerNorm milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) ran Apache-2.0 (permissive) · fcab94bf5f3f29d5 · report
Pooler milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) ran Apache-2.0 (permissive) · 14d39fe285bd537f · report
TextEmbeddings milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) ran Apache-2.0 (permissive) · 1e2c2b0e7e10968a · report
VisualEmbeddings milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) ran Apache-2.0 (permissive) · b0d904c1669cb4b0 · report
gelu milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) ran · honoured contract fingerprinted Apache-2.0 (permissive) · 8d619e54294fb0b7 · report
make_mask ThanThoai/Visual-Question-Answering_Vietnamese/model.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · e766a0a3063c15d0 · report
optimal_transport_dist milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 06b045032beeb885 · report
trace milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 412cdf6ed5178c2c · report
ImgfeatHead milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) unverified Apache-2.0 (permissive) · 01007aebf0b1b84a · report
MHAtt milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) unverified Apache-2.0 (permissive) · b97a0ae0d5f606f5 · report
MmITMHead milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) unverified Apache-2.0 (permissive) · 8bc6b6ae220fc251 · report
MmQAHead milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) unverified Apache-2.0 (permissive) · b90f9bcd35cb01ad · report
Net milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) unverified Apache-2.0 (permissive) · 4fde87aac2867c6f · report
SelfAtt milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) unverified Apache-2.0 (permissive) · 00f7c9f9cc6a5223 · report
TextMLMHead milvlg/rosita/rosita/modeling/pretrain_tasks/rosita.py community (archive-listed) unverified Apache-2.0 (permissive) · 5b65287416e63add · report
get_data_en ThanThoai/Visual-Question-Answering_Vietnamese/merge_raw_data.py community (archive-listed) unverified Apache-2.0 (permissive) · 5d4575f5eacfe1f9 · report
get_list_text ThanThoai/Visual-Question-Answering_Vietnamese/merge_raw_data.py community (archive-listed) unverified Apache-2.0 (permissive) · b9f7aa42c0afe2be · report
prepare_data ThanThoai/Visual-Question-Answering_Vietnamese/extract_image.py community (archive-listed) unverified Apache-2.0 (permissive) · e6bf616333cbcc3b · report
read_json ThanThoai/Visual-Question-Answering_Vietnamese/merge_raw_data.py community (archive-listed) unverified Apache-2.0 (permissive) · ecf115f3542eefd4 · report
train_model ThanThoai/Visual-Question-Answering_Vietnamese/extract_image.py community (archive-listed) unverified Apache-2.0 (permissive) · bdc984dffbfed9a3 · report

Tasks

Cross-Modal RetrievalImage CaptioningImage RetrievalImage-text matchingImage-to-Text RetrievalVisual Question Answering (VQA)

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Cross-Modal Retrieval COCO 2014 Oscar Image-to-text R@1 73.5 #19 of 36 Archive leaderboard report
Cross-Modal Retrieval COCO 2014 Oscar Image-to-text R@10 96.0 #19 of 36 Archive leaderboard report
Cross-Modal Retrieval COCO 2014 Oscar Image-to-text R@5 92.2 #19 of 36 Archive leaderboard report
Cross-Modal Retrieval COCO 2014 Oscar Text-to-image R@1 57.5 #19 of 36 Archive leaderboard report
Cross-Modal Retrieval COCO 2014 Oscar Text-to-image R@10 89.8 #19 of 36 Archive leaderboard report
Cross-Modal Retrieval COCO 2014 Oscar Text-to-image R@5 82.8 #19 of 36 Archive leaderboard report
Image Captioning COCO Captions Oscar BLEU-4 41.7 #11 of 41 Archive leaderboard report
Image Captioning COCO Captions Oscar CIDER 140 #11 of 41 Archive leaderboard report
Image Captioning COCO Captions Oscar METEOR 30.6 #11 of 41 Archive leaderboard report
Image Captioning COCO Captions Oscar SPICE 24.5 #11 of 41 Archive leaderboard report
Image Captioning nocaps-val-overall OSCAR CIDEr 80.9 #11 of 11 Archive leaderboard report
Image Captioning nocaps-val-overall OSCAR Pretrain (#images) 345M #11 of 11 Archive leaderboard report
Image Captioning nocaps-val-overall OSCAR SPICE 11.3 #11 of 11 Archive leaderboard report
Image Retrieval COCO (Common Objects in Context) Oscar Recall@10 98.3 #6 of 6 Archive leaderboard report
Image-text matching CommercialAdsDataset OSCAR ADD(S) AUC 87.45 #4 of 8 Archive leaderboard report
Image-to-Text Retrieval COCO (Common Objects in Context) Oscar Recall@10 99.8 #7 of 9 Archive leaderboard report
Visual Question Answering (VQA) VQA v2 test-dev Oscar Accuracy 73.82 #20 of 56 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

Introduced by this paper: OSCAR

OSCAR

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