Command Palette
Search for a command to run...
다중언어성은 언제 저주가 되는가? 250개 고자원 및 저자원 언어를 위한 언어 모델링
다중언어성은 언제 저주가 되는가? 250개 고자원 및 저자원 언어를 위한 언어 모델링
Tyler A. Chang Catherine Arnett Zhuowen Tu Benjamin K. Bergen
초록
다중언어 언어 모델은 자연어처리 시스템을 저자원 언어로 확장하기 위해 널리 사용되고 있다. 그러나 개별 언어에서 다중언어성이 언어 모델링 성능에 미치는 영향에 대한 구체적 증거는 아직 부족한 실정이다. 본 연구에서는 자연어처리 분야에서 충분히 연구되지 않은 여러 어족을 포함하여 250개 이상의 언어에 대해 10,000개 이상의 단일언어 및 다중언어 언어 모델을 사전 훈련하였다. 각 언어의 언어 모델링 성능이 (1) 단일언어 데이터셋 크기, (2) 추가된 다중언어 데이터셋 크기, (3) 추가된 언어들의 언어적 유사성, (4) 모델 크기(최대 4,500만 파라미터)의 함수로서 어떻게 변화하는지를 평가하였다. 그 결과, 적절한 수준에서 다중언어 데이터를 추가하면 저자원 언어 모델링 성능이 향상되며, 이는 저자원 데이터셋 크기를 최대 33% 증가시킨 것과 유사한 효과를 보인다. 이러한 향상은 추가된 다중언어 데이터의 통사적 유사성에 따라 달라지며, 어휘 중복의 추가적 효과는 미미하다. 반면, 고자원 언어는 다중언어 사전 훈련 시나리오에서 일관되게 더 낮은 성능을 보인다. 데이터셋 크기가 증가함에 따라, 다중언어 데이터를 추가하면 제한된 모델 용량으로 인해 저자원 언어와 고자원 언어 모두에서 성능이 저하되기 시작하는데, 이를 다중언어의 저주라 부른다. 이러한 결과는 대규모 다중언어 사전 훈련이 관련된 어떤 언어에 대해서도 최적이지 않을 수 있음을 시사하며, 보다 표적화된 모델이 성능을 크게 개선할 수 있음을 보여준다.
One-sentence Summary
UC San Diego pre-trains over 10,000 language models across 250 languages, finding that moderate multilingual data improves low-resource language modeling by up to 33% depending on syntactic similarity, while large-scale multilingual pre-training degrades performance for both low- and high-resource languages due to the curse of multilinguality, suggesting that targeted models can be superior to massively multilingual ones.
Key Contributions
-
The paper contributes a large-scale controlled study of multilingual pre-training by pre-training over 10,000 monolingual and multilingual language models for 252 languages and evaluating performance as a function of target-language data size, added multilingual data size, linguistic similarity, and model size up to 45M parameters.
-
This work shows that moderate multilingual data can improve low-resource language modeling, with gains comparable to increasing the target-language dataset by up to 33%, and it identifies syntactic similarity as the main driver of these gains, with vocabulary overlap having only a marginal effect.
-
The paper demonstrates that multilingual pre-training consistently degrades high-resource language performance, in some cases equivalent to reducing the target dataset by more than 85%, and it links this degradation to the curse of multilinguality, suggesting that targeted multilingual models can outperform broadly multilingual ones for language modeling.
Introduction
Multilingual language models are central to modern NLP, especially for low-resource languages, cross-lingual transfer, and multilingual generation. They are typically pre-trained once on a fixed set of many languages, but that fixed recipe can favor high-resource languages and may not reveal how pre-training choices affect each language individually. Prior work gives mixed evidence about whether multilingual training helps or harms languages, and many studies rely on already-trained models or downstream tasks, making it hard to isolate the effects of language selection, data volume, similarity, and model size.
The authors address this by pre-training over 1,900 monolingual models for 252 languages and over 8,400 multilingual models. They systematically vary monolingual dataset size, multilingual dataset size, linguistic similarity of added languages, and model size up to 45M parameters. Their main contribution is a quantitative map of when multilingual pre-training helps or hurts raw language modeling. They find that moderate amounts of similar multilingual data can improve low-resource language performance, but multilingual data often damages high-resource language performance, especially as model capacity becomes a bottleneck.
Dataset
-
The authors construct a large multilingual text corpus from 24 sources, including OSCAR, Wikipedia, and NLLB. They merge corpora per language and deduplicate repeated sequences of 100 UTF-8 bytes.
-
The final corpus contains 41.4B tokens across 1572 languages, with each language capped at 1B tokens. For language modeling experiments, they keep 252 languages with at least 1.5M tokens. These languages span five continents, 29 language families, and 30 scripts.
-
They build metadata for each language, including token counts and geographic coordinates from Glottolog. Appendix sections report the full language list, token counts, and resource categories.
-
Dataset subsets are defined by per-language token budgets: 1M, 10M, 100M, and 1B tokens. These correspond to low, med-low, med-high, and high-resource settings, respectively. Each language set also excludes 500K tokens for evaluation.
-
Among the 252 analyzed languages, 252 have at least the low-resource size, 167 have med-low resource size, 48 have med-high resource size, and 28 have high-resource size.
-
For each language, the authors train a SentencePiece tokenizer with a maximum vocabulary of 32K. Tokenizer training uses 10K randomly sampled lines per language, and this cutoff is applied uniformly to control tokenization quality across languages.
-
In monolingual experiments, the authors pretrain models on each language subset at the specified data size, using the fixed language-specific tokenizer.
-
In multilingual experiments, each model has one target language and keeps that language’s monolingual tokenizer fixed. The target language data is mixed randomly with added multilingual data from 10 other languages.
-
The added multilingual data totals 10M, 100M, or 1B tokens, with equal token counts from each of the 10 added languages. The added languages are selected from the 48 med-high resource languages that have at least 100M tokens.
-
For multilingual models, the 10 added languages share a separate 32K multilingual tokenizer, trained on 10K randomly sampled lines from each added language. Target language data and added language data are tokenized separately, then token IDs are merged for shared vocabulary items while preserving the target language tokenizer.
Method
The authors construct a measurement framework that first establishes monolingual scaling baselines and then uses those baselines to interpret multilingual pre-training gains. For each target language, they pre-train autoregressive Transformer language models at three capacities, corresponding to tiny, mini, and small model sizes. Each language receives a fixed SentencePiece tokenizer with a vocabulary of about 32K tokens. Training is run at several monolingual data scales when available, and evaluation is held out from the corresponding training data. These monolingual models provide calibration points for later comparison against multilingual models.
A central component of the method is the conversion of raw evaluation log-likelihood into an interpretable estimate of monolingual data equivalence. The authors observe that relative log-likelihood follows a power-law relationship with monolingual dataset size. They fit a function of the form
ℓ=−ax−b+c,where ℓ denotes relative evaluation log-likelihood and x denotes monolingual data size expressed in log tokens. For languages with many data points, the curve can be fit directly from performance measured across multiple training-data scales. For lower-resource languages, the available points are too sparse to fit all parameters reliably, so one coefficient is fixed using the median value from better-fitted languages, while the remaining parameters are estimated from the available measurements.
The resulting fitted and language-specific curves are shown in the figure below.
These curves allow the authors to invert a measured multilingual model likelihood and estimate how many monolingual tokens would be needed to reach the same performance level. Even when the absolute token estimate is imperfect, the mapping remains monotonic with respect to log-likelihood, so relative model rankings are preserved.
The multilingual pre-training design is built around a target language and a controlled set of added languages. For each target language, the model retains the monolingual tokenizer for that language throughout both pre-training and evaluation. This is essential because perplexity and log-likelihood are only comparable within a language when the same tokenizer is used. To avoid excessively large vocabularies when multiple languages are mixed, the added languages share a separate multilingual tokenizer with a 32K vocabulary. The target-language tokenization is preserved, while token IDs for the added languages are merged into the shared vocabulary for overlapping items. This keeps the target evaluation space fixed across different multilingual conditions.
Multilingual data is introduced in controlled quantities and can vary along several axes. For a given target language, the authors vary the amount of monolingual target-language data, the amount of added multilingual data, the linguistic similarity of the added languages, and the model size. Added multilingual tokens are randomly interleaved with monolingual target tokens during training. The added languages are selected based on similarity to the target language, measured using normalized syntactic similarity, geographic proximity, and lexical similarity. The three normalized similarity scores are averaged to produce a combined linguistic similarity score, allowing the authors to contrast models trained with either the most similar or least similar added languages.
This architecture and training procedure creates a paired comparison between monolingual and multilingual regimes while keeping the target language evaluation interface stable. By controlling tokenization, data quantities, linguistic similarity, and model size, the method isolates how cross-lingual data affects performance in the target language and translates those effects into estimates of monolingual data equivalence.
Experiment
The experiments establish monolingual baselines for 252 languages and convert relative likelihood into estimated monolingual token counts to compare multilingual models. They show that adding multilingual data can benefit low-resource languages, particularly when the added languages are syntactically similar and the amount of multilingual data is moderate, while the benefits are smaller or negative when data volume or model capacity is inadequate. By contrast, high-resource languages consistently suffer from multilingual pre-training, with degradation that eases only at larger model scales. Overall, multilinguality is useful primarily for low-resource settings with sufficiently large models, whereas targeted monolingual training remains more suitable for high-resource languages.