A Partition Filter Network for Joint Entity and Relation Extraction

Zhiheng Yan, Chong Zhang, Jinlan Fu, Qi Zhang, Zhongyu Wei

Introduction

Information Extraction (IE) typically involves two core sub-tasks: Named Entity Recognition (NER), which identifies entities, and Relation Extraction (RE), which determines the relationships between them. Historically, these tasks were handled via pipeline approaches, where entities are extracted first and then passed to a relation classifier. However, this sequential nature often leads to error propagation, where mistakes in the NER phase irreversibly damage RE performance.

To address this, joint models were developed to perform both tasks simultaneously. Existing joint models generally fall into two categories: Sequential Encoding, where one task provides features to the other without reciprocal feedback, and Parallel Encoding, where tasks share raw inputs but lack deep interaction. The Partition Filter Network (PFN) is proposed to bridge this gap by enabling a dynamic, two-way interaction through a novel "partition-and-filter" mechanism.

The Partition Filter Network (PFN)

The PFN introduces a specialized encoder designed to facilitate feature sharing while maintaining task-specific integrity. At each time step, the network performs two primary operations:

  1. Partitioning: Using "master gates" (entity and relation gates), the model segments internal neurons into three distinct zones: NER-Specific, RE-Specific, and Shared. This ensures that information valuable to both tasks is explicitly isolated from noise that might only be relevant to one.
  2. Filtering: These partitions are then filtered into three memory blocks. Task-specific memories are constructed by merging their respective specific partitions with the shared partition, effectively allowing relation signals to inform entity detection and vice versa.
The PFN framework and its inner partition-filter mechanism.

Furthermore, the PFN replaces traditional bidirectional encoders with a unidirectional encoder augmented by a global representation. This global component captures sentence-wide semantics, providing necessary context for future tokens without the computational overhead of a full backward pass.

Experimental Evaluation

The PFN was evaluated across six major benchmarks: NYT, WebNLG, ACE04, ACE05, ADE, and SciERC. These datasets cover a wide range of domains, from general news to technical scientific abstracts, and include challenges such as overlapping entities and long-distance relations.

Key Results

As shown in the performance comparison, PFN achieved state-of-the-art (SOTA) results on nearly every benchmark. Notably, it achieved a 1.7% improvement in RE F1 score on WebNLG and significant boosts in NER F1 scores (up to 2.5%) compared to strong baselines like Casrel.

Performance comparison of PFN against various baselines across six datasets.

Discussion and Insights

The success of PFN highlights several critical insights for joint extraction:

  • Reciprocal Interaction: Unlike models where relations are secondary to entities, PFN allows relation signals to flow back to the NER task. This is particularly evident in "In-triple" entities (those involved in a relation), where performance is significantly higher than for isolated entities.
  • The Shared Bridge: Explicitly modeling a "Shared" feature space prevents one task from dominating the network's capacity, ensuring balanced learning.
  • Robustness to Complexity: The model demonstrates superior performance in complex sentences containing five or more triples, where the interplay between multiple entities and relations is most dense.

Limitations

While highly effective, the PFN's strong two-way interaction can be a double-edged sword in the presence of noisy data. In distantly supervised datasets like NYT, errors in relation labels can potentially "poison" the entity detection process through the shared feedback loop.

Conclusion

The Partition Filter Network represents a significant step forward in joint entity and relation extraction. By treating task interaction as a dynamic partitioning problem rather than a simple feature-sharing one, PFN achieves a more nuanced and effective integration of NER and RE. Future research may extend this architecture to other multi-task NLP challenges, such as event extraction or coreference resolution.

Summary updated

BibTeX
@inproceedings{yan2021partition,
  author = {Zhiheng Yan and Chong Zhang and Jinlan Fu and Qi Zhang and Zhongyu Wei},
  title = {{A Partition Filter Network for Joint Entity and Relation Extraction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.17},
}
Figure