Source-linked AI summary

Relation Classification via Recurrent Neural Network

Dongxu Zhang, Dong Wang

arXiv:1508.01006v2cs.CLcs.LGcs.NE

TL;DR

Existing relation-classification methods, particularly CNN-based approaches, have limited ability to model temporal and long-distance dependencies between nominal pairs. The paper proposes an RNN framework, evaluates it on two datasets, and reports stronger relation-classification performance with particular ability to learn long-distance patterns.

  • Problem

    CNN-based relation-classification approaches have limited capability for learning temporal features, especially long-distance dependencies between nominal pairs.

  • Method

    The paper proposes an RNN-based relation-classification framework for learning long-distance patterns and compares it with CNN-based models.

  • Results

    Experimental results on two datasets show that the RNN model outperforms CNN-based models and is particularly capable of learning long-distance relation patterns.

  • Takeaways & Limitations

    The RNN approach is particularly suitable for learning relations within long contexts involving long-distance patterns.

  • Takeaways & Limitations

    Accumulation through recurrent connections can quickly forget long-term information, while end-of-sentence supervision is difficult to propagate to early steps because of gradient vanishing.

Abstract

from arXiv · show

Deep learning has gained much success in sentence-level relation classification. For example, convolutional neural networks (CNN) have delivered competitive performance without much effort on feature engineering as the conventional pattern-based methods. Thus a lot of works have been produced based on CNN structures. However, a key issue that has not been well addressed by the CNN-based method is the lack of capability to learn temporal features, especially long-distance dependency between nominal pairs. In this paper, we propose a simple framework based on recurrent neural networks (RNN) and compare it with CNN-based model. To show the limitation of popular used SemEval-2010 Task 8 dataset, we introduce another dataset refined from MIMLRE(Angeli et al., 2014). Experiments on two different datasets strongly indicates that the RNN-based model can deliver better performance on relation classification, and it is particularly capable of learning long-distance relation patterns. This makes it suitable for real-world applications where complicated expressions are often involved.

1 Introduction

Sentence-level relation classification must identify a predefined relation between two nominals, but conventional and CNN-based approaches have limitations in feature engineering and long-distance temporal pattern learning. The paper proposes an RNN framework and evaluates it across two datasets.

  • Sentence-level relation classification predicts a predefined relation between two nominals in a sentence.
  • Pattern-based methods require extra NLP modules and manually designed patterns, increasing computational cost, introducing errors, and limiting coverage.
  • CNN-based relation models achieve competitive results without extra knowledge resources or NLP modules but are weak at modeling temporal patterns.
  • Relation meaning depends on directional context around the target nominals, making relation learning a temporal sequence-learning problem.
  • The proposed RNN framework targets long-distance relation patterns and is evaluated against CNN-based models on two datasets.
  • The paper reports that position indicators are more universal than position features and empirically analyzes RNNs' ability to model long-distance patterns.

2 Related Work

Related work spans feature-based, kernel-based, distant-supervision, CNN, dependency-based, and other neural approaches. The paper positions recurrent modeling as a way to address CNN limitations in long-distance and variable-distance pattern learning without relying on syntactic parsing.

  • Feature-based methods rely on expert-designed patterns, while kernel-based methods suffer from data sparsity and both use extra NLP tools.
  • Distant supervision combines text data with knowledge graphs to discover relation patterns automatically.
  • CNNs can learn local patterns, but larger convolution windows weaken local modeling; multi-window CNNs add computation and require nontrivial tuning.
  • Dependency-based approaches address long-distance dependencies by removing irrelevant words, but related models rely on syntactic parsing and become more complicated.
  • FCM is a static model that shares CNN's disadvantage in modeling temporal patterns, whereas the proposed recurrent approach models sequential data.
  • Unlike sequential models with targets at every time step, this model receives supervision only at the end of the sequence through the relation label.

3 Model

The model converts words into embeddings, processes the sequence with recurrent networks, and pools word-level features into a sentence representation for relation classification. It uses bidirectional context, max-pooling, logistic regression training, and position indicators to represent target nominals.

  • Architecture: The model has word embedding, bidirectional recurrent, and max-pooling components before sentence-level relation classification.Word vectors are processed into word-level features, which are merged into a sentence-level feature vector.
  • Word embedding: Word embedding maps discrete word symbols to low-dimensional dense vectors used by subsequent layers.The embedding matrix can be initialized with word2vec vectors trained on large general-domain data.
  • Recurrent layer: The recurrent layer models sequential data and long-distance patterns by processing word vectors step by step.A forward RNN combines the current word vector with the previous hidden output; bidirectional processing incorporates past and future words.
  • Max-pooling: Max-pooling merges local segment-level features by selecting the maximum value for each feature dimension across time steps.The model uses max-pooling because several trigger words and associated patterns are hypothesized to be especially informative for relation classification.
  • Model training: The model trains a logistic regression classifier with cross-entropy loss, stochastic gradient descent, and back propagation through time.Fan-in initialization and pretrained word embeddings are also used during training.
  • Position indicators: Four position indicators mark the starting and ending boundaries of the two target nominals as single words during training and testing.For example, markers identify the nominals in a sentence expressing an Entity-Destination relation.

