Skip to main content
QUICK REVIEW

[Paper Review] Mask the Correct Tokens: An Embarrassingly Simple Approach for Error Correction

Kai Shen, Yichong Leng|arXiv (Cornell University)|Nov 23, 2022
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

This paper proposes MaskCorrect, a simple yet effective method to improve text error correction by randomly masking correct tokens during training, forcing models to learn from context rather than trivially copying them. The approach boosts performance across spelling, ASR, and grammar error correction tasks on both autoregressive and non-autoregressive models, with consistent WER reductions of up to 1.24% on Mandarin ASR datasets and significant gains over SOTA methods.

ABSTRACT

Text error correction aims to correct the errors in text sequences such as those typed by humans or generated by speech recognition models. Previous error correction methods usually take the source (incorrect) sentence as encoder input and generate the target (correct) sentence through the decoder. Since the error rate of the incorrect sentence is usually low (e.g., 10\%), the correction model can only learn to correct on limited error tokens but trivially copy on most tokens (correct tokens), which harms the effective training of error correction. In this paper, we argue that the correct tokens should be better utilized to facilitate effective training and then propose a simple yet effective masking strategy to achieve this goal. Specifically, we randomly mask out a part of the correct tokens in the source sentence and let the model learn to not only correct the original error tokens but also predict the masked tokens based on their context information. Our method enjoys several advantages: 1) it alleviates trivial copy; 2) it leverages effective training signals from correct tokens; 3) it is a plug-and-play module and can be applied to different models and tasks. Experiments on spelling error correction and speech recognition error correction on Mandarin datasets and grammar error correction on English datasets with both autoregressive and non-autoregressive generation models show that our method improves the correction accuracy consistently.

Motivation & Objective

  • To address the problem of trivial copying of correct tokens in error correction models, which hinders effective learning and reduces training efficiency.
  • To leverage correct tokens as meaningful training signals instead of passive copy targets.
  • To improve model generalization and performance on low-error-rate correction tasks such as spelling and ASR error correction.
  • To develop a generalizable, plug-and-play framework applicable to both autoregressive and non-autoregressive models.

Proposed method

  • During training, a random proportion of correct tokens in the input sentence are replaced with a special <mask> token.
  • The model is trained to reconstruct the original correct tokens from the masked context, encouraging context-aware generation.
  • The method is applied as a plug-in module to existing correction models without architectural changes.
  • The masking ratio is hyperparameter-tuned, with optimal values found at 0.15 for non-autoregressive models.
  • After pre-training with masking, models are fine-tuned on original, unmasked data for inference.
  • The approach is evaluated on spelling correction, ASR correction (Mandarin), and grammar correction (English) across AR and NAR models.

Experimental results

Research questions

  • RQ1Can masking correct tokens during training improve error correction performance by reducing reliance on trivial copying?
  • RQ2How does the masking ratio affect model performance and generalization in both autoregressive and non-autoregressive models?
  • RQ3Can this method be effectively applied to diverse error correction tasks, including spelling, ASR, and grammar correction?
  • RQ4Does the method improve training efficiency by better utilizing correct tokens as informative signals?

Key findings

  • MaskCorrect reduces WER by 1.24% on the AISHELL-1 dataset and 1.0% on an in-house Mandarin ASR dataset when applied to the FastCorrect model.
  • The AR Transformer model with MaskCorrect achieves a 1.03% WER reduction on AISHELL-1 and 0.78% on the in-house dataset.
  • The optimal masking ratio is 0.15 for the FastCorrect model, with performance degrading when the ratio exceeds 0.2.
  • The method consistently improves correction accuracy across both autoregressive and non-autoregressive models on spelling and ASR error correction tasks.
  • MaskCorrect outperforms the state-of-the-art spelling error correction method by a large margin on Mandarin datasets.
  • The ablation study confirms that masking correct tokens provides meaningful supervision, improving model generalization beyond simple copy learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.