Geometrically Coupled Monte Carlo Sampling

Mark Rowland, Krzysztof Choromanski, François Chalus, Aldo Pacchiano, Tamás Sarlós, Richard E. Turner, Adrian WellerNeurIPS 2018

Introduction

Standard Monte Carlo (MC) sampling relies on independent draws, which is often inefficient in high-dimensional spaces where evaluating each sample is computationally expensive. In many machine learning tasks—such as optimizing a robot's walking policy or training a generative model—we use MC methods to estimate expectations. Usually, we draw these samples independently (i.i.d.).

However, we often face a "low-sample, high-dimensional" regime. For example, in Reinforcement Learning (RL), a single "sample" might be a massive vector of neural network weights. Drawing the sample is fast, but evaluating it (e.g., running a physics simulation) is incredibly slow. If we only have the budget for a few samples, i.i.d. draws are likely to cluster together or leave huge gaps in the search space, leading to noisy, poor-quality estimates. While methods like Quasi-Monte Carlo (QMC) exist to solve this in low dimensions, they often lose their theoretical guarantees and practical edge as the number of dimensions increases.

To address this, recent research introduces Geometrically Coupled Monte Carlo (GCMC), a framework that uses optimal transport theory to create "repulsive" samples that spread out more effectively, leading to lower variance and significantly better performance.

Methods: The Power of Repulsion

The core idea behind GCMC is to move away from independence and instead "couple" the samples. For optimal sampling, samples should effectively "dislike" each other. By designing a joint distribution where samples are pushed away from one another, we obtain a much more representative view of the space than by pure chance.

The authors frame the search for the best joint distribution of samples as a Multi-Marginal Transport (MMT) problem. Unlike standard optimal transport, which usually tries to minimize movement, their objective is repulsive. It rewards sets of samples that are far apart, ensuring they fill the space better. They define a criterion for optimality based on minimizing the average Mean Squared Error (MSE) across a class of functions (specifically those drawn from a Gaussian Process).

Importantly, unlike deterministic "herding" methods, GCMC maintains the unbiasedness of the estimator. This is critical for stochastic gradient descent and other optimization algorithms that rely on the "long-run" correctness of their gradients.

The paper proposes novel algorithms to achieve this:

  1. Antithetic Inverse Lengths: A method to couple the lengths (norms) of pairs of samples to ensure better radial coverage.
  2. Orthogonal Coupling: A strategy that forces samples to be sequentially orthogonal to one another, which is particularly effective in high-dimensional Euclidean spaces. This provides a theoretical explanation for why "structured orthogonal matrices"—a trick sometimes used in kernel methods—actually work, linking them to discrepancy theory.

Key Results

The paper evaluates its methods on benchmarks including PyBullet/Minitaur (a high-dimensional RL problem with $d \ge 96$ parameters) and MNIST (for training Variational Autoencoders).

Lower Discrepancy

The authors proved and empirically showed that orthogonal coupling leads to much lower "star discrepancy" (a measure indicating a tighter, more uniform distribution) than independent sampling, especially in high dimensions.

Discrepancy density plots showing that orthogonal and antithetic couplings shift the distribution toward lower discrepancy compared to i.i.d. sampling.

Reinforcement Learning and Generative Modeling

In the quadruped walking task with a very low sample budget ($m=8$), GCMC was highly effective. Standard i.i.d. sampling and traditional QMC (like Halton sequences) often struggle or fail to produce stable movement in such constrained settings, whereas coupled approaches successfully learn walkable policies.

Performance on the quadruped walking task with a low sample budget (m=8), demonstrating the effectiveness of coupled and orthogonal sampling methods.

Furthermore, in generative modeling tasks (training VAEs), GCMC with just 2 samples achieved better log-likelihood results than standard i.i.d. sampling using 8 samples. This represents a 4x improvement in sample efficiency.

Limitations and Future Work

While highly effective, GCMC does have limitations:

  • Computational Cost: While drawing an i.i.d. sample is nearly free, generating perfectly orthogonal samples in extremely high dimensions can be computationally expensive ($O(d^3)$ for exact simulation). Future work should explicitly include this "sampling cost" in the optimization objective.
  • Kernel Selection: The definition of an "optimal" coupling depends on the choice of a kernel. While the paper uses standard isotropic kernels, different applications might benefit from task-specific kernels.
  • Beyond Euclidean Space: The current work focuses on Euclidean spaces; extending these geometric couplings to more complex manifolds remains an open challenge.

Summary updated

BibTeX
@inproceedings{rowland2018geometrically,
  author = {Mark Rowland and Krzysztof Choromanski and François Chalus and Aldo Pacchiano and Tamás Sarlós and Richard E. Turner and Adrian Weller},
  title = {{Geometrically Coupled Monte Carlo Sampling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=BJVM8DZdZB},
}
Figure