[Paper Review] Bag-of-Words as Target for Neural Machine Translation
This paper proposes a novel training objective for neural machine translation that jointly optimizes for both reference translations and their corresponding bag-of-words representations. By incorporating bag-of-words as a secondary target, the model encourages generation of diverse, correct translations not seen in the training data, achieving a 4.55 BLEU point improvement over strong baselines on a Chinese-English dataset.
A sentence can be translated into more than one correct sentences. However, most of the existing neural machine translation models only use one of the correct translations as the targets, and the other correct sentences are punished as the incorrect sentences in the training stage. Since most of the correct translations for one sentence share the similar bag-of-words, it is possible to distinguish the correct translations from the incorrect ones by the bag-of-words. In this paper, we propose an approach that uses both the sentences and the bag-of-words as targets in the training stage, in order to encourage the model to generate the potentially correct sentences that are not appeared in the training set. We evaluate our model on a Chinese-English translation dataset, and experiments show our model outperforms the strong baselines by the BLEU score of 4.55.
Motivation & Objective
- To address the limitation of standard NMT models that penalize correct but unseen translations by only using one reference per sentence.
- To mitigate data sparsity in neural machine translation by leveraging the shared word content across multiple correct translations.
- To improve model generalization by encouraging generation of diverse, semantically valid translations that match the bag-of-words of the reference.
- To enhance translation quality by using bag-of-words as a soft supervision signal during training, beyond standard cross-entropy loss.
Proposed method
- The model uses a sequence-to-sequence architecture with an encoder-decoder framework, where the encoder is a bidirectional LSTM and the decoder is a unidirectional LSTM with an attention mechanism.
- The bag-of-words is treated as a multi-label classification problem, where the model predicts word presence in the translation based on the sum of word scores across all decoder positions.
- Sentence-level word scores are aggregated from the decoder output distribution at each time step, and a sigmoid classifier is applied to predict which words from the reference bag-of-words should be included.
- The final loss combines standard cross-entropy loss for the target sequence and binary cross-entropy loss for the bag-of-words prediction, enabling joint optimization.
- The attention mechanism computes context vectors by aligning decoder hidden states with encoder representations using a soft attention mechanism.
- The model is trained end-to-end with both objectives, allowing the encoder, decoder, and word presence prediction head to be jointly updated.
Experimental results
Research questions
- RQ1Can incorporating bag-of-words as a secondary training target improve the diversity and correctness of neural machine translation outputs?
- RQ2How does joint optimization over reference sequences and their bag-of-words representations affect BLEU scores compared to standard NMT?
- RQ3To what extent can the model generate high-quality, unseen correct translations that are not in the training set?
- RQ4Does using bag-of-words as a supervision signal reduce the penalty for semantically valid but structurally different translations?
- RQ5How does the proposed method compare to existing approaches that use bag-of-words as a latent variable or auxiliary loss?
Key findings
- The proposed model achieves a 4.55 BLEU point improvement over strong baseline models on the NIST Chinese-English translation dataset.
- The model generates more informative and accurate translations, with better coverage of key words from the reference bag-of-words compared to the baseline.
- Translations from the proposed model are less likely to omit critical content or include redundant or unknown tokens, as shown in qualitative examples.
- The model successfully reduces the penalty for correct but unseen translations by aligning with the bag-of-words representation.
- The method outperforms existing approaches that use bag-of-words as a latent variable or auxiliary constraint, as it directly supervises the decoder output distribution.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.