TL;DR
This paper investigates how manipulating tokenization, specifically by injecting character-level noise during fine-tuning, impacts cross-lingual transfer for Part-of-Speech (POS) tagging on non-standardized languages. They find that the difference in how words are split into subwords between source and target languages is a strong predictor of transfer performance, and that carefully applied noise can significantly improve results.
What Problem Does This Paper Address?
Pre-trained language models (PLMs) are powerful tools for cross-lingual transfer, but their performance can degrade significantly when applied to languages or dialects that differ from their pre-training data, especially when these varieties lack standardized orthography. A key culprit is the tokenizer, which is optimized for standard languages and may split words in non-standard varieties in ways that don't align with meaningful linguistic units. This "tokenization gap" can lead to poor performance on downstream tasks like POS tagging, even for closely related languages. The paper aims to understand this gap and explore a simple, post-hoc method to mitigate it: injecting character-level noise during fine-tuning.
Methods
The core of the paper's methodology involves two main components:
- Character-Level Noise Injection: The authors adopt and extend the approach proposed by Aepli and Sennrich (2022). During the fine-tuning phase, they randomly select a percentage of words in the training data and apply one of three noise operations: deleting a character, replacing a character, or inserting a character. They experiment with various noise levels (15% to 95%) to find the optimal rate for different language pairs and models.
- Tokenization Comparison Metrics: To quantify the "tokenization gap," they analyze several measures comparing how source and target data are tokenized:
- Split Word Ratio Difference: The absolute difference in the proportion of words split into subwords between the source and target datasets.
- Seen Subwords/Words: The ratio of target subword tokens and words that are also present in the source data.
- Type-Token Ratio (TTR) Ratio: The ratio of the target data's TTR to the source data's TTR.
Datasets
The study utilizes a novel benchmark comprising:
- Eight Source Languages: Including Modern Standard Arabic (MSA), German, French, and Finnish.
- Eighteen Target Datasets: These are closely related, non-standardized language varieties or dialects of the source languages. Examples include Egyptian Arabic, Swiss German, Picard, and various Finnish dialects.
- Existing Corpora: Many of these datasets are derived from the Universal Dependencies (UD) project or are annotated according to the UD POS tagging scheme (UPOS). The authors also share scripts for converting dialectal datasets to UPOS.
Key Insights and Ideas
- Tokenization Matters More Than You Might Think: The study strongly suggests that the way words are tokenized is a critical factor for cross-lingual transfer, especially for non-standardized languages. The "split word ratio difference" emerged as a surprisingly robust predictor of model performance.
- Noise Injection is a Simple Yet Effective Fix: Injecting character-level noise during fine-tuning can significantly boost performance, acting as a "tokenization regularizer" that helps bridge the gap between source and target tokenization patterns.
- No One-Size-Fits-All Noise Level: The optimal amount of noise is highly dependent on the specific language pair and the PLM used. What works for one might not work for another, necessitating experimentation.
- Seen Subwords Aren't the Whole Story: While prior work has emphasized the importance of overlapping subwords, this study found that "seen subwords" are a much weaker predictor of performance compared to the split word ratio difference, especially when noise injection is involved.
Key Results
- Significant Performance Gains: Noise injection, particularly at a 15% level (as proposed by Aepli and Sennrich), consistently improved accuracy for POS tagging on target dialects. In some cases, gains were substantial, reaching up to +42 percentage points for German-Low German with XLM-R compared to no noise.
- Split Word Ratio Difference as a Predictor: The correlation between the split word ratio difference and accuracy was strong and consistent across many language pairs and models. A smaller difference generally led to higher accuracy.
- Model Performance Varies: XLM-R often outperformed mBERT on Finnish dialects, while the reverse was true for Arabic dialects. Multilingual models generally performed better than monolingual ones on Low Saxon, Picard, and Occitan.
- Noise Can Hurt: While generally beneficial, adding noise can sometimes decrease performance, most notably in the Bokmål→West Norwegian case with XLM-R.
Limitations and Future Work
- Limited Linguistic Families: The study was constrained to three linguistic families due to the availability of annotated dialectal data. Expanding to more families would be valuable.
- Single NLP Task: The focus was solely on POS tagging. Investigating the impact of tokenization manipulation on other NLP tasks would be beneficial.
- Tagset Conversion Expertise: The conversion of Arabic and Finnish dialect tagsets to UPOS was performed by a linguist who was not a specialist in those specific dialects, which might introduce minor inaccuracies.
- Future Directions: The authors suggest exploring other tokenization modification techniques, such as BPE dropout, and investigating token-free models or character-based models for improved cross-lingual transfer in non-standardized settings. They also highlight the need for more accessible, high-quality dialectal datasets.
Summary updated