On Separate Normalization in Self-supervised Transformers

Self-supervised training methods for transformers have demonstrated remarkable performance across various domains. Previous transformer-based models, such as masked autoencoders (MAE), typically utilize a single normalization layer for both the [CLS] symbol and the tokens. We propose in this paper a simple modification that employs separate normalization layers for the tokens and the [CLS] symbol to better capture their distinct characteristics and enhance downstream task performance. Our method aims to alleviate the potential negative effects of using the same normalization statistics for both token types, which may not be optimally aligned with their individual roles. We empirically show that by utilizing a separate normalization layer, the [CLS] embeddings can better encode the global contextual information and are distributed more uniformly in its anisotropic space. When replacing the conventional normalization layer with the two separate layers, we observe an average 2.7% performance improvement over the image, natural language, and graph domains.

Paper

Similar papers

Peer review

Reviewer 4DDo7/10 · confidence 4/52023-07-03

Summary

The paper proposes a simple modification to Transformer-based self-supervised learning by having distinct normalization (parameters) for the CLS token, which captures the global information for use in downstream tasks, and the remaining tokens. The motivation is that this allows the tokens to avoid dimension collapse as indicated by a lower uniformity score, which in turn correlates with higher downstream performance. The paper verifies in a case study that this is empirically the case. The proposed method, SepNorm, is evaluated in a controlled setting against the standard approach, ShareNorm, on various datasets from different domains. SepNorm consistently achieves improvements. An additional ablation study confirms that this is also the case when uniformity is encouraged explicitly through an additional loss term.

Strengths

* The paper proposes an extremely simple, yet consistently effective solution to mitigate the problem of dimensional collapse and thereby improve performance. * The paper is concerned with general self-supervised Transformer architectures, which are relevant to the majority of the NeurIPS audience. * The experiments are very clear and well executed, the controlled experimental setup leaves little room for doubt regarding the method's merits. * The paper is generally self-contained, all necessary pieces can be understood by a general ML-savvy audience. * The idea to use separate sets of learnable parameters across different components of the model is of course not new per se, but the application context and the resulting insights constitute sufficient novelty.

Weaknesses

The only main weakness is that the paper could be structured better. Sections 3.1. and 3.2 mix the description of the proposed method with experimental results that are supposed to motivate the method. However, those results already rely on the existence of the proposed method, and do thus not suit as motivation. Rather, they constitute useful analyses of the proposed method, which could just as well be discussed in the "Experiments" section. This has the added benefit that the datasets used for generating results in Figures 3 and 4 have already been introduced (which only happens in 5.1). In fact, section 3.1. and 3.2. never explicitly mention that these are computer vision datasets.

Questions

* In section 4, alternative normalization methods are discussed. In how far do these address the dimensional collapse problem? How would your results change with different normalizations, i.e., in how far is your method orthogonal to these? * Table 2: It is unclear what you mean by BERT-base and RoBERTa-base. Do these refer to the original models, or are these finetuned in the same way as the "+SepNorm" models? If it's the former, how do we know that the improvement isn't merely a result of continued finetuning?

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

4 excellent

Presentation

3 good

Contribution

3 good

Limitations

The paper does not address limitations. I think it would be useful to discuss whether the results would extend to other types of normalization (see question above), and what potential avenues for future work are.

Reviewer hvnd7/10 · confidence 4/52023-07-05

Summary

The paper introduces SepNorm, a normalization technique for Transformer models. SepNorm separates the normalization of the [CLS] token from the rest of the tokens in a sequence, a departure from the traditional ShareNorm method that normalizes all tokens together.

Strengths

1. By applying SepNorm, the embeddings of the [CLS] symbol effectively captures the characteristics of the entire graph, leading to improved results in downstream applications. 2. SepNorm achieves better uniformity by encouraging uniformity for both the [CLS] and token embeddings when used in contrastive methods. 3. SepNorm seems to do well in the evaluation.

Weaknesses

No uncertainty/confidence/error bars on experimental results or significance testing.

