- Rating
- 4
- Clarity
- 3
- Confidence
- 2
- Originality
- 3
- Quality
- 4
- Significance
- 2
Read review
Summary
This paper studies ALiBi attention through the lens of locality-sensitive hashing over positional indices, showing that its exponential distance bias can be expressed as the expectation of contiguous block-diagonal binary attention masks. Based on this formulation, the authors derive spectral norm and uniform approximation guarantees for finite-sample estimates of the ALiBi bias matrix, and connect these results to a near-linear-time approximation of ALiBi attention via randomized block decomposition. The proposed method reduces attention computation to a mixture of short-range block attentions and is empirically validated to preserve approximation quality and downstream model behavior as sample size increases.
Strengths and weaknesses
Strengths
- The paper presents a novel and conceptually clean connection between ALiBi positional bias and locality-sensitive hashing over sequence positions, which provides a unified view of positional bias and sparse attention mechanisms.
- The authors establish non-trivial theoretical results, including spectral norm and max-norm convergence guarantees as well as uniform approximation bounds for ALiBi-biased attention under the proposed positional LSH framework.
- The work offers a useful abstraction that connects positional embeddings, attention bias, and block-sparse attention, which may provide a foundation for further theoretical study of structured attention mechanisms.
Weaknesses
- The paper does not demonstrate any measurable system-level benefit such as wall-clock speedup or improved throughput over optimized attention implementations (e.g., FlashAttention), making the practical efficiency claims largely theoretical.
- The empirical evaluation focuses on approximation error and perplexity preservation, but does not provide evidence that the proposed decomposition yields advantages in realistic long-context or downstream LLM tasks.
- The work is centered on ALiBi, which limits its broader relevance given that RoPE-based positional encodings dominate current large-scale language model architectures.
Questions
- The paper claims a near-linear-time approximation for ALiBi attention, but it is unclear whether this leads to actual runtime speedups in practice. Could the authors clarify under what settings (e.g., sequence length or number of samples) the proposed method would outperform optimized implementations such as FlashAttention?
- The proposed framework focuses on ALiBi as a specific instance of positional bias. Could the authors elaborate on whether the positional LSH construction can be extended to other commonly used positional encodings (such as RoPE-based methods), and what obstacles may arise in generalizing the current analysis beyond exponential distance kernels?
Limitations
yes
Paper formatting concerns
No issues related to formatting, anonymity, or compliance with the NeurIPS submission guidelines were identified.
Final justification
The rebuttal clarifies my concerns regarding practical runtime and the scope of the framework, so I have raised my score from 3 to 4. As some aspects of the theoretical analysis are slightly outside my primary area of expertise, I would defer to reviewers with stronger theoretical backgrounds regarding its correctness and significance.
Thank you for your review and feedback!
In our response to uzAm, we explain in more detail the reasons behind the gap between the asymptotic prediction and the empirical performance versus FlashAttention at the context lengths in our experiments. In brief, our approximation replaces one large, highly optimized attention operation with a collection of smaller block-attention operations. At the context lengths available to us, the substantial hardware and systems advantages of the former dominate. Since exact attention scales quadratically while our method is near-linear, we expect the relative advantage of our approach to improve as context length grows, though we cannot predict the practical cross-over point.
The key distinction is between extensions to other positional bias kernels and extensions to other positional encoding mechanisms such as RoPE. For other multiplicative positional biases, the basic positional-LSH framework applies whenever the corresponding kernel admits an LSH representation. The stronger spectral and runtime guarantees then require analyzing the particular hash family and positional geometry, analogously to our ALiBi analysis. In our response to uzAm we detail specific examples for kernels where our approach extends and also limitations to kernels where it does not.
RoPE presents a different but potentially promising direction. Unlike ALiBi and similar positional bias methods, which cleanly disentangle the context embedding of the token and its positional information, RoPE intertwines positional information with the query–key geometry rather than introducing a separate position-only bias matrix, so our current analysis does not transfer verbatim. Nevertheless, RoPE is itself based on a highly structured geometric transformation. LSH approaches are robust in facilitating efficient approximation methods in geometric settings, and it may be possible to develop an LSH construction that acts jointly on positional rotations and query/key embeddings to approximate RoPE. We view this as an interesting direction for future research on the positional-LSH perspective.
Additional responses to AC questions
There are a few important takeaways from our concentration bounds that do not follow from generic or prior LSH/RBF analysis:
Simultaneous approximation for all inputs: scalar RBF concentration controls one input at a time. Our matrix-norm concentration bounds lead to controlling the error for all attention inputs Q,K,V simultaneously with high probability (Theorem 2.2, line 95). Thus, the same sampled masks can be fixed once and reused across different inferences, which is essential for LLMs that remain frozen at inference mode.
Block size control: in generic LSH there is no bound on the number of points per hash bucket; in general all points could land in the same bucket. Our analysis shows that specifically for RBF on ALiBi, the block sizes are strongly concentrated. This is what yields the near-linear time approximation guarantee in Theorem 2.2
Input-dependent stability: our analysis doesn’t just give a worst-case error rate for all inputs - it also yields the input-specific ∥P∥2,∞ term in the error rate in Theorem 2.2, which follows from the spectral norm approximation bounds in Theorem 2.1. The interpretation of this term is that the error decays faster for diffuse attention rows than sharply concentrated ones.
Those experiments are meant to demonstrate that the perplexity and accuracy of positional LSH approach those of ALiBi as the number of samples increases. The relevant quantity is the excess perplexity or accuracy deficit relative to exact ALiBi, and the experiments show that increasing s consistently reduces this gap, validating the theoretical results on concrete LLMs. The purpose is thus not to establish performance gains but to demonstrate the convergence.
The approximation target is different: most prior methods approximate attention without positional bias, i.e., the approximation target is AV or its normalized form (D[A])−1AV. Our positional LSH method approximates attention with ALiBi (or potentially other positional bias schemes), i.e., the approximation target is (D[A⊙L])−1(A⊙L)V. These are not interchangeable: an approximation guarantee for ordinary attention does not control the interaction between the raw attention scores A, the positional bias L, and the resulting change in row normalization. These prior methods could potentially be used together with ours, though they are not substitutes and not directly comparable.
We do not advocate for ALiBi over RoPE or other positional encoding/bias methods. Rather, we develop a theoretical framework for analyzing and approximating attention with positional bias, with ALiBi as a concrete rigorous instantiation. Potential extensions of our LSH framework to RoPE-based methods is an interesting future direction.