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

Deep Signature Transforms

Patrick Kidger, Patric Bonnier, Imanol Perez Arribas, Cristopher Salvi, Terry J. Lyons

Introduction

Sequential data—such as time series, pen strokes, or financial ticks—is traditionally treated as a discrete sequence of points. While Recurrent Neural Networks (RNNs) and Long Short-Term Memory networks (LSTMs) are the standard tools for modeling this data, they often struggle to capture underlying "path-like" geometry or handle long-range dependencies effectively without massive amounts of data.

The signature transform is a powerful mathematical tool from rough path theory that provides a collection of statistics (iterated integrals) uniquely characterizing a path. Historically, it has been used as a "fixed" feature extractor: the signature is calculated once as a preprocessing step and then fed into a model. However, this approach suffers from rigidity—fixed signatures might miss important information if the "depth" of the transform is too low—and non-stackability, as standard signatures output a single vector, making it difficult to build "deep" hierarchical representations.

This paper introduces the Deep Signature Transform, a method for integrating the signature of a path directly into neural network architectures. By making the signature transform a learnable layer rather than a fixed preprocessing step, models can capture complex, high-order geometric information from sequential data with significantly higher efficiency than standard recurrent networks.

Methodology: Signatures as Deep Learning Layers

To turn the signature transform into a first-class deep learning component, the authors propose several key innovations:

Learnable Augmentations ($\Phi$)

Instead of taking the signature of the raw data directly, the data is first passed through a neural network. This network is trained to "lift" the data into a space where the most important features can be captured by a low-depth (and thus computationally cheaper) signature. By learning the augmentation before the signature, the model can "squeeze" high-order information into lower-order terms.

Comparison of the traditional neural-signature model and the proposed neural-signature-augment model.

The Signature as a Pooling Layer

The signature transform naturally acts as a sophisticated pooling operation. It consumes a stream of data of arbitrary length $n$ and dimension $d$, and returns a fixed-size vector of statistics. This allows the network to handle variable-length sequences seamlessly.

Lifts for Deep Architectures

To allow multiple signature layers, the authors introduce "lifts." A lift transforms a stream into a "stream of streams" (e.g., using a sliding window or expanding windows). This allows the model to calculate signatures of signatures, creating a deep, hierarchical representation of the data's geometry.

To support these operations, the authors also developed Signatory, a library that enables efficient, GPU-accelerated backpropagation through signature calculations.

Key Insights

  • Universal Nonlinearity: A core theoretical insight is that any continuous function of a path can be approximated arbitrarily well by a linear function of its signature. Learning the augmentation prior to the signature essentially teaches the model how to best linearize a complex problem.
  • Resampling Invariance: Signatures are naturally invariant to how data is sampled in time (reparameterization). This makes them inherently more robust than RNNs when dealing with irregularly sampled or missing data.
  • Principled Memory: In reinforcement learning contexts, the signature provides a mathematically principled way to summarize the history of an agent's states, offering an alternative to the "black box" memory of an RNN.

Empirical Validation

The authors evaluated the Deep Signature Transform across several diverse domains, demonstrating significant improvements over traditional recurrent architectures:

  • Fractional Brownian Motion (fBM): In the supervised task of estimating the Hurst parameter (roughness) of synthetic fBM paths, the proposed "DeeperSigNet" model achieved a Mean Squared Error (MSE) of $1.6 \times 10^{-4}$. This outperformed LSTMs ($4.3 \times 10^{-2}$) and GRUs ($3.3 \times 10^{-3}$) by at least one order of magnitude.
  • Generative Modeling: Using synthetic stochastic paths from Ornstein–Uhlenbeck (OU) processes, a signature-based generative model successfully produced paths that were statistically indistinguishable from real OU processes, achieving a very low loss of $6.6 \times 10^{-4}$.
  • Non-Markovian Reinforcement Learning: In a modified Mountain Car environment where the agent only observes position (not velocity), the agent must rely on its memory of the path. The signature-based agent successfully learned to solve the task, whereas a comparable RNN-based agent failed to converge.
  • Path Reconstruction: Using the PenDigits dataset of handwritten digits, the authors demonstrated that paths can be almost perfectly reconstructed from their truncated signatures.

Limitations and Future Work

While powerful, the approach has limitations. The number of terms in a signature grows exponentially with the truncation depth $N$ and the dimension $d$. While learnable augmentations help keep $N$ low, extremely high-dimensional data remains a computational challenge. Additionally, introducing "lifts" and multiple signature layers adds new hyperparameters (e.g., window sizes, lift types, truncation depths) that require careful tuning.

Future work may explore more complex "lifts" and apply these deep signature architectures to even larger-scale, real-world time-series datasets, further establishing the signature transform as a fundamental building block in deep learning.

Summary updated

BibTeX
@inproceedings{kidger2019deep,
  author = {Patrick Kidger and Patric Bonnier and Imanol Perez Arribas and Cristopher Salvi and Terry J. Lyons},
  title = {{Deep Signature Transforms}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=KTEJHS3M44},
}
Figure