Abstract
Subword tokenizers trained on multilingual corpora naturally produce overlapping tokens across languages. Does token overlap facilitate cross-lingual transfer or instead introduce interference between languages? Prior work offers mixed evidence, partly due to varied setups and confounders, such as token frequency or subword segmentation granularity. To address this question, we devise a controlled experiment where we train bilingual autoregressive models on multiple language pairs under systematically varied vocabulary overlap settings. Crucially, we explore a new dimension to understanding how overlap affects transfer: the semantic similarity of tokens shared across languages. We first analyze our models' hidden representations and find that overlap of any kind creates embedding spaces that capture cross-lingual semantic relationships, while this effect is much weaker in models with disjoint vocabularies. On XNLI and XQuAD, we find that models with overlap outperform models with disjoint vocabularies, and that transfer performance generally improves as overlap increases. Overall, our findings highlight the advantages of token overlap in multilingual models and show that substantial shared vocabulary remains a beneficial design choice for multilingual tokenizers.
Introduction
In multilingual language modeling, subword tokenizers like Byte-Pair Encoding (BPE) often produce tokens that appear in multiple languages. These shared tokens can be "true friends" (cognates with similar meanings, like actor in English and Spanish) or "false friends" (coincidental overlaps with different meanings, like pie, which means dessert in English but "foot" in Spanish).
There is a long-standing debate regarding whether this overlap facilitates cross-lingual transfer by acting as "anchors" or causes interference due to semantic ambiguity. This study isolates the impact of vocabulary overlap by controlling for confounding factors like token frequency and segmentation granularity, specifically examining the role of semantic similarity in shared tokens.
Methodology
The researchers trained 24 bilingual autoregressive Transformers (85M parameters) across six language pairs. To isolate the effect of overlap, they utilized a base XLM-R tokenizer and remapped token IDs to create four experimental settings:
- Full Overlap: The standard setting where all naturally occurring shared tokens are kept.
- High-similarity Overlap: Only tokens with high semantic similarity across languages are shared.
- Low-similarity Overlap: Only "false friends" or coincidental overlaps are shared.
- No Overlap: Vocabularies are forced to be completely disjoint.
Crucially, the segmentation and token frequencies remained identical across all settings, ensuring that performance differences were solely attributable to the sharing of token IDs.
Key Results and Analysis
The "No Overlap" Penalty
The most striking finding is that any degree of overlap is superior to having no overlap at all. In zero-shot transfer tasks, models with disjoint vocabularies suffered significant performance degradation. For instance, on the XNLI task for Spanish, accuracy dropped from 74.59% in the Full Overlap setting to 42.67% in the No Overlap setting.
Performance Hierarchy and Efficiency
Generally, the Full Overlap and High-similarity Overlap settings yielded the best results. Interestingly, high-similarity tokens—which often comprise only 10–20% of the corpus—provide nearly as much benefit as sharing the entire overlapping vocabulary. This suggests that semantically aligned "anchors" are highly efficient for cross-lingual transfer.
Structural Alignment and the "False Friend" Paradox
Embedding analysis revealed that vocabulary overlap acts as a structural bridge, forcing the model to align the embedding spaces of different languages. Even in the "Low-similarity" setting for distant language pairs (e.g., English–Chinese), the structural link provided by shared IDs facilitated better transfer than disjoint vocabularies, even if the model had to learn inverted representations for those tokens.
Conclusion
This research demonstrates that vocabulary overlap is a feature, not a bug, in multilingual models. Shared tokens, even those that are semantically distinct across languages, provide critical structural anchors that align representation spaces and facilitate cross-lingual transfer. For developers of multilingual models, maximizing shared vocabulary—particularly semantically similar tokens—remains a robust strategy for enhancing zero-shot performance.
Summary updated