Abstract: Cross-lingual transfer learning has become an important weapon to battle the unavailability of annotated resources for low-resource languages. One of the fundamental techniques to transfer across languages is learning language-agnostic representations, in the form of word embeddings or contextual encodings. In this work, we propose to leverage unannotated sentences from auxiliary languages to help learning language-agnostic representations. Specifically, we explore adversarial training for learning contextual encoders that produce invariant representations across languages to facilitate cross-lingual transfer. We conduct experiments on cross-lingual dependency parsing where we train a dependency parser on a source language and transfer it to a wide range of target languages. Experiments on 28 target languages demonstrate that adversarial training significantly improves the overall transfer performances under several different settings. We conduct a careful analysis to evaluate the language-agnostic representations resulted from adversarial training.
The Challenge of Low-Resource Parsing
Building natural language processing (NLP) tools for the world’s thousands of languages is a massive "cold start" problem: most languages lack the vast amounts of annotated data, such as hand-parsed trees, needed to train modern models. Cross-lingual transfer learning attempts to solve this by training a model on a high-resource language (like English) and applying it to a low-resource one.
However, even when using multilingual embeddings, encoders often capture language-specific "noise," such as word-order typology. If a model learns that "subjects usually come before verbs" in English, it may struggle with a target language where the opposite is true. This research seeks to create language-agnostic representations—features that capture syntactic essence without being tied to the specific quirks of a single language.
Adversarial Language-Agnostic Representations
The authors propose an adversarial framework to "scrub" language-specific information from the model's internal representations. The architecture consists of three main components working in an adversarial setup.
- The Encoder (Generator): A neural network (Bi-LSTM or Self-Attention) that transforms input text into latent vectors.
- The Parser (Decoder): Trained on labeled English data to predict dependency trees from the encoder's output.
- The Language Classifier (Discriminator): A component that tries to identify which language an input sentence belongs to based on the encoder's output.
During training, the encoder is optimized to satisfy the Parser while simultaneously trying to fool the Language Classifier. This adversarial setup forces the encoder to produce representations where the language identity is indistinguishable, effectively filtering out language-specific properties while retaining structural information. Crucially, the auxiliary languages used to train the classifier do not require any expensive annotations—just raw text.
Experimental Framework
The study utilizes the Universal Dependencies (UD) v2.2 treebanks:
- Source Language: English (annotated).
- Auxiliary Languages: French, Portuguese, Spanish, Russian, German, and Latin (unlabeled).
- Target Languages: A diverse set of 28 languages spanning various families (Afro-Asiatic, Austronesian, Indo-European, etc.).
- Embeddings: The models were tested using both aligned multilingual word embeddings and multilingual BERT (mBERT).
Performance and Key Insights
The researchers evaluated performance using Unlabeled Attachment Score (UAS) and Labeled Attachment Score (LAS). Adversarial training (AT) significantly improved transfer performance across almost all 28 target languages compared to a baseline trained only on English.
- Adversarial vs. Multi-task Learning: The authors compared their approach to Multi-task Learning (MTL). While MTL encourages the model to learn language identity as a secondary task, the adversarial approach encourages it to ignore it. Results showed that "forgetting" language identity is far more effective for cross-lingual transfer.
- Typology Matters: The model's performance boost was most significant when the auxiliary language shared typological distance from the source. For example, using Russian as an auxiliary language helped the English-trained model transfer better to other Slavic languages.
- Robustness with mBERT: Even though mBERT is a strong multilingual baseline, adding adversarial training provided a consistent performance gain, proving that state-of-the-art contextual embeddings still harbor language-specific biases that can be mitigated.
Conclusion and Future Work
While adversarial training introduces a slight performance "tax" on the source language and requires careful hyperparameter tuning, it offers a robust method for generalizing representations. Future work may explore multi-source transfer—combining multiple labeled source languages with adversarial training on unlabeled auxiliary data—and expanding the framework to other structural NLP tasks like Named Entity Recognition.
Summary updated