Summary
The paper concerns using the proposed "Dynamical Systems Framework" (DSF) to better understand the differences between linear SSMs, RNNs, linear attention and Softmax attention. The DSF shows a way to write each of these models as a linear time-varying recurrence. The paper aims to use this to answer questions about the differences between the three types of models, the role of state expansion, and how ideas from SSMs can be used to improve RNNs. Empirical experiments on the multi-query associative recall (MQAR) task and Wikitext are used to support the findings.
Strengths
- The goal of better understanding the differences between the different models, and in particular trying to understand the gap between Softmax attention and its more efficient alternatives is important
- The paper is well-written and clear. I particularly liked Figure 4 in Appendix A which made the dimensions being referred to throughout the paper clear.
- The different formulations and results in the paper appear to be technically correct
- Insights are used from SSMs to propose a different normalization scheme for linear attention which appears to improve performance on the tasks considered
- The empirical results on the MQAR and Wikitext experiments support the claims
Weaknesses
- The proposed DSF is nice in that it allows comparing each of the different types of models, but it's originality is weakened by the fact that most of the main parts of the framework have been discussed before in prior work
- The connections between linear attention and linear RNNs/SSMs are clear and have been discussed in prior works as mentioned in related work.
- In addition, the infinite dimensional representation of softmax attention as discussed in Section 3.2.1 is also discussed in Katharopoulos et al. 2020 among others
- Softmax attention has also been formulated as a dynamical system in https://arxiv.org/abs/2401.06104 which should be cited
- The findings that are suggested as a result of the framework also do not seem to be new or particularly surprising
- The fact that larger state sizes lead to increased expressivity is not surprising and has been explored before, e.g. in https://arxiv.org/abs/2312.04927, https://arxiv.org/abs/2312.00752
- The proposed improvement to RNNs is to change the parameterization of a linear RNN (the quasi LSTM) by replacing its transition parameterization with that of S6. But this seems to just make it more like the already existing linear RNN, RG-LRU (with a slight different in parameterization from S6). This seems to be a much weaker finding than the claimed "What do selective SSMs teach us about improving RNN architectures" from line 53 of the Intro.
- As a counter to this point I am making, the proposed improvement to the normalization of linear attention appears to be novel and appears to improve performance on the tasks considered.
- The focus and claims around expressivity and performance in the paper appear to be very language focused.
- This is obviously of interest, but perhaps narrows the ability for the DSF to provide new and interesting insights as I mention in the point above.
- In addition, only 2 small tasks are considered to support the claims. This limits the ability to understand if the claims hold in more general settings.
- The authors state in the limitations that to strengthen the insights, a larger and more complex language task is needed. This could be great, however I would suggest perhaps also considering more diverse data modalities could also strengthen the insights of the proposed framework.
Questions
- Perhaps considering data modalities and examples other than language could help to highlight insights that can be drawn from the DSF? E.g. perhaps modalities that more naturally arise from dynamical systems could help to further highlight differences between softmax attention and its more efficient alternatives? Or could help highlight differences between different linear attention/SSM/RNN variants?
- Are the differences between softmax attention and the other methods on the MQAR task, e.g. in Figure 5, simply due to the difference in state size? One can think of the state size of softmax attention as the size of its KV cache required for the sequence length of the task. If you make the recurrent alternatives have a state size that matches the softmax attention KV cache size for the task sequence length, do they then perform as well? Or are there other things happening in Softmax Attention as well? Perhaps exploring this through the lens of the DSF framework could also provide insights?
Minor:
- It is stated the Matrix in Equation 12 is $L\times L$, but isn't this only the case when $B$ and $C$ are $N \times 1$ and $1 \times N$? The presentation in the paragraph before suggests these are general matrices.
- Line 203 says "The DSF makes apparent how a necessary condition for separability is
for the map ζ(·) to be expressed by a finite-dimensional kernel, ". But in line 154 it says "Softmax attention also satisfies the assumption of separability". I realize the point that is trying to be made regarding "practical separability", but nonetheless, it appears to be a contradiction as currently written.
Limitations
Adequately discussed.