Patch-level Representation Learning for Self-supervised Vision Transformers

Authors: Sukmin Yun, Hankook Lee, Jaehyung Kim, Jinwoo Shin

Submitted to arXiv on 16 Jun. 2022
Abstract

Recent self-supervised learning (SSL) methods have shown impressive results in learning visual representations from unlabeled images. This paper aims to improve their performance further by utilizing the architectural advantages of the underlying neural network, as the current state-of-the-art visual pretext tasks for SSL do not enjoy the benefit, i.e., they are architecture-agnostic. In particular, we focus on Vision Transformers (ViTs), which have gained much attention recently as a better architectural choice, often outperforming convolutional networks for various visual tasks. The unique characteristic of ViT is that it takes a sequence of disjoint patches from an image and processes patch-level representations internally. Inspired by this, we design a simple yet effective visual pretext task, coined SelfPatch, for learning better patch-level representations. To be specific, we enforce invariance against each patch and its neighbors, i.e., each patch treats similar neighboring patches as positive samples. Consequently, training ViTs with SelfPatch learns more semantically meaningful relations among patches (without using human-annotated labels), which can be beneficial, in particular, to downstream tasks of a dense prediction type. Despite its simplicity, we demonstrate that it can significantly improve the performance of existing SSL methods for various visual tasks, including object detection and semantic segmentation. Specifically, SelfPatch significantly improves the recent self-supervised ViT, DINO, by achieving +1.3 AP on COCO object detection, +1.2 AP on COCO instance segmentation, and +2.9 mIoU on ADE20K semantic segmentation.

The papers around it, by date and closeness

Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper

How to read this map? Illustrated guide

Closest papers Prior work it builds on Papers that cite it

