Skip to content

Background

tensordev implements published algorithms and learned from other open-source signature libraries. This page lists both, describes the technical note in the repository, and states the license.

Acknowledgements

tensordev is an independent implementation, but it was influenced by several excellent open-source projects in the signature-computation ecosystem:

  • iisignature: a gold-standard reference for efficient signature and logsignature computation.
  • signatory: inspired the fused Horner-style evaluation used for efficient tensor exponential / signature development routines.
  • signax: provided the initial motivation for building a JAX-native tensor algebra and signature package.
  • pySigLib: a high-performance CPU/GPU library for signatures and signature kernels, whose CUDA and JAX support provides an important contemporary reference point for accelerator-aware signature computation.
  • sigkernel: inspired parts of the signature-kernel API and the second-order finite-difference stencil used for the standard signature kernel.
  • high-order-sigkernel: inspired the predictor-corrector schemes for higher-order signature-kernel PDE systems, which are adapted and further developed in this package.
  • pathsig: introduced the word-parallel approach to GPU signature computation over prefix-closed word sets.

On this site, the Horner-style development is the streaming step of path signatures and the operation of the native CPU kernels; the signature-kernel API, the finite-difference stencil and the higher-order schemes are on Signature kernels; the word-parallel approach is the alpha wordwise GPU execution.

References

The main theoretical background for the algorithms implemented here is:

Technical note

The technical note by P. P. Hager and L. Pelizzari, A Technical Note on Signature Computations with Bidegree Truncation, Coordinate Changes, and Symmetrization (2026), documents the data layouts and algorithms behind the bidegree, shear and partially symmetrized cores. Its LaTeX source is in academia/bidegree. The note covers

  • split alphabets \(\mathcal{A} = \mathcal{A}' \,\dot\cup\, \mathcal{A}''\), the bidegree \((|w|_{\mathcal{A}'}, |w|_{\mathcal{A}''})\) of a word \(w\), and bidegree truncation;
  • the shear coordinate transformation and partial symmetrization, under which adjacent letters of \(\mathcal{A}''\) commute, both from Hager and Pelizzari, Expected signatures via partial integration, coordinate change and symmetrization;
  • a contiguous array layout: a tensor of bidegree \((n, m)\) is stored as dense blocks \((\mathbb{R}^{d'})^{\otimes n} \otimes (\mathbb{R}^{d''})^{\otimes m}\), one for each placement of the \(n\) letters from \(\mathcal{A}'\) among the \(n + m\) positions, with \(d' = |\mathcal{A}'|\), \(d'' = |\mathcal{A}''|\) and the placements ranked colexicographically along an extra axis. For partially symmetrized tensors, one colexicographically ranked axis of multiset placements replaces the placement axis and the \(\mathcal{A}''\) axes, and only \((\mathbb{R}^{d'})^{\otimes n}\) stays dense. Concatenation and shuffle products then act on the rank axis and permute the dense axes;
  • these operations in standard and shear coordinates, for ordered and partially symmetrized tensors;
  • how the word-parallel signature computation of pathsig works with the ordered and partially symmetrized bidegree layouts.

The cores are described on Tensor algebra, the word-parallel kernels under Wordwise GPU execution.

License

tensordev is released under the Apache License 2.0. See the license for details.

The native CPU kernels and the wheels that contain them are under the same license.