Summary
Authors propose a new LSH-based approximation algorithm for attention layer, called HyperAttention. Similar to KDEformer, authors aim to bound the operator norm of the error, and this is done by two-steps: approximating the normalization matrix, and the attention matrix. Both approximations are primarily based on sortLSH, as with KDEformer, although authors generalize the analysis to be applicable to other sketching algorithms. Subquadratic runtime is proved. For empirical experiments, authors evaluate with LongBench tasks, perplexity on LongBench. Wall-clock time of HyperAttention on 131k sequence is also measured.
Strengths
Significance: This paper provides a new theoretically-grounded approximation algorithm for attention layers. The algorithm doesn't rely on kernel density estimation, and the analysis is more straightforward to associate the assumed properties of attention matrix with theoretical guarantees. Hence, future work will find it useful to build upon this work to adapt assumptions and derive new results.
Originality: Although the algorithm is based on the same primitive sortLSH, as prior work KDEformer did, the actual algorithm is new. Also, authors generalize to other sketching algorithms as well, which makes a stronger connection to sketching literature.
Clarity: The overall proof strategy is clearly described. High-level intuition and interpretation of proof parameters are explained such that readers shall follow the main logic without having to read the proof. However, intuitive explanation of algorithms is mostly reserved to appendix, which is unfortunate but understandable given page constraints.
Quality: I wasn't able to closely verify proofs, but overall proof strategy of the work seems sound.
Weaknesses
Empirical evaluations of this paper is not aligned well with prior work, which makes it difficult for readers to understand the practical usefulness of the proposed approach. For example, prior work KDEformer evaluates on BigGAN, ImageNet Classification, and Long Range Arena Benchmark, comparing against not only exact baseline but stronger baselines such as Reformer/Performer. While HyperAttention shared many similarity with KDEformer and claims to be more practical due to not using KDE, HyperAttention is not compared against KDEformer, making it difficult to see whether the difference between to actually make a practical difference. Also, end-to-end training experiment is lacking, and only forward/backward computation time was evaluated.
Although HyperAttention shares the overall proof strategy with KDEformer, they differ significantly in assumptions they make. I believe it is potentially a strength, as HyperAttention shall make more realistic assumptions and strengthen guarantees. However, it wasn't clear how HyperAttention's assumptions relate to KDEformer. A more detailed discussion of comparison between KDEformer and HyperAttention will clarify the theoretical contribution of this paper despite sharing the overall proof strategy.
Questions
Eq (10) in Section 1.2 probably mean Eq(1).
In equation (5) in Appendix A, which result are authors using to prove this?
Rating
8: accept, good paper
Confidence
3: You are fairly confident in your assessment. It is possible that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.