Abstract
In Transformer-based architectures, the special [CLS] token is responsible for capturing global sequence representations, while regular data tokens represent local features. Despite these distinct roles, standard practice employs Shared Normalization (ShareNorm), applying identical Layer Normalization parameters across all tokens. This paper identifies a fundamental "gradient dominance" issue in ShareNorm that leads to dimensional collapse. We propose SepNorm (Separate Normalization), a simple yet effective modification that decouples the normalization of the [CLS] token from regular tokens. Our experiments across computer vision, natural language processing, and graph learning demonstrate that SepNorm mitigates dimensional collapse and achieves an average performance improvement of 2.7%.
1. Introduction
The Transformer architecture has become the backbone of modern self-supervised learning. Central to its success in classification and retrieval tasks is the [CLS] token—a designated placeholder intended to aggregate information from the entire sequence into a single vector. However, a critical oversight in current designs is the treatment of this token during normalization. By forcing the [CLS] token to share normalization parameters with hundreds or thousands of regular tokens, models inadvertently suppress the unique signal required for high-quality global representations.
2. The Problem: Gradient Dominance and Dimensional Collapse
The authors identify a conflict inherent in Shared Normalization (ShareNorm). In a typical sequence, there is only one [CLS] token compared to many regular tokens (e.g., image patches or words). During backpropagation, the gradients for the shared normalization layers are calculated as a sum across all tokens. Consequently, the update direction is almost entirely determined by the regular tokens, effectively "drowning out" the specific needs of the [CLS] embedding.
This imbalance leads to dimensional collapse, a phenomenon where learned embeddings are squeezed into a narrow, lower-dimensional subspace. When embeddings lack uniformity and fail to utilize the full available vector space, their discriminative power for downstream tasks is significantly diminished.
3. Proposed Method: SepNorm
To address this, the authors introduce SepNorm (Separate Normalization). The core idea is to decouple the normalization paths:
- The
[CLS]Path: The[CLS]token is processed through its own dedicated normalization layer. The authors found that Batch Normalization (BN) is particularly effective here, as it helps control variance across the batch and encourages a more uniform distribution of global representations. - The Token Path: Regular data tokens continue to use standard Layer Normalization (LN), which is well-suited for local feature scaling.
By allowing the model to learn distinct scaling and shifting parameters for the [CLS] token, SepNorm provides the flexibility needed to optimize global summaries without interference from local data noise.
4. Experimental Evaluation
The efficacy of SepNorm was validated across three diverse domains using self-supervised frameworks like Masked Autoencoders (MAE) and U-MAE.
4.1 Computer Vision (CV)
Using Vision Transformers (ViT) on datasets such as STL10, FGVC Aircraft, and Oxford 102 Flowers, SepNorm consistently outperformed the baseline. On STL10, the Top-1 accuracy improved from 92.01% to 93.84%.
4.2 Natural Language Processing (NLP)
Experiments were conducted using BERT and RoBERTa on Semantic Textual Similarity (STS) benchmarks. For unsupervised BERT training, SepNorm increased the average Spearman correlation from 74.04 to 75.87, demonstrating better alignment of sentence-level meanings.
4.3 Graph Learning
The study extended to molecular property prediction using the Graphormer architecture on the ZINC and MolHIV datasets. In these models, the [VNode] acts as the global aggregator. Implementing SepNorm reduced the Mean Absolute Error on ZINC from 0.069 to 0.052, a substantial gain in precision.
5. Key Insights
- Uniformity and Rank: Singular value analysis and t-SNE visualizations confirm that SepNorm embeddings possess a higher numerical rank and better class separation. This suggests that SepNorm acts as an implicit regularizer for representation uniformity.
- The Role of Batch Normalization: While LN is standard in Transformers, the authors hypothesize that BN’s ability to "flatten" distributions across a batch is uniquely beneficial for the
[CLS]token, preventing it from collapsing into a single point in the vector space. - Implicit vs. Explicit Uniformity: While explicit contrastive losses (like those in U-MAE) are beneficial, SepNorm provides a structural solution that improves embedding quality even in the absence of complex loss functions.
6. Conclusion and Future Work
SepNorm offers a computationally inexpensive and architecturally simple solution to the problem of dimensional collapse in Transformers. By recognizing the distinct functional roles of tokens, SepNorm achieves significant performance gains across multiple modalities. Future research may explore the scaling properties of SepNorm in Large Language Models (LLMs) and its impact on extremely long-context training, where the disparity between the single [CLS] token and the sequence length is even more pronounced.
Summary updated