NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Manifold Random Features

Ananya Parashar, Derek Long, Dwaipayan Saha, Krzysztof Marcin ChoromanskiNeurIPS 2026

TL;DR

Calculating similarity kernels (like heat diffusion) on curved surfaces usually requires brutally slow spectral decompositions, and standard speed-up tricks break down outside of flat, Euclidean space. Manifold Random Features (MRFs) solve this by taking discrete random walks on a mesh and training a neural network to generalize them into smooth, continuous feature maps. You get massive inference speedups, geometry-aware representations, and—as a delightful mathematical surprise—a combinatorial shortcut to rediscovering state-of-the-art linear Transformer attention.

What Problem Does This Paper Address?

In machine learning, kernel functions measure similarity between two points. In flat Euclidean space, Random Features (RFs) are a beloved magic trick: they map inputs into a randomized space where complex, non-linear kernels become cheap, linear dot products. This is the engine behind scalable SVMs and linear-attention Transformers.

However, if your data lives on a curved manifold—say, a 3D molecular surface, a deformable cloth mesh, or a curved embedding space—constructing RFs analytically is generally impossible. Worse, standard RFs often output negative or unbounded values, which ruins variance and numerical stability when approximating strictly positive kernels (like heat diffusion or softmax). Without RFs, computing manifold kernels like the heat kernel requires finding eigenpairs of the Laplace-Beltrami operator, costing $O(N^3)$ time to compute and $O(N^2)$ memory to store. If your mesh has 100,000 vertices, you're out of luck.

Methods

Instead of trying to derive continuous manifold features with pen and paper, the authors learn them using discrete graphs as a teacher. Here is the recipe:

  1. Discretize the Manifold: Sample $N$ points from the manifold $\mathcal{M}$ and connect nearby points to form a weighted neighborhood graph that captures local geometry.
  2. Generate Discrete Supervision (Standard): Run Graph Random Features (GRFs) on this graph. GRFs unleash ensembles of random walks from each node, accumulating weights along the way to build sparse, positive "signature vectors" whose dot products approximate the discrete graph kernel.
  3. Learn Continuous Fields (Novel): Treat those discrete signature vectors as ground truth to train a small neural network $g_\theta(x, \omega)$ on the manifold, clamping its outputs at zero to guarantee positivity.
As grid resolution increases ($n \to \infty$), discrete random-walk signature vectors on graphs smoothly converge into continuous Gaussian fields.

Once trained offline, this neural network acts as a smooth, continuous surrogate for the discrete walks. At inference time, you can evaluate $g_\theta$ at any continuous point on the manifold (even out-of-sample points) to build Manifold Random Feature vectors whose simple inner products approximate the true manifold kernel in sub-quadratic time.

Datasets

No new benchmarks are introduced; the authors evaluate MRFs across synthetic geometries and established 3D, physics, and vision datasets:

  • Synthetic Geometries: Regular Euclidean grids, 2D surfaces embedded in 3D (sphere, ellipsoid, Möbius strip, torus), and non-compact hyperbolic 3-space ($\mathbb{H}^3$).
  • Thingi10K: Rigid 3D meshes used for interpolating missing vertex normals.
  • flag_simple: Deformable cloth simulation meshes used for velocity field prediction.
  • Brodatz: Texture images represented as 15-dimensional log-SPD covariance descriptors for manifold classification.
  • FAUST: 3D human meshes used for dense shape correspondence (detailed in the appendix).

Key Insights and Ideas

  • Random walks secretly know calculus: In a fascinating theoretical detour, the authors apply their discrete grid-graph random walks to a flat hypercube and take the limit as grid resolution goes to infinity. Without doing any of the grueling analytical integrals required in prior literature, simple combinatorial random walks naturally converge to—and rediscover—a recently proposed positive, bounded Gaussian kernel approximation used in linear Transformers.
  • Positivity and boundedness for free: Because GRF random walks accumulate positive loads, and continuous neural networks evaluated on compact manifolds are inherently bounded, MRFs automatically yield positive and bounded features. This keeps estimation variance low and avoids the numerical blow-ups that plague trigonometric RFs.
  • Ambient shortcuts don't cut it: You might be tempted to ignore a surface's intrinsic curvature and just apply standard Euclidean RFs to the 3D $(x, y, z)$ coordinates. The paper demonstrates that this fails badly whenever geodesic (along-the-surface) distance diverges from straight-line 3D distance—such as on a twisted Möbius strip.

Key Results

  • 2D Surfaces: MRFs accurately reconstruct intrinsic heat kernels ($R^2$ between $0.983$ and $0.997$ on surrogate validation) while achieving 37.2x to 61.2x inference speedups over spectral baselines. On a Möbius strip, MRF achieves a relative Frobenius error of 0.035, crushing the best tuned 3D Euclidean RF baseline (0.489—even when giving the baseline 4x more features).
  • Mesh Interpolation: On a 47,024-vertex Thingi10K mesh, full spectral kernel construction took 2,936 seconds, whereas MRF offline preprocessing/training took 171 seconds (with comparable ~0.4s inference). MRFs achieved 0.85 cosine similarity on normal prediction (vs. $\le 0.78$ for Euclidean RFs). On dense flag_simple velocity prediction, MRFs delivered >10x inference speedups and 0.93 cosine similarity (vs. $\le 0.79$ for baselines).
  • Higher-Dimensional Manifolds & Attention: On 15D Brodatz descriptor classification, MRFs reached 55.7% mean accuracy, beating the next best RF method (RFF at 43.5%). In linearized attention tasks on Möbius-strip tokens, MRFs achieved the lowest MSE across all tested source counts.

Limitations and Future Work

  • Offline Preprocessing Cost: Building the graph, running random walks, and training $g_\theta$ takes upfront time. MRFs shine when features are reused across many downstream queries or out-of-sample points, not on tiny, one-off problems.
  • Curse of Dimensionality: Because discretizing a $d$-dimensional manifold at resolution $\epsilon$ requires $O(\epsilon^{-d})$ points, getting dense enough coverage becomes expensive as intrinsic dimensionality grows.
  • Graph-Kernel Expressivity: The target function must be well-approximated by a power series of a generalized graph adjacency matrix.
  • Non-Compact Manifolds: Both the theory (like automatic boundedness) and main experiments assume compact (closed and bounded) manifolds. Preliminary tests on hyperbolic space ($\mathbb{H}^3$) show MRFs work locally on bounded regions, leaving global guarantees on non-compact spaces as an open avenue for future work.

Summary updated

BibTeX
@inproceedings{parashar2026manifold,
  author = {Ananya Parashar and Derek Long and Dwaipayan Saha and Krzysztof Marcin Choromanski},
  title = {{Manifold Random Features}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=SV6wCTN02D},
}
Figure