Classifying Relations via Long Short Term Memory Networks along Shortest Dependency Paths

Yan Xu, Lili Mou, Ge Li, Yunchuan Chen, Hao Peng, Zhi Jin

Introduction

Relation classification is a fundamental task in Natural Language Processing (NLP) that involves identifying the semantic relationship between two entities within a sentence. For instance, in the sentence "A trillion gallons of [water] have been poured into an empty [region]," a model must recognize the Entity-Destination relationship between "water" and "region." Researchers from Peking University have introduced SDP-LSTM, a novel neural network architecture that leverages the Shortest Dependency Path (SDP) and multichannel Long Short-Term Memory (LSTM) networks to achieve state-of-the-art results.

The Challenge: Noise and Directionality

Traditional relation classification methods often struggle with the "noise" of natural language—words that are grammatically necessary but semantically irrelevant to the specific relationship being studied. Furthermore, many relationships are directed; "A causes B" is fundamentally different from "B causes A." Early deep learning models like CNNs and standard RNNs often failed to capture these nuances effectively without extensive manual feature engineering.

The SDP-LSTM Architecture

The proposed SDP-LSTM model addresses these challenges through three primary innovations: the use of the Shortest Dependency Path, a multichannel input strategy, and direction-sensitive sub-path processing.

1. Shortest Dependency Path (SDP)

The model focuses exclusively on the words along the shortest path between two entities in a dependency parse tree. This approach acts as a natural filter, stripping away irrelevant modifiers and focusing on the core relational structure.

Example of a shortest dependency path (red arrows) between two entities, filtering out irrelevant words like 'trillion' and 'empty'.

2. Multichannel LSTMs and Sub-paths

To capture a comprehensive semantic and syntactic view, the model employs four parallel channels for each word on the path:

  • Word Representations: Pre-trained embeddings.
  • Part-of-Speech (POS) Tags: Identifying nouns, verbs, etc.
  • Grammatical Relations (GR): The specific type of dependency (e.g., subject, object).
  • WordNet Hypernyms: High-level semantic categories.

To handle directionality, the SDP is divided into two sub-paths at the common ancestor of the two entities. Each sub-path is processed by its own LSTM, and the outputs are pooled and concatenated for final classification.

The SDP-LSTM architecture: (a) shows the multichannel integration of linguistic features, while (b) details the direction-sensitive sub-path processing.

Performance and Results

The model was evaluated on the SemEval-2010 Task 8 benchmark, which contains 19 relation classes. SDP-LSTM achieved a state-of-the-art $F_1$-score of 83.7%, outperforming previous CNN-based models (82.7%) and traditional SVMs (82.2%).

An ablation study highlighted the importance of the multichannel approach. While using only word embeddings along the SDP yielded a strong $F_1$ of 82.35%, the addition of Grammatical Relations (GR) provided the most significant boost (+0.86%), proving that structural linguistic information remains vital even in deep learning frameworks.

Conclusion

By combining the noise-filtering properties of the Shortest Dependency Path with the sequential modeling power of LSTMs and rich linguistic features, SDP-LSTM provides a robust framework for relation extraction. While the model depends on the accuracy of the underlying dependency parser, its ability to capture both semantic depth and relational directionality sets a new standard for the field.

Summary updated

BibTeX
@inproceedings{xu2015classifying,
  author = {Yan Xu and Lili Mou and Ge Li and Yunchuan Chen and Hao Peng and Zhi Jin},
  title = {{Classifying Relations via Long Short Term Memory Networks along Shortest Dependency Paths}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  doi = {10.18653/v1/d15-1206},
}
Figure