TGEA 2.0: A Large-Scale Diagnostically Annotated Dataset with Benchmark Tasks for Text Generation of Pretrained Language Models

Huibin Ge, Xiaohu Zhao, Chuang Liu, Yulong Zeng, Qun Liu, Deyi XiongNeurIPS 2022

TGEA 2.0: Diagnosing and Mitigating Text Generation Errors in Language Models

While large-scale pretrained language models (PLMs) like GPT-2 or PanGu-α produce impressively human-like text, they remain prone to "pathological" errors. They often hallucinate facts, repeat themselves, or lose grammatical cohesion. The challenge for researchers hasn't just been fixing these errors, but categorizing them at scale to understand why they happen.

Existing datasets for error detection are often small or focused on human-written text, such as grammatical error correction for language learners. There is a significant lack of large-scale, machine-authored datasets that provide the reasoning behind a generation failure. Without a fine-grained map of where and why models trip up, building automated "diagnostor" tools to audit and improve model outputs is incredibly difficult.

To address this, researchers have introduced TGEA 2.0, a massive new dataset designed to help researchers "debug" the errors made by PLMs during text generation. By providing nearly 200,000 sentences with fine-grained annotations, it establishes a rigorous benchmark for both diagnosing why a model failed and training it to avoid those mistakes in the future.

Methodology: A Rigorous Annotation Pipeline

The authors built TGEA 2.0 through a comprehensive, multi-stage pipeline:

  1. Prompt Engineering: They extracted 170,000 prompts (nouns, phrases, and full sentences) from a pool of 6 million natural sentences across three domains: News, Wikipedia, and Fiction.
  2. Generation: These prompts were fed into four different Chinese PLMs ranging from 110M to 2.6B parameters (NEZHA-Gen, GPT-2, PanGu-α, and CPM) using optimized decoding strategies.
  3. Five-Stage Annotation: Human annotators didn't just mark a sentence as "bad." They followed a rigorous, five-step diagnostic process.
The five-stage annotation pipeline demonstrating error detection, location, correction, MiSEW extraction, and classification.

The annotation stages included:

  • Detection: Is the text erroneous?
  • Span Location: Where exactly is the error?
  • Correction: How should it be fixed?
  • MiSEW Extraction: Identifying the Minimal Set of Error-related Words. This is a subset of words that "rationalize" the error. For example, if a model says "The 18 students... 11 of them resigned... leaving 3," the MiSEW would be the conflicting numbers 18, 11, and 3.
  • Classification: Categorizing the error into a two-level taxonomy containing 24 specific error types.

The TGEA 2.0 Dataset

TGEA 2.0 is the primary contribution of this work. It contains 195,629 annotated sentences, of which 36,023 are erroneous. This makes it significantly larger than its predecessor, TGEA 1.0 (47K sentences), and the English-centric SCARECROW dataset (13K annotations). To establish baselines for the benchmark tasks, the researchers evaluated models including RoBERTa, MacBERT, BART, and GPT-2.

Key Insights and Findings

The "MiSEW" Innovation: By requiring annotators to extract the minimal set of words that trigger an error, the authors provide a "rationale" for the failure. This allows models to learn not just that a span is wrong, but which specific context clues made it wrong.

Scale vs. Quality: Interestingly, the authors found that the percentage of erroneous sentences isn't strictly tied to the number of parameters in a model. Instead, it is highly sensitive to the length of the generated sentence. Longer generations are significantly more likely to contain errors, regardless of model size.

Error distribution and the correlation between sentence length and error rates across different language models.

Error Distribution: Redundancy errors (repeating words or ideas) are more common in longer sentences, while commonsense errors (logical failures) are more prevalent in smaller models.

The Difficulty Gap: Even state-of-the-art models like RoBERTa and BART struggle immensely with these diagnostic tasks. The best F1 score for detecting erroneous text was below 32%, suggesting that "machine-reading" machine-authored errors is a major frontier for NLP.

Benchmark Results

  • Benchmark Performance: On the five diagnosis tasks (detection, extraction, location, correction, and classification), the best-performing models achieved an F1 score of less than 54%. This highlights that TGEA 2.0 is a "hard" dataset that current SOTA models cannot easily solve.
  • Pathology Mitigation: The authors tested a "Mixed Fine-Tuning" (MF-GPT-2) approach, where the model is trained on both correct text and contrastive pairs (erroneous vs. corrected). This led to an 18.18 point improvement in accuracy for pairwise comparison tasks, proving that the dataset can effectively "teach" models to distinguish good text from bad.
  • Human Baseline: Humans still vastly outperform models, achieving ~91% accuracy in error detection compared to the models' ~82% (which was barely better than a simple "majority" baseline).

Limitations and Future Work

While TGEA 2.0 is a massive step forward, it has limitations. About 81% of the sentences in the dataset are correct. While this reflects real-world generation, the data imbalance makes it difficult to train models to identify the rare "needles in the haystack" of errors. Furthermore, the current dataset is focused on Chinese; while it provides a blueprint for other languages, specific error patterns may vary cross-linguistically.

Future work will involve extending the dataset to cover even larger PLMs (those with >100B parameters) to see if error patterns shift as models become "smarter." The authors also plan more extensive human evaluation of the "mitigation" tasks to see if fine-tuning on TGEA 2.0 actually results in a more pleasant reading experience for end users.

Summary updated

BibTeX
@inproceedings{ge2022tgea,
  author = {Huibin Ge and Xiaohu Zhao and Chuang Liu and Yulong Zeng and Qun Liu and Deyi Xiong},
  title = {{TGEA 2.0: A Large-Scale Diagnostically Annotated Dataset with Benchmark Tasks for Text Generation of Pretrained Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=r2DdJQ9AJvI},
}
Figure