TriggerNER: Learning with Entity Triggers as Explanations for Named Entity Recognition

Bill Yuchen Lin, Dong-Ho Lee, Ming Shen, Ryan Moreno, Xiao Huang, Prashant Shiralkar, Xiang Ren

Introduction: The Data Scarcity Problem in NER

Named Entity Recognition (NER) is a fundamental NLP task involving the identification and categorization of entities such as people, organizations, or locations within text. While modern neural models achieve high performance, they are notoriously "data-hungry," often requiring thousands of manually labeled sentences to adapt to new domains.

Traditional labeling methods are inherently "low-signal": an annotator highlights a span and assigns a tag, telling the model what an entity is, but not why. TriggerNER addresses this by introducing "entity triggers"—human-provided snippets of text that explain the reasoning behind an entity classification. For instance, in the sentence "We had a fantastic lunch at Rumble Fish," the phrase "had... lunch at" serves as a trigger identifying "Rumble Fish" as a restaurant.

Example of entity triggers explaining why "Rumble Fish" is a restaurant.

Methodology: The Trigger Matching Network (TMN)

The authors propose the Trigger Matching Network (TMN), a framework designed to leverage these explanations through a two-stage process:

  1. Joint Learning of Triggers and Matching: The model encodes both triggers and sentences into a shared embedding space. Using a contrastive loss, it ensures that a sentence representation aligns closely with its corresponding trigger representation. A separate classifier is trained to predict entity types based solely on these trigger vectors.
  2. Trigger-Enhanced Sequence Tagging: During tagging, the model treats learned trigger representations as "attention queries." It scans the input text for segments that semantically match known triggers. This "trigger-based global attention" is concatenated with standard word features and processed by a Conditional Random Field (CRF) tagger.

Crucially, TMN employs "Soft Matching." At inference time, the model does not require human-provided triggers. Instead, it searches its internal dictionary for the $k$-nearest matches to the current context. This allows the model to generalize; for example, recognizing that "dined at" is semantically similar to the training trigger "had lunch at."

Experimental Setup

The approach was evaluated on two benchmarks: CoNLL 2003 (general news) and BC5CDR (bio-medical). The researchers crowd-sourced 14,708 entity triggers for these datasets. To ensure the triggers were truly explanatory, they masked the entities during annotation, forcing humans to rely strictly on context to determine the entity type.

Key Results and Efficiency

The primary advantage of TriggerNER is its extreme data efficiency. By providing higher-density supervision, triggers allow models to reach high performance thresholds with a fraction of the usual data.

  • Efficiency Gains: On the CoNLL 2003 dataset, the TMN model using only 20% of trigger-annotated data achieved an F1 score of 86.01. This nearly matches the 86.08 F1 score of a standard BLSTM-CRF model requiring 70% of traditionally labeled data.
  • Interpretability: The model's attention mechanism provides built-in explanations, showing exactly which trigger words (e.g., "once daily" for a chemical entity) influenced its decision.
Performance comparison on CoNLL 2003: TMN achieves high F1 scores with significantly less data.

Conclusion and Future Directions

TriggerNER demonstrates that capturing human intuition through triggers significantly reduces the annotation burden for NER. While labeling triggers takes roughly 1.5x to 2x longer per sentence than simple span labeling, the 3.5x reduction in required sentences leads to substantial overall cost savings. Future work may explore automatically extracting triggers from unlabeled text or transferring triggers across languages to further minimize human intervention.

Summary updated

BibTeX
@inproceedings{lin2020triggerner,
  author = {Bill Yuchen Lin and Dong-Ho Lee and Ming Shen and Ryan Moreno and Xiao Huang and Prashant Shiralkar and Xiang Ren},
  title = {{TriggerNER: Learning with Entity Triggers as Explanations for Named Entity Recognition}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.752},
}
Figure