All models

UNICOM

Unicom is an image encoder for retrieval, trained on one million pseudo classes clustered from LAION400M.

Image classification · 515 operations Structure only

Structure-only capture: TorchLens recorded this graph without running real numbers through the model, so shapes and data types on the diagram are hypotheses, not measurements.

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (19 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
908.2M
Operations
515
Framework
PyTorch
Recurrent
No
Published
ICLR 2023
Cited by
20 (as of 29 October 2026)
Authors
Xiang An, Jiankang Deng, Kaicheng Yang and others
License
MIT
Checked
Structure only: shapes and data types are hypotheses, not measurements.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m21132
Graph hash
2954d36f813cfe9b18d4b673726de6fce15663decc89e3bf2d038545d772eb2f
Skeleton hash
5fa66bad84d43f4b1539cb44deecb1a613c3cd1a3a0f11beb62e6002877421e2
Architecture hash
aca3884f55fbb8fe2305386f548082b560c1876d4bc0ab1f8e4b4f1b081b242e
Diagram SHA-256
0842d10ce69eec8fb8a0b43a1df1b39afd301be047a3e2f47930b99bf7c6eaae
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3

What it is

Unicom is an image encoder built for image retrieval, where pictures are matched by comparing image-level descriptors. The paper starts from the observation that the most widely used encoders are pre-trained on ImageNet-1K, which has a limited set of classes. Its authors argue that such features are not universal enough to generalize well to diverse open-world classes.

Instead of hand labels, the authors cluster the LAION400M dataset into one million pseudo classes, using joint textual and visual features extracted by the CLIP model. Clusters made this way conflict with one another, so training randomly selects only part of the other-class prototypes when it builds the margin-based softmax loss. It also randomly selects part of the feature dimensions when computing similarities between embeddings and class prototypes, to strengthen the low-dimensional representation. The repository names the two ingredients: ArcFace for the margin-based softmax loss and PartialFC for the random partial class and feature selections.

The paper reports that the method outperforms earlier unsupervised and supervised image retrieval approaches on multiple benchmarks.

Key idea. Unicom clusters LAION400M into one million pseudo classes with CLIP features and trains an encoder using random partial class and feature selection in a margin-based softmax loss.

  • Unicom
  • universal and compact representation
  • image retrieval
  • image embedding
  • cluster discrimination
  • pseudo classes
  • LAION400M pretraining
  • margin-based softmax

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{an2023unicomuniversalcompactrepresentation,
      title={Unicom: Universal and Compact Representation Learning for Image Retrieval}, 
      author={Xiang An and Jiankang Deng and Kaicheng Yang and Jaiwei Li and Ziyong Feng and Jia Guo and Jing Yang and Tongliang Liu},
      year={2023},
      eprint={2304.05884},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2304.05884}, 
}