Simple Questions Generate Named Entity Recognition Datasets

Hyunjae Kim, Jaehyo Yoo, Seunghyun Yoon, Jinhyuk Lee, Jaewoo Kang

Abstract

Building high-performing Named Entity Recognition (NER) models typically requires extensive human-annotated datasets or expert-curated dictionaries, both of which are costly and difficult to obtain for niche domains. This paper introduces GeNER, a framework that automates NER dataset creation by querying open-domain question-answering (QA) systems (e.g., "Which disease?"). By leveraging the vast knowledge in Wikipedia-based retrievers, GeNER eliminates the need for manual intervention and outperforms existing low-resource models by an average of 19.4 F1 points.

Introduction

Named Entity Recognition (NER) is a fundamental task in Natural Language Processing, involving the identification and categorization of entities such as "Protein," "City," or "Company." Traditional approaches rely on massive human-annotated datasets or comprehensive, expert-curated dictionaries for weak supervision. These requirements present a significant barrier for low-resource or niche domains where such assets do not exist. Previous attempts to mitigate this, such as "few-shot" or "seed-based" methods, still require initial human input. GeNER addresses this by asking: can we generate high-quality NER training data using only a simple natural language question?

Methodology: The GeNER Framework

GeNER utilizes an "ask-to-generate" pipeline consisting of four primary stages:

  1. Query Formulation: Users provide a simple question template, such as "Which [TYPE]?". For broad categories, multiple sub-queries (e.g., "Which company?", "Which agency?") are used to ensure comprehensive coverage.
  2. Retrieval via DensePhrases: An open-domain QA model, DensePhrases, searches a large corpus (Wikipedia) to retrieve both candidate entities (answers) and the evidence sentences containing them.
  3. Dictionary Matching & Normalization: The retrieved entities form a "pseudo-dictionary" used to annotate occurrences within the evidence sentences. Ten normalization rules are applied to clean the data, such as handling punctuation and filtering noise.
  4. Self-training: To refine the initially noisy labels, a teacher-student iterative process is employed. A teacher model trained on the weak labels re-annotates the data to train a student model, progressively improving label quality.
Overview of the GeNER framework pipeline, from query formulation to self-training.

Experimental Setup

The framework was evaluated across six diverse benchmarks:

  • General/News: CoNLL-2003.
  • Wikipedia: Wikigold.
  • Social Media: WNUT-16.
  • Biomedical: NCBI-disease, BC5CDR, and CHEMDNER.

Notably, GeNER did not utilize any human-annotated training data from these benchmarks, generating its training sets entirely from Wikipedia.

Analysis and Key Insights

QA Models as Knowledge Extractors

GeNER demonstrates that modern open-domain QA models can serve as an interface to transform unstructured text into structured training data. By "asking" the model, researchers can tap into the world knowledge embedded during pre-training.

Context Diversity

A significant advantage of GeNER over previous rule-based systems (like TALLOR) is the linguistic variety of the generated data. While rule-based systems often find entities in rigid, repetitive patterns, GeNER extracts entities from natural Wikipedia sentences, providing a richer training signal.

Comparison of entity contexts between the rule-based TALLOR and the QA-driven GeNER.

Results

GeNER achieved substantial performance gains in low-resource settings:

  • Superiority over Low-Resource Baselines: GeNER outperformed TALLOR by an average of 19.4 F1 points across all benchmarks.
  • Competitive with Dictionary-Based Models: In datasets like Wikigold and WNUT-16, GeNER surpassed models that had access to expert-curated dictionaries.
  • Few-Shot State-of-the-Art: When combined with a small amount of human-labeled data, GeNER set a new SOTA, exceeding the previous best model (QUIP) by 5.2 F1 points.
  • Efficiency: The pipeline is highly efficient, with dataset generation taking approximately 10 minutes and self-training completing in 30 minutes on a single GPU.

Conclusion and Future Work

While GeNER represents a significant step forward, it currently relies on English-optimized retrieval models. Future work includes extending the framework to other languages and adapting question formats to handle non-named entities like dates or monetary values. Ultimately, the quality of GeNER is tied to the underlying QA model; as these models improve, GeNER's data generation capabilities will naturally scale.

Summary updated

BibTeX
@inproceedings{kim2022simple,
  author = {Hyunjae Kim and Jaehyo Yoo and Seunghyun Yoon and Jinhyuk Lee and Jaewoo Kang},
  title = {{Simple Questions Generate Named Entity Recognition Datasets}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.417},
}
Figure