Distribution of Gaussian Process Arc Lengths

Justin Dragon Bewsher, Alessandra Tosi, Michael A. Osborne, Stephen Roberts · DOI

Abstract

We present the first treatment of the arc length of the Gaussian Process (GP) with more than a single output dimension. GPs are commonly used for tasks such as trajectory modelling, where path length is a crucial quantity of interest. Previously, only paths in one dimension have been considered, with no theoretical consideration of higher dimensional problems. We fill the gap in the existing literature by deriving the moments of the arc length for a stationary GP with multiple output dimensions. A new method is used to derive the mean of a one-dimensional GP over a finite interval, by considering the distribution of the arc length integrand. This technique is used to derive an approximate distribution over the arc length of a vector valued GP in $\mathbb{R}^n$ by moment matching the distribution. Numerical simulations confirm our theoretical derivations.

Introduction

Gaussian Processes (GPs) are a staple in machine learning for modeling functions and trajectories. In applications like robotics path planning, medical imaging, or animal tracking, the "arc length"—the actual distance traveled along a curve—is a vital piece of information. However, calculating the statistics of this length is surprisingly difficult. Because the arc length is an integral of a non-linear transformation of the GP’s derivative, it does not remain Gaussian. While previous research addressed the 1D case, a significant theoretical gap existed regarding vector-valued GPs in $\mathbb{R}^n$. Without analytical tools, researchers relied on computationally expensive Monte Carlo simulations, which offer limited theoretical insight into how kernel choices affect path properties.

Methodology

The authors approach the problem by focusing on the integrand distribution.

The 1D Case

For a 1D GP, the arc length depends on $\sqrt{1 + (f'(t))^2}$. The authors derived the exact probability density function (PDF) for this term by treating it as a transformation of a normal random variable. This allowed them to express the mean arc length using confluent hypergeometric functions.

The Multi-dimensional Case

In $\mathbb{R}^n$, the integrand is the Euclidean norm of the derivative vector, $|f'(t)|$, which is the square root of a sum of squares of correlated normal variables. Since there is no simple closed-form solution, the authors utilized moment matching.

The Nakagami Approximation

The distribution of the integrand was approximated using a Nakagami distribution. By matching the first two moments of the squared norm (a quadratic form) to a Gamma distribution, they transformed it into a Nakagami distribution. This provides a high-fidelity approximation of the path increment's behavior. Using this approximation, they derived a closed-form expression for the expected arc length (the first moment) and a power-series expansion for the second moment (variance), solvable via numerical quadrature.

Results and Validation

The theoretical framework was validated using numerical simulations and synthetic GP draws. Sample paths were generated using the Matérn 3/2 kernel, a common choice for physical trajectories.

Comparison of empirical samples and theoretical fit for the arc length integrand across different parameters of length scale ($\sigma$) and mean ($\mu$).

As shown in the figure above, the theoretical distributions align almost perfectly with empirical data from simulated GP paths across various settings of $\sigma$ and $\mu$. This confirms the accuracy of the derived PDF and the moment-matching techniques.

Key Findings

  • Closed-Form Mean: The authors successfully derived a closed-form expression for the expected arc length of a zero-mean vector-valued GP.
  • Kernel Hyperparameters: The expected arc length is determined almost entirely by the choice of kernel and its hyperparameters. For instance, in a Squared Exponential kernel, decreasing the length scale $\sigma$ makes the path more "wiggly," increasing the expected arc length significantly.
  • Variance Concentration: Interestingly, the variance of the total arc length is much smaller than the variance of any individual segment. Integrating over the domain has a smoothing effect, causing the total length to concentrate around the mean.

Discussion and Future Work

This research provides the first theoretical framework for calculating the arc length of multi-dimensional GPs. While the Nakagami approximation is highly accurate, it remains an approximation, being exact only when all eigenvalues of the covariance matrix are identical.

Current derivations focus primarily on stationary kernels. Future work could extend these results to inherently non-stationary processes and implement "arc length priors" in specific Bayesian optimization or path-planning tasks. This could be a powerful tool for "cost-aware" path planning where the length of the path is a primary constraint.

Summary updated

Abstract

We present the first treatment of the arc length of the Gaussian Process (GP) with more than a single output dimension. GPs are commonly used for tasks such as trajectory modelling, where path length is a crucial quantity of interest. Previously, only paths in one dimension have been considered, with no theoretical consideration of higher dimensional problems. We fill the gap in the existing literature by deriving the moments of the arc length for a stationary GP with multiple output dimensions. A new method is used to derive the mean of a one-dimensional GP over a finite interval, by considering the distribution of the arc length integrand. This technique is used to derive an approximate distribution over the arc length of a vector valued GP in $\mathbb{R}^n$ by moment matching the distribution. Numerical simulations confirm our theoretical derivations.
BibTeX
@inproceedings{bewsher2017distribution,
  author = {Justin Dragon Bewsher and Alessandra Tosi and Michael A. Osborne and Stephen Roberts},
  title = {{Distribution of Gaussian Process Arc Lengths}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2017},
  url = {https://openreview.net/forum?id=CIMFgbfoR47},
}

Loading related content...

Figure