Skip to main content
QUICK REVIEW

[Paper Review] ClusterFormer: Clustering As A Universal Visual Learner

James C. Liang, Yiming Cui|arXiv (Cornell University)|Sep 22, 2023
Advanced Neural Network ApplicationsComputer Science7 citations
TL;DR

ClusterFormer proposes a universal vision model that leverages recurrent cross-attention clustering and feature dispatching within a Transformer architecture to unify image classification, object detection, and segmentation under a single clustering-based framework. It achieves state-of-the-art performance, including 83.41% top-1 accuracy on ImageNet-1K and 54.2% mAP on MS COCO for object detection, by enabling explainable, transferable, and hierarchical representation learning across multiple levels of clustering granularity.

ABSTRACT

This paper presents CLUSTERFORMER, a universal vision model that is based on the CLUSTERing paradigm with TransFORMER. It comprises two novel designs: 1. recurrent cross-attention clustering, which reformulates the cross-attention mechanism in Transformer and enables recursive updates of cluster centers to facilitate strong representation learning; and 2. feature dispatching, which uses the updated cluster centers to redistribute image features through similarity-based metrics, resulting in a transparent pipeline. This elegant design streamlines an explainable and transferable workflow, capable of tackling heterogeneous vision tasks (i.e., image classification, object detection, and image segmentation) with varying levels of clustering granularity (i.e., image-, box-, and pixel-level). Empirical results demonstrate that CLUSTERFORMER outperforms various well-known specialized architectures, achieving 83.41% top-1 acc. over ImageNet-1K for image classification, 54.2% and 47.0% mAP over MS COCO for object detection and instance segmentation, 52.4% mIoU over ADE20K for semantic segmentation, and 55.8% PQ over COCO Panoptic for panoptic segmentation. For its efficacy, we hope our work can catalyze a paradigm shift in universal models in computer vision.

Motivation & Objective

  • To develop a universal vision model that generalizes across diverse visual tasks without task-specific architectural designs.
  • To emulate human-like perceptual cognition by modeling visual understanding as a hierarchical clustering process.
  • To enable transferable and explainable representation learning through cluster center propagation across tasks.
  • To unify image-level, box-level, and pixel-level vision tasks under a single, coherent framework using clustering granularity.
  • To overcome limitations of existing unified models by introducing a transparent, similarity-based decision pipeline.

Proposed method

  • Introduces Recurrent Cross-Attention Clustering, which reformulates cross-attention to recursively update cluster centers using feature representations along the center dimension.
  • Employs Feature Dispatching to redistribute image features based on similarity to updated cluster centers, ensuring a transparent and differentiable pipeline.
  • Uses cluster centers from the encoder as initial queries in the decoder, enabling direct transfer of learned representations to downstream tasks.
  • Applies a multi-stage, iterative clustering mechanism with T=3 recurrence steps to refine cluster assignments and representations.
  • Utilizes a learnable query initialization strategy in the decoder, where cluster centers from the encoder serve as task-specific query prototypes.
  • Employs a multi-head attention mechanism with a default head dimension of 32, optimized for accuracy and parameter efficiency.
Figure 1 : ClusterFormer is a clustering-based universal model, offering superior performance over various specialized architectures.
Figure 1 : ClusterFormer is a clustering-based universal model, offering superior performance over various specialized architectures.

Experimental results

Research questions

  • RQ1Can a clustering-based paradigm within a Transformer architecture unify diverse vision tasks with consistent performance?
  • RQ2How does recurrent cluster center refinement through cross-attention improve representation learning across tasks?
  • RQ3To what extent does feature dispatching based on similarity enhance model transparency and performance?
  • RQ4Can cluster centers from a pre-trained encoder effectively initialize decoders for downstream tasks like detection and segmentation?
  • RQ5How does the hierarchical clustering granularity (image, box, pixel-level) affect the model's adaptability and performance?

Key findings

  • ClusterFormer achieves 83.41% top-1 accuracy on ImageNet-1K, outperforming Swin Transformer by 0.13–0.39% when trained from scratch.
  • For object detection on MS COCO, ClusterFormer achieves 54.2% mAP, surpassing DINO and Swin Transformer by 0.8–1.1% mAP.
  • In instance segmentation, ClusterFormer attains 47.0% mAP on MS COCO, exceeding Mask2Former over Swin Transformer by 1.0–1.4% mAP.
  • For semantic segmentation on ADE20K, ClusterFormer reaches 52.4% mIoU, improving upon baseline models by 0.6–1.3% mIoU.
  • In panoptic segmentation on COCO Panoptic, ClusterFormer achieves 55.8% PQ, outperforming Mask2Former by 1.5–1.7% PQ.
  • Ablation studies confirm that Recurrent Cross-Attention Clustering improves accuracy by 2.52% over cosine similarity and 1.64% over vanilla cross-attention.
Figure 2 : (a) Overall pipeline of ClusterFormer . (b) Each Recurrent Cross-Attention Clustering layer carries out $T$ iterations of cross-attention clustering ( E -step) and center updating ( M -step) (see Eq. 3 ). (c) The feature dispatching redistributes the feature embeddings on the top of updat
Figure 2 : (a) Overall pipeline of ClusterFormer . (b) Each Recurrent Cross-Attention Clustering layer carries out $T$ iterations of cross-attention clustering ( E -step) and center updating ( M -step) (see Eq. 3 ). (c) The feature dispatching redistributes the feature embeddings on the top of updat

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.