Papers › Unicom: Universal and Compact Representation Learning for Image Retrieval

Unicom: Universal and Compact Representation Learning for Image Retrieval

12 Apr 2023arXiv:2304.05884archive 2025-07-28

Xiang An, Jiankang Deng, Kaicheng Yang, Jaiwei Li, Ziyong Feng, Jia Guo, Jing Yang, Tongliang Liu

Modern image retrieval methods typically rely on fine-tuning pre-trained encoders to extract image-level descriptors. However, the most widely used models are pre-trained on ImageNet-1K with limited classes. The pre-trained feature representation is therefore not universal enough to generalize well to the diverse open-world classes. In this paper, we first cluster the large-scale LAION400M into one million pseudo classes based on the joint textual and visual features extracted by the CLIP model. Due to the confusion of label granularity, the automatically clustered dataset inevitably contains heavy inter-class conflict. To alleviate such conflict, we randomly select partial inter-class prototypes to construct the margin-based softmax loss. To further enhance the low-dimensional feature representation, we randomly select partial feature dimensions when calculating the similarities between embeddings and class-wise prototypes. The dual random partial selections are with respect to the class dimension and the feature dimension of the prototype matrix, making the classification conflict-robust and the feature embedding compact. Our method significantly outperforms state-of-the-art unsupervised and supervised image retrieval approaches on multiple benchmarks. The code and pre-trained models are released to facilitate future research https://github.com/deepglint/unicom.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

No sample from the archive's official repository (deepglint/unicom) is linked to this paper; the 6 samples below are identical to code Syntology harvested from another paper's repository, and this paper's own copy was not located. Syntology harvested code from deepglint/unicom for another paper.

deepglint/unicom: Syntology's graph links these samples to Multi-label Cluster Discrimination for Visual Representation Learning (arXiv:2407.17331; that paper's own run record: 7 ran (of which 7 constructed an object rather than computing a result; 7 with no instrument failure: 0 honoured, 0 violated, 7 with no contract checked; 0 where Syntology's instrument failed) · 4 unverified; every one of the 7 samples that ran constructed an object rather than computing a result); nothing checks that they implement this paper's method.

Syntology 6 code samples harvested: 3 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 1 violated, 0 with no contract checked; 2 where Syntology's instrument failed) · 3 unverified. Where Syntology's instrument failed: 1 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

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

No sample is linked to this paper from 3 of its repositories that Syntology harvested for other papers:

No date is recorded for any of the 3 samples that ran: their levels were written before Syntology's graph kept the date.

deepglint/unicom officialmentioned in papermentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Multi-label Cluster Discrimination for Visual Representation Learning (arXiv:2407.17331; that paper's own run record: 7 ran (of which 7 constructed an object rather than computing a result; 7 with no instrument failure: 0 honoured, 0 violated, 7 with no contract checked; 0 where Syntology's instrument failed) · 4 unverified; every one of the 7 samples that ran constructed an object rather than computing a result); nothing checks that they implement this paper's method. report
OML-Team/open-metric-learning pytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale (arXiv:2010.11929; that paper's own run record: 307 ran (of which 165 constructed an object rather than computing a result; 286 with no instrument failure: 8 honoured, 2 violated, 276 with no contract checked; 21 where Syntology's instrument failed) · 112 unverified); nothing checks that they implement this paper's method. report
RocketFlash/easy_metric_learning pytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to AdaFace: Quality Adaptive Margin for Face Recognition (arXiv:2204.00964; that paper's own run record: 17 ran (of which 2 constructed an object rather than computing a result; 14 with no instrument failure: 2 honoured, 1 violated, 11 with no contract checked; 3 where Syntology's instrument failed) · 5 unverified); nothing checks that they implement this paper's method. 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.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

6 samples harvested: 3 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 1 violated, 0 with no contract checked; 2 where Syntology's instrument failed) · 3 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · violated contract
1ran · our draft was wrong
1ran; the contract check could not run
3unverified

