Semantic Relation Classification via Convolutional Neural Networks with Simple Negative Sampling

Kun Xu, Yansong Feng, Songfang Huang, Dongyan Zhao

Introduction

Relation Extraction (RE) is a fundamental task in Natural Language Processing, aimed at identifying semantic relationships between entities in text. Traditional models often struggle with two primary issues: linguistic noise from irrelevant sentence parts and the inherent asymmetry of relations (directionality). This paper presents a novel approach using Convolutional Neural Networks (CNNs) applied to the Shortest Dependency Path (SDP) between entities, combined with a simple yet effective negative sampling strategy.

The Shortest Dependency Path Hypothesis

The core premise of this work is that the shortest path between two nominals in a dependency graph captures the essential semantic information required for relation classification. By focusing exclusively on the SDP, the model naturally filters out "distractor" clauses that do not contribute to the relationship, making it more robust to long-distance dependencies.

Model Architecture

The proposed model, a dependency-based CNN (depLCNN), processes the sequence of words and dependency labels along the SDP to extract relational features.

The depLCNN architecture illustrating the flow from SDP input through convolution and pooling layers to the final output.

The architecture consists of several key stages:

  1. Input & Lookup Table: Words, dependency labels, and edge directions along the SDP are mapped to dense vector embeddings.
  2. Window Processing & Convolution: A sliding window captures local contextual features along the path.
  3. Max-Pooling: This layer extracts the most salient features, producing a fixed-length representation regardless of the path length.
  4. Non-linear Transformation: A hidden layer with tanh activation extracts higher-level features.
  5. Softmax Output: The final layer predicts the probability of each relation category.

Simple Negative Sampling (NS)

To address the challenge of relation directionality (e.g., distinguishing Cause-Effect(e1, e2) from Cause-Effect(e2, e1)), the authors introduce Simple Negative Sampling. For every valid relation instance $(e_1, e_2)$, the model is also trained on the reversed path $(e_2, e_1)$ as a negative sample. This data augmentation technique forces the network to learn the importance of entity roles and path direction without requiring complex architectural modifications.

Experimental Results

The model was evaluated on the SemEval-2010 Task 8 benchmark, which includes 10,717 annotated examples across 9 directed relation types and one "Other" category.

Comparison of the proposed depLCNN+NS model against various baselines on the SemEval-2010 Task 8 dataset.

As shown in the results table, the depLCNN+NS model achieved a state-of-the-art F1-score of 85.6%. This performance significantly exceeds traditional SVM-based approaches (82.2%) and other neural models like MVRNN (82.4%) and standard CNNs (82.7%). Notably, the addition of negative sampling provided a 2.1% boost to the base model's F1-score, highlighting its effectiveness in modeling directionality.

Conclusion

By leveraging the Shortest Dependency Path and a straightforward negative sampling strategy, this research demonstrates that CNNs can achieve high accuracy in relation classification with minimal noise. While the model's performance depends on the accuracy of the underlying dependency parser, its efficiency and robustness make it a powerful tool for extracting structured information from unstructured text. Future work may explore applying these techniques to multi-relation extraction and other direction-sensitive NLP tasks.

Summary updated

BibTeX
@inproceedings{xu2015semantic,
  author = {Kun Xu and Yansong Feng and Songfang Huang and Dongyan Zhao},
  title = {{Semantic Relation Classification via Convolutional Neural Networks with Simple Negative Sampling}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  doi = {10.18653/v1/d15-1062},
}
Figure