Papers › Generative Cross-Modal Retrieval: Memorizing Images in Multimodal Language Models for...

Generative Cross-Modal Retrieval: Memorizing Images in Multimodal Language Models for Retrieval and Beyond

16 Feb 2024arXiv:2402.10805archive 2025-07-28

Yongqi Li, Wenjie Wang, Leigang Qu, Liqiang Nie, Wenjie Li, Tat-Seng Chua

The recent advancements in generative language models have demonstrated their ability to memorize knowledge from documents and recall knowledge to respond to user queries effectively. Building upon this capability, we propose to enable multimodal large language models (MLLMs) to memorize and recall images within their parameters. Given a user query for visual content, the MLLM is anticipated to "recall" the relevant image from its parameters as the response. Achieving this target presents notable challenges, including inbuilt visual memory and visual recall schemes within MLLMs. To address these challenges, we introduce a generative cross-modal retrieval framework, which assigns unique identifier strings to represent images and involves two training steps: learning to memorize and learning to retrieve. The first step focuses on training the MLLM to memorize the association between images and their respective identifiers. The latter step teaches the MLLM to generate the corresponding identifier of the target image, given the textual query input. By memorizing images in MLLMs, we introduce a new paradigm to cross-modal retrieval, distinct from previous discriminative approaches. The experiments demonstrate that the generative paradigm performs effectively and efficiently even with large-scale image candidate sets.

PaperPDFCode 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="2402.10805")

Code

Syntology Ran 3 of 12 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 3 ran with no contract checked.

By repository: found in paper text by Syntology: 12 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

liyongqi67/GRACE found in paper text by Syntology 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

12 samples harvested; 3 ran; 0 honoured the contract we drafted; 9 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.

3ran
9unverified

Licence: 12 of the 12 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 liyongqi67/GRACE. “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.

GatedCrossAttentionBlock liyongqi67/GRACE/open_flamingo_deepspeed/open_flamingo/src/flamingo.py found in paper text by Syntology ran · metamorphic tier: invariant no licence file found · pointer only · 81667a1b9711fecf · report
MaskedCrossAttention liyongqi67/GRACE/open_flamingo_deepspeed/open_flamingo/src/flamingo.py found in paper text by Syntology ran · metamorphic tier: invariant no licence file found · pointer only · a517fe2bc0cafd0f · report
PerceiverAttention liyongqi67/GRACE/open_flamingo_deepspeed/open_flamingo/src/flamingo.py found in paper text by Syntology ran · metamorphic tier: invariant no licence file found · pointer only · bda9925505979900 · report
CrossAttentionMixin liyongqi67/GRACE/open_flamingo_deepspeed/open_flamingo/src/flamingo.py found in paper text by Syntology unverified no licence file found · pointer only · 2440d35032fda754 · report
DecoderLayerWithCrossAttention liyongqi67/GRACE/open_flamingo_deepspeed/open_flamingo/src/flamingo.py found in paper text by Syntology unverified no licence file found · pointer only · e2a64ac7814b0a7e · report
Flamingo liyongqi67/GRACE/open_flamingo_deepspeed/open_flamingo/src/flamingo.py found in paper text by Syntology unverified no licence file found · pointer only · a4166fca23b64924 · report
PerceiverResampler liyongqi67/GRACE/open_flamingo_deepspeed/open_flamingo/src/flamingo.py found in paper text by Syntology unverified no licence file found · pointer only · c7929ab2509b5011 · report
VLM liyongqi67/GRACE/open_flamingo_deepspeed/open_flamingo/src/flamingo.py found in paper text by Syntology unverified no licence file found · pointer only · 32419e68bc383cf5 · report
VLMOutputWithPast liyongqi67/GRACE/open_flamingo_deepspeed/open_flamingo/src/flamingo.py found in paper text by Syntology unverified no licence file found · pointer only · e15a136b2df3c5fa · report
VLMWithCrossAttention liyongqi67/GRACE/open_flamingo_deepspeed/open_flamingo/src/flamingo.py found in paper text by Syntology unverified no licence file found · pointer only · 0ccbc1d02b3ade24 · report
extend_instance liyongqi67/GRACE/open_flamingo_deepspeed/open_flamingo/src/flamingo.py found in paper text by Syntology unverified no licence file found · pointer only · 96919fc2f4245c57 · report
setattr_recursive liyongqi67/GRACE/open_flamingo_deepspeed/open_flamingo/src/flamingo.py found in paper text by Syntology unverified no licence file found · pointer only · d84729d3d1bb1d83 · report

Tasks

Cross-Modal RetrievalRetrieval

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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