Deep Signatures

Patric Bonnier, Patrick Kidger, Imanol Pérez Arribas, Cristopher Salvi, Terry J. Lyons

Abstract

Sequential data analysis often faces challenges with irregular sampling and long-range dependencies. This paper introduces the Deep Signature Transform, which transitions the signature transform from a static feature extractor into a learnable, differentiable neural network layer. By combining the mathematical foundations of rough path theory with the flexibility of deep learning, the authors demonstrate superior performance in estimating stochastic process parameters and solving non-Markovian reinforcement learning tasks.

Introduction

Traditionally, sequential data such as time series or financial ticks are processed using Recurrent Neural Networks (RNNs) or Long Short-Term Memory (LSTM) networks. While powerful, these architectures often struggle with irregularly sampled data or extremely long sequences. The signature transform, a concept from rough path theory, offers a "universal" set of statistics that captures the geometric essence of a path independently of its sampling frequency. Historically used as a fixed preprocessing step, this paper proposes integrating it directly into deep learning architectures as a learnable component.

Methodology: The Deep Signature

The core innovation lies in making the signature transform "deep" and learnable. The authors propose several key architectural components:

1. Learnable Augmentation ($\Phi$)

Rather than computing the signature of raw input data, the model first passes the data through a neural network $\Phi$. This learnable augmentation allows the model to transform the input stream into a more informative representation before the signature transform summarizes it.

2. The Signature as a Pooling Layer

In this framework, the signature transform acts as a sophisticated pooling operation. It collapses a variable-length input stream into a fixed-size vector of iterated integrals, providing a compressed yet expressive summary of the path's geometry.

Comparison of the basic Neural-signature model and the Neural-signature-augment model featuring learnable augmentation.

3. Lifts and Stacking

To achieve "depth," the authors introduce Lifts, which transform a single stream into a "stream of streams" (e.g., via a sliding window). This enables the stacking of multiple signature layers, where the output of one signature transform serves as the input for the next.

4. Differentiability and Implementation

Despite its roots in complex integration, the signature transform can be computed using standard tensor operations. This makes it fully differentiable and compatible with backpropagation in frameworks like PyTorch. The authors also introduced the Signatory library to facilitate high-performance GPU computations.

Experimental Evaluation

The model was tested across several challenging benchmarks:

  • Hurst Parameter Estimation: On fractional Brownian motion (fBM) paths, the "DeepSigNet" achieved a Mean Squared Error (MSE) of $1.6 \times 10^{-4}$, significantly outperforming LSTMs and GRUs, which typically achieved MSEs between $10^{-2}$ and $10^{-3}$.
  • Non-Markovian Reinforcement Learning: In a modified Mountain Car environment where velocity is hidden, the signature-based agent successfully learned the task, whereas standard RNN architectures failed.
  • Generative Modeling: A signature-based discriminator was used to train a generator to produce paths statistically indistinguishable from Ornstein-Uhlenbeck processes.

Discussion and Conclusion

The Deep Signature Transform provides a robust framework for handling sequential data by leveraging the invariance properties of rough path theory. Its primary advantage is the ability to learn which geometric features are most relevant for a specific task through the augmentation $\Phi$.

While powerful, challenges remain regarding the computational cost of high-depth signatures, which scale combinatorially ($d^N$) with the input dimension and truncation depth. Future work involves optimizing hyperparameter selection for the truncation depth $N$ and exploring the theoretical implications of noise in path signatures.

Summary updated

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