The Signature Kernel

Darrick Lee, Harald OberhauserarXiv 2023 · DOI

Abstract

The signature kernel offers a mathematically rigorous and computationally efficient framework for comparing sequential data of varying lengths. By conceptualizing iterated integrals as "non-commutative monomials," it enables the application of powerful kernel methods to complex paths while circumventing the exponential "curse of dimensionality" typically associated with raw signature features. This paper explores the theoretical foundations, algorithmic implementations, and practical advantages of the signature kernel in machine learning.

Introduction

Sequential data, such as financial time series or medical records, presents unique modeling challenges. Unlike fixed-length vectors, sequences vary in length, and their underlying meaning often depends on the temporal order and non-linear interactions of their elements.

The path signature—a collection of iterated integrals—is a fundamental tool in stochastic analysis for describing paths. However, its adoption in machine learning has been hindered by two primary issues:

  1. The Curse of Dimensionality: The number of signature features grows exponentially with the depth of the iterated integrals.
  2. Robustness: Signatures can be sensitive to outliers and may explode on unbounded domains.

The signature kernel addresses these hurdles through "kernelization," transforming the signature from a theoretical construct into a practical algorithmic tool.

Methods

The signature kernel is framed as a natural extension of classical monomials to the space of paths.

Signatures as Non-Commutative Monomials

Just as $x^2$ and $x^3$ serve as building blocks for functions on vectors, iterated integrals are the building blocks for functions on paths. Since the order of events in a path matters, these integrals function as "non-commutative monomials."

Visualization of a complex basis function derived from iterated integrals.

The Kernel Trick

Rather than explicitly computing the high-dimensional tensor of signature features, the signature kernel calculates the inner product between two signatures directly. This "kernel trick" allows researchers to work with infinite-dimensional feature spaces without the associated computational overhead. This method also allows for "lifting" data into high-dimensional spaces using standard kernels (like RBF) before computing the signature, adding layers of non-linearity.

Computation and Algorithms

The paper identifies two primary methods for computing the signature kernel:

  • Dynamic Programming: A discrete approach scaling at $O(M^3 L^2)$, where $L$ is sequence length and $M$ is truncation depth.
  • PDE Solvers: For continuous paths, the kernel is the solution to a Goursat partial differential equation, solvable via standard numerical schemes.

Key Insights and Ideas

A central contribution of this work is the systematic mapping of vector space properties to the path space, as summarized in the following table.

Table 1: Comparison of properties between the Monomial Map and the Path Signature.

This analogy demystifies iterated integrals by showing how they inherit properties like scaling, decay, and universality from their simpler vector counterparts. Furthermore, the use of Time-Augmentation (adding a time coordinate) ensures path injectivity, preventing stationary paths from being indistinguishable from those that backtrack.

Key Results

The signature kernel provides several theoretical guarantees:

  • Universality: Linear functionals of the kernel can approximate any continuous function on paths under specific regularity conditions.
  • Characteristicness: The kernel uniquely characterizes probability measures on paths, enabling robust hypothesis testing (e.g., determining if two sets of time series originate from the same process).
  • Maximum Mean Discrepancy (MMD): It defines a principled metric for measuring the distance between the laws of two stochastic processes.

Limitations and Future Work

Despite its advantages, challenges remain. The $O(L^2)$ scaling can be prohibitive for extremely long sequences, and hyperparameter tuning (e.g., selecting the "static" kernel) remains non-trivial. Future research aims to extend these kernels to "rough" trajectories and explore non-commutative algebras for even more expressive sequential modeling.

Summary updated

BibTeX
@misc{lee2023signature,
  author = {Darrick Lee and Harald Oberhauser},
  title = {{The Signature Kernel}},
  year = {2023},
  eprint = {2305.04625},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.04625},
}
Figure