Abstract
Cross-lingual dependency parsing often relies on translating a labeled source treebank into a target language. However, imperfect machine translation (MT) and word alignments introduce syntactic noise that degrades parser performance. This paper proposes a "code-mixed" approach: translating only the most confidently aligned words and leveraging cross-lingual embeddings to bridge lexical gaps. This partial translation strategy preserves high-quality dependency structures and significantly outperforms traditional full treebank translation across multiple languages.
Introduction
Training a dependency parser requires large, manually annotated datasets (treebanks), which are unavailable for many languages. A common workaround is cross-lingual transfer: taking a rich source treebank (like English), using MT to translate the sentences into a target language, and then using word alignments to project the syntactic dependency tree onto the new target sentence.
However, this "treebank translation" method is highly susceptible to noise. Languages are rarely isomorphic; a single English word might translate into multiple target words, or a target language might drop pronouns entirely. When word alignments fail or MT produces ungrammatical text, forcing a full translation of the treebank results in broken, invalid dependency trees that confuse the parser during training.
Methods
Instead of forcing a full translation, the authors create a code-mixed treebank—a hybrid dataset where sentences contain a mix of source and target language words.
Code-Mixed Treebank Generation
The authors achieve this through a three-step partial translation process:
- Word Substitution: The model aligns source words to the MT output. It ranks these alignments by confidence and only substitutes the top $\lambda$ fraction (e.g., 70%) of source words with their target translations.
- Word Deletion: Source words that have no aligned target words (often language-specific functional words like "the" or "are") are deleted to make the sentence's syntax more closely resemble the target language.
- Sentence Reordering: Continuous spans of translated target words are reordered to match the local word order of the MT output, ensuring grammatical phrasing.
Parser Architecture
A state-of-the-art neural BiAffine parser is trained on this code-mixed treebank. Because the sentences contain untranslated source words, the parser uses cross-lingual word embeddings to map both source and target words into a shared vector space, allowing it to learn seamlessly from the hybrid text.
Datasets and Evaluation
The model was evaluated using the Google Universal Dependency Treebanks (v2.0). English served as the source language, with Spanish, German, French, Italian, Portuguese, and Swedish as target languages. Sentence translations were generated via Google Translate, and word alignments were trained on the Europarl parallel corpus using the fastAlign tool.
Key Insights
- Less is more for translation: Translating only the most confident words ($\lambda = 0.7$) yields much better parsing accuracy than translating 100% of the words. The bottom 30% of alignments contain the vast majority of the noise; leaving them in the source language protects the integrity of the dependency tree.
- Cross-lingual embeddings are the glue: The code-mixed approach only works because cross-lingual embeddings allow the parser to understand the untranslated English words just as well as the translated target words. It shifts the burden of transfer from hard, noisy word alignments to smooth, continuous vector spaces.
- Syntax requires cleanup: Ablation studies show that simply swapping words isn't enough. Deleting unaligned functional words and reordering translated spans are both critical steps for adapting the source tree to the target language's grammar.
Key Results
The code-mixed model (Mix) outperformed the fully translated model (Tgt) by an average of 4.56 points in UAS (Unlabeled Attachment Score) and 4.59 points in LAS (Labeled Attachment Score) across the six target languages. The highest performance was achieved by combining the original English treebank with the new code-mixed treebank (Src + Mix), yielding an average UAS of 81.63 and LAS of 73.36.
The model proved exceptionally good at handling noisy alignments for functional words, significantly outperforming the fully translated baseline on Adpositions (ADP) and Determiners (DET), which are notoriously ambiguous for automatic word aligners.
Limitations and Conclusion
While effective, the model's performance drops sharply if the translation ratio $\lambda$ exceeds 0.8, highlighting sensitivity to alignment noise if forced to translate too much. Additionally, the approach requires a decent MT system and parallel corpora, which may be limited for some low-resource languages.
In conclusion, the code-mixed approach effectively mitigates the noise introduced by imperfect machine translation and word alignment in cross-lingual transfer. By prioritizing alignment quality over translation quantity and leveraging shared vector spaces, the method provides a robust framework for building dependency parsers in resource-constrained settings. Future work may explore combining this paradigm with annotation projection on raw parallel texts.
Summary updated