Abstract: We present an interactive machine translation (MT) system designed for users who are not proficient in the target language. It aims to improve trustworthiness and explainability by identifying potentially mistranslated words and allowing the user to intervene to correct mistranslations. However, confidence estimation in machine translation has traditionally focused on the target side. Whereas the conventional approach to source-side confidence estimation would have been to project target word probabilities to the source side via word alignments, we propose a direct, alignment-free approach that measures how sensitive the target word probabilities are to changes in the source embeddings. Experimental results show that our method outperforms traditional alignment-based methods at detection of mistranslations.
1. Introduction
Machine translation (MT) has become an essential tool for global communication, yet a significant trust gap remains for users who are not proficient in the target language. Traditional confidence estimation (CE) tools are primarily designed for professional translators to assist in post-editing target text. For lay users—such as tourists or business travelers—there is no reliable way to verify the accuracy of a generated translation. If an error occurs, the user may remain unaware or lack the means to correct it effectively.
Existing attempts to bring confidence scores to the source side typically rely on "word alignments," which are mathematical maps linking source words to target words. However, these maps are often noisy and inaccurate, leading to poor error detection. This paper addresses this gap by introducing a source-side CE method that bypasses alignment entirely, allowing users to identify and fix "risky" words before finalizing a translation.
2. Methodology
2.1 Gradient-Based Confidence Estimation
We propose a direct, alignment-free approach called Gradient-Based Confidence Estimation. Instead of trying to map target-side uncertainty back to the source, we measure the sensitivity of the model’s output to each input word. Specifically, we calculate the gradient of the probability of the entire output sequence with respect to the embeddings of each source word.
The underlying logic is that if a small perturbation in a source word's vector representation causes a significant change in the probability of the translation, the model is uncertain about that word's role in the current context. To handle subword tokenization, we aggregate these scores by summing the uncertainty of subwords to provide a clear word-level signal.
2.2 Interactive Translation Interface
To demonstrate the practical utility of this method, we developed an Interactive Translator web application. When the system flags a word as having high uncertainty, it is highlighted for the user. By clicking the flagged word, the user is presented with a list of semantically similar alternatives generated via a k-nearest neighbors search in the embedding space. This allows the user to swap words and observe if a different phrasing produces a more reliable translation.
3. Experimental Evaluation
3.1 Dataset and Baselines
The researchers evaluated the system on an English-to-German translation task. The gradient-based method was compared against two traditional alignment-based baselines: MGIZA (a statistical alignment tool) and Attention-based alignment.
3.2 LLM-Based Evaluation Framework
To overcome the high cost of human annotation for mistranslation detection, we developed a novel evaluation pipeline using GPT-4o. The LLM was prompted to act as an expert annotator, identifying mistranslations by comparing the MT output against a reference translation and the original source text. This provided a scalable and consistent ground truth for measuring detection accuracy.
4. Results
The gradient-based method significantly outperformed the alignment-based baselines across all major performance metrics. As shown in the table below, the gradient method achieved a Max F1 score of 0.19, nearly doubling the performance of the attention-based baseline. Furthermore, the AUC-PR (Area Under the Precision-Recall Curve) for the gradient method was 8.36, which is more than four times higher than that of MGIZA (1.94).
5. Discussion and Conclusion
Our results demonstrate that model sensitivity is a powerful proxy for translation reliability. By bypassing the inherent inaccuracies of word alignment models and looking directly at the model's internal state, the gradient-based approach provides a much clearer signal for error detection.
While calculating gradients is more computationally intensive than simple probability-based checks, it remains feasible for real-time interactive use. Future work will focus on expanding the system to additional language pairs and exploring the use of Masked Language Models (such as BERT) to suggest more contextually appropriate alternative phrasings to the user, further enhancing the reliability of translation for non-experts.
Summary updated