# Poster 30847

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/30847

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello everyone, this is Xiao Ming Gu. Today I will give a presentation about our paper Will Attending Emergence in Language Models and in Procopio.
We all know that the language models adopt the decoder-only transformer, and self-attention is one of the most important parts in decoder-only transformer. And here is the mathematical formula for this self-attention. We can see that the query dot product with K plus the cosine mask, we call this attention logits, and then we do the softmax to get attention scores.
After that, we use the attention score to weight the average on the values to get the attention output. If we realize the attention scores or attention logits, we can see that as an attention sync phenomenon, which refers to that a language model assigns significant attention to the first token, no matter what the semantic meanings.
So why Attendance Sink is important? Because it has many downstream applications such as KVCache optimization, inference acceleration, model quantization, and alarm contacts etc. So in our paper what we want to do is that we want to know when Attendance Sink emerges in language models.
Based on the open source language models, we already identified that AdderallSync emerged during the language model pre-training. And the post-training has little impact on the AdderallSync. So what we do is that we pre -train a lot of LAMA2 style language models by varying different training recipes.
also observe whether the resulted language models has attention sink or not so here is the objective for this language model pertaining and we explore the optimization the distribution loss function and the model architecture so here we only highlighted the important conclusions from our paper and we strongly encourage the readers to to check our paper for more conclusions
So for the optimization, we identified that the attention sink emerged during specific training steps instead of randomly initialized models. And we found that a small learning rate not only slowed down the emergence of attention sink, but also mitigated attention sink.
From the data distribution, we find that a third thing emerges only after language models are trained on sufficient unique training data not related to the overfitting. For the loss function, we find that larger weight decay encourages a third thing, which makes us to conjecture that a third thing is a shortcut for language modeling.
For the model architecture, actually this is the most important part in our paper. We conduct a lot of experiments to see the effects of bathroom embeddings, pre-normal post-normal, FFM's number of Atari heads. And we found that these components cannot affect the emergence of Atari sync.
as the most important part is the softmax attention itself. So what we do is that we conduct a parallel experiment by adding learnable key bias into the softmax attention. As you can see here, the learnable key bias and its corresponding values are all zeros.
The result in language models has comparable performance with the normal language models, but the interesting thing is observed to the first K bias, even though these V bias are all zeros. So this makes us to conclude that same token is functionality is to save extra attention and adjust the dependencies among other tokens.
So why transformer needs such a phenomenon?
So we conduct further experiments by relaxing the tokens interdependences by removing the normalization in the softmax attention because the normalization ensures that attention scores are sum up to one. So we replace the softmax attention with signal attention and we find that without normalization there is no attention sync or massive activations but if we add normalization back
Next, we can observe the attention signal or massive activations. So this makes us to conclude that attention signal is partly caused by the softmax. That's all for my presentation. Thank you for listening.
