English

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

Machine Learning 2025-09-16 v1 Mathematical Software Machine Learning

Abstract

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.

Keywords

Cite

@article{arxiv.2509.10613,
  title  = {pySigLib -- Fast Signature-Based Computations on CPU and GPU},
  author = {Daniil Shmelev and Cristopher Salvi},
  journal= {arXiv preprint arXiv:2509.10613},
  year   = {2025}
}
R2 v1 2026-07-01T05:34:12.516Z