Papers
Topics
Authors
Recent
Search
2000 character limit reached

Random Fourier Signature Features (RFSF)

Updated 4 December 2025
  • Random Fourier Signature Features (RFSF) are a scalable, randomized approximation of the signature kernel that captures high-order sequence interactions via tensorized increments.
  • The method employs random Fourier features and projection variants (RFSF-DP and RFSF-TRP) to reduce quadratic computational complexity to linear time while ensuring rigorous error bounds.
  • Empirical results show that RFSF achieves competitive classification accuracy and can efficiently process large datasets with up to one million sequences using GPU acceleration.

Random Fourier Signature Features (RFSF) are scalable, randomized feature-map approximations to the signature kernel for sequence data. The signature kernel, derived from tensor algebras, offers powerful similarity measures for sequences by capturing higher-order interactions via its sequence signature. Exact computation of the signature kernel is computationally intensive, scaling quadratically with both sequence length and dataset size. RFSF employs random Fourier features (RFF), enabling a linear-time, unbiased approximation of the signature kernel with rigorous uniform error bounds. Further speedups and dimensionality reductions are achieved via projection-based variants Diagonal-Projection (RFSF-DP) and Tensor Random Projection (RFSF-TRP), supporting empirical scalability to datasets of up to one million sequences while retaining high statistical fidelity (Toth et al., 2023).

1. Signature Kernel Foundations

Let XX denote the input space (typically Rd\mathbb{R}^d) and k:X×XRk: X \times X \to \mathbb{R} a static positive-definite kernel with reproducing kernel Hilbert space (RKHS) H\mathcal{H} and feature map φ:XH\varphi: X \rightarrow \mathcal{H}, φ(x)=k(x,)\varphi(x) = k(x, \cdot). A discrete sequence x=(x1,,xL)XLx = (x_1, \ldots, x_L) \in X^L is "lifted" to the free tensor-algebra T(H)=m=0HmT(\mathcal{H}) = \bigoplus_{m=0}^\infty \mathcal{H}^{\otimes m} using the discrete signature map:

S(x)=i=1L1(1φ(xi+1)φ(xi))=(S0,S1,S2,),S(x) = \prod_{i=1}^{L-1} (1 \oplus \varphi(x_{i+1}) - \varphi(x_i)) = (S_0, S_1, S_2, \ldots),

where S0=1S_0 = 1 and each level Rd\mathbb{R}^d0 contains all Rd\mathbb{R}^d1-fold tensor products of increments in RKHS. The truncated signature kernel of depth Rd\mathbb{R}^d2 is defined as:

Rd\mathbb{R}^d3

An equivalent "kernel trick" expansion involves cross-differences Rd\mathbb{R}^d4 applied to base kernel Rd\mathbb{R}^d5, which results in computation cost Rd\mathbb{R}^d6 among Rd\mathbb{R}^d7 sequences of length Rd\mathbb{R}^d8 (Toth et al., 2023).

2. Random Fourier Signature Features: Construction and Theoretical Guarantees

RFSF approximates Rd\mathbb{R}^d9 with a finite-dimensional randomized map based on the Bochner theorem. For a continuous, translation-invariant k:X×XRk: X \times X \to \mathbb{R}0,

k:X×XRk: X \times X \to \mathbb{R}1

where k:X×XRk: X \times X \to \mathbb{R}2 is the spectral measure. Standard random Fourier features for k:X×XRk: X \times X \to \mathbb{R}3 are

k:X×XRk: X \times X \to \mathbb{R}4

with k:X×XRk: X \times X \to \mathbb{R}5 iid.

For RFSF, at each signature level k:X×XRk: X \times X \to \mathbb{R}6, independent RFF maps k:X×XRk: X \times X \to \mathbb{R}7 are drawn:

  • k:X×XRk: X \times X \to \mathbb{R}8 is a k:X×XRk: X \times X \to \mathbb{R}9 matrix of iid draws from H\mathcal{H}0,
  • H\mathcal{H}1,
  • The RFSF signature H\mathcal{H}2 accumulates tensorized increments H\mathcal{H}3.

The RFSF kernel is

H\mathcal{H}4

an unbiased estimator of H\mathcal{H}5; i.e., H\mathcal{H}6.

Uniform sup-norm approximation bounds are established under Bernstein conditions on H\mathcal{H}7 and compactness assumptions on H\mathcal{H}8 (Theorem 3.3), with probability tails (for H\mathcal{H}9)

φ:XH\varphi: X \rightarrow \mathcal{H}0

where φ:XH\varphi: X \rightarrow \mathcal{H}1.

3. Algorithmic Variants via Tensor Projections

The feature space φ:XH\varphi: X \rightarrow \mathcal{H}2 for φ:XH\varphi: X \rightarrow \mathcal{H}3 has dimension φ:XH\varphi: X \rightarrow \mathcal{H}4, which becomes prohibitive for moderate φ:XH\varphi: X \rightarrow \mathcal{H}5. Two scalable dimensionality reduction variants are introduced:

RFSF-DP (Diagonal-Projection):

  • Considers only "diagonal" tensor components, reducing feature size per level to φ:XH\varphi: X \rightarrow \mathcal{H}6,
  • Dynamic programming computes all levels in φ:XH\varphi: X \rightarrow \mathcal{H}7 time and φ:XH\varphi: X \rightarrow \mathcal{H}8 memory,
  • Error (Theorem 3.5) for fixed φ:XH\varphi: X \rightarrow \mathcal{H}9, φ(x)=k(x,)\varphi(x) = k(x, \cdot)0.

RFSF-TRP (Tensor Random Projection):

  • Applies Johnson–Lindenstrauss–style CP-rank-1 sketches using random Gaussian projections,
  • Each level yields a φ(x)=k(x,)\varphi(x) = k(x, \cdot)1-dimensional feature, for total φ(x)=k(x,)\varphi(x) = k(x, \cdot)2,
  • Time complexity φ(x)=k(x,)\varphi(x) = k(x, \cdot)3,
  • Tail bound (Theorem 3.7) is of hypercontractive type: φ(x)=k(x,)\varphi(x) = k(x, \cdot)4.
Variant Feature Dimension Time Complexity Memory
Full RFSF φ(x)=k(x,)\varphi(x) = k(x, \cdot)5 φ(x)=k(x,)\varphi(x) = k(x, \cdot)6 --
RFSF-DP φ(x)=k(x,)\varphi(x) = k(x, \cdot)7 φ(x)=k(x,)\varphi(x) = k(x, \cdot)8 φ(x)=k(x,)\varphi(x) = k(x, \cdot)9
RFSF-TRP x=(x1,,xL)XLx = (x_1, \ldots, x_L) \in X^L0 x=(x1,,xL)XLx = (x_1, \ldots, x_L) \in X^L1 x=(x1,,xL)XLx = (x_1, \ldots, x_L) \in X^L2

4. Empirical Performance and Scalability

RFSF and its variants are benchmarked on multivariate time-series classification from the UEA archive and large-scale datasets. For moderate-size datasets (x=(x1,,xL)XLx = (x_1, \ldots, x_L) \in X^L3, x=(x1,,xL)XLx = (x_1, \ldots, x_L) \in X^L4, x=(x1,,xL)XLx = (x_1, \ldots, x_L) \in X^L5):

  • RFSF-DP and RFSF-TRP achieve average accuracies x=(x1,,xL)XLx = (x_1, \ldots, x_L) \in X^L6 and x=(x1,,xL)XLx = (x_1, \ldots, x_L) \in X^L7, close to the full signature kernel (x=(x1,,xL)XLx = (x_1, \ldots, x_L) \in X^L8), and consistently match or outperform the signature kernel on certain tasks,
  • RFSF methods are x=(x1,,xL)XLx = (x_1, \ldots, x_L) \in X^L9–T(H)=m=0HmT(\mathcal{H}) = \bigoplus_{m=0}^\infty \mathcal{H}^{\otimes m}0 faster than exact quadratic-time signature kernels.

On large-scale tasks (T(H)=m=0HmT(\mathcal{H}) = \bigoplus_{m=0}^\infty \mathcal{H}^{\otimes m}1 up to T(H)=m=0HmT(\mathcal{H}) = \bigoplus_{m=0}^\infty \mathcal{H}^{\otimes m}2):

  • Only feature-based methods (RFSF-DP, RFSF-TRP, RWS, RFF) are feasible,
  • RFSF-TRP ranks first in accuracy (average T(H)=m=0HmT(\mathcal{H}) = \bigoplus_{m=0}^\infty \mathcal{H}^{\otimes m}3) against RWS (T(H)=m=0HmT(\mathcal{H}) = \bigoplus_{m=0}^\infty \mathcal{H}^{\otimes m}4) and RFF (T(H)=m=0HmT(\mathcal{H}) = \bigoplus_{m=0}^\infty \mathcal{H}^{\otimes m}5), and exhibits the lowest average rank,
  • For the SITS1M task (T(H)=m=0HmT(\mathcal{H}) = \bigoplus_{m=0}^\infty \mathcal{H}^{\otimes m}6), RFSF-TRP trains in approximately T(H)=m=0HmT(\mathcal{H}) = \bigoplus_{m=0}^\infty \mathcal{H}^{\otimes m}7 minutes (on GPU), compared to T(H)=m=0HmT(\mathcal{H}) = \bigoplus_{m=0}^\infty \mathcal{H}^{\otimes m}8 hours for RWS (Toth et al., 2023).

5. Limitations and Practical Considerations

The RFSF approximation guarantees hold only with high probability; the number of random features T(H)=m=0HmT(\mathcal{H}) = \bigoplus_{m=0}^\infty \mathcal{H}^{\otimes m}9 must be chosen sufficiently large relative to the desired error tolerance S(x)=i=1L1(1φ(xi+1)φ(xi))=(S0,S1,S2,),S(x) = \prod_{i=1}^{L-1} (1 \oplus \varphi(x_{i+1}) - \varphi(x_i)) = (S_0, S_1, S_2, \ldots),0 and truncation depth S(x)=i=1L1(1φ(xi+1)φ(xi))=(S0,S1,S2,),S(x) = \prod_{i=1}^{L-1} (1 \oplus \varphi(x_{i+1}) - \varphi(x_i)) = (S_0, S_1, S_2, \ldots),1. At higher S(x)=i=1L1(1φ(xi+1)φ(xi))=(S0,S1,S2,),S(x) = \prod_{i=1}^{L-1} (1 \oplus \varphi(x_{i+1}) - \varphi(x_i)) = (S_0, S_1, S_2, \ldots),2:

  • TRP’s tail exponent degrades as S(x)=i=1L1(1φ(xi+1)φ(xi))=(S0,S1,S2,),S(x) = \prod_{i=1}^{L-1} (1 \oplus \varphi(x_{i+1}) - \varphi(x_i)) = (S_0, S_1, S_2, \ldots),3,
  • DP’s error bound weakens polynomially in S(x)=i=1L1(1φ(xi+1)φ(xi))=(S0,S1,S2,),S(x) = \prod_{i=1}^{L-1} (1 \oplus \varphi(x_{i+1}) - \varphi(x_i)) = (S_0, S_1, S_2, \ldots),4.

Other considerations include:

  • Choice of static feature embedding and truncation depth S(x)=i=1L1(1φ(xi+1)φ(xi))=(S0,S1,S2,),S(x) = \prod_{i=1}^{L-1} (1 \oplus \varphi(x_{i+1}) - \varphi(x_i)) = (S_0, S_1, S_2, \ldots),5 (with S(x)=i=1L1(1φ(xi+1)φ(xi))=(S0,S1,S2,),S(x) = \prod_{i=1}^{L-1} (1 \oplus \varphi(x_{i+1}) - \varphi(x_i)) = (S_0, S_1, S_2, \ldots),6–S(x)=i=1L1(1φ(xi+1)φ(xi))=(S0,S1,S2,),S(x) = \prod_{i=1}^{L-1} (1 \oplus \varphi(x_{i+1}) - \varphi(x_i)) = (S_0, S_1, S_2, \ldots),7 typically sufficient),
  • Randomization/variants of RFF (orthogonal, quasi-Monte-Carlo, leverage-score reweighting) and alternative embeddings are viable,
  • All algorithms are efficiently vectorizable on GPUs (e.g., with the KSig library),
  • Memory usage: S(x)=i=1L1(1φ(xi+1)φ(xi))=(S0,S1,S2,),S(x) = \prod_{i=1}^{L-1} (1 \oplus \varphi(x_{i+1}) - \varphi(x_i)) = (S_0, S_1, S_2, \ldots),8 for DP, S(x)=i=1L1(1φ(xi+1)φ(xi))=(S0,S1,S2,),S(x) = \prod_{i=1}^{L-1} (1 \oplus \varphi(x_{i+1}) - \varphi(x_i)) = (S_0, S_1, S_2, \ldots),9 for TRP,
  • Practical recommendations: S0=1S_0 = 10–S0=1S_0 = 11 for S0=1S_0 = 12, TRP for very large S0=1S_0 = 13 and low memory, DP for moderate S0=1S_0 = 14, full RFSF if S0=1S_0 = 15 is affordable.

6. Extensions and Significance

RFSF provides a scheme to approximate infinite-dimensional sequence similarity using finite-dimensional, tractable random features. Computational gains are realized by reducing the complexity from S0=1S_0 = 16 to S0=1S_0 = 17, without sacrificing the uniform error concentration properties of classical RFFs. The framework is extensible to improved random feature distributions (e.g., orthogonal/quasi-Monte-Carlo, leverage-score-based sampling) and can employ alternative kernel randomizations. Streaming implementations and GPU vectorization are straightforward given the structure of the algorithms. Empirically, RFSF achieves state-of-the-art or near state-of-the-art accuracy while supporting applications to datasets unattainable by competing kernel methods (Toth et al., 2023).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Random Fourier Signature Features (RFSF).