Questions

Would SepNorm be helpful for multilingual machine translation tasks?

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

No visualization of the learned representation from before and after applying SepNorm

Reviewer vuG36/10 · confidence 4/52023-07-06

Summary

The authors propose to use a different normaliser to the [CLS] token and the rest of the tokens for masked autoencoders. They motivate this as an improvement on the standard normalisation and combine it with contrastive uniformity loss. They observe some improvements in classification tasks .

Strengths

The pape is proposing a new normalisation of MAE using 2 separated normalisers one for [CLS] token and another for other tokens. They provide evidence this helps the models to obtain better perfomance indepndently and in combination with uniformity loss.

Weaknesses

The contribution while important doesn't seem relevant for a larger audience but they do per discussion below for several tasks.

Questions

While the [CLS] token stands among others, it looks like this can be an extreme of different normalisation depending on the frequency. Have authors compared how much of the improvement comes from the token frequency vs how much comes from the semantic full sentence encoding of the token ?

Rating

6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

3 good

Presentation

3 good

Contribution

2 fair

Limitations

The authors have studied some ablation studies.

Reviewer QRJ84/10 · confidence 4/52023-07-07

Summary

The paper proposes a new method called SepNorm, which utilizes separate normalization layers for the [CLS] token and the remaining tokens, replacing the conventional single normalization layer (ShareNorm) in transformers. Experiments demonstrate the importance of applying separate normalization to the [CLS] token and the remaining tokens, and show that SepNorm enhances the transformer's ability to encode the input.

Strengths

The paper propose to explore separate normalization for the [CLS] token in pretrained transformers. Experiments on three different domains show the effectiveness of the proposed method.

Weaknesses

The paper mentions that "Our method aims to alleviate the potential negative effects of using the same normalization statistics for both token types, which may not be optimally aligned with their individual roles." It seems that this statement is not empirically validated in the paper. In the ablation study, only experiments on a CV dataset have been conducted. It would be better if more experiments on NLP and Molecule Discovery datasets could be carried out. The paper only selects one or two models for each domain in the experiments, such as evaluating the STS task in the NLP domain. However, this limited selection of tasks is not sufficient to demonstrate the generalizability of SepNorm. It would be more appropriate to include a wider range of experiments across multiple tasks to provide a comprehensive evaluation of the effectiveness and generalizability of the proposed SepNorm method. The paper does not empirically compare the proposed method against previous works, such as Powernorm mentioned in the section of related work.

Questions

1. Can the proposed method be scaled to large language models? 2. How is the speed of SepNorm in comparison to ShareNorm?

Rating

4: Borderline reject: Technically solid paper where reasons to reject, e.g., limited evaluation, outweigh reasons to accept, e.g., good evaluation. Please use sparingly.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

2 fair

Presentation

2 fair

Contribution

2 fair

Limitations

The paper does not discuss the limitations of the proposed method. It would be better to discuss the potential impact of the proposed normalization method on learned representations, training time in addition to the performance on the downstream tasks.

Reviewer voLG7/10 · confidence 4/52023-07-13

Summary

This paper analyzes the normalization layer that is applied to both the context tokens and the [cls] token in an input. It argues that traditional normalzation that is applied to both type of tokens, dubbed ShareNorm, is not effective since they have different roles. The paper proposes to use separate normalization layers for these tokens, SepNorm, and conducted a series of analysis. Echoing prior work, they showed that a measure of uniformity of the representations correlates with downstream classification performance, and further that ShareNorm find hard to tackle this uniformity deficiency even with uniformity fixing methods, while SepNorm improves uniformity and hence downstream task performances.

Strengths

1. The paper is well written and easy to understand. It starts with sufficient background and explains the analysis clear. 2. The hypothesis intuitively makes sense to me, and the empirical analysis provides good support. 3. Experiments are conducted on a number of tasks in vision, nlp and graphs.

Weaknesses

I don't have major concerns on this work.

Questions

n/a

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

4 excellent

Presentation

4 excellent

Contribution

