Perceptual Group Tokenizer: Building Perception with Iterative Grouping

Zhiwei Deng, Ting Chen, Yang Li · DOI

Abstract

Standard vision backbones like Vision Transformers (ViTs) primarily rely on feature detection through global self-attention. We present the Perceptual Group Tokenizer (PGT), a backbone built entirely on the principle of iterative grouping. PGT treats image understanding as a process of binding pixels to semantic contexts, achieving 80.3% accuracy on ImageNet-1K self-supervised benchmarks while offering unique advantages such as adaptive computation and enhanced interpretability.

Introduction

For decades, computer vision has been dominated by feature detection—identifying specific patterns like edges or textures. While deep learning has seen massive success with this approach via CNNs and ViTs, perceptual grouping (clustering pixels by similarity) has largely been relegated to auxiliary roles. PGT proposes a general-purpose backbone where grouping is the primary mechanism for representation learning, addressing the quadratic computational costs of standard ViTs and providing a more transparent process for object formation.

Methodology

The PGT architecture transforms an image into a sequence of patches (input tokens), which then pass through a series of specialized grouping layers.

The PGT architecture utilizes iterative grouping layers to bind input tokens to learned group tokens through attention and communication channels.

As shown in the architecture diagram, the process involves:

  1. Iterative Binding: Each layer samples "group tokens" from a learned distribution. Through several iterations, input tokens are bound to these group tokens based on similarity.
  2. Multi-Grouping Operation: Similar to multi-head attention, PGT uses multiple grouping heads to hypothesize different contexts simultaneously (e.g., grouping by color vs. texture).
  3. Communication Channels: Group tokens aggregate information from input tokens and broadcast it back to refine patch features.
  4. Self-Supervised Learning: The model is trained using the DINO framework, learning consistent representations across different image views without manual labels.

Key Insights and Interpretability

Unlike standard models that process a grid of features, PGT naturally discovers "objects and stuff." The group tokens act as semantic proxies, automatically clustering related pixels into coherent segments.

Visualizations of group tokens demonstrate how the model naturally segments images into semantic components like objects, parts, and backgrounds.

This grouping mechanism provides several unique advantages:

  • Adaptive Computation: Because group tokens are sampled, the number of groups can be changed at inference time without retraining. This allows for "on-the-fly" adjustments between speed and detail.
  • Linear Complexity: While ViT memory usage scales quadratically ($O(N^2)$), PGT’s complexity is linear relative to the number of patches ($O(NM)$), making it significantly more memory-efficient.
  • Inherent Interpretability: As seen in the visualizations, the attention maps are naturally object-centric, making it easier to audit the model's decision-making process.

Key Results

PGT achieves competitive performance across standard benchmarks:

  • ImageNet-1K: Reached 80.3% top-1 accuracy using a linear probe, matching or exceeding established ViT-B and ResNet baselines.
  • Efficiency: At inference, PGT can operate using as little as 16.3% of the peak memory required by a comparable ViT-B model.
  • Semantic Segmentation: On the ADE20K task, PGT achieved 45.1% mIoU, outperforming the DINO+ViT baseline by 1.0%, proving that grouping-based features translate effectively to pixel-level understanding.

Conclusion

The Perceptual Group Tokenizer demonstrates that grouping is a viable and efficient foundation for vision backbones. By moving away from dense self-attention toward sparse, iterative binding, PGT offers a path toward more interpretable and computationally flexible computer vision models. Future work will focus on reducing the computational overhead of iterative passes and exploring full probabilistic treatments of the architecture.

Summary updated

BibTeX
@inproceedings{deng2024perceptual,
  author = {Zhiwei Deng and Ting Chen and Yang Li},
  title = {{Perceptual Group Tokenizer: Building Perception with Iterative Grouping}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=NnYaYVODyV},
}
Figure