Papers › Learning Customized Visual Models with Retrieval-Augmented Knowledge

Learning Customized Visual Models with Retrieval-Augmented Knowledge

17 Jan 2023CVPR 2023 1arXiv:2301.07094archive 2025-07-28

Haotian Liu, Kilho Son, Jianwei Yang, Ce Liu, Jianfeng Gao, Yong Jae Lee, Chunyuan Li

Image-text contrastive learning models such as CLIP have demonstrated strong task transfer ability. The high generality and usability of these visual models is achieved via a web-scale data collection process to ensure broad concept coverage, followed by expensive pre-training to feed all the knowledge into model weights. Alternatively, we propose REACT, REtrieval-Augmented CusTomization, a framework to acquire the relevant web knowledge to build customized visual models for target domains. We retrieve the most relevant image-text pairs (~3% of CLIP pre-training data) from the web-scale database as external knowledge, and propose to customize the model by only training new modualized blocks while freezing all the original weights. The effectiveness of REACT is demonstrated via extensive experiments on classification, retrieval, detection and segmentation tasks, including zero, few, and full-shot settings. Particularly, on the zero-shot classification task, compared with CLIP, it achieves up to 5.4% improvement on ImageNet and 3.7% on the ELEVATER benchmark (20 datasets).

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

Code

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

By repository: official repository: 17 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.

microsoft/react officialmentioned 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

17 samples harvested; 6 ran; 0 honoured the contract we drafted; 11 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 · violated contract
4ran · our draft was wrong
1ran
11unverified

Licence: 0 of the 17 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 microsoft/react. “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.

basic_clean microsoft/react/react_customization/src/open_clip/tokenizer.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 98f385d847636a3e · report
convert_to_custom_text_state_dict microsoft/react/react_customization/src/open_clip/model.py official repository ran · violated contract MIT (permissive) · f19962ebb134b3d7 · report
get_cast_dtype microsoft/react/react_customization/src/open_clip/model.py official repository ran · our draft was wrong MIT (permissive) · dcd422d66b0581d8 · report
get_pairs microsoft/react/react_customization/src/open_clip/tokenizer.py official repository ran · our draft was wrong MIT (permissive) · d919ae32e5e4e616 · report
load_state_dict microsoft/react/react_customization/src/open_clip/factory.py official repository ran MIT (permissive) · 4b3a4d17e1df3140 · report
whitespace_clean microsoft/react/react_customization/src/open_clip/tokenizer.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 9542161e9640b858 · report
build_model_from_openai_state_dict microsoft/react/react_customization/src/open_clip/model.py official repository unverified MIT (permissive) · 26a799d4c5d477a1 · report
gather_features microsoft/react/react_customization/src/open_clip/loss.py official repository unverified MIT (permissive) · ddcbd45e940484ee · report
generate_readme microsoft/react/react_customization/src/open_clip/push_to_hf_hub.py official repository unverified MIT (permissive) · f41a0f1396c97cb4 · report
get_model_config microsoft/react/react_customization/src/open_clip/factory.py official repository unverified MIT (permissive) · 5c7cf820e99443ff · report
get_tokenizer microsoft/react/react_customization/src/open_clip/factory.py official repository unverified MIT (permissive) · f34d8f34635af394 · report
list_pretrained microsoft/react/react_customization/src/open_clip/pretrained.py official repository unverified MIT (permissive) · 0131858929a8ca1e · report
list_pretrained_models_by_tag microsoft/react/react_customization/src/open_clip/pretrained.py official repository unverified MIT (permissive) · 219f782c556ae686 · report
list_pretrained_tags_by_model microsoft/react/react_customization/src/open_clip/pretrained.py official repository unverified MIT (permissive) · 3e68e3ec56ca86ee · report
load_openai_model microsoft/react/react_customization/src/open_clip/openai.py official repository unverified MIT (permissive) · a1693b09a14a516f · report
prepare_inputs_for_generation microsoft/react/react_customization/src/open_clip/coca_model.py official repository unverified MIT (permissive) · fb651d0a97fd4d3f · report
register_pooler microsoft/react/react_customization/src/open_clip/hf_model.py official repository unverified MIT (permissive) · 2a377da4a76a2d44 · report

Tasks

Contrastive LearningRetrievalSemi-Supervised Image ClassificationZero-Shot LearningZero-Shot Transfer Image Classification

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Semi-Supervised Image Classification ImageNet - 1% labeled data REACT (ViT-Large) Top 1 Accuracy 81.6% #2 of 65 Archive leaderboard report
Semi-Supervised Image Classification ImageNet - 10% labeled data REACT (ViT-Large) Top 1 Accuracy 85.1% #3 of 75 Archive leaderboard report
Zero-Shot Transfer Image Classification ImageNet REACT Accuracy (Private) 78.5 #15 of 23 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

CLIPContrastive 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