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

Polynomial to Linear: Efficient Classification with Conjunctive Features

Naoki Yoshinaga, Masaru KitsuregawaEMNLP 2009

The trade-off between model complexity and real-time performance is a central challenge in Natural Language Processing (NLP). While discriminative models like Support Vector Machines (SVMs) and Log-Linear Models (LLMs) achieve high accuracy by leveraging conjunctive features—complex combinations of primitive features—they often suffer from significant computational overhead during inference. This paper, originally presented at EMNLP 2009, proposes a novel method to bridge this gap by converting polynomial-time classification into a near-linear search problem.

The Challenge of Conjunctive Features

In tasks like dependency parsing, the feature space is vast. Conjunctive features (e.g., combining a word with its part-of-speech tag and its neighbor's tag) capture nuanced linguistic patterns but require summing weights across a massive number of combinations. Even with regularization techniques like $L_1$, the "heavy-tailed" nature of language data means many features still appear frequently enough to slow down processing. The authors sought a way to make these high-order classifications nearly as fast as simple linear ones.

Methodology: The Feature Sequence Trie (fstrie)

The core innovation is the Feature Sequence Trie (fstrie), which treats weight calculation as a search problem rather than a pure summation. Instead of calculating every feature combination from scratch, the system retrieves precomputed partial weights from a specialized data structure.

The process involves several key steps:

  1. Trie Construction: The classifier is run on a large raw corpus to identify common feature vectors ("source feature vectors").
  2. Frequency Sorting: Features within each vector are sorted by their frequency in the training data. This ensures that common, stable features appear at the beginning of the sequence, maximizing "prefix sharing" in the trie.
  3. Precomputation: Each node in the trie stores a partial weight sum for the specific prefix of features leading to it.
  4. Efficient Inference: During classification, the system sorts the input features and searches the fstrie for the longest matching prefix. It retrieves the precomputed weight and only adds the remaining rare features manually.
Figure 5: Construction of the feature sequence trie from source feature vectors.

To manage memory, a greedy pruning algorithm removes nodes with low "utility scores"—those that are rarely accessed or save little computation relative to their memory footprint.

Experimental Setup and Results

The method was evaluated on a Japanese dependency parsing task using the Kyoto Text Corpus and Mainichi news articles. The fstrie was built using feature vectors extracted from over 3.25 million sentences. The researchers also tested the model on Japanese Weblog Feeds to assess out-of-domain robustness.

The results demonstrated a dramatic improvement in throughput:

  • Speedup: The fstrie approach accelerated SVM classifiers by a factor of 10.7 and LLM classifiers by 11.6.
  • Throughput: The optimized system achieved a parsing speed of 14,937 sentences per second.
  • Accuracy: These gains came with virtually no loss in accuracy (90.84% for SVM and 90.71% for LLM).
Figure 6: Average classification time vs. fstrie size, showing rapid speedup even with small trie sizes across different polynomial degrees (d).

A key insight from the evaluation was the diminishing returns of trie size. Due to Zipf's Law, a very small trie (under 1MB) captures the most frequent feature combinations, providing the bulk of the speedup. Even on out-of-domain weblog data, the speedup remained significant (4.4x), suggesting that core linguistic feature combinations are relatively stable across domains.

Conclusion

By exploiting the power-law distribution of linguistic features, the fstrie method allows complex models to operate at speeds comparable to simple linear classifiers. This approach effectively bypasses the computational bottleneck of polynomial kernels and high-order feature combinations, making state-of-the-art accuracy feasible for high-throughput, real-time applications.

Summary updated

BibTeX
@inproceedings{yoshinaga2009polynomial,
  author = {Naoki Yoshinaga and Masaru Kitsuregawa},
  title = {{Polynomial to Linear: Efficient Classification with Conjunctive Features}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2009},
}
Figure