- Rating
- 4
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 2
Read review
Summary
In this paper, the authors study approximate matrix-vector multiplication under a bounded entrywise -mass assumption on the matrix , namely . The goal is to output an approximation to satisfying the additive error guarantee . For a general matrix, after preprocessing, their algorithm achieves query time , which improves over the naive time required to compute exactly for each query vector . The paper further extends this approach to kernel matrices through a black-box reduction to Fast-KDE data structures, obtaining kernel-dependent subquadratic running times and improving prior bounds for Gaussian kernel matrices.
Strengths and weaknesses
Strengths:
The results and technical novelties of this paper are clearly presented. This paper is based on the bounded entrywise -mass assumption, which is weaker than a standard bounded-sparsity assumption.
The techniques are intuitive and easy to follow: The query vector is split into heavy and light parts. Since the heavy part is sparse and its entry is large, is computed exactly. On the other hand, the entries of the light part are small, so is approximated via row-wise sampling.
Weaknesses:
While the query time is subquadratic in when , the algorithm requires substantial preprocessing. In the randomized version, the preprocessing time is , while in the deterministic version it is . For queries, the randomized data structure has total time roughly , whereas naive exact multiplication costs . Hence the randomized data structure is advantageous when . For the deterministic version, the larger preprocessing cost requires many more queries to be worthwhile.
This paper does not give the lower bound analysis. It is unclear to me whether or not the running time is optimal or can be improved substantially. The authors only conjecture that might be a fundamental bottleneck. It would be better to give more intuition. Improving it to optimality or analyzing the lower bound seem to be a fruitful direction.
While this is a theoretical paper, the lightness assumption is motivated by prior empirical observations. In this paper, the authors claim that in self-attention and Gaussian kernel matrices, each token may only have high correlation with few other tokens, so the lightness assumption is practical. I believe the motivation can be further developed. It is not clear to me whether or not there are other applications where the lightness assumption can be applied. If this paper wants to specifically target the attention computation problem, it would be better to give a more explicit result showing the improvement over prior works.
Questions
Please see weaknesses.
Limitations
Yes
Paper formatting concerns
No
Final justification
The rebuttal substantially addresses my concerns regarding preprocessing and the comparison with prior work. The randomized preprocessing matches the cost of reading the input. The improvement from to is important. The lower-bound question remains open.
We thank the reviewer for their valuable feedback.
Yes that is correct. One cannot really hope to be subquadratic for arbitrarily small ϵ and arbitrarily large γ. For example as γ increases, the L1 assumption includes all matrices. Also note that our dependence on these parameters is much more favorable than the prior state of the art of Indyk et al as we discuss below.
We would like to clarify our contributions. Our randomized algorithm for Theorem 2.1 requires O(n2) time preprocessing, but it works for any arbitrary input matrix. In this case, quadratic time is already required to read the matrix so we believe this is not a substantial amount of preprocessing. Note that Theorem 2.2 then takes this randomized algorithm and modifies it for kernel matrices such as the Gaussian kernel matrix. In this case, it only reads the n input points specifying the matrix and thus does not require any preprocessing (this is the whole point of that section). The total running time of Theorem 2.2 is thus O~(dn1.604/ϵ1.041) in the Gaussian kernel case, which improves upon the prior work by Indyk et al. in polynomial factors in n and 1/ϵ.
Indeed, as your calculation shows, the randomized data structure of Theorem 2.1 (which works for any input matrix) is already advantageous for q being a constant number of queries, in the setting where γ and ϵ are fixed and n is large. For Theorem 2.2 (the kernel matrix case), the MVP time is sub-quadratic and it does not use any preprocessing, so it is substantially faster than doing a single exact matrix-vector. For example in the Gaussian kernel case, our algorithm has n dependence n1.604 as stated in Table 1.
Thank you for the comment. We agree that lower bounds are an interesting future direction. We note however that the two techniques of Theorem 2.1 are essentially tight. It is easy to show that the sampling scheme used in the randomized algorithm cannot give better than n1.5. Furthermore, it is also easy to construct matrices which require a rank Ω(n) approximation in the proof of Theorem C.1, even if we threshold the large entries, forcing the algorithm to take n1.5 time. Finding a concrete lower bound hypothesis is thus an interesting future research direction, but we note that standard tools such as OV do not seem to powerful enough.
Our motivation is the following, which we also discuss in the introduction. In practice, the L1 assumption has been empirically observed in kernel and attention matrices in practice, since each token typically has high correlation with only a few other tokens. This was already extensively verified empirically in [1], which introduced the L1 assumption.
In theory (which is the main focus of this paper), the L1 modelling allows us to avoid worst case behavior, which we believe is very interesting. Indeed, in the worst case, there are no known subquadratic time approximate MVP algorithms for kernel matrices for general input vectors. The existing subquadratic algorithms can only handle the case of entry wise non-negative vectors and gives a relative error guarantee. On the other hand, using the L1 assumption, prior work of [1] was able to obtain subquadratic algorithms for additive error MVPs for kernel matrices, which is an even stronger error guarantee than relative error. We also remark that our L1 assumption is very broad and applicable in other situations. For example, it encompasses all dense probability transition matrices (e.g. markov chains), generalizes sparse matrices, and captures dense matrices where few entries dominate the sum.
Our paper pushes the theoretical boundaries further and improves upon the additive error MVP algorithm of [1] by polynomial in n and 1/ϵ factors, while significantly extending the applicability of the approach, e.g. to many different types of kernel matrices beyond Gaussian. We believe the L1 parameterization is a very natural structural property which should be of broad interest to the ML community, precisely because one can prove strong theoretical, beyond worst-case results under this property.
[1] Piotr Indyk, Michael Kapralov, Kshiteej Sheth, and Tal Wagner. Improved algorithms for kernel matrix-vector multiplication under sparsity assumptions. ICLR 2025.
Our submission already has such an explicit result. The work of [1] studies the Gaussian kernel case under the L1 assumption. They give an algorithm (for say γ=O(1)) with running time of O~(dn1.89/ϵ2) to obtain an ϵ additive MVP. We improve this running time to O~(dn1.604/ϵ1.041). In addition, we obtain results for the Exponential, Laplacian, and Rational quadratic kernels which Indyk et al. did not (see Table 1).
[1] Piotr Indyk, Michael Kapralov, Kshiteej Sheth, and Tal Wagner. Improved algorithms for kernel matrix-vector multiplication under sparsity assumptions. ICLR 2025.