Papers › MeaCap: Memory-Augmented Zero-shot Image Captioning

MeaCap: Memory-Augmented Zero-shot Image Captioning

6 Mar 2024CVPR 2024 1arXiv:2403.03715archive 2025-07-28

Zequn Zeng, Yan Xie, Hao Zhang, Chiyu Chen, Zhengjue Wang, Bo Chen

Zero-shot image captioning (IC) without well-paired image-text data can be divided into two categories, training-free and text-only-training. Generally, these two types of methods realize zero-shot IC by integrating pretrained vision-language models like CLIP for image-text similarity evaluation and a pre-trained language model (LM) for caption generation. The main difference between them is whether using a textual corpus to train the LM. Though achieving attractive performance w.r.t. some metrics, existing methods often exhibit some common drawbacks. Training-free methods tend to produce hallucinations, while text-only-training often lose generalization capability. To move forward, in this paper, we propose a novel Memory-Augmented zero-shot image Captioning framework (MeaCap). Specifically, equipped with a textual memory, we introduce a retrieve-then-filter module to get key concepts that are highly related to the image. By deploying our proposed memory-augmented visual-related fusion score in a keywords-to-sentence LM, MeaCap can generate concept-centered captions that keep high consistency with the image with fewer hallucinations and more world-knowledge. The framework of MeaCap achieves the state-of-the-art performance on a series of zero-shot IC settings. Our code is available at https://github.com/joeyz0z/MeaCap.

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

Code

Syntology Ran 6 of 10 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 2 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

joeyz0z/meacap officialmentioned in papermentioned on GitHubpytorch 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

10 samples harvested; 6 ran; 0 honoured the contract we drafted; 4 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 · fixture could not drive it
4ran
4unverified

Licence: 10 of the 10 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 joeyz0z/MeaCap. “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.

BARTDataset joeyz0z/MeaCap/models/main_CLIPe.py official repository ran no licence file found · pointer only · e5642d3fd6e24304 · report
enforce_repetition_penalty_parallel joeyz0z/MeaCap/models/main_CLIPe.py official repository ran · fixture could not drive it no licence file found · pointer only · f39a0b36cce201d2 · report
filter_relation joeyz0z/meacap/models/model_utils.py official repository ran no licence file found · pointer only · 38b19fe2fa7391c9 · report
get_encoder_labels joeyz0z/MeaCap/models/main_CLIPe.py official repository ran · fixture could not drive it no licence file found · pointer only · 67b9c6bc431fc39b · report
merge_graph_dict joeyz0z/meacap/models/model_utils.py official repository ran no licence file found · pointer only · 76142d97b7ca58f8 · report
merge_sim_entities joeyz0z/meacap/models/model_utils.py official repository ran no licence file found · pointer only · 0f73f0facaae17cf · report
_generate_no_beam_search_parallel joeyz0z/MeaCap/models/main_CLIPe.py official repository unverified no licence file found · pointer only · c6ae5ad6d6d1cdac · report
conzic_sample_function joeyz0z/MeaCap/models/main_CLIPe.py official repository unverified no licence file found · pointer only · d462a2b62d3796e1 · report
generate_function joeyz0z/MeaCap/models/main_CLIPe.py official repository unverified no licence file found · pointer only · 03d9a31b0921cfac · report
generate_step_parallel joeyz0z/MeaCap/models/main_CLIPe.py official repository unverified no licence file found · pointer only · 1531747d9b0129e6 · report

Tasks

Caption GenerationImage CaptioningLanguage ModellingSentenceWorld Knowledgetext similarity

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

CLIP

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