A Walk-based Model on Entity Graphs for Relation Extraction.

Efstathia Christopoulou, Makoto Miwa, Sophia Ananiadou · OpenReview

Introduction

Relation Extraction (RE) is the critical task of identifying semantic links between entities in a text. Traditional models often analyze entity pairs in isolation, failing to capture the contextual dependencies that exist when multiple relations overlap in a single sentence. For example, in the sentence: "Toefting was convicted of assaulting a pair of workers during a night out with national squad teammates in the capital," understanding that Toefting is with his "teammates" and those teammates are in the "capital" provides the necessary evidence to infer the relationship between Toefting and the capital.

Furthermore, many existing state-of-the-art systems rely heavily on external syntactic tools, such as dependency parsers, which can be domain-specific and prone to error propagation. This paper introduces a Walk-based Model that treats entities as nodes in a fully connected graph, learning to navigate sentence structure through internal graph walks rather than pre-defined grammar trees.

The Walk-based Architecture

The model utilizes a five-layer neural architecture designed to extract multiple relations simultaneously by aggregating information across entity paths.

The five-layer architecture of the Walk-based Model, illustrating the flow from word embeddings to walk aggregation and final classification.
  1. Embedding Layer: Converts words, entity types, and relative positions into dense vectors.
  2. Bidirectional LSTM (BLSTM) Layer: Generates context-aware representations for each word. This layer is shared across all entity pairs to maintain computational efficiency.
  3. Edge Representation Layer: Constructs an "edge" for every possible entity pair using an attention mechanism to focus on the most relevant context words.
  4. Walk Aggregation Layer: This is the core innovation. The model treats entities as nodes and uses a bilinear transformation to combine consecutive edges (e.g., $A \to B$ and $B \to C$) into a "walk" ($A \to C$). By iterating this process, the model builds walks of length 2, 4, and 8, allowing it to reason about distant entities through intermediate nodes.
  5. Classification Layer: A standard softmax layer predicts the relation type for every pair based on the merged walk representations.

Experimental Results

The model was evaluated on the ACE 2005 benchmark, which includes 7 entity types and 6 relation types. The researchers compared the walk-based approach against the state-of-the-art SPTree model and various internal baselines.

Performance comparison (Precision, Recall, and F1) across different walk lengths (l) on the ACE 2005 dataset.

As shown in the results, the walk-based model achieved a peak F1 score of 64.2% at a walk length of $l=4$. This performance is highly competitive with the SPTree model (65.3%), despite the fact that SPTree utilizes external syntactic parsers while the walk-based model remains syntactically independent. Notably, the inclusion of walks provided a significant boost over the baseline (61.4%), demonstrating the value of capturing indirect evidence between entities.

Key Insights and Conclusion

  • Relations as Chains: By treating a sentence as a mini-knowledge graph, the model can leverage intermediate entities to provide context for target pairs.
  • Optimal Path Length: Performance improved as walk length increased to $l=4$, but dropped at $l=8$, suggesting that excessively long paths introduce noise into the representation.
  • Scalability and Robustness: The model performed particularly well in sentences with high entity density (12-23 entities), where the graph-based logic has more nodes to leverage.

While the current model assumes known entity mentions, it proves that neural models can learn complex sentence structures internally. Future work will focus on end-to-end extraction and making the attention mechanism relation-aware to further refine edge representations.

Summary updated

BibTeX
@inproceedings{christopoulou2018walk,
  author = {Efstathia Christopoulou and Makoto Miwa and Sophia Ananiadou},
  title = {{A Walk-based Model on Entity Graphs for Relation Extraction.}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/p18-2014},
}
Figure