SignatureTensors.jl
SignatureTensors.jl is a Julia package for computing and manipulating signature tensors of paths and membranes, built on top of the OSCAR computer algebra system.
Version: 1.0.0.
Mathematical Background
Path signatures, introduced by Terry Lyons in the framework of rough path theory (Lyons, 1998; Lyons and Qian, 2002; Lyons et al., 2007), provide a canonical and robust way to encode paths as algebraic objects via iterated integrals. This viewpoint has become fundamental in modern stochastic analysis and has been extensively developed in the literature, notably in the work of (Friz and Victoir, 2010). Further foundational and comprehensive treatments can be found in the monographs of (Lyons et al., 2007), and (Friz and Hairer, 2020). Their structure is deeply connected to classical results on iterated integrals due to (Chen, 1957; Chen, 1977). Beyond their analytical origins, signatures have found applications in a wide range of areas, including mathematical finance (Cuchiero et al., 2026), machine learning (Chevyrev and Kormilitzin, 2026), and topological data analysis (Chevyrev et al., 2018).
Overview
SignatureTensors.jl provides a general computational framework for working with truncated signatures of paths and membranes. It is designed to operate over both standard Julia numerical types (such as Float64, Float32, and other native floating-point formats) and exact algebraic structures in the OSCAR computer algebra system, including rings and polynomial rings. This dual design enables fast numerical experimentation as well as rigorous symbolic computation, leveraging OSCAR’s infrastructure for ring arithmetic, Gröbner bases, and Lie-theoretic methods.
The package supports:
- Path signatures — iterated-integrals signatures of piecewise linear, polynomial, spline, axis, and monomial paths over arbitrary OSCAR rings.
- Membrane signatures — two-parameter (id-)signatures of piecewise bilinear and polynomial membranes, extending the one-parameter theory (Lotter and Schmitz, 2026).
- Tensor learning — recovery of paths from their signature tensors via polynomial systems and Gröbner bases, including the efficient algorithm from (Schmitz, 2025).
- Lie group barycenters — computation of Fréchet means on the free nilpotent Lie group $G_{d,k}$, with several algorithm options including BCH-based and polynomial map approaches.
- Algebraic operations — group multiplication, inverse, logarithm, exponential, and graded projections on truncated tensor algebra elements.
Installation
] activate .
] instantiateThen load the package alongside OSCAR:
using Oscar
using SignatureTensorsQuick Start
using Oscar, SignatureTensors
# Define a truncated tensor algebra: dimension d=2, truncation level k=3
d, k = 2, 3
T = TruncatedTensorAlgebra(QQ, d, k)
# Signature of the canonical axis path
C=sig(T, :axis)
# Signature of a polynomial path t ↦ (t + 2t², 3t + 4t²)
S=sig(T, :pwln, coef = QQ[1 2; 3 4])
# Path recovery from a signature tensor
recover(S,core=C)Documentation
Authors
| Name | Affiliation | |
|---|---|---|
| Gabriel Riffo | TU Berlin | riffo@tu-berlin.de |
| Leonard Schmitz | TU Berlin | lschmitz@math.tu-berlin.de |
Funded by the Deutsche Forschungsgemeinschaft (DFG) — CRC/TRR 388 "Rough Analysis, Stochastic Dynamics and Related Fields" — Project A04 and B01, 516748464.