pathsig: A GPU-Accelerated Library for Truncated and Projected Path Signatures
Tobias Nygaard

TL;DR
pathsig is a GPU-accelerated library for computing and differentiating path signatures efficiently, enabling scalable large-scale machine learning with sequential data.
Contribution
it introduces a PyTorch-native, CUDA-based library that computes path signatures with high throughput and supports projections and anisotropic truncation for improved efficiency.
Findings
achieves 10-30x speedup over existing libraries
up to 4-10x faster training with backpropagation
supports projections and anisotropic truncation for compact representations
Abstract
Path signatures provide a rich representation of sequential data, with strong theoretical guarantees and good performance in a variety of machine-learning tasks. While signatures have progressed from fixed feature extractors to trainable components of machine-learning models, existing libraries often lack the required scalability for large-scale, gradient-based learning. To address this gap, this paper introduces pathsig, a PyTorch-native library that computes path signatures directly in the word basis. By using CUDA kernels to update signature coefficients in parallel over prefix-closed word sets, pathsig achieves high GPU throughput and near-minimal peak memory. Compared with other libraries, pathsig achieves 10-30x speedups for computation of truncated signatures and up to 4-10x speedups in training that require backpropagation through the signature. Beyond regular truncation,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGraph Theory and Algorithms · Topic Modeling · Natural Language Processing Techniques
