Revisiting [CLS] and Patch Token Interaction in Vision Transformers

Alexis Marouani, Oriane Siméoni, Herve Jegou, Piotr Bojanowski, Huy V. Vo

Introduction

Vision Transformers (ViTs) have become a cornerstone of modern computer vision, processing images by chopping them into patches and prepending a special [CLS] (class) token to summarize the global scene. Despite their fundamentally different roles—one acting as a global summary and the others representing local details—standard ViTs treat these tokens as functionally interchangeable, passing them through the exact same mathematical operations.

Recent research highlights that this shared processing creates "computational friction." Patch tokens often lose their local identity as the model repurposes them to store global information for the [CLS] token. This friction degrades feature quality, leading to noisy attention maps and visual artifacts. While previous workarounds like adding "registers" or "attention biases" help mask these artifacts, they do not address the root architectural cause. By simply specializing normalization layers and early projections to handle these tokens separately, researchers have achieved a significant boost in dense prediction tasks with zero additional inference cost.

Architecture Specialization

To resolve this friction, the authors propose Architecture Specialization. Instead of forcing all tokens down a single shared path, they disentangle the computational flow of information:

  1. Specialized Layers: Within specific parts of the transformer block—namely Normalization, LayerScale, and Query-Key-Value (QKV) projections—the model introduces two distinct sets of weights: one dedicated to the [CLS] token and another for the patch tokens.
  2. Targeted Placement (The "First Third" Rule): Rigorous ablation studies revealed that specializing every layer is unnecessary and can even be detrimental. The most significant performance gains occur when specializing only the first third of the model's blocks. In these early stages, tokens are most distinct; as they move deeper into the network, they naturally homogenize as they exchange information.
  3. Parameter Efficiency via LoRA: To prevent model bloat, the authors utilized Low-Rank Adaptation (LoRA). By approximating the specialized weights as small updates to the base weights, the model achieves similar performance gains with a minimal parameter footprint.
  4. Interaction Preservation: Crucially, the tokens still interact through the standard self-attention mechanism. Specialization only occurs in the point-wise layers that prepare the tokens for attention or process them afterward.

Key Insights

A surprising finding from the study is that standard Layer Normalization already attempts to separate the tokens implicitly. The authors observed that LayerNorm naturally pushes the [CLS] and patch tokens into different regions of the high-dimensional feature space. Explicitly specializing these layers simply aids the model in a task it was already trying to perform.

Furthermore, this specialization comes essentially "for free" during inference. Because the modifications are applied to point-wise layers, they do not increase the number of floating-point operations (FLOPs). The network simply selects the appropriate weight for the corresponding token type, resulting in only a minor (~8%) increase in stored parameters.

Experimental Results

The models were pre-trained using self-supervised (DINOv2 on ImageNet-22k) and supervised (DeiT-III on ImageNet-1k) frameworks. They were then evaluated across a battery of dense prediction tasks, including semantic segmentation (ADE20k, Cityscapes, PASCAL VOC), depth estimation, and object detection.

  • Segmentation Powerhouse: On the ADE20k benchmark, the specialized ViT-L model improved by 2.2 mIoU points over the baseline—a substantial leap for a straightforward architectural tweak.
  • Cleaner Features: Qualitative Principal Component Analysis (PCA) visualizations demonstrate that specialized models produce significantly cleaner, more semantically accurate feature maps, effectively eliminating the "checkerboard" artifacts seen in baseline models.
Comparison of PCA feature visualizations showing the removal of artifacts using the proposed specialization method.
  • Generalizability and No Trade-offs: The approach scales effectively across different model sizes (ViT-B, L, and H) and training recipes. Unlike many methods that improve local features at the expense of global classification, this specialization maintains, and occasionally improves, ImageNet classification accuracy.

Limitations and Future Directions

While highly effective for self-supervised models, the authors note that in purely supervised settings (like DeiT-III), performance can peak mid-training before dropping, likely due to the absence of a local loss function to anchor patch features. Additionally, while FLOPs remain constant, the 8% parameter increase might pose challenges for edge devices with strict memory limits, though LoRA mitigates this.

Looking forward, the authors suggest this specialization logic could extend beyond vision, potentially benefiting multi-modal or multi-type token sequences in Large Language Models or video transformers.

Summary updated

BibTeX
@inproceedings{marouani2026revisiting,
  author = {Alexis Marouani and Oriane Siméoni and Herve Jegou and Piotr Bojanowski and Huy V. Vo},
  title = {{Revisiting [CLS] and Patch Token Interaction in Vision Transformers}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=xs9xwFphLy},
}
Figure