Kernel methods are powerful for structured data like parse trees, but they often face a "kernel bottleneck" where prediction costs scale linearly with the number of support vectors. This paper introduces a framework to accelerate online learning by using Mapping Kernels and a compact DAG-based model representation, reducing training time on a 4-million-example dataset from over a week to just 14 hours.
The Kernel Bottleneck in Structured Data
In Natural Language Processing (NLP), tree kernels allow models to handle massive feature spaces implicitly. However, classifying a new example requires comparing it against many previously seen examples. For complex structures like trees, these similarity calculations are slow and redundant. As datasets grow to millions of examples, standard kernel-based approaches become computationally prohibitive.
Proposed Method: Mapping Kernels and DAGs
The authors propose a two-pronged solution using the Mapping Kernels (MKs) framework to eliminate redundant computations:
- Theoretical Factorization: Mapping Kernels define equivalence classes for substructures. If multiple trees share a subtree, the local kernel computation for that subtree is performed only once.
- Compact DAG Representation: Instead of a list of trees, the model is represented as a forest of annotated Directed Acyclic Graphs (DAGs). Identical subtrees are merged into single nodes, and inclusion relationships are exploited for further compression.
Each node in the DAG is annotated with a frequency value, allowing the score function to be computed by iterating over unique substructures rather than individual examples. This intermediate representation bridges the gap between memory-intensive dual representations and infinite-dimensional primal representations.
Large-Scale Evaluation
The approach was evaluated on a massive Semantic Role Labeling (SRL) task using the PropBank/PennTree bank 2 corpus. The task involved argument boundary detection across approximately 4.1 million trees containing nearly 70 million nodes—a scale typically impossible for standard kernel SVMs.
Key Results
The DAG-optimized Voted Perceptron demonstrated significant improvements in both speed and accuracy:
- Massive Speedup: Training time dropped from over a week to just 14 hours.
- Memory Efficiency: The DAG representation reduced the model's node count by a factor of 4.2x.
- Superior Accuracy: By training on the full 4.1M dataset, the Perceptron achieved an F1 score of 0.831, outperforming an SVM trained on a smaller 1M-example subset (F1 0.805).
Conclusion
By treating the model as a unified graph rather than independent trees, this framework "factors out" redundancy without losing accuracy. This allows exact kernel methods to scale to millions of examples, making them competitive with—and often superior to—approximate methods or SVMs limited by dataset size.
Summary updated