ProgGen: Generating Named Entity Recognition Datasets Step-by-step with Self-Reflexive Large Language Models

Yuzhao Heng, Chunyuan Deng, Yitong Li, Yue Yu, Yinghao Li, Rongzhi Zhang, Chao Zhang

Abstract

ProgGen is a novel framework that leverages the "self-reflexive" capabilities of Large Language Models (LLMs) to progressively synthesize high-quality Named Entity Recognition (NER) datasets. By decomposing the generation process into discrete steps—identifying domain attributes, building an entity pool, and then generating context—ProgGen produces training data that allows small, efficient models to outperform standard LLM prompting and few-shot baselines, especially in niche domains. Experimental results across four benchmarks demonstrate significant improvements in F1 scores and cost-efficiency.

Introduction

While Large Language Models (LLMs) have shown remarkable general-purpose capabilities, they often struggle with Information Extraction (IE) tasks like Named Entity Recognition (NER). These tasks require precise span boundaries and structured relationships, which are difficult for LLMs to maintain during creative text generation. Directly asking an LLM to "generate an NER dataset" typically results in data that lacks diversity or contains structural errors.

The authors identify three primary challenges in synthetic NER data generation:

  1. Complexity: LLMs struggle to simultaneously manage creative text generation and rigorous structural annotation.
  2. Diversity: Simple "class-conditional" prompts (e.g., "generate a sentence with a person") lead to repetitive, low-quality data.
  3. Domain Gap: High-performance NER typically requires massive in-domain human-annotated data, which is expensive or impossible to obtain for specialized fields like movie queries or restaurant reviews.

Methodology

The core of ProgGen is a Progressive Generation pipeline that moves away from one-shot dataset creation, breaking the task into four manageable stages:

Figure 1: The four-step ProgGen framework for progressive NER dataset generation.
  1. Step 1: Domain Attribute Generation (Self-Reflexion): Instead of using generic prompts, the LLM first reflects on the target domain to identify vital attributes (e.g., for news: topic, writing style, location).
  2. Step 2: Entity Pool Construction: The LLM generates a diverse list of entity terms (names, places, etc.) by iterating through combinations of the attributes identified in Step 1.
  3. Step 3: Contextual Data Generation: The LLM creates NER samples by building sentences around the pre-generated entities. This "pre-emptive" entity placement bypasses the LLM's difficulty with complex structures.
  4. Step 4: LLM Self-Correction: The system identifies "challenging" samples using token-wise log-probability as an uncertainty metric. The LLM then reviews these samples against specific annotation guidelines to correct span boundaries or misclassified types.

The resulting synthetic dataset is used to fine-tune a smaller, faster model (such as DeBERTaV3) for deployment.

Experimental Setup

The authors evaluated ProgGen across four diverse benchmarks to test its generalizability and domain-specific performance:

  • CoNLL-2003: The standard general-domain news dataset (Person, Location, Organization).
  • WikiGold: Wikipedia-based articles, testing performance on formal, encyclopedic text.
  • MIT Movie: A specialized domain involving complex entities like movie titles, actors, and genres.
  • MIT Restaurant: A niche domain focusing on restaurant names, cuisines, and amenities.

Results and Analysis

ProgGen demonstrates superior performance compared to standard data generation baselines and few-shot In-Context Learning (ICL) methods.

Table 2: Performance (F1) and Price comparison of ProgGen variants against baselines.

Key results include:

  • Performance Gains: ProgGen outperformed standard data generation baselines by up to 8% in F1 score in specialized domains like MIT Movie.
  • Beating ICL: In three out of four datasets, a small model trained on ProgGen data matched or outperformed few-shot ICL with the LLM itself.
  • Robustness: The "Latent" variant of the diversity strategy—conditioning entities on specific topics—proved the most robust, providing consistent gains over "Simple Prompt" baselines across all domains.
  • Self-Correction Impact: The reflexive correction step typically added a 1-2% F1 improvement, primarily by fixing imprecise span boundaries.

Discussion and Insights

Several critical insights emerged from the development of ProgGen:

  • Structure over Scale: Simply increasing the number of synthetic samples leads to diminishing returns. The real bottleneck is annotation accuracy and sample diversity, not raw dataset size.
  • The "Entity-First" Advantage: By generating entity terms before sentences, the framework forces the LLM to create more varied contexts and ensures more reliable ground truth labels.
  • Self-Correction as a Precision Booster: LLMs are often prone to false positives (e.g., labeling "CEO" as a Person). The self-correction step, guided by uncertainty ranking, effectively filters these systematic biases.
  • Cost-Efficiency: While generating the data has an upfront API cost, the resulting small model is significantly cheaper and faster to run at inference time than querying a massive LLM for every NER task.

Conclusion and Future Work

ProgGen offers a powerful method for synthesizing high-quality NER datasets, particularly for niche domains where human data is scarce. While the study primarily used GPT-3.5, the authors suggest that more advanced models like GPT-4 would likely yield even higher quality data. Future work includes exploring "Chain-of-Thought" (CoT) for more complex entity types and automating the feedback loop between the downstream model's errors and the LLM's generation strategy to further reduce manual effort in crafting annotation guidelines.

Summary updated

BibTeX
@inproceedings{heng2024proggen,
  author = {Yuzhao Heng and Chunyuan Deng and Yitong Li and Yue Yu and Yinghao Li and Rongzhi Zhang and Chao Zhang},
  title = {{ProgGen: Generating Named Entity Recognition Datasets Step-by-step with Self-Reflexive Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.947},
}
Figure