4 Experiments

Experiments evaluate the proposed RNN on SemEval-2010 Task 8 and a refined MIML-RE dataset, comparing models, position representations, and RNN modifications. Results show stronger RNN performance, especially on KBP37, while highlighting dataset-specific limitations and the importance of positional and local-pattern information.

  • Datasets: The study evaluates sentence-level relation classification on SemEval-2010 Task 8 and the refined MIML-RE dataset KBP37.SemEval-2010 Task 8 contains 19 relation classes, while KBP37 contains 37 classes after refinement.
  • Experimental setup: The proposed RNN is compared using F1 scores, with 50-dimensional Turian vectors in the main comparison and additional 300-dimensional Mikolov vectors in separate experiments.SemEval hyperparameters use 8-fold cross-validation, while KBP37 has a development set for tuning and model selection.
  • Datasets: KBP37 was constructed by adding relation direction, filtering low-frequency relations, discarding 80% of no-relation sentences, and splitting data into 70% training, 10% development, and 20% test.Development and test examples with entity pairs and relations simultaneously seen in training were removed.
  • Datasets: KBP37 contains longer sentences, sparser entity-name noun pairs, multiword target nouns, and possible multiple relations per example.The authors note that the test set supplies only one relation answer, creating potential inconsistency that they omit because multi-relation data is rare.
  • Ablation results: Max-pooling provides the largest improvement over the basic RNN, while position indicators also produce highly significant gains.The results attribute the pooling gain to the importance of local patterns and the position-indicator gain to identifying which patterns to learn around target nominals.
  • Model comparison: The RNN outperforms both the MV-RNN and CNN models, gains more over CNN on KBP37, and finds position indicators more effective than position features.The paper suggests that position features become less accurate for multiword nouns and may accumulate ambiguously during recurrent processing.
  • Model comparison: RNNs learn relation patterns from raw text without explicit linguistic knowledge, and their recurrent structure offers potential for complex long-distance relations.This comparison favors the RNN over the MV-RNN despite the latter using syntactic parses as extra resources.

5 Discussion

The discussion shows that RNNs are especially effective for long-context relation patterns, while CNN and RNN performance is similar on short contexts. It also examines context-length distributions and how each model forms sentence-level semantic representations.

  • 5.1 Impact of long context: RNN performance is clearly superior to CNN performance when context length is large, whereas the models perform similarly on small contexts.The comparison uses the same input sequence and representation for both models; with position indicators, CNN and RNN differ most on long contexts.
  • 5.1 Impact of long context: 77.4 vs. 79.6: the SemEval-2010 discrepancy between the two models is less remarkable than the separation shown for long contexts.The discussion attributes this difference to the small proportion of long contexts in the SemEval-2010 test data.
  • 5.2 Proportion of long context: Long contexts occur in all three datasets, but their proportion is particularly small in SemEval-2010 Task 8.The authors therefore argue that SemEval-2010 alone does not fully demonstrate the strengths of different models and that KBP37 comparisons are needed.
  • 5.3 Semantic accumulation: RNN semantic contributions accumulate across sequences, while CNN contributions split sentence meaning into separate local patterns.In the witch–magic example, RNN peaks at “by using” and matches the sequence between the nominals, whereas CNN matches “is able to” and “magic.”
  • 5.3 Semantic accumulation: 0.0017 vs. 0.0025: neighboring-word semantic-contribution variance is lower for RNN than CNN, producing a smoother RNN semantic distribution.The paper attributes the smoother distribution to the temporal nature of the RNN model and reports similar accumulation behavior in the second example.

6 Conclusion

The conclusion presents an RNN-based approach for relation classification that targets long-distance patterns. It reports model modifications and experimental evaluation on two different datasets.

  • 6 Conclusion: The paper proposes an RNN-based relation-classification approach designed to handle long-distance patterns and long contexts.The conclusion contrasts this capability with other deep learning models such as CNN.
  • 6 Conclusion: Experimental results are reported on two different datasets.
Loading 1508.01006v2…