NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Iterated Integrals as Lexical Fingerprints: Path Signature Embeddings for Lexical Similarity

Raj Shekhar Singh, Pratham AgarwalarXiv 2026

TL;DR

This paper introduces a novel way to build sentence embeddings using path signatures—a mathematical tool from rough path theory that treats a sentence as a geometric trajectory through word-vector space. Unlike standard pooling methods that ignore word order or deep learning models that act as "black boxes," path signatures provide an interpretable, mathematically rigorous way to capture both sequential structure and fine-grained lexical similarity (like spelling and character-level edits).

What Problem Does This Paper Address?

In the world of Natural Language Processing (NLP), sentence embeddings usually aim for semantic similarity—understanding that "the movie was great" and "the film was excellent" mean the same thing. However, we often lose track of lexical similarity—the surface-level details like word order, spelling, and morphological variations.

Current methods fall into two extremes:

  1. Shallow Pooling: Averaging word vectors (like Word2Vec) is fast but "permutation invariant." It treats a sentence as a bag of words, meaning "dog bites man" and "man bites dog" result in the same embedding.
  2. Deep Transformers: Models like BERT or MiniLM are powerful but computationally heavy and uninterpretable. Their high-dimensional latent spaces make it hard to see exactly why two sentences are considered similar on a surface level.

The authors seek a "middle ground": a representation that is sequentially aware, mathematically tractable, and explicitly sensitive to lexical structure.

Methods

The authors propose using the path signature, a construct from rough path theory. Here’s the workflow:

  • Path Construction: A sentence is mapped to a sequence of Word2Vec waypoints. By connecting these points, the sentence becomes a piecewise linear path in continuous vector space.
  • Iterated Integrals: The path signature is calculated as a collection of iterated integrals of this path. Intuitively, these integrals capture the "shape" and "area" of the trajectory. Depth 1 captures the total displacement (linear shifts), while Depth 2 and beyond capture higher-order interactions and the sequence of intersections (word order).
  • Ablation & Compression: The researchers tested different Word2Vec dimensions (50 to 400) and signature depths (1 to 3). Because signatures grow combinatorially in size, they used PCA to see if the essential lexical information could be compressed.

Datasets

  • Training: The Word2Vec models were trained on a 100,000-sentence stream from BookCorpus, merged with the training split of STS-12.
  • Evaluation: The representations were evaluated on the STS-12 (Semantic Textual Similarity) benchmark.
  • Baselines: The method was compared against standard Mean Pooling and pre-trained deep models including MiniLM, Qwen, and Text2Vec.

Key Insights and Ideas

  • Geometric Lexical Tracking: The path signature acts as a "mathematical lens." Because character-level edits (like typos) fundamentally alter the trajectory of the word vector path, the signature naturally picks up on these changes where semantic models might abstract them away.
  • The "Sweet Spot" of Depth 2: While Depth 1 signatures are great at capturing character-level shifts, they struggle with word reordering. Depth 2 signatures recover this sensitivity by encoding "interaction areas," effectively balancing character-level and word-level lexical similarity.
  • Extreme Redundancy: One of the most surprising findings was that lexical variance is concentrated in a very compact subspace. Reducing Depth 2 signatures to just 10% of their principal components (via PCA) barely hurt performance and, in some cases, even improved correlations with word-level metrics.
  • Order Matters: Unlike average pooling, which has zero sensitivity to word order, path signatures structurally preserve positional information. Shuffling a sentence changes the "signed area" of the path, which the signature explicitly quantifies.

Key Results

The path signature approach significantly outperformed both shallow pooling and deep learning baselines in aligning with lexical string metrics like Levenshtein distance.

As shown in the Pearson correlation results (Table 1), average pooling and Transformer models (like MiniLM) almost completely fail to capture character-level edit distances, with correlations near zero. In contrast, signature embeddings at Depth 1 jump to a correlation of 0.367 for Levenshtein distance.

Table 1: Pearson correlation of embedding distances against five lexical string metrics across varying Word2Vec dimensions and signature configurations.

Further analysis using Spearman (Table 2) and Kendall $\tau$ (Table 3) correlations confirmed these trends. Specifically, Depth 2 signatures achieved a Word Jaccard correlation of 0.690, surpassing MiniLM's 0.608, proving that incorporating sequential interactions enhances lexical sensitivity.

Table 2: Spearman correlation of embedding distances against five lexical string metrics across varying Word2Vec dimensions and signature configurations.

Limitations and Future Work

  • Scalability: The "combinatorial explosion" of the signature feature space is a major hurdle. While Depth 2 is manageable, Depth 3 and beyond quickly become computationally prohibitive for high-dimensional word vectors.
  • Semantic Gap: The authors are clear that these are lexical fingerprints, not semantic ones. They don't replicate the abstract generalization of deep contextual models (e.g., knowing that "happy" and "joyful" are related).
  • Future Directions: The authors suggest exploring hybrid architectures that combine the sequential fidelity of path signatures with the semantic depth of attention-based Transformers.

Summary updated

BibTeX
@misc{singh2026iterated,
  author = {Raj Shekhar Singh and Pratham Agarwal},
  title = {{Iterated Integrals as Lexical Fingerprints: Path Signature Embeddings for Lexical Similarity}},
  year = {2026},
  eprint = {2610.41855},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.41855},
}
Figure