- Rating
- 5
- Clarity
- 4
- Confidence
- 4
- Originality
- 4
- Quality
- 4
- Significance
- 3
Read review
Summary
This paper proposes a method, "Manifold Random Features" (MRF), to find an approximate feature map for a bivariate function defined on Riemannian manifolds , rather than simply Euclidean spaces as is often assumed.
The method discretizes the manifold and then utilizes the Graph Random Features (GRF) method to generate discrete "signature vectors". These signature vectors are used to train a function (a neural network) such that
These functions are then clamped at zero to ensure they are positive and used to construct the approximate feature maps.
The authors show that in the case of the Gaussian kernel, the functions have an explicit form and their algorithm reduces to a recently introduced method for Gaussian kernel approximation. (although here I'm unsure why they need to construct the signature vectors using the GRF method in this case, so I might have misunderstood. See questions)
They provide extensive experiments convincingly demonstrating the methods computational and statistical advantages over alternative methods.
Strengths and weaknesses
This paper is very well-written and organised. The prose nicely balances presenting intuition and placing the work within the context of the literature, and accurately conveying the important mathematical details. This makes this paper enjoyable to read, even for a reader without a background in the related methods. There is some mathematical depth and the reader is required to put in a fair amount of work to understand everything that is being presented, but given the depth of this work, I don't think the authors could have done a better job at guiding the reader along
The method is clearly novel and innovative, and even though it builds on existing work (i.e. Graph Random Features), the work stands on its own as its own contribution. The experiments clearly and convincingly demonstrate the advantages of this method, both in terms of computation time and statistical accuracy. They also demonstrate to advantage of explicitly making use of the manifold structure of the domain, instead of relying of methods which treat them as Euclidean. The key ideas are explained clearly and accurately and are supported by theoretical results in the appendix. The work is technically sound and complete. All proofs are written with mathematical maturity and assuming I haven't missed anything going through them, are correct.
One aspect which I feel less able to comment on is the significance of this work to the community. It would be helpful if the authors could given some more detailed explanation of the types of problems and the areas of machine learning that could make use of this methodology (see Questions).
Questions
- you continuously refer to the asymptotic connection between GRFs and continuous random features as "deep". Do you mean something specific by that?
- I was a little confused by the Section 2.2. You say that the matrix adheres to Eq. 4, but can you elaborate on whether that's an assumption or something that can always be said to be true for any function ? I was also not sure how much I needed to read into the sentence " can be found by a regular regression algorithm". What is a "regular regression algorithm" in this context? What would I actually need to do in practice here?
- You say that "In practice, does not need to include the full set of pairs...". I can understand the intuition here, but what do you do/should you do to subsample them in practice?
- In the Inference subsection of §2.2, when should I choose (1) over (2) or vice versa?
- What does mean at the bottom of page 4?
- Can you be explicit about what you mean by "Frobenius alignment"?
- In the case of the Gaussian kernel, why do I need to use GRF at all if I can an explicit form for ?
- Can you elaborate on the practical applications of this methods. In particular, can you give a detailed account of how and why this would be useful for improving attention in Transformers?
With sufficient clarification of the points raised, I will be happy to increase my score and recommend acceptance.
Limitations
The "Impact Statement & Limitations" section doesn't list any limitations.
Paper formatting concerns
None
Final justification
All my concerns have been addressed and I've updated my score to 'Accept'. I'd still encourage the authors to engage in a thoughtful discussion of the limitations of the method, beyond token statements. This could include e.g. when the doesn't perform well in practice, especially given the limited examples on real data.
We would like to sincerely thank the Reviewer for the valuable feedback. We address all the comments below.
“Deep” connection between GRFs and continuous random features:
Thank you very much for the comment. We found the re-discovery of the mechanism of positive bounded random features for the Gaussian kernel from [2] particularly compelling for a couple of reasons:
Following Reviewer’s comment, we will clarify it in the camera-ready version of the paper.
[1] Rethinking Attention with Performers. Krzysztof Marcin Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamás Sarlós, Peter Hawkins, Jared Quincy Davis, Afroz Mohiuddin, Lukasz Kaiser, David Benjamin Belanger, Lucy J. Colwell, Adrian Weller; ICLR 2021
[2] Chefs' Random Tables: Non-Trigonometric Random Features. Valerii Likhosherstov, Krzysztof Marcin Choromanski, Kumar Avinava Dubey, Frederick Liu, Tamás Sarlós, Adrian Weller; NeurIPS 2022
Section 2.2:
Thank you very much for the comment. The graph kernels covered by GRFs contain a large class of functions, with the corresponding graph kernel matrix given by the formula from Eq. 4. Those include in particular: diffusion, Laplace and cosine kernels and many more. The “discretization” of the manifold kernel F does not necessarily need to correspond to one of those kernels (even though that is the case for kernels considered in this paper) and this is what we mean by alignment/mis-alignment. Since the class of kernels defined via kernel matrices in Eq. 4 effectively leverages several potentially learnable parameters (namely coefficients αk), in practice one can learn the approximation of the discretized version of F with kernels defined via Eq. 4. To be more specific, one can take a mesh approximating a manifold under consideration, calculate values F(x,y) for x,y taken from that mesh and fit the coefficients αk, so that the kernel matrix induced by points F(x,y) matches accurately its proxy, leveraging formula from Eq. 4 (with the weighted adjacency matrix effectively induced by the proxy mesh). In the simplest setting this becomes a classical regression problem with the squared L2-loss. Following Reviewer’s comment, we will clarify it in the camera-ready version.
Constructing training dataset and efficient sub-sampling:
One of the standard approaches to reduce the number of training points is to sub-sample from the mesh pairs of points (x,y) with the shortest path (or even Euclidean) distance between bounded by a given threshold value R. For large enough value of R and most kernel under consideration, their corresponding values for pairs of points beyond that distance will be close to zero and thus it is unnecessary to feed all those pairs into the training algorithm. Furthermore, for very refined meshes, in general it is perfectly fine to sub-sample them (even with as simple strategies as taking points uniformly at random; the size of the sub-sampled set is a hyperparameter here) since, as mentioned in the manuscript (l.115-116), signature vectors for very close points are also very similar and thus adding many nearby points does not necessarily provide additional strong training signal. Following Reviewer’s comment, we will clarify it in the camera-ready version.
Inference subsection:
Thank you very much for the question. As we stated in the manuscript (see: l.128-131), the latter variant is the randomized unbiased estimation of the former variant, providing computational advantage since it provides the user with the opportunity to choose the dimensionality of vectors ϕ, potentially much lower that the default dimensionality N. Thus the (1) vs (2) choice is the classic accuracy vs computational efficiency tradeoff. We will clarify it in the final version of the paper.
Bottom of Page 4:
We simply meant that the spectrum is not upper-bounded. We will clarify it in the final version of the paper.
Frobenius alignment:
Thank you for the comment and pointing this out. By the Frobenius alignment we meant scale alignment from Sec. A.2. We provide a detailed explanation of this procedure in Sec. A.2. In a nutshell, scale (Frobenius) alignment handles the scaling challenge, as going from continuous to discrete spaces. We will definitely explicitly point to Sec. A.2 with all the details, while mentioning the concept in Sec. 3.1.
Why to use GRFs for the Gaussian kernel:
The Reviewer is correct that the explicit form for g in the case of the Gaussian kernel can be used instead of the GRF mechanism for the computations involving Gaussian kernels. We do not claim that GRFs should be applied to conduct those computations. We claim that GRFs can be straightforwardly applied to derive g that later on can be used as a standalone formula. That formula, effectively encoding positive bounded random features for the Gaussian kernel is highly non-trivial and was obtained before via a much heavier technical machinery. Thus the framework presented in this paper can be in principle also used to discover low-variance continuous random feature map mechanisms that later on can be used on their own. See also: paragraph “Deep” connection between GRFs and continuous random features above, where we provided much more detailed discussion.
Practical applications of the method:
Thank you very much for the comment. There are several practical applications of MRFs. First of all, MRFs open scalable kernel methods for manifold data. To the best of our knowledge, this is one of the very first methods proposing continuous random features for kernels living natively on the manifolds.
Gromov-Wasserstein distance (GWD) computations between distributions defined on manifolds have several applications in robotics (objects detection, 3D tracking and optical flows) and heavily rely on cost functions defined via functions of geodesics. GWD is very expensive to compute and several methods, leveraging scalable kernel methods, have been proposed to address it. Those however explicitly rely on kernels using Euclidean distances which are not relevant for manifold data present in robotics. Kernels operating natively on manifolds is a natural choice here.
In the context of Transformers, MRFs can be applied to define powerful attention modulation mechanisms, effectively implementing Relative Positional Encoding (RPE) techniques for the manifold data. To be more specific, manifold kernel matrices can modulate regular attention (by adding geometric inductive bias) via element-wise (Hadamard) multiplications with regular attention matrices. As shown in [3], in order for such a mechanism to be computationally efficient, as combined with linear-attention Transformers, the mask matrix (in this setting manifold kernel matrix) would need to support fast (sub-quadratic) matrix-vector computations. MRFs trivially enable that since the corresponding kernel matrix can be re-written as a product of two lower-rank matrices (this decomposition directly follows from the representation of the original manifold kernel as a dot-product kernel via computed random features).
We will provide detailed discussion on the practical consequence of the presented work for the entire ML Community in the camera-ready version.
[3] Choromanski, K., Lin, H., Chen, H., Zhang, et al. (2023). From block-Toeplitz matrices to differential equations on graphs: towards a general theory for scalable masked Transformers. arXiv [Cs.LG]. http://arxiv.org/abs/2107.07999
Limitation section not listing limitations:
We do list a very specific limitation of our work there. We say (l.335-336): Extending MRFs beyond compact manifolds is left to future work as noted above at the end of Sec. 3.3. In the camera-ready version, we will explicitly clarify that this is indeed a limitation that would require developing new techniques.