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

Variance-Reducing Couplings for Random Features

Isaac Reid, Stratis Markou, Krzysztof Marcin Choromanski, Richard E. Turner, Adrian WellerICLR 2025

TL;DR

This paper frames the variance reduction of Random Features (RFs) as an Optimal Transport (OT) problem, providing a unified framework to improve kernel approximations in both Euclidean and graph-based spaces. While the authors develop "pairwise norm-coupling" to significantly reduce estimation noise, they also uncover a counter-intuitive insight: for efficient Transformers, maximizing variance through positive correlation actually yields better results than traditional variance reduction.

Introduction

Kernel methods are powerful tools for non-linear machine learning, but they scale poorly—typically requiring $O(N^3)$ time for a dataset of size $N$. Random Features (RFs) solve this by approximating the kernel using stochastic Monte Carlo estimates, turning the problem into a much faster linear one.

However, these Monte Carlo estimates often suffer from high variance. To achieve an accurate approximation, you need many samples (features), which eats back into your efficiency gains. Previous attempts to fix this, such as Quasi-Monte Carlo or Orthogonal RFs, were often hand-crafted for specific kernels or struggled in high-dimensional, low-sample regimes. This paper seeks a principled, mathematically grounded way to design dependencies between random samples to minimize this variance across both continuous and discrete domains.

Methodology: The Optimal Transport Connection

The most profound insight of this work is that variance reduction is fundamentally a multi-marginal Optimal Transport (OT) problem. By minimizing a "cost function" (the squared error of the kernel estimate), researchers can tap into the deep well of OT theory and solvers. Instead of drawing random frequencies independently, the authors look for the best "coupling"—a joint distribution that preserves the required marginals but introduces dependencies that cancel out noise.

Key technical contributions include:

  • Pairwise Norm-Coupling (PNC): For Euclidean kernels (like the Gaussian kernel), the authors prove that for pairs of orthogonal frequencies, a "negative monotone coupling" of their norms is optimal. This ensures that if one frequency is "large," the other is "small," balancing the overall estimate.
  • $\sigma$-coupled Graph Random Features (GRFs): For kernels defined on graphs, the authors couple the lengths of random walks. They transform this into a bipartite matching problem (solved via the Hungarian algorithm) to find the optimal way to pair walk lengths based on the underlying data.
  • Numerical OT via Copulas: For complex cases where analytical solutions are impossible, they use Gaussian copulas and gradient descent to "learn" the optimal coupling directly from training data.

Experiments and Results

The paper evaluates these methods across a diverse set of benchmarks, including UCI Regression Datasets, real-world graphs (like Cora and Eurosis), ImageNet, and California highway traffic data.

Kernel Estimation and Graph GPs: PNC and $\sigma$-coupling consistently achieved lower Root Mean Square Error (RMSE) in kernel approximation compared to i.i.d. sampling and standard orthogonal features across almost all datasets. On mesh graphs and traffic data, the proposed couplings improved uncertainty quantification and prediction accuracy, sometimes reducing the KL divergence to the true posterior by a factor of >2x.

Performance metrics comparing i.i.d., orthogonal, and PNC methods across different numbers of features.

Unlike previous "hard-coded" methods, the $\sigma$-coupling for graphs is the first to be optimized using the specific structure of the graph data, consistently beating previous state-of-the-art heuristics like "antithetic termination."

The Transformer Anomaly: In a surprising "aha moment," the authors found that for Performers (efficient Transformers), reducing the variance of the kernel estimate actually hurt performance. Because Transformers normalize attention scores using a softmax function, it is better to have the numerator and denominator vary together (positive correlation) rather than minimizing their individual variances. By using "positive monotone coupling" (the opposite of variance reduction), the authors improved Performer accuracy on ImageNet by +0.8%, demonstrating that the "wrong" sign on the OT cost function was actually the "right" choice for normalized attention.

Limitations and Future Work

  • Analytical Intractability: While the $m=2$ (pairwise) case is solved exactly, solving the multi-marginal OT problem for $m > 2$ remains an open analytical challenge.
  • Downstream Sensitivity: The paper highlights that the "best" coupling depends heavily on the downstream task. Future work is needed to automatically identify whether a task requires variance reduction or variance "alignment" (as seen in the Transformer case).
  • Computational Overhead: While the couplings are computationally "cheap" once found, the initial optimization—especially for large graphs or learning copulas—adds a pre-processing step that must be balanced against the eventual speedup.

Summary updated

BibTeX
@inproceedings{reid2025variance,
  author = {Isaac Reid and Stratis Markou and Krzysztof Marcin Choromanski and Richard E. Turner and Adrian Weller},
  title = {{Variance-Reducing Couplings for Random Features}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=oJLpXraSLb},
}
Figure