Introduction
In Natural Language Processing (NLP), a persistent challenge lies in balancing structural information with semantic nuance. Dependency parse trees effectively capture "who did what to whom," but they are often too rigid for practical similarity tasks. Conversely, distributed word representations (word embeddings) capture fine-grained meaning but frequently ignore the compositional structure of sentences, often reducing them to a "bag of words."
Traditional tree kernels attempt to bridge this gap by counting shared substructures, but they typically rely on exact matches of discrete labels. This leads to poor performance when sentences share structure but use different synonyms, or when they use similar words in different structural roles.
The Vector Tree Kernel (VTK)
To address these limitations, this work introduces the Vector Tree Kernel (VTK). This framework merges graph-based structural matching with continuous word vectors, allowing for "fuzzy" semantic matches within a rigid syntactic skeleton.
Methodology
The VTK departs from subtree-based kernels in favor of a walk-based graph kernel. Instead of searching for identical subtrees, the algorithm identifies common "walks" (paths) of various lengths through the dependency trees of two sentences.
Key components include:
- Continuous Node Similarity: Rather than a binary match/no-match for word labels, VTK employs a node similarity kernel ($\kappa$) based on word embeddings (e.g., SENNA). This allows the model to recognize that "boy" and "lad" are similar nodes.
- Efficient Computation: To avoid the exponential complexity of comparing all possible walks, the authors utilize a matrix geometric series formulation ($S = W + W^2 + \dots + W^{N+1}$). This allows the similarity score to be computed efficiently using standard linear algebra operations on a modified product graph.
Experimental Evaluation
The VTK was evaluated across three distinct NLP tasks: sentiment analysis, paraphrase detection, and metaphor identification.
Key Results
The model demonstrated significant improvements over both purely syntactic and purely semantic baselines. As shown in the results for sentiment analysis, the integration of semantic vectors provides a massive boost over structural-only methods.
- Sentiment Analysis: On the Cornell Sentence Polarity Dataset, VTK achieved an accuracy of 0.67, a substantial improvement over the purely syntactic SSTK baseline (0.49) and previous state-of-the-art methods.
- Metaphor Identification: The kernel reached 0.76 accuracy, outperforming existing benchmarks. It proved particularly effective at identifying metaphorical templates like "warm heart" by leveraging both the structural relationship and the semantic vectors of the constituent words.
- Paraphrase Detection: VTK achieved a competitive 0.72 accuracy on the MSR Paraphrase Corpus, matching complex systems that rely on extensive hand-engineered features.
Conclusion
The Vector Tree Kernel provides a flexible, "plug-and-play" framework for sentence similarity. By allowing syntax to disambiguate semantics—for instance, identifying how an intensifier like "terribly" modifies "entertaining"—VTK captures nuances lost to simpler models. Future work may involve scaling the product graph approach for longer documents and incorporating higher-level linguistic features like semantic role labels.
Summary updated