4 excellent

Limitations

no limitations were discussed.

Reviewer vuG32023-08-12

Thanks for the additional experiments, the nice work and the time devoted to clarifying the points of concerns. ## [weakness] ### Q1: The contribution while important doesn't seem relevant for a larger audience. ### R1: Thank you for your feedback. We feel that our proposed ... *Reviewer's Answer*: Apologies. I think, in hindsight that I should have added more information into that comment. I didn't mean the practical implications of this technique will not be interesting or relevant but rather that the paper may -- from one's person point of view which could potentially be biased -- not be relevant for a large audience for long time w/o follow-ups. The other comments on the review attempt to show glimpse of why. I hope my view is clarified and of course the results that with your hard work and diligence have been collected are surely relevant and interesting for part of the community. In case of doubt, please note that this has not affected the overall rating, for which I focused on the content itself, given the subjective and risky nature of that comment. ## [questions] ### Q1: While the [CLS] ... ### R1: Regarding the "frequency" aspect, .... *Reviewer's Answer:* The main question can be restated as which are the causes and not the effects of the SepNorm approach ? the analysis seems to be focused on uniformity. Given the heuristic nature of the proposed solution and the Uniformity effect analysis, I think other heuristic solutions comparison based on statistical analysis might be beneficial. Note that because Normalisation layers essentially standardise the input, the improvement can come from a purely statistical effect of taking out statistical outliers, or recursive mean computation, ... . For instance, one could simply split the tokens into top-k frequent events and less frequent events which might show different distribution behaviour. Since the token [CLS]/[VNode] is a single token and occurs at each training example, it can be biasing the distribution statistically because of the frequency. Alternatively, if the [CLS] activation is the average of other activations, then the Normalization layer might not be able to adapt during training to those dynamics, where x_0 = mean(x1...xN). Note as well that if the sequence lengths are in average 128 and we have N training examples, then there is a strong bias against the [CLS] token activation vs other frequent tokens such as "th" or "a" --among others--; or even 1/128 if all other tokens do share activation distribution except for [CLS]. Consequently, one could scale the contribution of [CLS] proportionally. Furthermore, we could erase the frequency from the update by making parameters depend on the frequency, ... etc ... These are some of the thoughts, I was considering while writing the main question. Essentially, the SepNorm is simply one solution to the approach that is subsumed in other options when trying to find the causes/solutions for the [CLS] behaviour. Note I have intentionally dropped [SEP] from discussion about. BTW, What about the [SEP] token ? would it be beneficial to split it out as well ? Thanks !!

Authorsrebuttal2023-08-14

Thank you for your comment!

