INarIG: Iterative Non-autoregressive Instruct Generation Model For Word-Level Auto Completion

Hengchao Shang, Zongyao Li, Daimeng Wei, Jiaxin Guo, Minghan Wang, Xiaoyu Chen, Lizhi Lei, Hao Yang

Introduction

In the field of Computer-Aided Translation (CAT), Word-Level Auto Completion (WLAC) serves as a critical productivity tool. Unlike standard predictive text, WLAC must synthesize information from three distinct sources: the source sentence, the surrounding target context (both preceding and succeeding text), and the character-level prefix provided by the user. Despite its utility, existing WLAC systems often struggle with bidirectional context integration, rare word prediction, and the deep integration of user-typed prefixes.

Researchers at Huawei have introduced INarIG (Iterative Non-autoregressive Instruct Generation), a model designed to overcome these hurdles. By treating character prefixes as "instructions" and employing an iterative subword-based decoding process, INarIG achieves state-of-the-art performance, particularly in the challenging "rare word" scenarios that professional translators value most.

Challenges in Word-Level Auto Completion

Current WLAC models face three primary limitations that hinder their effectiveness in professional environments:

  1. Unidirectional Context: Many systems prioritize left-side context, effectively ignoring the "future" text that could significantly constrain and improve word prediction.
  2. The Vocabulary Bottleneck: Most systems rely on word-level classification. This prevents the model from predicting technical terms or rare words that fall outside a fixed, pre-defined vocabulary.
  3. Shallow Prefix Integration: User-typed characters are frequently used as a post-processing filter rather than being integrated into the model's internal representation, limiting the model's ability to "reason" with the prefix during the generation phase.

The INarIG Architecture

INarIG addresses these issues through a novel architecture centered on deep information fusion and iterative generation.

The Instruction Unit

Rather than using the human-typed prefix (e.g., "sp") as a simple filter, INarIG encodes it into an Instruction Unit. Using character-level embeddings, the prefix is transformed into a representation that the model can fuse with the source and context embeddings at the start of the decoding process. This "deep fusion" allows the model to align its predictions with the user's intent more effectively than traditional filtering methods.

Iterative Subword Decoding

To solve the rare word problem, INarIG moves away from whole-word classification in favor of subword (BPE) generation. Drawing inspiration from non-autoregressive translation (NAT) techniques, the model utilizes a Conditional Masked Language Model (CMLM) approach. It places a [MASK] token between the left and right context and iteratively refines the prediction. This allows the model to "see" both sides of the target word simultaneously while constructing it from sub-components, enabling the prediction of out-of-vocabulary (OOV) terms.

Advanced Training Strategies

The researchers employed two key strategies to stabilize training and improve cross-lingual utility:

  • Multi-Task Learning: To prevent "catastrophic forgetting" of general linguistic rules when fine-tuning on fragmented CAT data, the model is trained jointly on the WLAC task and a standard CMLM task.
  • Code-Switching for Chinese: For Chinese language support, the model was trained to map Pinyin (phonetic input) to Chinese characters, effectively treating Pinyin as a specific type of "instruction."

Experimental Evaluation

INarIG was evaluated on the WMT22 WLAC track (Chinese-English and English-German) and a standard benchmark dataset featuring NIST05/06 and Newstest13/14 test sets.

Performance and Rare Word Mastery

The model established a new state-of-the-art, with an average accuracy increase of 7.76% across benchmarks. In specific high-difficulty scenarios, the accuracy jump exceeded 10%.

A significant finding was the model's performance in the "Bin 10" category—representing the rarest 10% of words. Traditional word-level models often fail here, yet this is precisely where professional translators require the most assistance. INarIG's subword-based approach allowed it to significantly outperform previous models in this core scenario.

Comparison with Large Language Models

The researchers compared INarIG against ChatGPT (GPT-3.5). Despite the general-purpose power of LLMs, INarIG achieved 63.5% accuracy compared to ChatGPT's 44.2%. This suggests that specialized models still hold a significant advantage in tasks requiring exact prefix matching and the navigation of fragmented translation contexts.

Conclusion

INarIG represents a significant advancement in CAT technology by successfully integrating user prefixes as instructions and leveraging iterative subword decoding. While the iterative nature of the model introduces some computational complexity, the latency remains well within the requirements for real-time auto-completion. Future work may explore alternative decoding directions and the use of LLMs to generate higher-quality synthetic training data.

Summary updated

BibTeX
@inproceedings{shang2023inarig,
  author = {Hengchao Shang and Zongyao Li and Daimeng Wei and Jiaxin Guo and Minghan Wang and Xiaoyu Chen and Lizhi Lei and Hao Yang},
  title = {{INarIG: Iterative Non-autoregressive Instruct Generation Model For Word-Level Auto Completion}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.948},
}
Figure