Papers › Image Difference Captioning with Pre-training and Contrastive Learning

Image Difference Captioning with Pre-training and Contrastive Learning

9 Feb 2022arXiv:2202.04298archive 2025-07-28

Linli Yao, Weiying Wang, Qin Jin

The Image Difference Captioning (IDC) task aims to describe the visual differences between two similar images with natural language. The major challenges of this task lie in two aspects: 1) fine-grained visual differences that require learning stronger vision and language association and 2) high-cost of manual annotations that leads to limited supervised data. To address these challenges, we propose a new modeling framework following the pre-training-finetuning paradigm. Specifically, we design three self-supervised tasks and contrastive learning strategies to align visual differences and text descriptions at a fine-grained level. Moreover, we propose a data expansion strategy to utilize extra cross-task supervision information, such as data for fine-grained image classification, to alleviate the limitation of available supervised IDC data. Extensive experiments on two IDC benchmark datasets, CLEVR-Change and Birds-to-Words, demonstrate the effectiveness of the proposed modeling framework. The codes and models will be released at https://github.com/yaolinli/IDC.

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

Code

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

By repository: official repository: 11 samples from 1 repository, 9 ran; 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yaolinli/idc 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; 11 ran; 2 honoured the contract we drafted; 2 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
8ran
2unverified

Licence: 2 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 yaolinli/IDC. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

AttnBlock yaolinli/IDC/bird/modules_pretrain_bird.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 0536f292ece1ae96 · report
GELU yaolinli/IDC/bird/modules_pretrain_bird.py official repository ran fingerprinted MIT (permissive) · e86a3c237403c93d · report
LayerNorm yaolinli/IDC/bird/modules_pretrain_bird.py official repository ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 2691a73a5c57364c · report
PositionalEmb yaolinli/IDC/bird/modules_pretrain_bird.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 4663d63f0f68ef0e · report
PositionwiseFeedForward yaolinli/IDC/bird/modules_pretrain_bird.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 7b01671a89b20337 · report
RegionFeatureRegression yaolinli/IDC/bird/modules_pretrain_bird.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 32b9ffeb69e60199 · report
SublayerConnection yaolinli/IDC/bird/modules_pretrain_bird.py official repository ran MIT (permissive) · 36faad4da521bc32 · report
Transformer yaolinli/IDC/bird/modules_pretrain_bird.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 5338e216478e90de · report
con_loss yaolinli/IDC/bird/modules_pretrain_bird.py official repository ran · honoured contract fingerprinted MIT (permissive) · b9606d7ce4b3d345 · report
Model yaolinli/IDC/bird/modules_pretrain_bird.py official repository unverified MIT (permissive) · 86626c456b061260 · report
MultiHeadAttention yaolinli/IDC/bird/modules_pretrain_bird.py official repository unverified MIT (permissive) · 2bef0240af575848 · report
attention identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 875f05a473ae1687 · report
gelu identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · 56a9ab06b860b180 · report

Tasks

Contrastive LearningFine-Grained Image ClassificationImage Classificationimage-classification

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