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

Factored sequence kernels

Pierre Mahé, Nicola Cancedda

Abstract

This paper introduces the "factored sequence kernel," an extension of traditional sequence kernels designed to handle symbols with multiple representations, such as words possessing a surface form, a lemma, and a part-of-speech (POS) tag. By integrating these multiple dimensions early in the kernel computation, the method efficiently generates rich, cross-dimensional "composite" features. Our results demonstrate that this approach leads to superior classification performance compared to standard linear combinations of individual kernels, while also offering improved computational complexity.

Introduction

In natural language processing (NLP) and machine learning, kernel methods like Support Vector Machines (SVMs) are frequently employed to classify structured data. A popular tool for this is the gap-weighted sequence kernel, which measures similarity by counting shared subsequences while penalizing gaps between elements. However, words in a sentence are rarely one-dimensional strings; they are represented by multiple linguistic "factors" such as surface form ("running"), lemma ("run"), and POS tag ("verb").

The standard approach to handling these multiple representations is to compute a separate sequence kernel for each factor and linearly combine them. However, this "late integration" only concatenates feature spaces and fails to capture cross-dimensional patterns, such as a specific surface word followed by a specific POS tag. This paper addresses the challenge of creating a kernel that captures these rich, mixed-factor patterns without an explosion in computational complexity.

Methodology

The authors build upon the standard gap-weighted subsequence kernel, which compares sequences by counting matching subsequences of length $n$ with a decay factor $\lambda$ for gaps. To handle multiple factors, they propose the Factored Kernel. Instead of requiring exact matches between symbols, they utilize a "soft-matching" approach via a base symbol-level kernel that calculates similarity between multi-dimensional words by summing matches across individual factors, weighted by a parameter $w_d$.

Mathematically, plugging this base kernel into a convolution kernel framework implicitly maps the data into a feature space of composite subsequences. While a standard linear combination counts subsequences of surface forms, lemmas, and POS tags separately, the factored kernel counts subsequences drawn from the union of all alphabets. This allows for matching sequences where elements are drawn from different factor types (e.g., Surface -> POS -> Lemma). Surprisingly, this richer representation is more efficient: while linearly combining $p$ kernels scales at $O(np|x||y|)$, the factored kernel scales at $O((n+p)|x||y|)$.

Experimental Setup

The proposed method was evaluated using the Europarl Corpus, with 5,000 training and 2,000 test sentences. The task was an artificial binary classification designed to mimic word misorderings in Statistical Machine Translation. The goal was to distinguish "good" (normal) sentences from "bad" sentences, where adjacent words were swapped with a probability of 0.16. Three factors were used: surface form, lemma, and POS tag.

Results and Discussion

The kernels were evaluated using an SVM, optimizing for subsequence length ($n$) and gap penalty ($\lambda$). As shown in Figure 1, POS tags were the most informative individual factor, achieving 89.7% accuracy at $n=2$ and $\lambda=0.001$.

Performance of individual factors across varying subsequence lengths (n) and gap penalties (lambda).

When combining factors, the factored kernel consistently outperformed the linear combination baseline. As illustrated in Figure 2, the factored kernel achieved a peak accuracy of 92.1%, compared to 91.2% for the best linear combination.

Comparison of combined kernel (linear combination) vs. factored kernel across different weight vectors.

These results highlight two key insights:

  1. Early integration beats late integration: Combining linguistic factors at the symbol-matching level provides access to a vastly richer feature space of composite patterns.
  2. Efficiency: The mathematical formulation allows for exploring an exponentially larger feature space while reducing asymptotic time complexity.

Conclusion

The factored sequence kernel provides a robust framework for incorporating multi-dimensional symbol representations into sequence classification. While the current evaluation relies on an artificial benchmark, the results clearly demonstrate the benefits of composite subsequences. Future work will focus on integrating these kernels into real-world downstream NLP tasks, such as machine translation evaluation, and incorporating higher-level morphological and semantic features.

Summary updated

BibTeX
@inproceedings{mahe2008factored,
  author = {Pierre Mahé and Nicola Cancedda},
  title = {{Factored sequence kernels}},
  booktitle = {ESANN},
  year = {2008},
  url = {https://openreview.net/forum?id=hvS4TC_gIz},
}
Figure