All models

vit_msn (image classification)

A Vision Transformer from Masked Siamese Networks pre-training, here with an image classification head.

Image classification · 298 operations Checked

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 (33 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
85.8M
Operations
298
Framework
PyTorch
Recurrent
No
Name in source
vit_msn:image-classification
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

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

Details
Stable ID
m11053
Graph hash
fe3bf92ed1fcd7d7cc91a1946cc7aa871bb7ed8cf384e6798fe357e942ff25b4
Skeleton hash
9eae93e707e1a53e951bd7a39108a3f23215b1900929c0dbece85b88a10d0d41
Architecture hash
2f1ff977eda0d789c7a7a05dc2d340bbe08753b9e9d63250190f9a2e3ffdd7a2
Diagram SHA-256
352d7c740764667329459ef9bb7e4e524c8930df38c0088c87ea103b9136a9da
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

transformers.AutoModelForImageClassification.from_config()

What it is

ViTMSN is a Vision Transformer pre-trained with Masked Siamese Networks (MSN), a self-supervised framework for learning image representations. The approach matches the representation of an image view containing randomly masked patches to the representation of the original unmasked image. The paper describes this pre-training as particularly scalable for Vision Transformers, since only the unmasked patches are processed by the network.

The method is aimed at image classification with few labels, the low-shot and extreme low-shot regimes. On ImageNet-1K the paper reports 72.4% top-1 accuracy for its base MSN model with only 5,000 annotated images. With 1% of ImageNet-1K labels it reports 75.7% top-1 accuracy. The authors released pre-trained weights of the backbone only, from ImageNet-1k pre-training, and the classification model is initialized from that backbone.

Key idea. Masked Siamese Networks pre-train a Vision Transformer by matching the representation of a randomly masked image view to the representation of the original unmasked image.

  • vit msn
  • vit-msn
  • vitmsn
  • masked siamese networks
  • msn
  • low-shot image classification
  • label-efficient learning
  • self-supervised vision transformer
  • image classification

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