Neural Reranking for Named Entity Recognition

Jie Yang, Yue Zhang, Fei Dong

Abstract

We propose a neural reranking system for named entity recognition (NER). The basic idea is to leverage recurrent neural network models to learn sentence-level patterns that involve named entity mentions. In particular, given an output sentence produced by a baseline NER model, we replace all entity mentions, such as Barack Obama, into their entity types, such as PER. The resulting sentence patterns contain direct output information, yet are less sparse without specific named entities. For example, "PER was born in LOC" can be such a pattern. LSTM and CNN structures are utilized for learning deep representations of such sentences for reranking. Results show that our system can significantly improve the NER accuracies over two different baselines, giving the best reported results on a standard benchmark.

Introduction: The Challenge of Global Context in NER

Named Entity Recognition (NER) is the task of identifying and categorizing entities like people, locations, and organizations in text. Traditionally, this is treated as a sequence labeling problem where models like Conditional Random Fields (CRFs) or Bi-directional Long Short-Term Memory (BiLSTM) networks make predictions based on local word transitions.

Standard NER baselines: (a) Discrete CRF and (b) BiLSTM-CRF.

However, these models often struggle with "global" context. They might correctly identify a name but get the boundaries wrong, or choose a category that doesn't make sense within the broader sentence structure. Traditional reranking methods tried to fix this using manually engineered features, but these were often sparse and required significant human effort to design.

Methods: Neural Reranking with Collapsed Sentences

The authors propose a Neural Reranking framework. Instead of just taking the top prediction from a baseline NER model, they take the top $n$ candidates and "rerank" them using a more sophisticated neural architecture.

The "Collapsed Sentence" Trick

The core innovation is the collapsed sentence representation. For every candidate output, the model replaces the predicted entities with their type labels.

  • Original: "Barack Obama was born in Hawaii."
  • Collapsed: "PER was born in LOC."

This transformation solves the data sparsity problem. There are millions of unique names, but only a few entity types. By "collapsing" the sentence, the model can easily learn that "PER was born in LOC" is a highly probable pattern, whereas "LOC was born in PER" is likely an error.

The Reranking Architecture

The system uses a dual-feature approach to score these collapsed sentences:

  1. LSTM Features: A word-based LSTM network captures the global, long-range patterns of the sentence.
  2. CNN Features: A Convolutional Neural Network (CNN) captures local n-gram features.
  3. Character-level CNN: To handle rare words or misspellings, they incorporate character-level representations.
The LSTM architecture used to process the sequence of words and entity tags in a collapsed sentence.

The final score for a candidate is a weighted mixture of the reranker’s score and the original baseline model’s probability.

Key Results and Insights

The model was evaluated on the CoNLL 2003 English dataset, a standard benchmark consisting of Reuters newswire articles. The reranker was tested on two different baselines:

  • Discrete CRF Baseline: Improved F1-score from 88.15% to 89.25%.
  • Neural (BiLSTM-CRF) Baseline: Improved F1-score from 91.25% to 91.62%.

At the time of publication, the 91.62% F1-score represented the best reported result on the CoNLL 2003 benchmark.

Why it Works

  • Abstraction: By focusing on entity types, the model learns the "grammar" of how entities relate to one another.
  • Global Sanity Check: While the baseline identifies potential entities, the reranker acts as a "sanity check" looking at the sentence as a whole.
  • Boundary Correction: The reranker is particularly effective at fixing boundary errors (e.g., tagging "Ambassador Albright" as just "Albright") because it recognizes that the surrounding context implies a specific entity structure.

Conclusion and Future Work

While highly effective, the authors noted that performance drops as sentence length increases, as different candidate sequences often share many of the same non-entity words. Future work could involve adding attention mechanisms to help the system focus on the most informative parts of the sentence or incorporating auxiliary classifiers to handle entity sparsity within the mentions themselves.

Summary updated

BibTeX
@inproceedings{yang2017neural,
  author = {Jie Yang and Yue Zhang and Fei Dong},
  title = {{Neural Reranking for Named Entity Recognition}},
  booktitle = {RANLP},
  year = {2017},
  doi = {10.26615/978-954-452-049-6\_101},
}
Figure