Going beyond sentences when applying tree kernels

Dmitry I. IlvovskyStudent Research Workshop @ ACL 2014

Abstract

Traditional tree kernels are effective for single-sentence syntactic analysis but often fail to capture the broader discourse context of paragraphs. This paper introduces "Extended Trees," a method that links individual sentence parse trees using coreference resolution and rhetorical relations. By representing multi-sentence dependencies, this approach improves text classification and search relevance by 2–8% on complex datasets where structural disambiguation is required.

Introduction

Most Natural Language Processing (NLP) models treat sentences as isolated units. While tree kernels are adept at identifying syntactic patterns within a single sentence, they struggle with discourse—the way meaning is constructed across multiple sentences.

A significant challenge lies in disambiguating texts that share identical keywords but differ in structural meaning. For instance, "A landlord renting an office to a business" versus "A business owner renting an office from a landlord" involves the same vocabulary but different relational directions. Standard keyword-based models often fail to capture these nuances when details are distributed across a paragraph. This paper addresses the lack of a systematic way to represent these inter-sentence dependencies for machine learning.

Methodology: Constructing Extended Trees

The core innovation of this work is the construction of Extended Trees. Instead of treating a paragraph as a disconnected forest of sentence trees, the proposed algorithm merges them into a unified structure.

Discourse Linking

The first step involves identifying links between sentences. Two primary methods are employed:

  1. Coreference Resolution: Identifying when different words (e.g., "I" and "my") refer to the same entity across sentences.
  2. Rhetorical Structure Theory (RST): Identifying functional relationships between phrases, such as "Elaboration" or "Contrast."
Coreference resolution identifies entity links across multiple sentences to establish discourse connections.

Tree Extension and Kernel Learning

For every discourse link found between two trees ($T_i$ and $T_j$), the algorithm merges branches to form an "extended tree." This larger structure represents the multi-sentence "main idea."

Extended dependency trees connect individual sentence parses via discourse links (red lines) to form a unified paragraph representation.

These extended trees are then processed using a Convolution Tree Kernel (specifically the TK-Light learner). This kernel calculates the similarity between texts by counting common subtrees within these new, complex structures.

Evaluation

The method was evaluated on two custom datasets where discourse structure is critical:

  • Product-related Opinions: Derived from Bing search results, comparing top-tier relevant results against lower-tier irrelevant ones.
  • Yahoo Answers: 100 complex search queries and answer snippets manually selected for their discourse complexity.

Key Results

The inclusion of extended trees consistently outperformed baseline single-sentence parse trees:

  • Product Search: F-measure improved from 0.6485 to 0.6752 for full pages.
  • Yahoo Answers: The combination of Coreference and RST links saw the F-measure jump from 0.6249 to 0.7067 for snippets.
  • Recall Improvement: The model became significantly better at identifying relevant results where the "answer" was distributed across multiple sentences rather than contained in a single sentence.

Discussion and Future Work

A key insight from the evaluation is that while coreference provides a minor boost, Rhetorical Structure (RST) is far more informative for disambiguation, as it captures the logic connecting sentences. However, building these trees is computationally expensive, with input sets becoming up to 20 times larger than the baseline.

Future work aims to move beyond tree structures toward Directed Acyclic Graphs (DAGs) and "Parse Thickets" to represent paragraphs more naturally. Additionally, replacing rule-based rhetoric extractors with more robust, machine-learned discourse parsers could further enhance the quality of the links.

Conclusion

By bridging the gap between sentence-level syntax and discourse-level semantics, extended trees provide a systematic way to represent inter-sentence dependencies. This structural approach proves superior to keyword-based analysis in complex text classification and search tasks, offering a significant performance boost by capturing the "direction" of relationships across paragraphs.

Summary updated

BibTeX
@inproceedings{ilvovsky2014going,
  author = {Dmitry I. Ilvovsky},
  title = {{Going beyond sentences when applying tree kernels}},
  booktitle = {Student Research Workshop @ ACL},
  year = {2014},
  doi = {10.3115/v1/p14-3008},
}
Figure