Adapting Sequence Models for Sentence Correction

Allen Schmaltz, Yoon Kim, Alexander M. Rush, Stuart M. Shieber

Abstract

Grammatical Error Correction (GEC) has traditionally relied on statistical machine translation (SMT) methods. This paper explores the adaptation of neural sequence-to-sequence (seq2seq) models for GEC, specifically investigating character-level representations and a novel "diff-based" output format. Our results demonstrate that character-level models, when combined with domain-specific information and edit-tag modeling, significantly outperform SMT baselines on large-scale scientific writing datasets and achieve competitive performance on standard learner benchmarks with high data efficiency.

Introduction

The task of Grammatical Error Correction (GEC) involves automatically identifying and fixing errors in written text. Historically, this has been framed as a translation problem—converting "erroneous" English into "correct" English. While Phrase-Based Statistical Machine Translation (PBSMT) was the long-standing state-of-the-art, neural seq2seq models have recently emerged as strong contenders. However, neural models often struggle with out-of-vocabulary (OOV) words and the high data requirements needed to learn subtle corrections.

This research addresses these challenges by evaluating different levels of text representation (word, sub-word, and character) and proposing a more efficient way to model corrections through "diffs" or edit tags.

Methodology

The authors evaluate several neural architectures against a robust PBSMT baseline, including word-based models, CharCNN models (using character-level convolutions), and pure character-level models.

The "Diff" Representation

A key innovation is representing the target output as a sequence of edits (diffs) rather than the full corrected sentence. By using tags like <del> and <ins>, the model focuses exclusively on the necessary changes. For example, a correction might be represented as: worth <del> emphasiz </del> <ins> emphasizing </ins> .

This approach prevents the model from inadvertently altering correct parts of the input sentence and allows for a "tuning knob" during decoding. By adjusting the bias of these diff tags, researchers can control the model's aggressiveness, effectively balancing precision and recall.

Domain Awareness

To further improve performance on specialized text, the authors incorporate domain-specific tokens (e.g., representing scientific fields like Physics or Biology) into the model, allowing it to adapt to the stylistic nuances of different academic disciplines.

Experimental Results

Performance on Scientific Writing (AESW)

On the AESW dataset, which contains over one million professionally edited scientific sentences, character-level models showed a clear advantage. As shown in Figure 1, the CHAR+Bi+DOM model achieved the highest scores, outperforming the best SMT baseline by over 6 $M^2$ points on the test set.

Performance comparison of various models on the AESW dataset.

The results indicate that character-level modeling is particularly effective for GEC because it naturally handles spelling errors and morphological variations without the limitations of a fixed word-level vocabulary.

Benchmarking on Learner Data (CoNLL-2014)

The models were also tested on the CoNLL-2014 benchmark, a smaller dataset of learner essays. Despite having significantly less training data than previous state-of-the-art systems, the proposed WORD+Bi model achieved a competitive $M^2$ score of 41.37.

Comparison of the proposed models with previous state-of-the-art results on the CoNLL-2014 benchmark.

This demonstrates the data efficiency of the diff-based approach, as it matches the performance of systems trained on millions of additional sentence pairs.

Conclusion

This work demonstrates that character-level seq2seq models are highly effective for sentence correction, especially when corrections are modeled as diffs. These models scale better with large datasets and offer a mechanism for tuning correction aggressiveness. Future work will explore the integration of large-scale language models and further investigate the benefits of character-level representations in data-rich environments.

Summary updated

BibTeX
@inproceedings{schmaltz2017adapting,
  author = {Allen Schmaltz and Yoon Kim and Alexander M. Rush and Stuart M. Shieber},
  title = {{Adapting Sequence Models for Sentence Correction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  doi = {10.18653/v1/d17-1298},
}
Figure