[Paper Review] On Compositionality in Neural Machine Translation
This paper identifies inadequate encoder representations as a key bottleneck for compositionality in neural machine translation, proposing a simple bag-of-words pre-training method to improve model performance on productivity and systematicity tasks. The approach significantly boosts BLEU scores—by 16.39 points on systematicity and 1.9 BLEU points on productivity—by forcing the encoder to better capture input word presence.
We investigate two specific manifestations of compositionality in Neural Machine Translation (NMT) : (1) Productivity - the ability of the model to extend its predictions beyond the observed length in training data and (2) Systematicity - the ability of the model to systematically recombine known parts and rules. We evaluate a standard Sequence to Sequence model on tests designed to assess these two properties in NMT. We quantitatively demonstrate that inadequate temporal processing, in the form of poor encoder representations is a bottleneck for both Productivity and Systematicity. We propose a simple pre-training mechanism which alleviates model performance on the two properties and leads to a significant improvement in BLEU scores.
Motivation & Objective
- To investigate whether standard sequence-to-sequence models exhibit true compositionality in neural machine translation.
- To diagnose poor performance on compositionality tasks as stemming from inadequate temporal processing in encoder representations.
- To propose a pre-training mechanism that strengthens encoder representations to improve systematic generalization and productivity.
- To evaluate the impact of improved representations on BLEU scores and compositional generalization in NMT.
Proposed method
- Pre-train the encoder to predict the bag-of-words representation of input sentences using a sigmoid-output layer over the vocabulary.
- Use a cross-entropy loss function to minimize the difference between predicted and true word presence vectors.
- Train the encoder on a masked objective where each word’s presence is labeled as 0 or 1 in the input sequence.
- Initialize the full Seq2Seq model with the pre-trained encoder weights before fine-tuning on machine translation.
- Evaluate the model on two compositionality tasks: translating concatenated sentence pairs (productivity) and translating sentences with unseen words (systematicity).
- Use a feed-forward network to probe encoder representations for word presence and substring detection, validating representation quality.
Experimental results
Research questions
- RQ1Does a standard Seq2Seq model generalize beyond training length in translation, indicating productivity?
- RQ2Can a Seq2Seq model systematically recombine known parts and rules when faced with unseen word combinations?
- RQ3To what extent do poor encoder representations limit the model’s ability to perform compositional generalization in NMT?
- RQ4Can pre-training the encoder on a bag-of-words objective improve compositional generalization and BLEU scores?
Key findings
- The standard Seq2Seq model achieves a BLEU score of 27.50 on concatenated sentence pairs, a drop of 2.69 BLEU points from the single-sentence baseline of 30.19, indicating poor productivity.
- The model’s encoder fails to retain information about early words in long sequences, as shown by poor performance in reconstructing the bag-of-words representation of the first sentence at the final hidden state.
- On the systematicity task, the model predicts the word 'daxy' correctly in only 12.25% of cases, compared to 50% with the pre-trained encoder.
- The bag-of-words pre-training method increases BLEU score from 24.5 to 26.4 on the productivity task, with a statistically significant p-value of 0.011.
- On the systematicity task, the pre-trained model achieves a BLEU score of 52.53 compared to 36.14 for the baseline, showing a substantial improvement.
- The pre-trained encoder improves both precision and recall for unseen word detection, indicating better generalization of representation to out-of-vocabulary elements.
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.