Abstract
Neural Machine Translation (NMT) models have demonstrated remarkable capabilities in lexical generalization, yet their ability to handle novel syntactic structures remains under-evaluated. This paper introduces the Structural GEneralization benchmark for English-Japanese Translation (SGET), a controlled dataset designed to isolate structural from lexical generalization. By evaluating standard architectures and large language models, we identify a significant "structural gap": models struggle to generalize familiar grammatical components to novel syntactic roles, even when pre-trained on massive corpora. Our results show that while pre-training provides a buffer, it does not fully resolve the challenges of compositional logic in translation.
Introduction
Compositional generalization—the ability to understand and produce novel expressions by combining familiar building blocks—is a fundamental aspect of human language. In AI research, this has primarily been studied through the lens of lexical generalization (e.g., combining known words in new ways). However, structural generalization, which involves applying known grammatical rules to novel syntactic positions, is equally critical. For instance, a model that can translate an adjective modifying an object should ideally be able to translate the same adjective modifying a subject.
Previous NMT evaluations have often conflated these two types of generalization. This study addresses this gap by introducing a rigorous benchmark specifically targeting structural mapping between English (SVO) and Japanese (SOV).
The SGET Benchmark
The researchers from the University of Tokyo developed the SGET (Structural GEneralization benchmark for English-Japanese Translation) dataset using a highly controlled, rule-based pipeline.
The construction process involved:
- Sentence Generation: Utilizing Probabilistic Context-Free Grammars (PCFG) to generate English sentences with precise syntactic properties. Selectional restrictions were applied to ensure semantic plausibility (e.g., avoiding "the table ate the bread").
- Target Generation: Employing Rule-Based Machine Translation (RBMT) to produce "gold standard" Japanese equivalents, ensuring consistency and avoiding the noise of human or neural translation.
- Controlled Gaps: Intentionally withholding specific syntactic structures from the training set (e.g., adjectives appearing only in object phrases) and testing them in the generalization set (e.g., adjectives appearing in subject phrases).
The resulting dataset includes a training set of 43,800 sentences and a generalization set of 76,000 sentences covering 32 distinct structural and lexical patterns.
Experimental Evaluation
The study evaluated three distinct architectures:
- LSTM: A standard recurrent model.
- Vanilla Transformer: Trained from scratch on the SGET training set.
- Llama 2: A large language model fine-tuned via Low-Rank Adaptation (LoRA).
Results and Analysis
The experiments revealed a stark "structural gap" across all models. While models achieved near-perfect performance on in-distribution test sets, their accuracy plummeted when faced with novel syntactic structures.
| Model | Test Set (Exact Match) | Generalization Set (Exact Match) |
|---|---|---|
| LSTM | 93.4% | 9.6% |
| Transformer (Scratch) | 99.3% | 48.7% |
| Llama 2 (Fine-tuned) | 99.4% | 80.6% |
Key Insights
- The Structural Hurdle: Structural generalization is significantly more difficult than lexical generalization. A Transformer that is nearly perfect on familiar structures may fail half the time when the grammar shifts slightly. In specific categories like Phrase Recombination, the vanilla Transformer's accuracy dropped to as low as 1.2% for Relative Clauses in the subject position.
- Pre-training as a Buffer: Llama 2 outperformed the scratch-trained Transformer, suggesting that massive pre-training helps models internalize some structural rules. However, the 18.8% drop in performance indicates that pre-training is not a complete solution for compositional logic.
- Word Order and Recursion: Models struggled particularly with the "distance" between English and Japanese word orders (e.g., placement of Prepositional Phrases) and with deeper levels of recursive nesting (e.g., multiple relative clauses) not seen during training.
Discussion and Limitations
While SGET provides a rigorous framework for evaluating structural generalization, several challenges remain. The synthetic nature of the dataset, while necessary for control, can result in "robotic" sentences. Furthermore, the authors noted that subword tokenization (BPE) may interfere with morphological generalization, an area for future investigation. Expanding this methodology to other language pairs, such as English-Chinese, would further validate these findings.
Conclusion
The SGET benchmark highlights a critical weakness in current NMT models: the inability to robustly generalize syntactic structures. While large-scale pre-training improves performance, the persistent structural gap suggests that current architectures still lack the fundamental compositional logic required for human-like language processing. Future work should focus on developing architectures or training objectives that explicitly encourage structural awareness and recursive reasoning.
Summary updated