Manifold Random Features Ananya Parashar, Derek Long, Dwaipayan Saha, Krzysztof Choromanski Abstract We present a new paradigm for creating random features to approximate bi-variate functions (in particular, kernels) defined on general manifolds. This new mechanism of Manifold Random Features (MRFs) leverages discretization of the manifold and the recently introduced technique of Graph Random Features (GRFs; ( Choromanski 2023 ) ) to learn continuous fields on manifolds. Those fields are used to find continuous approximation mechanisms that otherwise, in general scenarios, cannot be derived analytically. MRFs provide positive and bounded features, a key property for accurate, low-variance approximation. We show deep asymptotic connection between GRFs, defined on discrete graph objects, and continuous random features used for regular kernels. As a by-product of our method, we re-discover recently introduced mechanism of Gaussian kernel approximation applied in particular to improve linear-attention Transformers, considering simple random walks on graphs and by-passing original complex mathematical computations. We complement our algorithm with a rigorous theoretical analysis and verify in thorough experimental studies. ∗ Equal contribution † Senior lead 1 Introduction & Related Work Random features (RFs) ( Rahimi & Recht 2007 ; Rahimi & Recht 2008 ; Le et al. 2013 ; Yang et al. 2014 ; Pham & Pagh 2025 ; Liu et al. 2022 ; Choromanski et al. 2022 ; Likhosherstov et al. 2023 ; Choromanski et al. 2017 ; Choromanski et al. 2019 ; Rowland et al. 2018 ; Yu et al. 2016 ) ) provide powerful techniques for translating potentially highly non-linear bi-variate functions into a simple dot-product (linear) kernel via randomized nonlinear transformations \phi:\mathbb{R}^{d}\rightarrow\mathbb{R}^{m} applied separately to two input vectors. Thus RFs lead to effective mappings between nonlinear methods in the original spaces and well-understood and computationally more efficient linear methods in the \phi -transformed spaces. Examples range from classic algorithms such as SVM ( Huang et al. 2014 ; Sun et al. 2018 ) to feedforward fully-connected architectures ( Sehanobish et al. 2024 ; Kim et al. 2024 ) and attention techniques in Transformers ( Choromanski et al. 2021 ; Likhosherstov et al. 2021 ; Peng et al. 2021 ; Nguyen et al. 2024 ; Sun et al. 2025 ; Zhang et al. 2024 ) . Figure 1 : An illustration of the heat kernel F:\mathcal{M}\times\mathcal{M}\rightarrow\mathbb{R} defined on the saddle-like surface \mathcal{M} with a distinguished point \mathbf{x}\in\mathcal{M} marked green. The values F(\mathbf{x},\mathbf{y}) for different \mathbf{y}\in\mathcal{M} are color-coded (different shades of red), with a couple of samples \mathbf{y} highlighted as blue dots. For a general manifold, F is given by a system of partial differential equations and neither it nor the corresponding RF-mechanism are given by the closed-form expressions. Figure 2 : Four grid-graphs of sizes: 4\times 4 , 8\times 8 , 16\times 16 , 32\times 32 with the distinguished vertex \mathbf{z} and its corresponding signature vectors obtained by applying GRF algorithm ( Choromanski 2023 ) . The signature vectors are represented by color-coding different vertices (with more intense shades corresponding to large values and the most intense used to color vertex \mathbf{z} ). Next to the graphs, those signature vectors are also represented by color-coding unit-squares. As the resolution of the grid goes to infinity, those representations converge to the continuous object, namely function g_{i} from Eq. 2 . Constructing efficient mappings \phi_{1},\phi_{2}:\mathbb{R}^{d}\rightarrow\mathbb{R}^{m} (in many applications, a symmetric setting \phi_{1}=\phi_{2}=\phi is considered, but a priori it is not a strict requirement) to approximate given bi-variate function F:\mathbb{R}^{d}\times\mathbb{R}^{d}\rightarrow\mathbb{R} (with error \epsilon\rightarrow 0 as m,d\rightarrow\infty , often unbiasedly), as: F(\mathbf{x},\mathbf{y})\approx\phi_{1}(\mathbf{x})^{\top}\phi_{2}(\mathbf{y}), (1) is a nontrivial task, even for the well-known kernel-functions, which are some of the most natural targets of the RF-methods. For example, a standard method applying trigonometric random features to approximate Gaussian and softmax kernels, proposed in ( Rahimi & Recht 2007 ) , in practice does not work well in linear-attention Transformers, since it can produce negative features for the kernel that is strictly positive. The so-called positive random features from ( Choromanski et al. 2021 ) address this challenge, but further refinements (e.g. the boundedness of the RFs) are needed to improve approximation quality (see: ( Likhosherstov et al. 2022 ) ). The problem becomes even more challenging when bi-variate functions F are defined on non-Euclidean spaces, e.g. on manifolds (see: Fig. 1 ). In the Euclidean setting, a standard approach to constructing mappings \phi_{1},\phi_{2} is by re-writing function F:\mathbb{R}^{d}\times\mathbb{R}^{d}\rightarrow\mathbb{R} as follows for some g_{1},g_{2}\in\mathbb{R}^{d}\times\mathbb{R}^{d}\rightarrow\mathbb{R} : F(\mathbf{x},\mathbf{y})=\int_{\mathbb{R}^{d}}g_{1}(\mathbf{x},\mathbf{\omega})g_{2}(\mathbf{y},\mathbf{\omega})d\omega. (2) Given a probabilistic distribution P\in\mathcal{P}(\mathbb{R}^{d}) with the corresponding density function p:\mathbb{R}^{d}\rightarrow\mathbb{R}_{\geq 0} , mappings \phi_{1},\phi_{2}:\mathbb{R}^{d}\rightarrow\mathbb{R}^{m} can be then defined as follows for i\in\{1,2\} : \displaystyle\begin{split}\phi_{i}(\mathbf{z})=\frac{1}{\sqrt{m}}\left(\frac{g_{i}(\mathbf{z},\omega_{1})}{\sqrt{p(\omega_{1})}},...,\frac{g_{i}(\mathbf{z},\omega_{m})}{\sqrt{p(\omega_{m})}}\right),\end{split} (3) where \omega_{1},...,\omega_{m}\sim P . It is easy to see that the following holds: F(\mathbf{x},\mathbf{y})=\mathbb{E}[\phi_{1}(\mathbf{x})^{\top}\phi_{2}(\mathbf{y})] . It is assumed that p(\omega)>0 for all \omega\in\mathbb{R}^{d} . If one wants to approximate F only on a set: \mathcal{B}_{F}\times\mathcal{B}_{F} for some bounded \mathcal{B}_{F} , then in practice one can consider only “truncated” distributions \mathcal{P} with p defined only on some (sufficiently large) bounded \mathcal{B}_{p} , such that |\int_{\mathbb{R}^{d}\backslash\mathcal{B}_{p}}g_{1}(\mathbf{x},\mathbf{\omega})g_{2}(\mathbf{y},\mathbf{\omega})d\omega| is sufficiently small. Finding the representations given by Eq. 2 is usually a nontrivial task and generalizations to non-Euclidean spaces are even more challenging. In this paper, we present a new paradigm for creating random features to approximate bi-variate functions (e.g. positive-definite kernels) defined on general manifolds. This new mechanism of Manifold Random Features (MRFs) leverages discretization of the manifold and the recently introduced technique of Graph Random Features (GRFs; ( Choromanski 2023 ; Reid et al. 2024b ; Zhang et al. 2025 ; Choromanski et al. 2025 ; Reid et al. 2024a ) ) to learn continuous fields on manifolds, corresponding to functions g_{i} from Eq. 2 , but in the general (not necessarily Euclidean) setting. It turns out that these fields can be thought of as continuous extensions of the combinatorial objects, the so-called signature vectors , the building blocks of the GRF mechanism (see Figure 2 ). They are used to find continuous approximation mechanisms that otherwise, in general scenarios, cannot be derived analytically. MRFs provide positive and bounded features, a key property for accurate, low-variance approximation. We show deep asymptotic connection between GRFs, defined on discrete graph objects, and continuous random features used for regular kernels. As a by-product of our method, we rediscover recently introduced mechanism of Gaussian kernel approximation ( Likhosherstov et al. 2022 ) ) applied in particular to improve linear-attention Transformers, considering simple random walks on graphs and by-passing original complex computations. We complement our algorithm with a rigorous theoretical analysis and verify it in thorough experimental studies. Algorithm 1 Regular GRFs: Construct vectors \phi_{f}(i)\in\mathbb{R}^{N} to approximate \mathbf{K}_{\bm{\alpha}}(\mathbf{W}) Input: weighted adjacency matrix \mathbf{W}\in\mathbb{R}^{N\times N} , vector of unweighted node degrees (number of out-neighbours) \mathrm{deg}\in\mathbb{R}^{N} , modulation function f:(\mathbb{N}\cup\{0\})\to\mathbb{R} , termination probability p_{\textrm{halt}}\in(0,1) , node i\in\mathcal{N} , number of random walks to sample m\in\mathbb{N} . Output: signature vector \phi_{f}(i)\in\mathbb{R}^{N} . 1: initialize: \phi_{f}(i)\leftarrow\bm{0} 2: for w=1,...,m do 3: initialize: load \leftarrow 1 , current_node \leftarrow i , terminated \leftarrow False , walk_length \leftarrow 0 4: while terminated = False do 5: \phi_{f}(i) [ current_node ] \leftarrow \phi_{f}(i)[\texttt{current$\_$node}]+\texttt{load}\times f\left(\right. walk_length \left.\right) 6: walk_length \leftarrow \texttt{walk\_length}+1 7: new_node {\leftarrow\lstinline{{\lst@@@set@language\lst@@@set@numbers\lst@@@set@frame\lst@@@set@rulecolor{\@listingGroup{ltx_lst_identifier}{{Unif}}}}}}\left[\mathcal{N}(\right. current_node \left.)\right] \triangleright assign to one of neighbours 8: load \leftarrow {\texttt{load}\times\frac{\textrm{deg}\scriptsize{[\lstinline{{\lst@@@set@language\lst@@@set@numbers\lst@@@set@frame\lst@@@set@rulecolor{\@listingGroup{ltx_lst_identifier}{{current\textunderscore node}}}}}}]}}{1-p_{\textrm{halt}}}\times\mathbf{W}\left[\right. current_node , new_node \left.\right] \triangleright update load 9: {{\lstinline{{\lst@@@set@language\lst@@@set@numbers\lst@@@set@frame\lst@@@set@rulecolor{\@listingGroup{ltx_lst_identifier}{{current\textunderscore node}}}}}}\leftarrow\lstinline{{\lst@@@set@language\lst@@@set@numbers\lst@@@set@frame\lst@@@set@rulecolor{\@listingGroup{ltx_lst_identifier}{{new\textunderscore node}}}}}} 10: terminated {\leftarrow\left(t\sim\lstinline{{\lst@@@set@language\lst@@@set@numbers\lst@@@set@frame\lst@@@set@rulecolor{\@listingGroup{ltx_lst_identifier}{{False}}}}}}(0,1)0 . However in lots of prominent cases of bi-variate functions defined on manifolds, this is not necessary. For instance, for the diffusion/heat kernels F defined on manifolds, the corresponding F^{\mathrm{disc}} are the diffusion/heat kernels on the corresponding graphs \mathrm{G}_{N} , with the coefficients \alpha_{k} described by a closed-form formula. We describe this prominent special case in more depth in Sec. 2.2.1 . Training g -functions on manifolds: We start this phase by constructing a training dataset \mathcal{T}=\{(x,\omega,\phi_{f}(x)[\omega])\} , where x,\omega\in\mathrm{V}_{N} and \phi_{f}(x)[\omega] stands for the value of the signature vector \phi_{f}(x) in node \omega . In practice, \mathcal{T} does not need to include the full N^{2} set of pairs (x,\omega)\in\mathrm{V}_{n}\times\mathrm{V}_{n} since diffusion-type kernels decay rapidly between far-apart nodes and signature vectors corresponding to neighboring nodes are similar. The signature vectors \{\phi_{f}(x)\}_{x\in\mathrm{V}_{N}} are computed with the use of Algorithm 1 (the GRF method). We construct \mathcal{T} to train a function g^{\mathcal{M},F}_{\theta}:\mathcal{M}\times\mathcal{M}\rightarrow\mathbb{R}_{\geq 0} , parameterized by \theta and satisfying: F(x,y)\approx\int_{\mathcal{M}}g^{\mathcal{M},F}_{\theta}(x,\omega)g^{\mathcal{M},F}_{\theta}(y,\omega)d\omega. (6) Note that g^{\mathcal{M},F}_{\theta} is the generalization of the g -functions from Eq. 2 . We model it as a neural network. We train g^{\mathcal{M},F}_{\theta} to regress the discrete signature vectors on \mathrm{V}_{N}\times\mathrm{V}_{N} , and clamp the final output of g^{\mathcal{M},F}_{\theta} at zero. We define the following objective to minimize (where \mathcal{L} is a \mathbb{R}^{m}\times\mathbb{R}^{m}\rightarrow\mathbb{R} loss function, e.g. L_{2} -loss): \min_{\theta}\;\frac{1}{|\mathcal{T}|}\sum_{(x,\omega,\phi_{f}(x)[\omega])\in\mathcal{T}}\mathcal{L}\bigl(g^{\mathcal{M},F}_{\theta}(x,\omega),\,\phi_{f}(x)[\omega]\bigr). After training, g^{\mathcal{M},F}_{\theta} provides a smooth surrogate for discrete signatures: for x,\omega\in\mathrm{V}_{N} , g^{\mathcal{M},f}_{\theta}(x,\omega)\approx\phi_{f}(x)(\omega) . That completes pre-processing. Inference: Trained g^{\mathcal{M},f}_{\theta} provides a way to approximate F(x,y) for any x,y\in\mathcal{M} as follows: F(x,y)\approx\sum_{\omega\in V_{N}}g^{\mathcal{M},f}_{\theta}(x,\omega)g^{\mathcal{M},f}_{\theta}(y,\omega). (7) This directly leads to the following definition of \phi_{\mathcal{M},F} : \phi_{\mathcal{M},F}(z)=\frac{1}{\sqrt{m\kappa}}\left(\frac{g_{\theta}^{\mathcal{M},f}(z,\omega_{1})}{\sqrt{p(\omega_{1})}},...,\frac{g_{\theta}^{\mathcal{M},f}(z,\omega_{m})}{\sqrt{p(\omega_{m})}}\right), (8) where either: (1) p\equiv 1 , m=N , \kappa=\frac{1}{m} , \{\omega_{1},...,\omega_{m}\}=\mathrm{V}_{N} or: (2) p is the density function of the probability distribution \mathcal{P}(\mathrm{V}_{N}) on \mathrm{V}_{N} , \kappa=1 and \omega_{1},...,\omega_{m}\overset{\mathrm{iid}}{\sim}\mathcal{P}(\mathrm{V}_{N}) . The latter variant leads to an unbiased estimation of the sum from Eq. 7 (which is exactly what the former variant is designed to compute). It provides m -dimensional RF-vectors, instead of N -dimensional and thus can be used for dimensionality reduction. 2.2.1 Diffusion/heat kernels Let (\mathcal{M},g) be a compact d –dimensional Riemannian manifold and let \Delta_{\mathcal{M}} be its Laplace–Beltrami operator ( Solomon et al. 2014 ) . The diffusion/heat kernel on \mathcal{M} is defined as follows, for a given parameter t>0 : \mathrm{K}^{\mathrm{heat}}_{t}(x,y)=\exp\bigl(t\Delta_{\mathcal{M}}\bigr)(x,y),\qquad x,y\in\mathcal{M}. Let \mathbf{L}_{N} denote the corresponding (rescaled) random–walk graph Laplacian on the discretized \mathcal{M} (corresponding to the graph \mathrm{G}_{N}=(\mathrm{V}_{N}=\{x_{1},...,x_{N}\},\mathrm{E}_{N},\mathbf{W}_{N}) ), chosen so that \mathbf{L}_{N} converges to -\Delta_{\mathcal{M}} in the limit, as N\to\infty . The discrete graph diffusion/heat kernel at time t>0 is defined as follows: \mathrm{K}^{\mathrm{heat}}_{N,t}(x_{i},x_{j}):=\bigl[\exp(-t\mathbf{L}_{N})\bigr](i,j). (9) It converges pointwise to the manifold heat kernel \mathrm{K}^{\mathrm{heat}}_{t} as the discretization is refined. It is easy to see that \mathrm{K}^{\mathrm{heat}}_{N,t} adheres to the form from Eq. 4 . The class of manifold heat kernels provides a good insight into challenges related to using those constructs in machine learning that this paper addresses. Let (\mathcal{M},g) be a compact d –dimensional Riemannian manifold. Since \mathcal{M} is compact, the Laplace–Beltrami operator -\Delta_{\mathcal{M}} has a discrete, nonnegative spectrum 0=\lambda_{0}\leq\lambda_{1}\leq\lambda_{2}\leq\cdots\uparrow\infty, with the corresponding orthonormal eigenfunctions \{\phi_{k}\}_{k=0}^{\infty}\subset L^{2}(\mathcal{M}) satisfying -\Delta_{\mathcal{M}}\phi_{k}=\lambda_{k}\phi_{k} . The heat kernel then admits the following expansion: \mathrm{K}^{\mathrm{heat}}_{t}(x,y)\;=\;\sum_{k=0}^{\infty}e^{-\lambda_{k}t}\,\phi_{k}(x)\,\phi_{k}(y),\quad t>0. (10) This expansion converges absolutely and uniformly for any t>0 on compact manifolds. For reference of this result, see Theorem 10.13 of ( Grigor’yan 2009 ) . A naive approach to computing \mathrm{K}^{\mathrm{heat}}_{t}(x,y) is via the truncation of the infinite series from Eq. 10 . For a discretization \{x_{1},\dots,x_{N}\}\subset\mathcal{M} , one can numerically approximate the first M eigenpairs of -\Delta_{\mathcal{M}} —or of a consistent graph Laplacian approximation \mathbf{L}_{N} —and build the truncated kernel: \widehat{\mathrm{K}}_{t}^{\mathrm{heat}}(x,y):=\sum_{k=0}^{M-1}e^{-\lambda_{k}t}\phi_{k}(x)\phi_{k}(y), (11) which converges to ( 10 ) as M\to\infty . Thus even for this well-studied class of manifold bi-variate functions, the (approximate) computation of the kernel matrix \mathbf{K}^{\mathrm{heat}}_{t}=[\mathrm{K}^{\mathrm{heat}}(x_{i},x_{j})]_{i,j=1,...,N}\in\mathbb{R}^{N\times N} requires nontrivial spectral calculations of time complexity cubic in N . Furthermore, as it is the case in general for kernel methods not leveraging RFs, downstream applications (involving multiplications with matrices \mathbf{K}^{\mathrm{heat}}_{t} or taking their inverses) require time \Omega(N^{2}) . In contrast, RF-based methods require sub-quadratic time (e.g. linear or log-linear for multiplications with kernel matrices, see: ( Choromanski & Sindhwani 2016 ) ). Note: For particularly symmetric manifolds \mathcal{M} , such as 2 -dimensional spheres in \mathbb{R}^{3} , there exist more explicit formulae for \mathrm{K}^{\mathrm{heat}}_{t}(x,y) (see: Appendix A.3 ), but they still require spectral computations. 2.3 The curious case of the Gaussian kernel MRFs are designed to efficiently apply bi-variate functions defined in non-Euclidean spaces. However, as a by-product of the presented methods, quite unexpectedly, we also obtain RF-methods for approximating regular Gaussian kernels defined in the Euclidean spaces, that were only recently introduced. We do it by applying GRFs on grid-graphs. We do think that this result is of independent interest, since it shows how combinatorial tools can lead to purely continuous ML constructions. We provide more details here. Consider the following setting in the d -dimensional space: the Euclidean hypercube [0,1]^{d} equipped with the Gaussian (RBF) kernel of the following form: \mathrm{K}^{\mathrm{Gauss}}_{\sigma}(\mathbf{x},\mathbf{y})\;=\;\exp\!\left(-\frac{\|\mathbf{x}-\mathbf{y}\|^{2}}{2\sigma^{2}}\right), (12) for a fixed \sigma>0 and x,y\in[0,1]^{d} . We discretize [0,1]^{d} with the grid of n rows/columns (so that N=n^{d} ): \mathrm{V}_{n}:=\Bigl\{(k_{1}/n,\dots,k_{d}/n):k_{j}\in\{0,\dots,n-1\}\Bigr\}, (13) and side length h_{n}:=1/n . We connect each grid point to its 2d nearest neighbors using wrap–around at the boundary, obtaining a d –dimensional discrete grid graph with vertex set \mathrm{V}_{n} . Let \mathbf{L}_{n} denote the rescaled random–walk graph Laplacian on this graph, constructed as in Theorem A.1 , so that \mathbf{L}_{n} converges to the continuous Laplacian -\Delta on the discrete grid with wrap-around (the negated Laplace-Beltrami operator) in the limit n\to\infty . Take kernel \mathrm{K}^{\mathrm{heat}}_{N,t} from Eq. 9 for t=\frac{\sigma^{2}}{2} . As discussed in Sec. 2.2.1 , \mathrm{K}^{\mathrm{heat}}_{N,t} converges pointwise to the heat kernel on [0,1]^{d} , which turns out to be the Gaussian kernel \mathrm{K}^{\mathrm{Gauss}}_{\sigma} (to be more specific, \mathrm{K}^{\mathrm{heat}}_{N,t} converges to the periodized Gaussian kernel; in the non–periodic Euclidean limit this reduces to the standard Gaussian kernel \mathrm{K}^{\mathrm{Gauss}}_{\sigma} , see: Theorem A.2 ). For each grid point x\in\mathrm{V}_{n} we now construct a signature vector \phi_{f}(x)\in\mathbb{R}_{\geq 0}^{\mathrm{V}_{n}} corresponding to kernel \mathrm{K}^{\mathrm{heat}}_{N,t} , as in Algorithm 1 . Those signature vectors are intrinsically related to the g -functions in the representations of Gaussian kernels applied in new RF-mechanisms to approximate them. By applying techniques from ( Likhosherstov et al. 2022 ) , we obtain the following positive and bounded features representation (for completeness, we also provide a proof, see: Theorem A.3 ): \mathrm{K}^{\mathrm{Gauss}}_{\sigma}(\mathbf{x},\mathbf{y})\;=\;\int_{\mathbb{R}^{d}}g_{\sigma}(\mathbf{x},\omega)\,g_{\sigma}(\mathbf{y},\omega)\,d\omega, (14) g_{\sigma}(\mathbf{x},\omega):=\Bigl(\frac{2}{\pi\sigma^{2}}\Bigr)^{\!d/4}\exp\Bigl(-\frac{\|\mathbf{x}-\omega\|^{2}}{\sigma^{2}}\Bigr). (15) To relate the discrete signature vectors \phi_{f}(x) to the continuous features g_{\sigma}(\mathbf{x},*) , we interpret the sum over \omega\in\mathrm{V}_{n} as a Riemann approximation of the integral in the expression above. We show in Section 3.1 after multiplying by the grid–dependent constant c_{d,\sigma,n}:=(2\pi\sigma^{2})^{d/4}n^{d/2} , the rescaled vectors \psi_{f}(x):=c_{d,\sigma,n}\cdot\phi_{f}(x) converge to g_{\sigma}(\mathbf{x},\omega) evaluated on the grid points, as n\to\infty . Equivalently, for any \mathbf{x},\mathbf{y}\in[0,1]^{d} and the corresponding x,y\in\mathrm{V}_{n} of the grid-graph, we have: \lim_{n\to\infty}\bigl\langle\psi_{f}(x),\psi_{f}(y)\bigr\rangle\;=\;\mathrm{K}^{\mathrm{Gauss}}_{\sigma}(\mathbf{x},\mathbf{y}). (16) We conclude that the signature vectors on increasingly refined grids realize manifold random features for the Gaussian kernel on the corresponding continuous cube. 3 Experiments We validate MRFs in several scenarios. As a warm-up, in Sec. 3.1 we consider the Euclidean setting with Gaussian kernels (see: Sec. 2.3 ). Then we transition to non-Euclidean spaces, the main target of MRFs. In Sec. 3.2 , we test MRFs on various pre-defined 2D surfaces in the 3 -dimensional spaces. Finally, in Sec. 3.3 , we provide downstream tests for interpolation on meshes (representing rigid and deformable objects). 3.1 MRFs for Gaussian Kernels Following the discussion in Sec. 2.3 , for each dimension d\in\{2,4,...,32\} , we discretize the hypercube [0,1]^{d} via the regular grid \mathrm{V}_{n} with spacing h_{n}=1/n and n^{d} nodes, connecting each node to its 2d wrap–around nearest neighbors. For each choice of n and d , we construct signature vectors \phi_{f}(x) at every grid node x\in\mathrm{V}_{n} using the random walk procedure of Algorithm 1 with a fixed diffusion scale \sigma=0.2 , termination probability p_{\text{halt}}=0.005 , m=100{,}000 walks per node, and vary n from 5 to 105 in steps of 10 . We then form rescaled vectors \psi_{f}(x)=c_{d,\sigma,n}\,\phi_{f}(x) . Note: On the ( d -dimensional grid) \mathrm{V}_{n} , the random-walk Laplacian decomposes as a Kronecker sum of 1D operators. Hence, the corresponding terms e^{-tL/2} and the induced kernel e^{-tL} factorize across coordinates; see Prop. 20 ( Cadavid et al. 2022 ) for further details. We exploit this to compute the 1D quantities and tensorize to obtain the d -dimensional results. Figure 3 : Empirical relative mean squared errors (MSEs) of the approximations of g -functions and true Gaussian kernel values with signature vectors and kernels induced by them for d\in\{2,4,...,32\} and n=5,15,...,105 . Relative MSE of the approximation of vector \mathbf{y} with random vector \mathbf{x} is defined as \mathbb{E}[||\mathbf{x}-\mathbf{y}||^{2}_{2}/||\mathbf{y}||^{2}_{2}] . We use s=30 repetitions for each n value (the standard deviations are very small compared to the mean so not visible on the figure). We compute the relative mean squared error (MSE) of approximating g_{\sigma}(\mathbf{c},*) with \psi_{f}(c)[*] , as well as that of approximating true kernel values with those induced by MRFs (in the grid points). The latter are given as: \widehat{\mathrm{K}}^{\mathrm{Gauss}}_{\sigma,n}(x,y):=\bigl\langle\psi_{f}(x),\psi_{f}(y)\bigr\rangle,\qquad x,y\in\mathrm{V}_{n}. (17) Across all tested dimensions, we observe that these errors decrease rapidly as the grid is refined (see: Fig. 3 ). 3.2 2D Surfaces in 3D Spaces & Speed Tests We evaluate the approximation of g -functions and diffusion/heat kernels with MRFs on four embedded non-linear geometries: a sphere, an ellipsoid, a Möbius strip, and a torus (or donut; detailed results for this shape are in the Appendix: Sec. A.6.1 ). For each geometry, we discretize the surface into N=4000 points, build a k NN graph (with k=24 for the Möbius strip and k=8 for the other three), generate signature feature vectors from 1000 (sampled) start points with parameters: m=100,000 (number of random walks), p_{\text{halt}}=0.01 , and \sigma^{2}=20 . We then train a neural network predictor g_{\theta}(\mathbf{x},\omega) to learn \phi_{f}(x)[\omega] . Our network architecture is a small multilayer perceptron that takes as input the coordinates of the pair (\mathbf{x},\omega) along with an approximation of the geodesic distance d_{\mathcal{M}}(\mathbf{x},\omega) , (computed via a shortest path calculation between x and \omega ), and outputs the signature-vector values. Training was run for 1000 epochs with an absolute relative error loss (clamped at \varepsilon=0.1 ), defined as follows: \mathcal{L}(g_{\theta}(\mathbf{x},\omega),\phi_{f}(x)(\omega))=\frac{|g_{\theta}(\mathbf{x},\omega)-\phi_{f}(x)(\omega)|}{\max\{\phi_{f}(x)(\omega),\varepsilon\}}, (18) and optimized with Adam. We report root mean square error (RMSE), validation diagnostics (prediction vs. actual and error vs. truth; those in the Appendix: Sec. A.6.2 ), qualitative 3D visualizations of g_{\theta}(\mathbf{x},\cdot) , \phi_{f}(x)[\cdot] , and their difference for representative validation starts, and heat-kernel comparisons using the kernel induced by the learned features. From the learned feature matrix \mathbf{G}_{\theta} we form \mathbf{K}_{\theta}=\mathbf{G}_{\theta}\mathbf{G}_{\theta}^{\top} , and compare it against the ground-truth kernel matrix \mathbf{K}_{\mathrm{GT}} . Before reporting kernel errors, we apply the Frobenius-norm alignment (see: Appendix, Sec. A.5 ) and evaluate the renormalized version \widetilde{\mathbf{K}}_{\theta} . Table 1 : Summary of results for each manifold. Mean and median (clamped) absolute relative error (RE) and mean squared error values are computed across all validation nodes. “Time” refers to mean kernel evaluation time on 512 out-of-sample manifold points (in seconds); Spectral Time refers to the time taken by the baseline spectral decomposition method. Manifold R^{2} Mean RE Median RE MSE MRFs Time Spectral Time Speed-up Sphere 0.997 0.23 0.12 26.9 0.066\pm 3.3\times 10^{-5} 3.41\pm 3.1\times 10^{-5} 55.2 Ellipsoid 0.995 0.37 0.18 46.7 0.058\pm 2.0\times 10^{-5} 3.59\pm 1.7\times 10^{-5} 61.2 Möbius strip 0.997 0.11 0.08 17.9 0.059\pm 2.3\times 10^{-5} 2.14\pm 1.7\times 10^{-5} 37.2 Torus 0.983 0.44 0.21 115.7 0.061\pm 2.9\times 10^{-5} 3.62\pm 3.1\times 10^{-5} 58.1 Figure 4 : Qualitative field and heat kernel comparisons for a sphere (left), an ellipsoid (middle), and a Möbius strip (right). Example validation start (top row): predicted g_{\theta}(\mathbf{x},\cdot) , ground truth \phi_{f}(x)[\cdot] , and residual g_{\theta}(\mathbf{x},\cdot)-\phi_{f}(x)[\cdot] on the geometry. Reference graph heat kernel (bottom row) \mathrm{K}^{\mathrm{heat}}(\mathbf{x},\cdot) compared to Frobenius-aligned induced kernel \widetilde{\mathrm{K}}_{\theta}(\mathbf{x},\cdot)=\widetilde{\mathrm{K}}_{\mathrm{NN}}(\mathbf{x},\cdot) , and their difference, for a representative start point. Sphere: We embed a sphere x^{2}+y^{2}+z^{2}=1 in \mathbb{R}^{3} . For the ground truth, we use the analytic spherical heat kernel (see: Sec. A.3 ) truncated at L_{\max}=50 spherical harmonics. The diffusion-time used in the analytic kernel is set to t_{\text{analytical}}\approx 0.25 to match the diffusion length observed on the discretized graph (and account for the number of nodes N ). Ellipsoid: We embed an ellipsoid \frac{x^{2}}{a^{2}}+\frac{y^{2}}{b^{2}}+\frac{z^{2}}{c^{2}}=1 in \mathbb{R}^{3} (with a=1.0,b=1.3,c=0.7 ) and discretize it via scaled Fibonacci construction. As a reference kernel, we use the graph heat kernel \mathrm{K}_{\mathrm{true}}=\exp(-t\mathbf{L}) computed from a k NN graph Laplacian on the ellipsoid. Möbius strip: We embed a Möbius strip in \mathbb{R}^{3} and discretize it using a uniform grid in the intrinsic parameters (u,v) . The ground truth is constructed similarly as for the ellipsoid. The Möbius strip is in principle more sensitive to discretization and graph construction (e.g., near-duplicate points, irregular sampling density, or disconnected k NN graphs can destabilize training). 3.2.1 Results For all considered manifolds, the 3D field plots confirm that the learned predictor reproduces the localized, structured heat profile (for a sphere, radially symmetric) and that residuals are concentrated near the peak (Fig. 4 ). After Frobenius alignment, the induced kernel matrix \widetilde{\mathbf{K}}_{\theta} matches the analytic kernel matrix, with remaining error again localized near the center. Validation scatter plots show strong monotonic agreement with the ground truth values, with the largest deviations at the highest-intensity region near the source point where the field is most sharply peaked. Detailed results for the torus are in the Appendix (Sec. A.6 ; the same conclusions as for other shapes). All the results are summarized in Table 1 . Importantly, MRFs offer significant speedups over the brute-force approaches, from \mathbf{37x} to \mathbf{61x}+ in inference. 3.3 Interpolation on Meshes As a downstream application for MRFs, we choose the task of interpolating various fields defined on meshes representing rigid and deformable objects. Experiments were run using a TPU v6e and an A100 GPU (for neural network training only). Vertex normal prediction: Here we focus on predicting normal vectors in the vertices of the mesh representing rigid body. Given a mesh \mathrm{G} with vertex set \mathrm{V} and vertex positions \{\mathbf{x}_{i}\in\mathbb{R}^{3}\}_{i\in\mathrm{V}} , let \{\mathbf{n}_{i}\in\mathbb{R}^{3}\}_{i\in\mathrm{V}} denote the unit vertex normals computed from incident faces. We randomly mask a subset M\subseteq\mathrm{V} of size |M|=0.8|\mathrm{V}| (80% missing normals), set masked normals to zero, and predict normals at masked vertices using kernel-based field integration on \mathrm{G} . Our experiments use meshes from the Thingi10k dataset ( Zhou & Jacobson 2016 ) . We compare the performance of our MRF approach against the baseline method of explicitly forming the full heat kernel matrix using spectral computations (see Appendix A.7 for more details). Figure 5 : MRFs vs full kernel (FK) construction for vertex normal prediction; preprocessing and interpolation times are denoted by ‘-P’ and ‘-I’, respectively. Fig. 5 shows that the baseline kernel construction cost grows rapidly with |\mathrm{V}| , whereas the MRFs preprocessing time is comparatively stable due to using fixed walk/training budgets. In our largest completed run ( |\mathrm{V}|=47{,}024 ), kernel construction took 2936 sec while MRF data generation and training took 171 sec; baseline interpolation took 0.42 sec while MRFs took 0.45 sec. This gap widens further for larger meshes as explicitly storing \mathrm{K}\in\mathbb{R}^{|\mathrm{V}|\times|\mathrm{V}|} requires O(|\mathrm{V}|^{2}) memory, making full kernel formation intractable beyond 10^{5} vertices. The MRF approach remains accurate compared with baseline. We conclude that MRFs can approximate the full kernel interpolant with comparable cosine similarity, while offering a more scalable inference path on meshes where explicit kernel construction is impractical. Velocity prediction: We also evaluate interpolation on the flag_simple dataset ( Pfaff et al. 2020 ) where the signal of interest is the per-node velocity field. For a given mesh with node set \mathrm{V} and node positions \{\mathbf{x}_{i}\in\mathbb{R}^{3}\}_{i\in\mathrm{V}} , let \{\mathbf{u}_{i}\in\mathbb{R}^{3}\}_{i\in\mathrm{V}} denote the ground truth velocity vectors at a fixed time step. We randomly mask a small subset M\subseteq\mathrm{V} with |M|=0.05|\mathrm{V}| (5% missing velocities), set u_{i}=0 for i\in M , and predict velocities at masked nodes using heat-kernel field integration (setup as in ( Choromanski et al. 2023 ) ). The flag_simple meshes have only \approx 1.5k vertices, which can be too small to expose inference-time scaling trends. To probe larger problem sizes, we construct a denser node set \mathrm{\widetilde{V}} by sampling additional points on triangle faces, using area-weighted barycentric sampling. The mesh surface is represented by a set of triangular faces. Concretely, for a target size |\mathrm{\widetilde{V}}|=n_{\text{dense}} , we draw n_{\text{dense}}-|\mathrm{V}| faces i.i.d. (with probability proportional to triangle area). For each sampled face, we draw barycentric weights (\beta_{0},\beta_{1},\beta_{2}) (uniform on the 2 -simplex) and define the sampled point’s position as a convex combination of the triangle’s three incident vertex positions. At each time step, we assign a velocity to each sampled point by applying the same barycentric weights to the velocities of the corresponding face vertices, yielding a dense velocity field \mathbf{U}\in\mathbb{R}^{|\widetilde{V}|\times 3} . Figure 6 : Velocity prediction on flag_simple under mesh densification. Setting analogous to the one in Fig. 5 . We then build a sparse graph on \mathrm{\widetilde{V}} (using the reference geometry from the first evaluated frame) via a k NN construction in \mathbb{R}^{3} and define a symmetric, normalized affinity matrix \mathbf{W}_{f}:=\mathbf{D}^{-1/2}\mathbf{WD}^{-1/2} where \mathbf{W} has Gaussian weights W_{ij}=\exp(-\|\mathbf{x}_{i}-\mathbf{x}_{j}\|_{2}^{2}/\sigma^{2}) and \mathbf{D} is the degree matrix of \mathbf{W} . The corresponding heat kernel is \mathbf{K}=\exp(\tau\mathbf{W}_{f})\,. Figure 6 shows that the dense spectral baseline exhibits the expected steep growth in preprocessing time, while MRF preprocessing remains comparatively stable across the tested range since training/feature budgets are fixed per discretization. At inference time, MRFs consistently outperform the baseline, with speedups that grow greater than \mathbf{10x} as n_{\text{dense}} increases. 4 Positivity & Boundedness of MRFs and General Bi-variate Functions Note that GRFs, by definition (see: Algorithm 1 ), provide positive random features. Furthermore, our NNs (using GRFs as teachers) are forced to produce such features (via inference-time clamping). Their boundedness follows from the fact that, in our applications (see: Sec. 3 ), the considered NNs are continuous functions defined on compact manifolds. As mentioned before, both properties (positivity & boundedness) play an important role in getting accurate estimators. As we already discussed in Sec. 2 , general bi-variate functions F can be handled by MRFs via standard ML regression methods used to fit F to formula from Eq. 4 . We also would like to emphasize that matrices \mathbf{W} used there can be thought of as “generalized” weighted adjacency matrices, obtained from original weighted adjacency matrices via various transformations (e.g. degree-based normalization), as discussed in ( Reid et al. 2024b ) . Thus in this paper we focused on the (already rich) family of functions defined by Eq. 4 . 5 Conclusion We have presented a new paradigm of Manifold Random Features (MRFs), designed for scalable computations involving bi-variate functions operating on manifolds. MRFs are built with the use of Graph Random Features (GRFs), operating on the discretized manifolds. GRFs are used as teachers for the supervised learning of the continuous fields encoding the MRF-mechanisms. We provide strong empirical validation of MRFs, complemented with rigorous mathematical analysis. As a byproduct of our analysis, we show deep connection between combinatorial concepts of random walks on graphs representing discretized manifolds and continuous kernel functions on these manifolds, in particular by re-discovering recently proposed new class of estimators approximating Gaussian kernels with positive and bounded random features. Impact Statement This paper presents work whose goal is to advance the field of Machine Learning. There are many potential societal consequences of our work, none of which we feel must be specifically highlighted here. We do believe that this work might lead to the discovery of new mechanisms of random features operating in continuous spaces and encoded as neural networks that are trained with the supervision provided by Graph Random Features teachers. Appendix A Appendix A.1 Diffusion Kernel on Discrete Euclidean Grid Let d\in\mathbb{N} and, for each n\in\mathbb{N} , let h_{n}:=\frac{1}{n} . Let \mathbb{T}^{d} be the d –dimensional torus and let \mathrm{V}_{n}\subset\mathbb{T}^{d} be the regular d –dimensional grid \mathrm{V}_{n}:=\Big\{x=(k_{1}h_{n},\dots,k_{d}h_{n}):k_{j}\in\{0,\dots,n-1\}\Big\}. Consider the graph whose vertices are \mathrm{V}_{n} and whose neighbors are the 2d wrap–around nearest neighbors. Theorem A.1 (Convergence of Discrete to Continuous Laplacian) . Define the averaging operator \mathbf{T}_{n}:\mathbb{R}^{\mathrm{V}_{n}}\to\mathbb{R}^{\mathrm{V}_{n}} by (\mathbf{T}_{n}f)(x):=\frac{1}{2d}\sum_{y\sim x}f(y), where the sum is over the 2d neighbors y of x in the wrap-around grid. Furthermore, denote the (random–walk) graph and rescaled Laplacian as \mathbf{L}_{\mathrm{curr}}^{(n)}:=\mathbf{I}-\mathbf{T}_{n}\qquad\mathbf{L}_{n}:=\frac{2d}{h_{n}^{2}}\,\mathbf{L}_{\mathrm{curr}}^{(n)}=\frac{2d}{h_{n}^{2}}\,(\mathbf{I}-\mathbf{T}_{n}). Let \Delta be the usual Laplacian on \mathbb{T}^{d} . Then we have \mathbf{L}_{n}\xrightarrow[n\to\infty]{}-\Delta. (19) Proof. For f\in C^{4}(\mathbb{T}^{d}) define its restriction to the grid \mathrm{V}_{n} by f_{n}(x):=f(x) , x\in\mathrm{V}_{n} . Fix x\in\mathbb{T}^{d} and f\in C^{4}(\mathbb{T}^{d}) . For each coordinate direction \mathbf{e}_{k} ( k=1,\dots,d ), we have the Taylor expansions f(x\pm h_{n}\mathbf{e}_{k})=f(x)\pm h_{n}\partial_{k}f(x)+\frac{h_{n}^{2}}{2}\,\partial_{kk}f(x)\pm\frac{h_{n}^{3}}{6}\,\partial_{kkk}f(\xi_{\pm})+\frac{h_{n}^{4}}{24}\,\partial_{kkkk}f(\eta_{\pm}), for some points \xi_{\pm},\eta_{\pm} on the segment between x and x\pm h_{n}\mathbf{e}_{k} . Adding these two expansions gives f(x+h_{n}\mathbf{e}_{k})+f(x-h_{n}\mathbf{e}_{k})=2f(x)+h_{n}^{2}\partial_{kk}f(x)+O(h_{n}^{4}). Summing over k=1,\dots,d , \displaystyle\sum_{y\sim x}f(y) \displaystyle=\sum_{k=1}^{d}\big(f(x+h_{n}\mathbf{e}_{k})+f(x-h_{n}\mathbf{e}_{k})\big) \displaystyle=\sum_{k=1}^{d}\big(2f(x)+h_{n}^{2}\partial_{kk}f(x)+O(h_{n}^{4})\big) \displaystyle=2d\,f(x)+h_{n}^{2}\sum_{k=1}^{d}\partial_{kk}f(x)+O(dh_{n}^{4}). Furthermore, we know \displaystyle(\mathbf{L}_{\mathrm{curr}}^{(n)}f_{n})(x) \displaystyle=f(x)-\frac{1}{2d}\sum_{y\sim x}f(y) \displaystyle=-\,\frac{h_{n}^{2}}{2d}\sum_{k=1}^{d}\partial_{kk}f(x)+O(h_{n}^{4}) \displaystyle=-\,\frac{h_{n}^{2}}{2d}\,\Delta f(x)+O(h_{n}^{4}), where we plugged in our earlier result in the second line. Multiplying by \frac{2d}{h_{n}^{2}} gives (\mathbf{L}_{n}f_{n})(x)=\frac{2d}{h_{n}^{2}}(\mathbf{L}_{\mathrm{curr}}^{(n)}f_{n})(x)=-\,\Delta f(x)+O(h_{n}^{2}), for any x\in\mathrm{V}_{n} . Thus, for each smooth f , \mathbf{L}_{n}f_{n}\;\xrightarrow[n\to\infty]{}\;-\Delta f. ∎ Theorem A.2 (Convergence of Discrete Diffusion Kernel to Periodized Gaussian) . Fix \sigma>0 and let f\in C^{4}(\mathbb{T}^{d}) . Then we have \exp\!\Big(-\tfrac{\sigma^{2}}{2}\mathbf{L}_{n}\Big)\,f\big|_{\mathrm{V}_{n}}\;\xrightarrow[n\to\infty]{}\;\Big(\exp\!\big(\tfrac{\sigma^{2}}{2}\Delta\big)f\Big)\big|_{\mathrm{V}_{n}}. Moreover, the limiting operator \exp(\tfrac{\sigma^{2}}{2}\Delta) acts by convolution with a periodized Gaussian kernel k_{\sigma}(x,y)=\sum_{k\in\mathbb{Z}^{d}}\frac{1}{(2\pi\sigma^{2})^{d/2}}\exp\!\Big(-\frac{\|x-y+k\|^{2}}{2\sigma^{2}}\Big),\qquad x,y\in\mathbb{T}^{d}. Proof. Using the result of Theorem A.1 and exponentiating the operators implies that for any fixed t\geq 0 , e^{-t\mathbf{L}_{n}}f\big|_{\mathrm{V}_{n}}\;\longrightarrow\;\big(e^{t\Delta}f\big)\big|_{\mathrm{V}_{n}}. Taking t=\sigma^{2}/2 yields the stated convergence. The operator e^{t\Delta} on the torus \mathbb{T}^{d} is the heat semigroup and admits an integral representation (e^{t\Delta}f)(x)=\int_{\mathbb{T}^{d}}p_{t}(x,y)\,f(y)\,dy, where p_{t} is the heat kernel on the torus. This kernel is obtained by periodizing the Euclidean heat kernel ( Brandolini et al. 2010 ) p_{t}(x,y)=\sum_{k\in\mathbb{Z}^{d}}\frac{1}{(4\pi t)^{d/2}}\exp\!\Big(-\frac{\|x-y+k\|^{2}}{4t}\Big). Setting t=\sigma^{2}/2 gives p_{\sigma^{2}/2}(x,y)=\sum_{k\in\mathbb{Z}^{d}}\frac{1}{(2\pi\sigma^{2})^{d/2}}\exp\!\Big(-\frac{\|x-y+k\|^{2}}{2\sigma^{2}}\Big), which is a Gaussian kernel with variance \sigma^{2} in each coordinate, periodized to respect the torus geometry. ∎ Remark: If instead of the discrete grid, we worked on \mathbb{R}^{d} (no wrap–around), the corresponding kernel would be the standard Gaussian \mathrm{K}_{\sigma}(\mathbf{x},\mathbf{y}):=\frac{1}{(2\pi\sigma^{2})^{d/2}}\exp\!\Big(-\,\frac{\|\mathbf{x}-\mathbf{y}\|^{2}}{2\sigma^{2}}\Big), which is the usual Gaussian kernel with bandwidth \sigma . On the torus we obtain its periodic version by summing over k\in\mathbb{Z}^{d} . A.2 Euclidean Gaussian Feature Representation Theorem A.3 (RBF Kernel Factorization) . Let d\in\mathbb{N} and \sigma>0 , and define g_{\sigma}(\mathbf{x},\bm{\omega}):=\left(\frac{2}{\pi\sigma^{2}}\right)^{d/4}\exp\!\left(-\frac{\|\mathbf{x}-\bm{\omega}\|^{2}}{\sigma^{2}}\right),\qquad\mathbf{x},\bm{\omega}\in\mathbb{R}^{d}. Then for all \mathbf{x},\mathbf{y}\in\mathbb{R}^{d} , \int_{\mathbb{R}^{d}}g_{\sigma}(\mathbf{x},\bm{\omega})\,g_{\sigma}(\mathbf{y},\bm{\omega})\,d\bm{\omega}=\exp\!\left(-\frac{\|\mathbf{x}-\mathbf{y}\|^{2}}{2\sigma^{2}}\right). In particular, g_{\sigma} is a continuous feature map for the Gaussian kernel with bandwidth \sigma . Proof. Set C_{\sigma}:=\left(\frac{2}{\pi\sigma^{2}}\right)^{d/4} and \mathbf{m}:=\frac{\mathbf{x}+\mathbf{y}}{2} for fixed \mathbf{x},\mathbf{y}\in\mathbb{R}^{d} . By Lemma A.4 we have \|\mathbf{x}-\bm{\omega}\|^{2}+\|\mathbf{y}-\bm{\omega}\|^{2}=2\|\bm{\omega}-\mathbf{m}\|^{2}+\tfrac{1}{2}\|\mathbf{x}-\mathbf{y}\|^{2}. Therefore, \displaystyle\int_{\mathbb{R}^{d}}g_{\sigma}(\mathbf{x},\bm{\omega})\,g_{\sigma}(\mathbf{y},\bm{\omega})\,d\bm{\omega} \displaystyle=C_{\sigma}^{2}\int_{\mathbb{R}^{d}}\exp\!\left(-\frac{\|\mathbf{x}-\bm{\omega}\|^{2}}{\sigma^{2}}-\frac{\|\mathbf{y}-\bm{\omega}\|^{2}}{\sigma^{2}}\right)\,d\bm{\omega} \displaystyle=C_{\sigma}^{2}\exp\!\left(-\frac{\|\mathbf{x}-\mathbf{y}\|^{2}}{2\sigma^{2}}\right)\int_{\mathbb{R}^{d}}\exp\!\left(-\frac{2\|\bm{\omega}-\mathbf{m}\|^{2}}{\sigma^{2}}\right)\,d\bm{\omega} \displaystyle=C_{\sigma}^{2}\exp\!\left(-\frac{\|\mathbf{x}-\mathbf{y}\|^{2}}{2\sigma^{2}}\right)\left(\frac{\pi\sigma^{2}}{2}\right)^{d/2} \displaystyle=\exp\!\left(-\frac{\|\mathbf{x}-\mathbf{y}\|^{2}}{2\sigma^{2}}\right), noting that for a>0 , \int_{\mathbb{R}}e^{-au^{2}}\,du=\sqrt{\frac{\pi}{a}} . ∎ Lemma A.4 . For any \mathbf{x},\mathbf{y} in \mathbb{R}^{d} let \mathbf{m}:=\frac{\mathbf{x}+\mathbf{y}}{2} , then we have \|\mathbf{x}-\bm{\omega}\|^{2}+\|\mathbf{y}-\bm{\omega}\|^{2}=2\|\bm{\omega}-\mathbf{m}\|^{2}+\tfrac{1}{2}\|\mathbf{x}-\mathbf{y}\|^{2},\qquad\bm{\omega}\in\mathbb{R}^{d}. (20) Proof. We have \displaystyle\|\mathbf{x}-\bm{\omega}\|^{2}+\|\mathbf{y}-\bm{\omega}\|^{2} \displaystyle=(\|\mathbf{x}\|^{2}-2\langle\mathbf{x},\bm{\omega}\rangle+\|\bm{\omega}\|^{2})+(\|\mathbf{y}\|^{2}-2\langle\mathbf{y},\bm{\omega}\rangle+\|\bm{\omega}\|^{2}) \displaystyle=2\|\bm{\omega}\|^{2}-2\langle\mathbf{x}+\mathbf{y},\bm{\omega}\rangle+\|\mathbf{x}\|^{2}+\|\mathbf{y}\|^{2} \displaystyle=2\left(\|\bm{\omega}\|^{2}-\Big\langle\mathbf{x}+\mathbf{y},\bm{\omega}\Big\rangle+\Big\|\frac{\mathbf{x}+\mathbf{y}}{2}\Big\|^{2}\right)+\|\mathbf{x}\|^{2}+\|\mathbf{y}\|^{2}-\tfrac{1}{2}\|\mathbf{x}+\mathbf{y}\|^{2} \displaystyle=2\|\bm{\omega}-\mathbf{m}\|^{2}+\tfrac{1}{2}\|\mathbf{x}-\mathbf{y}\|^{2}. ∎ A.3 Ground Truth Specialization to Spheres and the Case of S^{2} For the unit hypersphere S^{d}\subset\mathbb{R}^{d+1} , the heat kernel admits an explicit spectral expansion in terms of Gegenbauer polynomials. Following Theorem 1 of Zhao & Song 2018 , the exact hyperspherical heat kernel G^{\mathrm{ext}}(\mathbf{x},\mathbf{y};t) on S^{n-1} (with n=d+1 ) can be written as the uniformly and absolutely convergent series G^{\mathrm{ext}}(\mathbf{x},\mathbf{y};t)\;=\;\sum_{\ell=0}^{\infty}e^{-\ell(\ell+n-2)t}\,\frac{2\ell+n-2}{n-2}\,\frac{1}{A_{S^{n-1}}}\,C_{\ell}^{\frac{n-2}{2}}(\mathbf{x}\cdot\mathbf{y}), (21) where C_{\ell}^{\alpha} denotes the Gegenbauer polynomial of order \ell and index \alpha , \mathbf{x}\cdot\mathbf{y}\in[-1,1] , t>0 , and A_{S^{n-1}}\;=\;\frac{2\pi^{\frac{n}{2}}}{\Gamma\!\left(\frac{n}{2}\right)} is the surface area of S^{n-1} . In the case d=2 (so n=3 and we are on S^{2} ), we have \alpha=\tfrac{n-2}{2}=\tfrac{1}{2} , and the Gegenbauer polynomials reduce to Legendre polynomials via C_{\ell}^{1/2}(z)=P_{\ell}(z) . Therefore ( 21 ) specializes to the classical spherical expansion G^{\mathrm{ext}}(\mathbf{x},\mathbf{y};t)\;=\;\sum_{\ell=0}^{\infty}\frac{2\ell+1}{4\pi}e^{-\ell(\ell+1)t}\,P_{\ell}(\langle\mathbf{x},\mathbf{y}\rangle). (22) For numerical ground truth, we truncate ( 22 ) at \ell\leq L_{\max} : \mathrm{K}^{\text{true}}_{t}(\mathbf{x}_{i},\mathbf{x}_{j})\;\approx\;\sum_{\ell=0}^{L_{\max}}\frac{2\ell+1}{4\pi}\,e^{-\ell(\ell+1)t}\,P_{\ell}(\langle\mathbf{x}_{i},\mathbf{x}_{j}\rangle), where L_{\max} is chosen so that the tail mass is negligible. In our experiments, we choose L_{\max}=50 . A.4 Convergence of kernels induced by MRFs to the standard Gaussian kernel We consider a setting from Sec. 3.1 . For a representative grid point c (we choose the center c=(\tfrac{1}{2},\dots,\tfrac{1}{2}) ), we visualize the field \omega\mapsto\psi_{n}(c)[\omega] over \mathrm{V}_{n} and compare it to the analytic feature g_{\sigma}(c,\omega) evaluated on the same grid. As n increases, the discrete field becomes increasingly smooth and radially symmetric, approaching the shape of the Gaussian bump predicted by the theory (see Figure 7 below for the two–dimensional case). Figure 7 : First column: Exact values of the Gaussian kernel, computed in the grid points and broadcast to all the points in the continuous rectangle corresponding to that grid point. Second column: Inner(dot)-products of the signature vectors, leading to the approximate Gaussian kernel values. Third column: The values of the exact function g_{\sigma}(c,\omega) (for a fixed c ), computed in the grid points and broadcast to all the points in the continuous rectangle corresponding to that grid point. Fourth column: Values of the renormalized signature vector \psi(c)[\omega] for a fixed c . We use the following setting: d=2 , \sigma=0.2 , p_{\text{halt}}=0.005 , and m=100{,}000 . A.5 Kernel reconstruction and scale alignment In order to address the scaling challenge, as we go from the original continuous space to the discretized space, we conduct scale alignment that can be thought of as extra normalization. In matrix form, letting \mathbf{G}_{\theta}\in\mathbb{R}^{N\times N} with (\mathbf{G}_{\theta})_{ij}=g_{\theta}(\mathbf{x}_{i},\bm{\omega}_{j}) , the induced kernel is \mathbf{K}_{\theta}=\mathbf{G}_{\theta}\,\mathbf{G}_{\theta}^{\top}. To compare against a ground-truth kernel matrix \mathbf{K}_{\mathrm{GT}} (see Sec. 2.2.1 for how these values are computed), we apply a single global scaling that matches Frobenius norms: \widetilde{\mathbf{K}}_{\theta}\;=\;\alpha\mathbf{K}_{\theta},\qquad\alpha\;=\;\frac{\|\mathbf{K}_{\mathrm{GT}}\|_{F}}{\|\mathbf{K}_{\theta}\|_{F}}. (23) All kernel errors and visualizations use \widetilde{\mathbf{K}}_{\theta} . A.6 2D Surfaces in 3D Spaces: Additional Results A.6.1 Torus We embed a torus in \mathbb{R}^{3} and discretize it using a uniform grid. We then proceed as for the sphere and ellipsoid case. The conclusions are the same as for the sphere and the ellipsoid (see: Fig. 8 ). Figure 8 : Qualitative field and heat kernel comparison for a torus. Example validation start (left): predicted g_{\theta}(\mathbf{x},\cdot) , ground truth \phi_{f}(\mathbf{x})[\cdot] , and residual on the torus. Reference graph heat kernel (right) \mathrm{K}^{\mathrm{heat}}(\mathbf{x},\cdot) compared to Frobenius-aligned induced kernel \widetilde{\mathrm{K}}_{\theta}(\mathbf{x},\cdot)=\widetilde{\mathrm{K}}_{\mathrm{NN}}(\mathbf{x},\cdot) , and their difference, for a representative start point. A.6.2 Validation Diagnostics for All Shapes Validation diagnostics results for all the shapes, confirming strong performance of the MRF method, are presented in Fig. 9 , Fig. 10 , Fig. 11 and Fig. 12 . Figure 9 : Sphere validation diagnostics. Left: predicted vs. ground-truth \varphi_{t} values. Middle/right: relative error and squared error as a function of ground-truth magnitude, highlighting where the model under/over-estimates. Figure 10 : Ellipsoid validation diagnostics. Left: predicted vs. ground-truth \varphi_{t} values. Middle/right: relative and squared errors as a function of ground-truth magnitude. Figure 11 : Möbius validation diagnostics. Predicted vs. ground-truth \varphi_{t} values (left) and error vs. truth (middle/right), illustrating calibration and where errors concentrate. Figure 12 : Torus validation diagnostics. Predicted vs. ground-truth \varphi_{t} values (left) and error vs. truth (middle/right), illustrating calibration and where errors concentrate. A.7 Vertex Normal Prediction Set-up We consider vertex normal interpolation on a triangular mesh with vertex set \mathrm{V} , faces F , and vertex positions \{\mathbf{x}_{i}\in\mathbb{R}^{3}\}_{i\in\mathrm{V}} . Ground-truth vertex normals \{\mathbf{n}_{i}\in\mathbb{R}^{3}\}_{i\in\mathrm{V}} are computed by accumulating incident (unnormalized) face normals and normalizing each vertex vector. We randomly mask a subset M\subseteq\mathrm{V} with |M|=0.8|\mathrm{V}| (80% missing), set \widetilde{\mathbf{n}}_{i}=\mathbf{0} for i\in M and \widetilde{\mathbf{n}}_{i}=\mathbf{n}_{i} otherwise, and predict normals at the masked vertices via kernel-based field integration. Performance is reported as the mean cosine similarity on the masked set, \frac{1}{|M|}\sum_{i\in M}(\mathbf{n}_{i}^{\mathrm{pred}})^{\top}\mathbf{n}_{i} , where \mathbf{n}_{i}^{\mathrm{pred}} is the unit-normalized prediction. The mesh graph G=(\mathrm{V},E) uses the mesh edges induced by faces. For each edge (i,j)\in E , we define an affinity (\mathbf{W})_{ij}=\exp\!\Big(-\frac{\|\mathbf{x}_{i}-\mathbf{x}_{j}\|^{2}}{\sigma^{2}}\Big),\qquad\sigma^{2}=\mathrm{median}_{(i,j)\in E}\|\mathbf{x}_{i}-\mathbf{x}_{j}\|^{2}, compute degrees (\mathbf{D})_{ii}=\sum_{j}(\mathbf{W})_{ij} , and form the symmetrically-normalized matrix \mathbf{W}_{f}=\mathbf{D}^{-1/2}\mathbf{W}\mathbf{D}^{-1/2} . The full-kernel (FK) baseline explicitly constructs the dense kernel \mathbf{K}=\exp(\tau\mathbf{W}_{f}) , with \tau=20 , by eigen-decomposition of the dense \mathbf{W}_{f} (double precision) and then applies \mathbf{N}^{\mathrm{pred}}=\mathbf{K}\widetilde{\mathbf{N}} with \widetilde{\mathbf{N}}\in\mathbb{R}^{|\mathrm{V}|\times 3} the masked normal field (masked rows set to \mathbf{0} ), followed by row-wise unit normalization. We record FK preprocessing time as dense \mathbf{W}_{f} construction plus eigendecomposition and kernel formation, and FK interpolation time as the matrix–field product \mathbf{K}\widetilde{\mathbf{N}} plus normalization. MRFs targets the same kernel \mathbf{K}=\exp(\tau\mathbf{W}_{f}) but avoids explicit construction by learning a low-rank factorization. We first estimate signature values corresponding to \exp(\tfrac{\tau}{2}\mathbf{W}_{f}) using the g-GRF random-walk estimator with modulation coefficients \alpha_{k}=(\tfrac{\tau}{2})^{k}/k! (truncated when \alpha_{k}<10^{-300} ), halting probability p_{\mathrm{halt}}=0.01 , and m=10{,}000 walks per start node. We sample 1000 start nodes uniformly without replacement (restricted to vertices when a denser discretization is used). For each start, we sample candidate anchors \omega uniformly, keep all samples with target value at least 0.1 , and retain smaller targets with probability 0.025 . We also train a continuous surrogate g_{\theta}(\mathbf{x}_{\text{start}},\mathbf{x}_{\omega}) using a 3-layer MLP with two 128-wide ReLU hidden layers. Optimization uses Adam with learning rate 10^{-3} , batch size 32{,}768 , 1000 epochs, a relative-error loss with \varepsilon=0.1 , and a 20\% validation split. For training g_{\theta} we use a denser point set on the surface: by default we set N_{\mathrm{dense}}=\max(|V|,5000) by adding area-weighted samples on faces and build a k NN graph on these points with k=16 . Inference remains on the original vertices: we sample n_{\mathrm{rf}}=256 anchors \{\omega_{\ell}\} uniformly from the dense set and approximate \mathbf{K} via \mathbf{K}\approx\bm{\Phi}\bm{\Phi}^{\top} with (\bm{\Phi})_{i\ell}=g_{\theta}(\mathbf{x}_{i},\mathbf{x}_{\omega_{\ell}},d(i,\omega_{\ell}))/\sqrt{n_{\mathrm{rf}}} , applying \mathbf{N}^{\mathrm{pred}}\approx\bm{\Phi}(\bm{\Phi}^{\top}\widetilde{\mathbf{N}}) and normalizing row-wise. MRF preprocessing time includes supervision generation and training, and MRF interpolation time includes anchor sampling, distance computation, network evaluation, and accumulation. We evaluate on meshes from Thingi10k with the following mesh IDs: [368622, 42435, 65282, 116878, 409624, 101902, 73410, 87602, 255172, 98480, 57140, 285606, 96123, 203289, 87601, 409629, 37384, 57084, 136024, 202267, 101619, 72896, 90064, 127243, 78671, 285610, 75667, 80597, 75651, 75654, 75657, 75665, 75652, 123472, 88855, 444375, 208741, 73877] A.7.1 More details regarding velocity prediction setup Since velocity magnitudes are meaningful (unlike unit normals), we use a normalized kernel interpolant. Let \mathbf{m}\in\{0,1\}^{|\mathrm{\widetilde{V}}|} be the indicator of observed nodes ( m_{i}=1 if i\notin M , else 0 ), and let \mathbf{m}\odot\mathbf{U} denote row-wise masking. We predict the full field via normalization: \mathbf{U}^{\mathrm{pred}}\;=\;\frac{\mathbf{K}(\mathbf{m}\odot\mathbf{U})}{\mathbf{K}\mathbf{m}}\,, (24) where the division is row-wise and applied to each of the 3 velocity channels. To match the full-kernel baseline used in vertex-normal prediction, we compute \mathbf{K} via a full spectral decomposition. Specifically, we form \mathbf{W}_{f} and compute \mathbf{W}_{f}=\mathbf{V}\operatorname{diag}(\bm{\lambda})\mathbf{V}^{\top} , so that \mathbf{K}=\mathbf{V}\operatorname{diag}(\exp(\tau\bm{\lambda}))\mathbf{V}^{\top} . Baseline preprocessing time therefore includes graph construction and the dense eigendecomposition (dominated by O(|\mathrm{\widetilde{V}}|^{3}) time and O(|\mathrm{\widetilde{V}}|^{2}) memory to store \mathbf{V} ), and each per-frame interpolation requires two dense applications of \mathbf{K} (we apply \mathbf{K} once to the stacked right-hand side [\mathbf{m},\;\mathbf{m}\odot\mathbf{U}] to obtain both numerator and denominator). For MRFs, we train the regressor g_{\theta} once per discretization on the same dense graph, and precompute a random-feature matrix \mathbf{Z}\in\mathbb{R}^{|\mathrm{\widetilde{V}|}\times M} for a fixed number of features M . This yields the approximation \mathbf{K}\approx\mathbf{Z}\mathbf{Z}^{\top} , so that per-frame interpolation reduces to two thin matrix multiplications: \mathbf{Z}\mathbf{Z}^{\top}(\mathbf{m}\odot\mathbf{U})=\mathbf{Z}(\mathbf{Z}^{\top}(\mathbf{m}\odot\mathbf{U})) and similarly for \mathbf{K}\mathbf{m} . We report MRF preprocessing as supervision generation, training, and feature precomputation, and MRF interpolation time as the rest. Code for all our experiments can be found here .