Improved relation classification by deep recurrent neural networks with data augmentation

Yan Xu, Ran Jia, Lili Mou, Ge Li, Yunchuan Chen, Yangyang Lu, Zhi Jin

Abstract

Relation classification is a critical task in natural language processing (NLP) that involves identifying semantic relationships between entities in text. This paper introduces a Deep Recurrent Neural Network (DRNN) architecture designed to capture complex linguistic abstractions by stacking multiple recurrent layers. To address the challenge of data scarcity in deep learning for NLP, the authors propose a directional data augmentation technique. Evaluated on the SemEval-2010 Task 8 benchmark, the DRNN model achieved a state-of-the-art F1-score of 86.1%, demonstrating that increased depth, supported by effective information flow and data augmentation, significantly improves classification performance.

Introduction

Identifying the relationship between entities (e.g., Content-Container in "The apple is in the basket") is essential for structured knowledge extraction. While neural networks have become the standard for this task, most existing models utilize shallow architectures, such as single-layer convolutional or recurrent networks. These models often struggle to capture the multi-level abstractions necessary for nuanced understanding. However, training deeper models is frequently hindered by the small size of labeled datasets, which leads to overfitting. This research addresses these limitations by combining deep stacking with a novel data augmentation strategy.

Methodology

The proposed model centers on Deep Recurrent Neural Networks (DRNNs) built upon the Shortest Dependency Path (SDP) between two entities. The SDP filters out irrelevant words, focusing the model on the tokens that directly establish the relationship.

Architecture and Input

The DRNN architecture stacks up to four RNN layers. To facilitate effective gradient flow and information transfer across these layers, the authors implemented "cross-connections," which link the hidden state of a lower layer at a previous time step to the current hidden state of the layer above. The model utilizes a multi-channel input strategy, integrating word embeddings, Part-of-Speech (POS) tags, grammatical relations, and WordNet hypernyms to provide a rich feature set.

Architecture of the Deep Recurrent Neural Network (DRNN) showing multi-channel inputs and stacked layers with cross-connections.

Directional Data Augmentation

To mitigate data scarcity, the authors leveraged the inherent directionality of most semantic relations. For a directed relation $R$ between entities $e_1$ and $e_2$, the model recognizes that reversing the sub-path and the label creates a valid inverse relation $R^{-1}$. This technique effectively doubled the training data without requiring additional manual labeling.

Key Results and Analysis

The DRNN model achieved a then-state-of-the-art F1-score of 86.1% on the SemEval-2010 Task 8 dataset, outperforming previous models like depLCNN (85.6%) and CR-CNN (84.1%).

The Impact of Depth and Augmentation

A core finding of the study is the synergy between model depth and data volume. As shown in the performance analysis, models without data augmentation peaked at a depth of 3 layers, after which performance declined due to overfitting. However, with directional data augmentation, the model was able to sustain a depth of 4 layers, reaching its peak performance.

F1-score performance across different DRNN depths, comparing models with and without data augmentation.

Layer Specialization

Visualization of the hidden states revealed that different layers specialize in distinct tasks. Lower layers act as "mixers," aggregating information across the sequence, while higher layers act as "focusers," identifying specific "pivot" words (often verbs) that are most indicative of the relationship type.

Conclusion

This work demonstrates that "going deep" with RNNs is highly beneficial for relation classification when combined with strategies to handle data scarcity. The use of the Shortest Dependency Path as a backbone, combined with cross-connected deep layers and directional data augmentation, provides a robust framework for capturing complex semantic patterns. Future work may explore more advanced recurrent units, such as LSTMs or GRUs, to further enhance the model's ability to handle long-range dependencies within the parse trees.

Summary updated

BibTeX
@inproceedings{xu2016improved,
  author = {Yan Xu and Ran Jia and Lili Mou and Ge Li and Yunchuan Chen and Yangyang Lu and Zhi Jin},
  title = {{Improved relation classification by deep recurrent neural networks with data augmentation}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2016},
  url = {https://openreview.net/forum?id=QIYro-iGCdE},
}
Figure