Abstract
This study investigates the semantic depth of Neural Machine Translation (NMT) encoders by probing their internal representations using Natural Language Inference (NLI) tasks. By recasting expert-annotated semantic datasets into NLI formats, we evaluate NMT models trained on four language pairs across phenomena such as semantic proto-roles, anaphora resolution, and paraphrasing. Our results indicate that while NMT encoders capture significant information regarding syntax-semantics interfaces (proto-roles), they struggle with tasks requiring deep world knowledge or complex paraphrastic reasoning, suggesting that NMT models lean heavily on sophisticated syntax rather than deep semantic understanding.
Introduction
Neural Machine Translation (NMT) has achieved remarkable success, leading many to assume these models learn deep semantic representations to translate accurately. However, "semantics" is a broad domain. It remains unclear whether an NMT model truly understands pronoun references (anaphora) or recognizes when different phrasings convey the same meaning (paraphrasing). This research aims to peer inside the NMT "black box" by using probing tasks. By treating a pre-trained NMT encoder as a feature extractor, we can determine which linguistic phenomena are captured within its internal representations.
Methodology and Datasets
The researchers employed a three-step "recasting" and "probing" methodology:
- Encoder Training: Standard Bi-LSTM NMT models with attention were trained on four language pairs: English to Arabic (ar), Spanish (es), Chinese (zh), and German (de).
- Feature Extraction: The English encoders were frozen, and sentence representations were extracted by concatenating the last hidden states of the forward and backward LSTMs.
- Probing via NLI: These vectors served as inputs to a simple classifier trained for Natural Language Inference (NLI), where the model must decide if a "premise" sentence entails a "hypothesis" sentence.
A key innovation of this work is the use of Recast Datasets. The authors took expert-annotated datasets for specific phenomena and automatically converted them into NLI pairs. If the NMT-based classifier performs well on a recast dataset, it implies the encoder has successfully captured that specific semantic phenomenon.
The study utilized several specialized datasets:
- SPR (Semantic Proto-Roles): Tests understanding of properties like "volition" or "sentience."
- FN+ (FrameNet Plus): Tests paraphrastic inference.
- DPR (Definite Pronoun Resolution): Tests complex anaphora resolution (e.g., identifying who "she" refers to in a sentence about feeding a child).
- Multi-NLI: A large-scale, general-purpose NLI dataset used to test general semantic coverage.
Results and Analysis
The performance of the NMT encoders varied significantly across the different semantic tasks, revealing clear strengths and weaknesses in their internal representations.
Semantic Proto-Roles (SPR)
The models performed best on SPR tasks, comfortably beating the majority baseline. For instance, the English-Spanish model achieved 74.2% accuracy against a 65.4% baseline. This suggests that NMT encoders are adept at picking up the "syntax-semantics interface"—the structural signals that indicate who the actors are and what roles they play.
The "World Knowledge" Wall
Performance on DPR (anaphora resolution) was dismal, essentially hovering at the 50% majority baseline. Resolving complex pronouns often requires common sense or world knowledge (e.g., knowing that parents typically feed children). NMT encoders, trained solely on translation, do not appear to acquire this level of reasoning. Similarly, in FN+ (paraphrasing), models often performed worse than the baseline (~56% vs 57.5%), as they were easily confused by part-of-speech swaps.
Impact of Target Language
Interestingly, the choice of target language during training influenced the encoder's semantic features. The English-Spanish encoder frequently yielded the strongest features for certain tasks, suggesting that some target languages "force" an encoder to attend to specific semantic nuances more than others.
Conclusion
While NMT encoders are "Proto-Role Pros," their understanding is largely limited to sophisticated syntax that correlates with semantics. They lack the deep world knowledge required for complex anaphora and are easily misled by paraphrasing. Future work should explore whether more modern architectures, like Transformers, or multilingual training strategies can produce more robust and universal semantic representations.
Summary updated