Papers around this one

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close
    Where are my Neighbors? Exploiting Patches Relations in Self-Supervised Vision Transformer
    Guglielmo Camporese, Elena Izzo, Lamberto Ballan · 2022 · British Machine Vision Conference · cited 3 times · Not summarized yet
    Abstract

    Vision Transformers (ViTs) enabled the use of the transformer architecture on vision tasks showing impressive performances when trained on big datasets. However, on relatively small datasets, ViTs are less accurate given their lack of inductive bias. To this end, we propose a simple but still effective Self-Supervised Learning (SSL) strategy to train ViTs, that without any external annotation or external data, can significantly improve the results. Specifically, we define a set of SSL tasks based on relations of image patches that the model has to solve before or jointly the supervised task. Differently from ViT, our RelViT model optimizes all the output tokens of the transformer encoder tha…

  2. Very close Cites this paper
    Semantic Graph Consistency: Going Beyond Patches for Regularizing Self-Supervised Vision Transformers
    Chaitanya Devaguptapu, Sumukh K. Aithal, Shrinivas Ramasubramanian et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 1 time · Not summarized yet
    Abstract

    Self-supervised learning (SSL) with vision transformers (ViTs) has proven effective for representation learning as demonstrated by the impressive performance on various downstream tasks. Despite these successes, existing ViT-based SSL architectures do not fully exploit the ViT backbone, particularly the patch tokens of the ViT. In this paper, we introduce a novel Semantic Graph Consistency (SGC) module to regularize ViT-based SSL methods and leverage patch tokens effectively. We reconceptualize images as graphs, with image patches as nodes and infuse relational inductive biases by explicit message passing using Graph Neural Networks into the SSL framework. Our SGC loss acts as a regularizer,…

  3. Very close Cites this paper
    A Survey of the Self Supervised Learning Mechanisms for Vision Transformers
    Asifullah Khan, A. Sohail, M. Fiaz et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 27 times · Not summarized yet
    Abstract

    Advances in deep learning are re-defining how visual data is processed and understand by the machines. Vision Transformers (ViTs) have recently demonstrated prominent performance in computer vision related tasks. However, their performance improves with increasing numbers of labeled data, indicating reliance on labeled data. Humanly annotated data are difficult to acquire and thus shifted the focus from traditional annotations to unsupervised learning strategies that learn structures inside the data. In response to this challenge, self-supervised learning (SSL) has emerged as a promising technique. SSL utilize inherent relationships within the data as a form of supervision. This technique ca…

  4. Very close Same question Cited by this paper Used in depth by this paper A method it uses
    Emerging Properties in Self-Supervised Vision Transformers
    Mathilde Caron, Hugo Touvron, Ishan Misra et al. · 2021 · Computer Vision and Pattern Recognition · cited 10,927 times · AI summary available

    Emerging Properties examines semantic information and segmentation in self-supervised ViT features, while SelfPatch learns patch relations to improve dense prediction.

    Abstract

    In this paper, we question if self-supervised learning provides new properties to Vision Transformer (ViT) that stand out compared to convolutional networks (convnets). Beyond the fact that adapting self-supervised methods to this architecture works particularly well, we make the following observations: first, self-supervised ViT features contain explicit information about the semantic segmentation of an image, which does not emerge as clearly with supervised ViTs, nor with convnets. Second, these features are also excellent k-NN classifiers, reaching 78.3% top-1 on ImageNet with a small ViT. Our study also underlines the importance of momentum encoder, multi-crop training, and the use of sm…

  5. Very close
    Multi-level Contrastive Learning for Self-Supervised Vision Transformers
    Shentong Mo, Zhun Sun, Chao Li · 2023 · IEEE Workshop/Winter Conference on Applications of Computer Vision · cited 29 times · Not summarized yet
    Abstract

    Recent studies aim to establish contrastive self-supervised learning (CSL) algorithms specialized for the family of Vision Transformers (ViTs) to make them function normally as ordinary convolutional-based backbones in the training progress. Despite obtaining promising performance on related downstream tasks, one compelling property of the ViTs is ignored in those approaches. As previous studies have demonstrated, vision transformers benefit from the early stage global attention mechanics, obtaining feature representations that contain information from distant patches, even in their shallow layers. Motivated by this, we present a simple yet effective framework to facilitate the self-supervis…

  6. Very close Same method, another problem
    Distilling Self-Supervised Vision Transformers for Weakly-Supervised Few-Shot Classification & Segmentation
    Dahyun Kang, Piotr Koniusz, Minsu Cho et al. · 2023 · CVPR 2023 · cited 45 times · AI summary available

    Distilling Self-Supervised Vision Transformers uses self-supervised ViT token representations for weakly supervised classification and segmentation.

    Abstract

    We address the task of weakly-supervised few-shot image classification and segmentation, by leveraging a Vision Transformer (ViT) pretrained with self-supervision. Our proposed method takes token representations from the self-supervised ViT and leverages their correlations, via self-attention, to produce classification and segmentation predictions through separate task heads. Our model is able to effectively learn to perform classification and segmentation in the absence of pixel-level labels during training, using only image-level labels. To do this it uses attention maps, created from tokens generated by the self-supervised ViT backbone, as pixel-level pseudo-labels. We also explore a prac…

  7. Very close Cited by this paper
    Efficient Self-supervised Vision Transformers for Representation Learning
    Chun-Yuan Li, Jian-Wei Yang, Peng-Chuan Zhang et al. · 2021 · International Conference on Learning Representations · cited 234 times · Not summarized yet
    Abstract

    This paper investigates two techniques for developing efficient self-supervised vision transformers (EsViT) for visual representation learning. First, we show through a comprehensive empirical study that multi-stage architectures with sparse self-attentions can significantly reduce modeling complexity but with a cost of losing the ability to capture fine-grained correspondences between image regions. Second, we propose a new pre-training task of region matching which allows the model to capture fine-grained region dependencies and as a result significantly improves the quality of the learned vision representations. Our results show that combining the two techniques, EsViT achieves 81.3% top-…

  8. Very close
    Learning Explicit Object-Centric Representations with Vision Transformers
    Oscar Vikström, A. Ilin · 2022 · arXiv.org · preprint, not peer reviewed · cited 5 times · Not summarized yet
    Abstract

    With the recent successful adaptation of transformers to the vision domain, particularly when trained in a self-supervised fashion, it has been shown that vision transformers can learn impressive object-reasoning-like behaviour and features expressive for the task of object segmentation in images. In this paper, we build on the self-supervision task of masked autoencoding and explore its effectiveness for explicitly learning object-centric representations with transformers. To this end, we design an object-centric autoencoder using transformers only and train it end-to-end to reconstruct full images from unmasked patches. We show that the model efficiently learns to decompose simple scenes a…

