# Poster 31171

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

> 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 and thank you for clicking on this video. I'm Jerome and today I'm going to talk about our ICLR paper where we investigate on the skip connections and how to prevent training collapse. Attention-based models are nowadays underpinning all of the deep foundation models we use every day. And this has led to more and more research into various properties of the attention matrix. Today I want to focus on one of them, which is the rank of this matrix.
During training what can happen is that this very high-dimensional matrix becomes low rank and this is what we call rank collapse.
If this happens the representation capability of the model is greatly reduced so this is something we absolutely want to prevent. For attention-based models this has already been thoroughly investigated but more recently Mamba was introduced as a competitor to attention -based models. So what we want to do in this paper is we want to analyze rank collapse also for Mamba-based models and do it in a way where you can analyze both
attention-based and model-based models. Additionally, we want to introduce scale skip connections as a way to mitigate rank collapse. Going a bit more into details, this is the architecture we're looking at. We denote inputs to a layer with x and outputs with y, and we use the superscript to denote the index of a layer.
In total, we assume there are K different layers. Now zooming into one of these layers, we assume we have a backbone where we have a matrix M and a vector V, and for attention-based models, the M would just be the attention matrix and V would be the values. For Mamba-based models, the matrix M would be the rollout of the state space and V would just be the input of a layer.
To prevent rank collapse many different architectural components have been investigated namely skip connections and please note here that we add the scaling lambda there but also layer norm or just other normalization techniques and the MLP. In the paper and in this talk I will just focus on the skip connection. To analyze rank collapse we need a metric and the one we're using is we take the Frobenius norm of the output of a layer and then subtract the mean along the columns.
Using this metric, we observe rank collapse if the metric goes to zero. Now to mitigate rank collapse, we are proposing scale skip connections, where we're introducing a scaling for each of the skip connections in each layer. But now for the sake of this video, we assume there's just one scaling for all of the layers.
Looking at one of the main results in our paper, we see that we can find the lower bound on the rank collapse which allows us to design skip connections which provably prevent rank collapse from happening. We can do this by selecting the skip strength lambda according to the inequality on the right hand side where S and Cm are just architecture dependent constants and A also shows up in the lower bound or we can lower bound.
the rank collapse metric of the last layer by a to the power of k, the total number of layers in the network, and the rank collapse measure of the first layer. Let's see how this works in practice. For this we take two pre-trained models, Albert, which is an attention-based model, and Mamba, and show the rank collapse metric in the last layer as a function of its Gibbs rank lambda.
The first thing we note is that if there is no skip connection, if lambda is equal to zero, we get rank collapse, which is also corroborated in existing results in the literature. There are two other things I want to talk about.
The first one is that taking a negative lambda seems to be more effective to prevent the constraint collapse, especially for attention-based models shown here in blue. And the second thing is if we look at lambda equals to one, which is standard skip connection we always use, we see that the rank collapse metric for Mamba is way lower than for the attention-based model. So this suggests that looking at lambda not equal to one might be more effective for Mamba models.
We also consider lambda as a learnable parameter and train attention-based models and Mamba on two different tasks. First one is the image task in the long-range arena and the second one is the multi -query associative recall task in zoology. Across the board, the performance is largely unchanged, but if we focus on the Mamba models on the MQAR task, we see that the variable lambda actually allows us to improve performance.
The first suggest that making Lambda variable might be more effective for Lambda to prevent rank collapse. This I'm already at the end. If you want to know all the details, get more information, please have a look at our paper which is linked on the right-hand side under the QR code and if you have questions want to chat to us please visit us at our poster. We are in post session 3 on Friday. Thank you very much for your attention and hopefully see you at our clear.
