Span-based Named Entity Recognition by Generating and Compressing Information

Nhung T. H. Nguyen, Makoto Miwa, Sophia AnaniadouarXiv 2023

Abstract

The information bottleneck (IB) principle has been proven effective in various NLP applications. The existing work, however, only used either generative or information compression models to improve the performance of the target task. In this paper, we propose to combine the two types of IB models into one system to enhance Named Entity Recognition (NER). For one type of IB model, we incorporate two unsupervised generative components, span reconstruction and synonym generation, into a span-based NER system. The span reconstruction ensures that the contextualised span representation keeps the span information, while the synonym generation makes synonyms have similar representations even in different contexts. For the other type of IB model, we add a supervised IB layer that performs information compression into the system to preserve useful features for NER in the resulting span representations. Experiments on five different corpora indicate that jointly training both generative and information compression models can enhance the performance of the baseline span-based NER system.

Introduction

Named Entity Recognition (NER) is a cornerstone of Natural Language Processing, yet traditional sequence labeling often falters when faced with nested entities (e.g., "lung cancer" where "lung" is an organ and "lung cancer" is a disease). Span-based models address this by evaluating every possible word sequence (span) for classification. However, the challenge lies in creating high-quality span representations. This research applies the Information Bottleneck (IB) principle—which posits that an optimal model retains only task-relevant information—to improve these embeddings. Unlike previous works that used either generative or compression models in isolation, this paper proposes a joint approach.

Methodology

The proposed system enhances a span-based NER baseline (built on a SciBERT encoder) by integrating three distinct components that refine span representations through the IB principle.

The architecture of the joint model, featuring span reconstruction, synonym generation, and information compression layers.
  1. Span Reconstruction (Unsupervised VAE): This component forces the model to reconstruct the original words from the span representation, ensuring that essential content is not lost during encoding.
  2. Synonym Generation (Unsupervised VAE): By leveraging the Unified Medical Language System (UMLS), the model identifies synonyms and attempts to generate them from the same latent space. Sharing the distribution mean ($\mu$) between a span and its synonyms encourages the model to learn semantically consistent representations regardless of the specific wording.
  3. Information Compression (Supervised VIB): A Variational Information Bottleneck (VIB) layer, implemented via a Multi-Layer Perceptron (MLP), filters the span representations. It discards noise and irrelevant features, focusing solely on what is necessary for entity classification to prevent overfitting.

Experimental Setup

The model was rigorously tested on five biomedical and clinical corpora: NCBI Disease, BC5CDR (Chemical and Disease), GENIA (nested biological entities), MedMention-21st (large-scale, 21 types), and ShARe/CLEFE (clinical records). Synonyms were sourced from the UMLS knowledge base to support the generative components during training.

Key Results

The joint model demonstrated superior performance compared to the baseline across nearly all tested datasets.

F1 score comparison across five corpora, showing the joint model's consistent improvements over the baseline.
  • Performance Gains: The model achieved a notable F1 score of 77.43 on the complex GENIA dataset and 63.21 on MedMention-21st. Overall, it outperformed the baseline on four out of five datasets.
  • Error Analysis: The "All" configuration (combining all IB components) significantly reduced "Category Errors"—instances where the span boundaries were correct but the label was wrong. This suggests that synonym generation successfully injected semantic knowledge into the latent space.
  • Latent Space Organization: Qualitative analysis indicated that the VIB component naturally clusters entities of the same category, which is highly beneficial for downstream tasks like Entity Linking.

Conclusion and Future Work

This research proves that generative and compression-based IB models are complementary rather than mutually exclusive. While generation ensures information sufficiency (keeping enough data to reconstruct the input), compression ensures efficiency (filtering out noise). Future work may explore using coreference resolution as an alternative to external knowledge bases for synonym generation and incorporating explicit boundary detection to further reduce span-related errors.

Summary updated

BibTeX
@misc{nguyen2023span,
  author = {Nhung T. H. Nguyen and Makoto Miwa and Sophia Ananiadou},
  title = {{Span-based Named Entity Recognition by Generating and Compressing Information}},
  year = {2023},
  eprint = {2302.05392},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.05392},
}
Figure