Licence: 6 of the 6 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.

6 samples are listed last, in a group without a repository. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

Repository not located 6 samples, 3 ran (2 instrument-failed) · 3 unverified
6 samples are identical to code Syntology harvested from another paper's repository; this paper's own copy was not located, so no repository is named and no licence is recorded.
convert_to_custom_text_state_dict in 59 papers repository not located ran · violated contract licence of this copy not recorded · 7bff6f3b3cb560e7 · report fixture: signature state_dict:dict/0/? · returned dict · level recorded, date not recorded
get_cast_dtype in 67 papers repository not located ran · our draft was wrong licence of this copy not recorded · dcd422d66b0581d8 · report fixture: signature precision:str/0/str · returned dtype · level recorded, date not recorded
split_to_even_chunks in 41 papers repository not located ran; the contract check could not run (RAISES) · metamorphic tier: well formed licence of this copy not recorded · 10893c4608c08075 · report fixture: signature indices:list/1/int, lengths:dict/0/?, num_chunks:int/0/int · returned list · level recorded, date not recorded
build_model_from_openai_state_dict in 42 papers repository not located unverified licence of this copy not recorded · 275eb8fe6104bf3a · report
get_mm_adapter_state_maybe_zero_3 in 44 papers repository not located unverified licence of this copy not recorded · bb35e3ac741bb2c9 · report
maybe_zero_3 in 74 papers repository not located unverified licence of this copy not recorded · 735025744c1ab0cf · report

Tasks

Image ClassificationImage RetrievalMetric LearningRepresentation LearningRetrievalSelf-Supervised Image ClassificationSupervised Image Retrieval

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Classification ImageNet Unicom (ViT-L/14@336px) (Finetuned) Top 1 Accuracy 88.3 #54 of 1060 Archive leaderboard report
Image Retrieval Google Landmarks Dataset v2 (retrieval, testing) UNICOM-ViT-L-14-512px mAP@100 36.4 #2 of 4 Archive leaderboard report
Image Retrieval Google Landmarks Dataset v2 (retrieval, testing) UNICOM-ViT-B-16-512px mAP@100 35.7 #3 of 4 Archive leaderboard report
Image Retrieval Google Landmarks Dataset v2 (retrieval, validation) UNICOM-ViT-L-14-512px mAP@100 33.1 #1 of 3 Archive leaderboard report
Image Retrieval Google Landmarks Dataset v2 (retrieval, validation) UNICOM-ViT-B-16-512px mAP@100 32.4 #2 of 3 Archive leaderboard report
Image Retrieval SOP Unicom+ViT-L@336px R@1 91.2 #1 of 14 Archive leaderboard report
Image Retrieval iNaturalist Unicom+ViT-L@336px R@1 88.9 #1 of 10 Archive leaderboard report
Metric Learning CARS196 Unicom+ViT-L@336px R@1 98.2 #1 of 36 Archive leaderboard report
Metric Learning CUB-200-2011 Unicom+ViT-L@336px R@1 90.1 #1 of 30 Archive leaderboard report
Metric Learning In-Shop Unicom+ViT-L@336px R@1 96.7 #1 of 15 Archive leaderboard report
Metric Learning Stanford Online Products Unicom+ViT-L@336px R@1 91.2 #1 of 33 Archive leaderboard report
Self-Supervised Image Classification ImageNet Unicom (ViT-B/16) Number of Params 80M #38 of 144 Archive leaderboard report
Self-Supervised Image Classification ImageNet Unicom (ViT-B/16) Top 1 Accuracy 79.1% #38 of 144 Archive leaderboard report
Self-Supervised Image Classification ImageNet Unicom (ViT-B/32) Number of Params 80M #78 of 144 Archive leaderboard report
Self-Supervised Image Classification ImageNet Unicom (ViT-B/32) Top 1 Accuracy 75.0% #78 of 144 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

CLIPSoftmax

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