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

Fast Methods for Kernel-Based Text Analysis

Taku Kudo, Yuji MatsumotoACL 2003

Abstract

This paper introduces two novel algorithms, Polynomial Kernel Inverted (PKI) and Polynomial Kernel Expanded (PKE), designed to drastically accelerate Support Vector Machines (SVMs) using polynomial kernels for Natural Language Processing (NLP). By leveraging data mining techniques to explicitly expand and prune feature combinations, the authors achieve speedups of 30 to 300 times over standard methods with virtually no loss in accuracy.

Introduction

In NLP, high accuracy often depends on the combination of features—for example, analyzing both a "head" word and its "modifier" simultaneously. While SVMs with polynomial kernels are excellent at implicitly capturing these combinations, they are computationally expensive during inference. A standard SVM must compare each new input against thousands of support vectors, making it impractical for real-time applications. This research proposes methods to maintain kernel-level accuracy while matching the speed of linear classifiers.

Methodology

The authors propose two distinct approaches to optimize the decision function:

Polynomial Kernel Inverted (PKI)

PKI extends the "Inverted Index" concept used in search engines. Instead of calculating dot products for every support vector, PKI pre-compiles a table mapping each feature to the support vectors containing it. This is highly effective in sparse feature spaces common in text analysis.

Polynomial Kernel Expanded (PKE)

PKE reformulates the polynomial kernel as a linear combination of all possible feature subsets. To manage the exponential growth of subsets, the authors use Basket Mining (a modified PrefixSpan algorithm) to identify only the "effective" feature combinations—those with weights high enough to influence classification. These mined combinations are stored in a TRIE structure, allowing for rapid classification independent of the number of support vectors.

Mapping feature subsets to a TRIE structure for efficient classification.

Experimental Results

The researchers evaluated their methods on three standard NLP benchmarks: English BaseNP Chunking (EBC), Japanese Word Segmentation (JWS), and Japanese Dependency Parsing (JDP).

Speed and Efficiency

PKE demonstrated substantial performance gains, achieving speedups of 30x to 300x compared to the baseline (PKB). For example, in the Japanese Word Segmentation task, the baseline took 0.8535 seconds per sentence, while PKE reduced this to just 0.0028 seconds.

Performance of PKE on the Japanese Word Segmentation (JWS) task.

Accuracy and Pruning

A key finding is the effectiveness of pruning. By setting a threshold ($\sigma$) and ignoring feature combinations with negligible weights, the computational load is significantly reduced without hurting performance. In tasks like Dependency Parsing, pruning infrequent combinations even improved accuracy by filtering out noise that could cause overfitting.

Conclusion

The PKE method successfully bridges the gap between the accuracy of kernel methods and the speed of linear models. By transforming implicit kernel operations into explicit, optimized feature lookups, it enables the use of powerful polynomial kernels in high-throughput NLP systems. Future research may apply similar mining logic to more complex structures like String or Tree kernels.

Summary updated

BibTeX
@inproceedings{kudo2003fast,
  author = {Taku Kudo and Yuji Matsumoto},
  title = {{Fast Methods for Kernel-Based Text Analysis}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2003},
  doi = {10.3115/1075096.1075100},
}
Figure