Detection of Language (Model) Errors

Kei Yuen Hung, Robert Wing Pong Luk, Daniel S. Yeung, Korris Fu-Lai Chung, Wenhao ShuEMNLP 2000

Introduction

Bigram language models serve as the foundational architecture for processing Asian languages such as Chinese, Japanese, and Korean. Due to the lack of explicit word delimiters and the vast character sets involved, these models are essential for selecting the most probable character sequences in applications like speech recognition or pinyin-to-hanzi transcription. However, these models are notoriously brittle; a system achieving 96% accuracy on technical training data may see performance drop to 78% when applied to a novel domain, such as magazine articles.

Rather than attempting to build increasingly complex primary models, this research proposes a secondary "error detection" layer. By treating error identification as a binary pattern recognition problem, we can automatically flag suspicious outputs, thereby reducing manual post-editing labor and optimizing the use of computationally expensive correction algorithms.

Methodology: Feature Engineering for Error Detection

The core of the proposed approach lies in combining two distinct categories of features to train classifiers, including Bayesian models, C4.5 Decision Trees, and Multi-Layer Perceptrons.

Model-Based Features

These features quantify the internal confidence of the primary bigram model. Key indicators include "zero probabilities"—instances where the model encounters a character pair never seen during training—and low overall path probabilities. As the model's statistical confidence decreases, the likelihood of an error increases.

Language-Specific Features

To augment statistical confidence, the authors leveraged the linguistic structure of Chinese. By applying word segmentation against a standard lexicon (e.g., the ROCLING word list), several high-signal features were identified:

  • Word Length: Longer matched dictionary words typically correlate with higher correctness.
  • Single-Character Sequences: Long strings of uncombined single characters often indicate a failure in the model's predictive logic.
  • "Hidden" Words: A critical feature where the system checks if rejected candidates could have formed valid dictionary words that the model ignored.
  • Part-of-Speech (POS) Analysis: Statistical analysis revealed that certain grammatical categories are more prone to errors than others, as seen in the varying accuracy across tags.
Accuracy of error detection across different parts of speech.

Experimental Results and Trade-offs

The performance of the error detection system was evaluated on the YZZK magazine corpus, representing a "novel domain" relative to the PH Corpus training data. A central challenge identified was the inherent trade-off between precision (the accuracy of the error flags) and recall (the percentage of total errors caught).

The trade-off between precision, recall, and accuracy across varying thresholds.

As shown in the performance curves, increasing the sensitivity to catch more errors (higher recall) inevitably leads to more false alarms, lowering precision. In practical applications, the authors emphasize the "skip ratio"—the percentage of text a human editor can safely ignore. The C4.5 Decision Tree emerged as the most effective classifier for real-world use, achieving a skip ratio of 76% with 81% precision.

Classifier Recall Precision Skip Ratio
Bayesian 79% 60% 65%
Neural Network (MLP) 75% 80% 66%
Decision Tree (C4.5) 73% 81% 76%

Conclusion

This research demonstrates that error detection is a viable strategy for managing the domain-sensitivity of bigram language models. By integrating linguistic knowledge with model-based statistics, it is possible to significantly reduce the human effort required for text correction. Future work will focus on improving the precision ceiling and exploring how these detection signals can automatically trigger more sophisticated, context-aware correction models.

Summary updated

BibTeX
@inproceedings{hung2000detection,
  author = {Kei Yuen Hung and Robert Wing Pong Luk and Daniel S. Yeung and Korris Fu-Lai Chung and Wenhao Shu},
  title = {{Detection of Language (Model) Errors}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2000},
  doi = {10.3115/1117794.1117805},
}
Figure