### **Reviewer's explanation on the contribution comment** #### *Author response*: Thank you for the response, and we appreciate that you recognize our hard work. We agree that our proposed reasoning may not be unique. However, we would like to emphasize the importance and relevance of this problem (self-supervised transformers, which have been the de facto choice of different research communities for learning from unlabeled data, as demonstrated by our experiments in NLP, CV, and Graph). We also hope that by observing and interpreting the problems, more people would notice this phenomenon and (potentially) other related phenomena in self-supervised transformers. We believe our observation and explanation are self-contained, and we propose a simple yet effective approach to mitigate the issue and demonstrate the empirical performance gains across various tasks. We will add more discussions in the future work section to point out potential extensions and follow-ups of our work. ### **Reviewer's clarification on the frequency question** #### *Author response*: Thank you for your clarification! **Here is our short response**: We advocate treating [CLS]/[SEP] as different variables for other natural tokens.(by natural, we mean the token is originally in the dataset and not introduced heuristically, such as [CLS],[SEP]). But we do not think treating natural tokens differently based on their behavior (for instance, their frequency) is a good idea. While SepNorm works well in promoting representation quality, we agree that it is not the only solution separating the two kinds of variables, and other promising solutions may exist. We’d like to leave such work in the future. We think that apart from SepNorm, another contribution of our work is the finding that the two types of tokens should not share the same embedding space (through uniformity analysis). We hope the reviewer could agree on this. Below we further elaborate on the reviewer's comments: **(We advocate treating [CLS]/[SEP] as different variables (outliers) against other natural tokens.)**\ Your observation that “the improvement can come from a purely statistical effect of taking out statistical outliers, or recursive mean computation” is insightful. Your assumption that the [CLS] embeddings (outliers) do not belong to the intrinsic distribution of the other token embeddings aligns with our motivation. Our approach takes a further step and assumes those “outliers” belong to another distribution and access the uniformity of the “outliers” distribution. **(treating natural tokens differently (as outliers) based on their behavior (for instance, their frequency) & biased fitting)**\ However, we do not feel it’s reasonable to identify “outliers” based on their frequency. Since stopwords like “the” and “a” are frequently observed in the data. Statistically, their high frequency will not bias the fitting of the normalizing parameter because such behavior is the nature of the data. On the contrary, adopting different treatments to those high-frequency may result in biased fitting. Such an argument does not apply to the [CLS]/[SEP] tokens! Since they are heuristics and not originally from the data. We further provide an ablation study that performs SepNorm on stopwords (collected from NLTK) such as “a”, “the”, and “are” tokens. The performance gain is marginal (74.04→74.18 on unsup. STS with BERT model). **(Simple treatment that reweights contribution between [CLS] and other tokens)**\ The remark made by the reviewer that “one could scale the contribution of [CLS] proportionally (when updating the normalization statistics) to improve model performance” is a possible approach. Intuitively, such an approach can determine “the 'volume' the [CLS] token and the other tokens should occupy” by tunning the contribution coefficient. To do this, we increase the weight of the [CLS] token by L/2L (L=256) when optimizing the normalization statistics. Such an operation leads to a performance gain (see table below), but not as good as SepNorm. Moreover, further increasing the important weight might result in performance drops. We believe such an operation requires careful parameter selection to balance the two types of tokens. SepNorm directly separates them into two embedding spaces, ensuring they won’t “compete” for space. | | ShareNorm | ShareNorm(L)| ShareNorm(2L)|SepNorm| |-|:-:|:-:|:-:|:-:| |**Accuracy**| 92.01 |92.75| 91.88| 93.84| **(SepNorm on [SEP] token)**\ In response to the last comment about the [SEP] token, there is no harm in introducing SepNorm to it. *We believe such an operation may help promote the uniformity of the natural token embedding but the downstream improvement gain might be marginal*. Because [CLS] token may benefit less from it since it already has its normalization layer. We thank you again for the clarification, and we hope we've answered all the questions. Please do not hesitate to ask if there are more questions.

Reviewer hvnd2023-08-14

Comments after rebuttal

Thank you for your response, which included re-running the experiments to obtain the standard derivations in the NLP tasks and the visualization of the learned representation before and after applying SepNorm. This shows the robustness of SepNorm. For this reason, I am willing to revise my score up.

Reviewer 4DDo2023-08-15

Thank you for discussing limitations and showing the will to improve the readability of the paper. Unfortunately, since the discussion period doesn't allow to update the draft, I can not improve my score based on promises. However, I think the work is fine either way, so I'll keep the score.

Reviewer QRJ82023-08-16

Thanks for providing new experiment results

The provided new results partially address my concerns. For this I'd like to increase my score. But some results are mixed and the method is quite limited to the scenario with [CLS] token.

Authorsrebuttal2023-08-16

Thank you for your kind response. We are willing and are happy to provide more results if you have other comments on the our additional experiment. Regarding the comment that our proposed method has limited application, we believe the use of [CLS] token is quite universal, which could benefit various domains just as illustrated as in the experiment.

Authorsrebuttal2023-08-21

Thanks for the valuable comments and fruitful discussions

Dear Reviewers, We wish to take this opportunity to thank the reviewer for their extensive constructive feedback during the review process, for raising interesting and relevant questions for the work, and for highlighting a number of action points which have served to strengthen the paper. Best, Authors

Program Chairsdecision2023-09-21

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC