---
title: Length-Normalized Path Signature (LNPS)
url: https://www.emergentmind.com/topics/length-normalized-path-signature-lnps
type: topic
---

# Length-Normalized Path Signature (LNPS)

The length-normalized path signature (LNPS) is a mathematical descriptor for characterizing continuous or discrete paths, especially in applications requiring invariance to scale and, via linear combination, to rotation. Defined in terms of iterated integrals and normalized by the total path length, LNPS provides a compact, discriminative, and theoretically grounded summary of path geometry. Its principal applications include online signature verification and, more broadly, the analysis of planar paths with bounded variation. LNPS builds upon the classical path signature framework, with normalization yielding desirable invariance and stability properties and facilitating principled comparisons and learning in pattern recognition contexts [1705.06849], [2009.13082].

## 1. Formal Definition of the Path Signature and LNPS

Let $\gamma\colon[0,T]\rightarrow\mathbb{R}^d$ be a continuous path of bounded variation. The (truncated) path signature to level $m$ is defined via iterated integrals as
\[
S(\gamma)|_m = [\,S^0;\; S^1;\; S^2;\; …;\; S^m\,]
\]
where $S^0(\gamma) = 1$ and, for any multi-index $(i_1, \ldots, i_k)$ with $i_j \in \{1, \ldots, d\}$,
\[
S^k_{i_1\dots i_k}(\gamma) = \int_{0 < t_1 < \ldots < t_k < T} d\gamma^{i_1}(t_1)\ldots d\gamma^{i_k}(t_k).
\]
For the discrete case with increments $\Delta\gamma_n = \gamma(t_n) - \gamma(t_{n-1})$, iterated sums approximate the integrals, with dynamic programming used to reduce complexity via Chen's identity.

Length-normalization uses the total path length, $\ell(\gamma) = \int_0^T \|\gamma'(t)\|dt$ in the continuous case or $\ell(\gamma) = \sum_{n=1}^N \|\Delta\gamma_n\|$ for sampled data. The level-$k$ component of the LNPS is
\[
\mathrm{LNPS}^k_{i_1\dots i_k}(\gamma) = S^k_{i_1\dots i_k}(\gamma)/\ell(\gamma)^k,
\]
leading to the overall length-normalized path signature up to level $m$:
\[
S^{\mathrm{LN}}(\gamma)|_m = [\,1;\; S^1/\ell;\; S^2/\ell^2;\; …;\; S^m/\ell^m\,]^T.
\]
This construction yields a descriptor that is scale-invariant by design [1705.06849].

## 2. Theoretical Invariance Properties

### Scale Invariance

Normalization by $\ell(\gamma)^k$ guarantees invariance to scaling of the path. Specifically, for any scalar $c > 0$, $S^k(c\gamma) = c^kS^k(\gamma)$ and $\ell(c\gamma) = c \ell(\gamma)$. Consequently,
\[
\mathrm{LNPS}^k(c\gamma) = S^k(c\gamma)/[\,\ell(c\gamma)\,]^k = S^k(\gamma)/[\,\ell(\gamma)\,]^k = \mathrm{LNPS}^k(\gamma).
\]

### Rotation Invariance (Via Linear Combinations)

For $R \in SO(d)$, $S^k(R\gamma) = (R \otimes \cdots \otimes R)S^k(\gamma)$, ensuring that any contraction with an $SO(d)$-invariant multilinear form yields a rotation-invariant scalar. In $d=2$, the antisymmetric second-order combination
\[
A(\gamma) = \frac{1}{2}(S^2_{12} - S^2_{21})
\]
is rotation-invariant and corresponds to the signed area enclosed by $\gamma$ [1705.06849].

## 3. Computational Methodology and Complexity

LNPS is computed for each window of length $W$ along the path. At each center index $n$, the local path $\gamma_n$ given by $\gamma_{n-w},\ldots,\gamma_{n+w}$ is processed to compute all $S^k$ up to $m$, normalized by $\ell(\gamma_n)^k$, and each channel is z-normalized across the full sample. For each window, naive complexity is $O(W^k d^k)$, but application of Chen's identity reduces this to $O(m d^m)$ per window. Total cost per signatures of length $N$ is $O(N m d^m)$. For user verification tasks sampled at 100 Hz, typical parameters are $d=2$, $m=2$ or $3$, $W\approx9-13$, permitting real-time computation [1705.06849].

## 4. LNPS Asymptotics and Path Length Recovery

Theoretical work on the normalized signature, particularly by Boedihardjo and Geng, establishes that, for planar paths of bounded variation, the path length $L$ can be recovered asymptotically from the normalized signature:
\[
L = \lim_{n\to\infty} \Big\| n! S_n(\gamma) \Big\|_\pi^{1/n},
\]
where $S_n(\gamma)$ is the $n$-th level iterated integral and $\|\cdot\|_\pi$ is the projective tensor norm [2009.13082]. This isometry property holds whenever the path $\gamma$ is tree-reduced, i.e., possesses no nontrivial tree-like subarcs. The proof uses development into ${\rm SL}_2(\mathbb{R})$, with the key technical component being the decoupling of the associated ODEs into radial and angular dynamics and the demonstration that, under appropriate angle-bound conditions, the signature growth asymptotically matches the true path length.

## 5. Integration into RNN-based Signature Verification

LNPS descriptors are used as input sequences for recurrent neural networks in online signature verification. Specifically, a two-layer gated recurrent unit (GRU, 128 units each) is followed by a 64-dimensional fully connected layer to yield the embedding $G(D) \in \mathbb{R}^{64}$.

Training employs a combination of triplet loss (to push distances between forgeries and genuine signatures above a margin $C=1$ while tightening intra-class distances) and a center loss (to cluster each client's signatures around a learned center $c_i$), with the final loss:
\[
L = L_t + \lambda_c L_c + \lambda_{\text{decay}} \|W\|^2
\]
where $\lambda_c=0.5$, $\lambda_{\text{decay}}=10^{-4}$, and $L_t$, $L_c$ as specified in [1705.06849]. Backpropagation operates to maintain both inter-class separation and intra-class compactness.

## 6. Empirical Performance and Applications

In dynamic time warping (DTW) frameworks, LNPS achieves the following equal error rates (EER) on the SVC-2004 dataset:

| LNPS Level     | EER (%)     |
|----------------|-------------|
| Level 1 (I¹/ℓ) | 8.1–8.7     |
| Level 2 (I²/ℓ²)| 5.4–6.6     |
| Level 4 (I⁴/ℓ⁴)| 4.98 (best) |
| Rot-inv up to 4| 5.26        |

When combined with RNNs in a metric learning setup and using $N=10$ genuine templates, $W=9$, $m=2$, and joint training on SVC-2004+MCYT-100, state-of-the-art EER of 2.37% is obtained. Notably, using only $(\Delta x, \Delta y)$ as input without LNPS degrades performance to $\sim9.0\%$ EER. Joint training with additional clients further lowers EER, evidencing the benefit of LNPS as a compact, (length-)stable, and discriminative path representation [1705.06849].

## 7. Structural and Geometric Significance

LNPS embeds rich geometric information by capturing all low-order polynomial features of the path, with length-normalization eliminating sensitivity to speed or global scale. The ability to extract invariant scalars (e.g., signed area) via linear contraction with invariant tensors is especially useful in applications where orientation variability is significant. The length-recovery asymptotic further connects LNPS to foundational questions in rough path theory and geometry, such as the classification and measurement of curves in terms of their signatures [2009.13082]. This interplay establishes LNPS as a theoretically robust and practically effective tool in computational pattern analysis.

Source: https://www.emergentmind.com/topics/length-normalized-path-signature-lnps