Abstract
Standard Neural Machine Translation (NMT) models are typically autoregressive, predicting words based solely on preceding local context. This "tunnel vision" often leads to low-confidence predictions for ambiguous words that require future context to resolve. We present the Confidence Based Bidirectional Global Context Aware (CBBGCA) framework, a two-stage training approach. CBBGCA utilizes a Conditional Masked Language Model (CMLM) as a bidirectional teacher to refine NMT predictions specifically on low-confidence tokens. Experimental results on WMT benchmarks demonstrate significant BLEU score improvements without any additional inference overhead.
Introduction: The Local Context Problem
Most dominant NMT models, such as the Transformer, are trained using teacher forcing. During training, when the model predicts the next word, it is restricted to the "local context"—the ground-truth words that preceded it. However, natural language is inherently bidirectional; the choice of a word often depends on subsequent words as much as preceding ones.
As shown in the analysis of trained Transformers, there is a significant "Confidence Gap." Even when provided with perfect preceding context, models predict the correct next word with very low probability (less than 10%) approximately 25% of the time. This suggests that local context is frequently insufficient for accurate translation.
The CBBGCA Framework
To address this, the authors propose the Confidence Based Bidirectional Global Context Aware (CBBGCA) framework. This framework operates in two distinct stages to inject global, bidirectional awareness into the standard NMT pipeline.
Stage 1: Multi-task Joint Training
In the first stage, the NMT model is trained alongside an auxiliary Conditional Masked Language Model (CMLM). Both models share a single encoder. While the NMT decoder remains restricted to a left-to-right view, the CMLM decoder is allowed to see the entire target sentence with specific tokens masked. This architecture forces the shared encoder to extract features that are useful for both unidirectional prediction and bidirectional reconstruction.
Stage 2: Confidence Based Knowledge Distillation (CBKD)
Once the joint training is complete, the CMLM serves as a "teacher" for the NMT model. The framework identifies "unconfident" words—tokens where the NMT model's predicted probability falls below a threshold ($\epsilon$). Knowledge Distillation is then applied specifically to these difficult words, moving the NMT model's predictions closer to the CMLM's bidirectional predictions. By focusing only on low-confidence tokens, the model avoids being overwhelmed by redundant information for words it already handles well.
Experimental Results
The CBBGCA framework was evaluated on standard benchmarks including WMT’14 En→De, WMT’19 Zh→En, and WMT’14 En→Fr.
- Performance Gains: The framework consistently outperformed baseline Transformers, with improvements of up to +1.30 BLEU points on Zh→En and +1.02 BLEU on En→De.
- Confidence Shift: Post-training analysis showed a measurable increase in model confidence, with high-probability predictions (>0.5) increasing by 1.42% on the En-De task.
- Zero Inference Overhead: A primary advantage of CBBGCA is that the CMLM and distillation logic are only used during training. The final deployed model is a standard Transformer, resulting in improved accuracy with no increase in translation latency.
Conclusion
CBBGCA effectively bridges the gap between local and global context in NMT. By leveraging a bidirectional teacher to specifically target low-confidence predictions, the framework improves translation quality across multiple language pairs. Future work may explore applying this confidence-based refinement to other sequence generation tasks like summarization and dialogue systems.
Summary updated