Prior work it builds on

  1. Close Used in depth by this paper A method it uses
    An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
    Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov et al. · 2020 · Computer Vision and Pattern Recognition · cited 73,978 times · AI summary available
    Abstract

    While the Transformer architecture has become the de-facto standard for natural language processing tasks, its applications to computer vision remain limited. In vision, attention is either applied in conjunction with convolutional networks, or used to replace certain components of convolutional networks while keeping their overall structure in place. We show that this reliance on CNNs is not necessary and a pure transformer applied directly to sequences of image patches can perform very well on image classification tasks. When pre-trained on large amounts of data and transferred to multiple mid-sized or small image recognition benchmarks (ImageNet, CIFAR-100, VTAB, etc.), Vision Transformer…

  2. Close Used in depth by this paper A method it uses
    Self-Supervised Learning with Swin Transformers
    Zhenda Xie, Yutong Lin, Zhuliang Yao et al. · 2021 · arXiv.org · preprint, not peer reviewed · cited 220 times · Not summarized yet
    Abstract

    We are witnessing a modeling shift from CNN to Transformers in computer vision. In this work, we present a self-supervised learning approach called MoBY, with Vision Transformers as its backbone architecture. The approach basically has no new inventions, which is combined from MoCo v2 and BYOL and tuned to achieve reasonably high accuracy on ImageNet-1K linear evaluation: 72.8% and 75.0% top-1 accuracy using DeiT-S and Swin-T, respectively, by 300-epoch training. The performance is slightly better than recent works of MoCo v3 and DINO which adopt DeiT as the backbone, but with much lighter tricks. More importantly, the general-purpose Swin Transformer backbone enables us to also evaluate the…

  3. Close A method it uses
    CvT: Introducing Convolutions to Vision Transformers
    Haiping Wu, Bin Xiao, Noel Codella et al. · 2021 · Computer Vision and Pattern Recognition · cited 2,600 times · Not summarized yet
    Abstract

    We present in this paper a new architecture, named Convolutional vision Transformer (CvT), that improves Vision Transformer (ViT) in performance and efficiency by introducing convolutions into ViT to yield the best of both designs. This is accomplished through two primary modifications: a hierarchy of Transformers containing a new convolutional token embedding, and a convolutional Transformer block leveraging a convolutional projection. These changes introduce desirable properties of convolutional neural networks (CNNs) to the ViT architecture (\ie shift, scale, and distortion invariance) while maintaining the merits of Transformers (\ie dynamic attention, global context, and better generali…

  4. Close Used in depth by this paper A method it uses
    Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
    Ze Liu, Yutong Lin, Yue Cao et al. · 2021 · Computer Vision and Pattern Recognition · cited 37,551 times · AI summary available
    Abstract

    This paper presents a new vision Transformer, called Swin Transformer, that capably serves as a general-purpose backbone for computer vision. Challenges in adapting Transformer from language to vision arise from differences between the two domains, such as large variations in the scale of visual entities and the high resolution of pixels in images compared to words in text. To address these differences, we propose a hierarchical Transformer whose representation is computed with \textbfShifted \textbf{win}dows. The shifted windowing scheme brings greater efficiency by limiting self-attention computation to non-overlapping local windows while also allowing for cross-window connection. This hie…

  5. Close A method it uses
    Rethinking Spatial Dimensions of Vision Transformers
    Byeongho Heo, Sangdoo Yun, Dongyoon Han et al. · 2021 · IEEE International Conference on Computer Vision · cited 796 times · Not summarized yet
    Abstract

    Vision Transformer (ViT) extends the application range of transformers from language processing to computer vision tasks as being an alternative architecture against the existing convolutional neural networks (CNN). Since the transformer-based architecture has been innovative for computer vision modeling, the design convention towards an effective architecture has been less studied yet. From the successful design principles of CNN, we investigate the role of spatial dimension conversion and its effectiveness on transformer-based architecture. We particularly attend to the dimension reduction principle of CNNs; as the depth increases, a conventional CNN increases channel dimension and decreas…

Papers that cite it

  1. Close Uses this paper in depth
    FLSL: Feature-level Self-supervised Learning
    Qing Su, Anton Netchaev, Hai Li et al. · 2023 · Neural Information Processing Systems · cited 10 times · Not summarized yet
    Abstract

    Current self-supervised learning (SSL) methods (e.g., SimCLR, DINO, VICReg,MOCOv3) target primarily on representations at instance level and do not generalize well to dense prediction tasks, such as object detection and segmentation.Towards aligning SSL with dense predictions, this paper demonstrates for the first time the underlying mean-shift clustering process of Vision Transformers (ViT), which aligns well with natural image semantics (e.g., a world of objects and stuffs). By employing transformer for joint embedding and clustering, we propose a two-level feature clustering SSL method, coined Feature-Level Self-supervised Learning (FLSL). We present the formal definition of the FLSL prob…

  2. Close Uses this paper in depth
    Patch-wise self-supervised visual representation learning: a fine-grained approach
    Ali Javidani, M. Sadeghi, Babak Nadjar Araabi · 2023 · Signal, Image and Video Processing · cited 2 times · Not summarized yet
    Abstract

    Self-supervised visual representation learning traditionally focuses on image-level instance discrimination. Our study introduces an innovative, fine-grained dimension by integrating patch-level discrimination into these methodologies. This integration allows for the simultaneous analysis of local and global visual features, thereby enriching the quality of the learned representations. Initially, the original images undergo spatial augmentation. Subsequently, we employ a distinctive photometric patch-level augmentation, where each patch is individually augmented, independent from other patches within the same view. This approach generates a diverse training dataset with distinct color variat…

  3. Close Uses this paper in depth
    Understanding Self-Supervised Features for Learning Unsupervised Instance Segmentation
    Paul Engstler, Luke Melas-Kyriazi, C. Rupprecht et al. · 2023 · arXiv.org · preprint, not peer reviewed · cited 8 times · Not summarized yet
    Abstract

    Self-supervised learning (SSL) can be used to solve complex visual tasks without human labels. Self-supervised representations encode useful semantic information about images, and as a result, they have already been used for tasks such as unsupervised semantic segmentation. In this paper, we investigate self-supervised representations for instance segmentation without any manual annotations. We find that the features of different SSL methods vary in their level of instance-awareness. In particular, DINO features, which are known to be excellent semantic descriptors, lack behind MAE features in their sensitivity for separating instances.

  4. Close
    DropPos: Pre-Training Vision Transformers by Reconstructing Dropped Positions
    Jun-Song Fan, Kaiyou Song, Hao-Chen Wang et al. · 2023 · Neural Information Processing Systems · cited 32 times · Not summarized yet
    Abstract

    As it is empirically observed that Vision Transformers (ViTs) are quite insensitive to the order of input tokens, the need for an appropriate self-supervised pretext task that enhances the location awareness of ViTs is becoming evident. To address this, we present DropPos, a novel pretext task designed to reconstruct Dropped Positions. The formulation of DropPos is simple: we first drop a large random subset of positional embeddings and then the model classifies the actual position for each non-overlapping patch among all possible positions solely based on their visual appearance. To avoid trivial solutions, we increase the difficulty of this task by keeping only a subset of patches visible.…

  5. Close
    Improving BI-RADS Mammographic Classification With Self-Supervised Vision Transformers and Cascade Learning
    Abdelrahman Abdallah, M. Kasem, I. Abdelhalim et al. · 2025 · IEEE Access · cited 8 times · Not summarized yet
    Abstract

    Accurate and early breast cancer detection is critical for improving patient outcomes. In this study, we propose PatchCascade-ViT, a novel self-supervised Vision Transformer (ViT) framework for automated BI-RADS classification of mammographic images. Unlike conventional deep learning approaches that rely heavily on annotated datasets, PatchCascade-ViT leverages Self Patch-level Supervision (SPS) to learn meaningful mammographic representations from unlabeled data, significantly enhancing classification performance. Our framework operates through a two-stage cascade classification process. In the first stage, the model differentiates non-cancerous from potentially cancerous mammograms using S…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 5 November 2026.

The illustrated guide to the papers around a paper