iKernels-Core: Tree Kernel Learning for Textual Similarity

Aliaksei Severyn, Massimo Nicosia, Alessandro MoschittiSEM @ NAACL 2013

Abstract

The iKernels-Core system represents a shift in Semantic Textual Similarity (STS) methodology, moving from traditional flat feature vectors to structural representations. By encoding sentence pairs directly into syntactic trees and utilizing Partial Tree Kernels (PTK) with relational tagging, the system automatically learns complex relational patterns. This approach minimizes manual feature engineering and achieves state-of-the-art results on benchmark datasets when combined with domain adaptation strategies.

Introduction

Semantic Textual Similarity (STS) involves determining the degree of equivalence between two text snippets, typically on a scale from 0 to 5. Most conventional approaches treat this as a regression problem, calculating numerous discrete similarity scores (e.g., word overlap, synonym counts) and feeding them into a model.

However, these "flat" approaches often suffer from low representation power because they discard the rich structural and syntactic context of the sentences. Knowing that two sentences share the same words is useful, but identifying that those words play identical grammatical roles (such as subject vs. object) provides significantly more predictive power. The challenge lies in representing this structure for machine learning without relying on thousands of manually crafted rules.

Methods: Structural Relational Similarity

The core innovation of iKernels-Core is the use of Tree Kernels to capture structural relationships between sentences.

1. Structural Encoding and Relational Tagging

Instead of relying solely on scalar scores, the system represents sentence pairs as trees (both constituency and dependency). To help the model identify connections between sentences, the authors implement Relational Tagging. Nodes in both trees are marked with a special REL tag if the corresponding words share a common lemma. This allows the model to learn patterns such as "if the subjects of both sentences are related, the similarity score should increase."

Figure 1: Dependency tree representation of a sentence pair with REL tags indicating shared lemmas.

2. Partial Tree Kernels (PTK)

The system utilizes PTKs to calculate similarity between these trees. Unlike standard kernels, PTKs can analyze any subset of a tree's structure, allowing the model to automatically extract a massive feature space of syntactic patterns without human intervention.

3. Hybrid Modeling and Domain Adaptation

The system does not abandon traditional features; it combines tree kernel outputs with 39 baseline features from top-performing 2012 systems (UKP Lab and Takelab) and internal "iKernels features" (LSA, Brown Clusters, and ESA similarity) using Support Vector Regression (SVR). Additionally, a corpus classifier was implemented to identify text types (e.g., news vs. forum posts) to adjust model behavior for varying domains.

Key Results

Performance on STS-2012

On the STS-2012 development data, the iKernels system significantly outperformed the previous year's top system, achieving a mean score of 0.7416 compared to the baseline's 0.6773. This validated the hypothesis that structural information provides a significant boost over flat features.

STS-2013 and the "Aha!" Refinement

In the official STS-2013 competition, the best submission initially ranked 21st out of 88 participants. Post-competition analysis revealed that the tree kernel models were actually detrimental on specific "surprise" datasets (like FrameNet) that differed drastically from the training data. By removing structural features for these specific out-of-domain subsets, the system's rank improved to 4th place.

Figure 4: Comparison of system rankings on STS-2013, showing the jump from rank 21 to rank 4 after domain-specific refinement (Sys2*).

Discussion and Future Work

The iKernels-Core project demonstrates that directly modeling sentence syntax is more robust than summarizing it into scalar values. However, the approach is sensitive to domain shifts; a model trained on news paraphrases may struggle with dictionary definitions because the underlying sentence structures differ fundamentally.

Future research will focus on improving domain adaptation and exploring more sophisticated methods for linking sentence structures beyond simple lemma matching, ensuring the structural benefits translate across diverse linguistic contexts.

Summary updated

BibTeX
@inproceedings{severyn2013ikernels,
  author = {Aliaksei Severyn and Massimo Nicosia and Alessandro Moschitti},
  title = {{iKernels-Core: Tree Kernel Learning for Textual Similarity}},
  booktitle = {SEM @ NAACL},
  year = {2013},
}
Figure