# pySigLib -- Fast Signature-Based Computations on CPU and GPU

arXiv: https://arxiv.org/abs/2509.10613 · HTML: https://mlsanity.com/paper/2509.10613/

## Key facts

- Cited by 6 papers in the map (data through 14 Oct 2026).
- Builds on 24 of its 47 references that are in the map.
- First posted on arXiv 12 Sep 2025.

## Builds on (most cited first, 24 of 24)

- [PyTorch: An Imperative Style, High-Performance Deep Learning Library](https://mlsanity.com/paper/1912.01703/) (2019)
- [Neural Rough Differential Equations for Long Time Series](https://mlsanity.com/paper/2009.08295/) (2020)
- [A Primer on the Signature Method in Machine Learning](https://mlsanity.com/paper/1603.03788/) (2016)
- [Kernels for sequentially ordered data](https://mlsanity.com/paper/1601.08169/) (2016)
- [Deep Signature Transforms](https://mlsanity.com/paper/1905.08494/) (2019)
- [The Signature Kernel is the solution of a Goursat PDE](https://mlsanity.com/paper/2006.14794/) (2020)
- [Neural Stochastic PDEs: Resolution-Invariant Learning of Continuous Spatiotemporal Dynamics](https://mlsanity.com/paper/2110.10249/) (2021)
- [Signatory: differentiable computations of the signature and logsignature transforms, on both CPU and GPU](https://mlsanity.com/paper/2001.00706/) (2020)
- [The iisignature library: efficient calculation of iterated-integral signatures and log signatures](https://mlsanity.com/paper/1802.08252/) (2018)
- [Non-adversarial training of Neural SDEs with signature kernel scores](https://mlsanity.com/paper/2305.16274/) (2023)
- [A Data-driven Market Simulator for Small Data Environments](https://mlsanity.com/paper/2006.14498/) (2020)
- [Distribution Regression for Sequential Data](https://mlsanity.com/paper/2006.05805/) (2020)
- [Higher Order Kernel Mean Embeddings to Capture Filtrations of Stochastic Processes](https://mlsanity.com/paper/2109.03582/) (2021)
- [Neural signature kernels as infinite-width-depth-limits of controlled ResNets](https://mlsanity.com/paper/2303.17671/) (2023)
- [SigGPDE: Scaling Sparse Gaussian Processes on Sequential Data](https://mlsanity.com/paper/2105.04211/) (2021)
- [Signature Kernel Conditional Independence Tests in Causal Discovery for Stochastic Processes](https://mlsanity.com/paper/2402.18477/) (2024)
- [Structured Linear CDEs: Maximally Expressive and Parallel-in-Time Sequence Models](https://mlsanity.com/paper/2505.17761/) (2025)
- [SK-Tree: a systematic malware detection algorithm on streaming trees via the signature kernel](https://mlsanity.com/paper/2102.07904/) (2021)
- [A Neural RDE approach for continuous-time non-Markovian stochastic control problems](https://mlsanity.com/paper/2306.14258/) (2023)
- [New directions in the applications of rough path theory](https://mlsanity.com/paper/2302.04586/) (2023)
- [Signature Methods in Stochastic Portfolio Theory](https://mlsanity.com/paper/2310.02322/) (2023)
- [Exact Gradients for Stochastic Spiking Neural Networks Driven by Rough Signals](https://mlsanity.com/paper/2405.13587/) (2024)
- [Sparse Signature Coefficient Recovery via Kernels](https://mlsanity.com/paper/2412.08579/) (2024)
- [ParallelFlow: Parallelizing Linear Transformers via Flow Discretization](https://mlsanity.com/paper/2504.00492/) (2025)

## Built on by (most cited first, 6 of 6)

- [Explicit and Effectively Symmetric Schemes for Neural SDEs on Lie Groups](https://mlsanity.com/paper/2509.20599/) (2025)
- [Novelty detection on path space](https://mlsanity.com/paper/2512.03243/) (2025)
- [Branched Signature Kernel Solvers for ODEs with rough Single-Trajectory signals](https://mlsanity.com/paper/2605.25826/) (2026)
- [Learning Manifold and Ito Dynamics with Branched Neural Rough Differential Equations](https://mlsanity.com/paper/2606.05272/) (2026)
- [Improving Function Space Flow Matching with Kernel Optimal Transport](https://mlsanity.com/paper/2609.38049/) (2026)
- [HyperNSDE: Personalized Neural SDEs for Joint Static-Longitudinal Clinical Data Generation](https://mlsanity.com/paper/2610.07383/) (2026)

## Abstract (arXiv)

Signature-based methods have recently gained significant traction in machine learning for sequential data. In particular, signature kernels have emerged as powerful discriminators and training losses for generative models on time-series, notably in quantitative finance. However, existing implementations do not scale to the dataset sizes and sequence lengths encountered in practice. We present pySigLib, a high-performance Python library offering optimised implementations of signatures and signature kernels on CPU and GPU, fully compatible with PyTorch's automatic differentiation. Beyond an efficient software stack for large-scale signature-based computation, we introduce a novel differentiation scheme for signature kernels that delivers accurate gradients at a fraction of the runtime of existing libraries.
