Relation Classification via Convolutional Deep Neural Network

Daojian Zeng, Kang Liu, Siwei Lai, Guangyou Zhou, Jun ZhaoCOLING 2014

Introduction

Relation classification is a fundamental task in Natural Language Processing (NLP) that involves identifying semantic relationships between two marked entities in a sentence. Traditionally, this task relied heavily on manual feature engineering and external preprocessing tools like dependency parsers. However, these "pipeline" approaches are prone to error propagation. Presented at COLING 2014, this work introduces a Convolutional Deep Neural Network (DNN) that automatically extracts features from raw text, significantly reducing the dependency on brittle preprocessing.

Methodology

The proposed architecture captures both local lexical information and global sentence-level context through a multi-layered approach.

Feature Extraction Framework

The model extracts two types of features:

  1. Lexical Level Features: These include word embeddings for the two target nouns, their immediate neighbors, and WordNet hypernyms to provide taxonomic context.
  2. Sentence Level Features: This is the core of the model, utilizing a Convolutional Neural Network (CNN) to capture the semantic structure of the entire sentence.
The CNN architecture for extracting sentence-level features, including window processing with Position Features (PF) and max-pooling.

Position Features (PF)

A key innovation is the introduction of Position Features. Standard CNNs are relatively "position-blind." To address this, the authors encode the relative distance of every word in the sentence to the two target nouns. This spatial information allows the network to focus on the context surrounding the "protagonists" of the relationship.

Convolution and Max-Pooling

The model applies a sliding window over word embeddings and position features. A convolution layer extracts local patterns, followed by a max-pooling layer that selects the most significant features across the entire sentence, ensuring the model is robust to varying sentence lengths.

Experimental Setup

The model was evaluated on the SemEval-2010 Task 8 dataset, which contains 10,717 annotated examples across 9 directed relationship classes and one "Other" class. The task requires identifying both the relation type and its direction.

The authors tuned several hyperparameters to optimize performance, including window size ($w=3$), word dimensionality ($n=50$), and hidden layer sizes ($n_1=200, n_2=100$).

Results and Discussion

The CNN model achieved a state-of-the-art F1-score of 82.7%, outperforming traditional SVMs (82.2%) and more complex Recursive Neural Networks (77.6% - 82.4%).

Impact of Architecture Choices

The study highlights the critical role of Position Features; without them, the F1-score for sentence-level features drops from 78.9% to 69.7%. Furthermore, the combination of lexical and sentence-level features proved essential, as neither was sufficient in isolation.

Sensitivity analysis showing the impact of window size and hidden layer dimensions on model performance (F1-score).

As shown in the sensitivity analysis, the model's performance is influenced by hyperparameter selection. Overly large window sizes or hidden layers can lead to performance degradation, likely due to overfitting on the training set.

Conclusion

This research demonstrated that a well-designed deep learning architecture can surpass heavily engineered systems in relation classification. By incorporating Position Features and bypassing traditional parsing pipelines, the authors paved the way for more robust, end-to-end NLP models. While the model still utilized WordNet for lexical features, it represented a significant shift toward automated feature learning in the field.

Summary updated

BibTeX
@inproceedings{zeng2014relation,
  author = {Daojian Zeng and Kang Liu and Siwei Lai and Guangyou Zhou and Jun Zhao},
  title = {{Relation Classification via Convolutional Deep Neural Network}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2014},
}
Figure