---
title: "Improving Multilingual Models with Language-Clustered"
description: "The paper groups languages by shared subwords and shows how a fixed-size vocabulary improves multilingual question answering…"
canonical: "https://research.elamur.ai/free/en/papers/chung-2020-improving-multilingual-models-language-clustered/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/chung-2020-improving-multilingual-models-language-clustered/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / Improving Multilingual Models with Language-Clustered Vocabularies

# Improving Multilingual Models with Language-Clustered Vocabularies

Paper · 2020 · Hyung Won Chung, Dan Garrette, Kiat Chuan Tan et al.

**Authors:** [Hyung Won Chung](https://md.research.elamur.ai/free/en/authors/hyung-won-chung/), [Dan Garrette](https://md.research.elamur.ai/free/en/authors/dan-garrette/), Kiat Chuan Tan and [Jason Riesa](https://md.research.elamur.ai/free/en/authors/jason-riesa/) · **Year:** 2020 · **Venue:** Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**43** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3094412589) · [Cited by **49** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/chung-2020-improving-multilingual-models-language-clustered/cited-by/) · [Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)](https://aclanthology.org/volumes/2020.emnlp-main/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2020.emnlp-main.367/)
- [PDF](https://aclanthology.org/2020.emnlp-main.367.pdf)
- [DOI 10.18653/v1/2020.emnlp-main.367](https://doi.org/10.18653/v1/2020.emnlp-main.367)
- [OpenAlex](https://openalex.org/W3094412589)

Citations: OpenAlex, 2026-10-14.

## Summary

A multilingual system has to decide how to break up text before it can learn what the text means. Its vocabulary might preserve a familiar word intact, divide it into reusable pieces, or lack the characters needed to represent it. When a vocabulary is learned from many languages pooled together, the pieces that occur often in the pool have an advantage. That is useful when languages genuinely share words or word parts. It can also leave a language with less training text, or a script used by few languages, with a less effective way to represent its own text. The paper asks whether a better allocation of the same vocabulary space can improve [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/) and, in turn, the tasks that depend on it.

The authors first learn a provisional vocabulary for every language separately. They use overlap among these inventories to group languages with similar sub-words, then train a new vocabulary on the pooled text within each group. A group receives more space when its languages collectively offer a more varied set of candidate pieces. Finally, the authors merge the group vocabularies into a single inventory. The resulting system can use the same sub-word across languages, while languages with distinct text patterns have a chance to contribute pieces before the inventories are merged. The matched experiments compare this procedure, called CLUSTER, with the conventional JOINT procedure on the same Wikipedia data covering 104 languages. Each final vocabulary contains 488k sub-words.

CLUSTER improves the average on all the downstream tasks in the matched comparison. On the TyDi QA development set, macro F1 for the minimal answer span rises from 55.6 to 58.5, with English excluded from the average. On the XNLI test set, macro accuracy goes from 68.0 to 70.1. On the WikiAnn test set, where a tagger trained in English is evaluated across languages, macro labeled-span F1 rises from 61.7 to 64.5. The tokenized pretraining text is also shorter on average, and its out-of-vocabulary rate falls from 0.200% to 0.025%. The gains vary by language, especially in entity recognition, where several languages gain substantially and others lose ground.

A separate full-scale experiment reports strong TyDi QA and entity recognition results against published baselines, with a lower XNLI score than XLM-R. The matched experiments provide the clearer test of vocabulary construction because they hold the data and parameter budget fixed. The vocabulary analyses help explain the outcome. The clustered inventory devotes more space to some less widely used scripts, while the patterns of actual sub-word use suggest that it preserves sharing between languages whose texts have substantial overlap.

## Deep dive: Improving Multilingual Models with Language-Clustered Vocabularies

The paper groups languages by shared subwords and shows how a fixed-size vocabulary improves multilingual question answering, inference, and entity tagging. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A shared inventory has a limited number of places

A [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) can only work with text after the text has been turned into units it can process. In the systems the paper studies, the units are sub-words. They can be as short as parts of a word or as long as a whole word. A tokenizer finds a sequence of available sub-words that covers the input, and each sub-word has an integer index. The system uses that index to look up an embedding, a learned numerical representation that becomes part of the input to the network. The vocabulary determines which strings can receive such a representation of their own and which must be expressed as a sequence of smaller pieces.

The appeal of a shared inventory in [multilingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/) is that the same index can serve wherever the same piece appears. A recurring fragment can be worth keeping if it occurs in several languages. The systems that motivate the paper, including multilingual BERT, XLM, and XLM-R, all begin with a shared sub-word inventory. They encounter many languages during pretraining and use that inventory to segment the text. Once a piece has been selected, the system can reuse its embedding across languages. The design question is how to select the pieces that earn those entries. [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) and [XLM-R](https://md.research.elamur.ai/free/en/papers/conneau-2020-unsupervised-cross-lingual-representation-learning/).

Earlier work on XLM-R had already shown that a bigger vocabulary could improve quality. The parameter cost matters because every additional entry needs an embedding. The authors point out that the embedding matrix accounts for 47% of XLM-R’s parameters. A multilingual system must account for the writing and vocabulary of all its languages within that matrix. Enlarging it gives the vocabulary learner space to keep additional pieces, but it also changes the size of the network. The paper takes the total vocabulary size as a constraint and studies what can be gained by changing its contents.

#### Why frequencies in the pool can favor the wrong pieces

The standard procedure collects multilingual text and learns a vocabulary from the collection as a whole. WordPiece, [SentencePiece](https://md.research.elamur.ai/free/en/papers/kudo-2018-sentencepiece-simple-language-independent-subword/), and [Byte Pair Encoding](https://md.research.elamur.ai/free/en/papers/sennrich-2016-neural-machine-translation-rare-words/) are among the tools and algorithms the authors discuss. In the paper’s account, these methods seek an inventory that can represent the training corpus compactly within a target size. A recurring string therefore has an advantage, and evidence for the string can accumulate across languages in the pool.

That accumulation is helpful when a piece behaves usefully in the languages that share it. The difficulty is that the same character sequence can occur for different reasons. The authors use `la` as an example. Its suitability as an independent piece in French and Spanish says little about whether it is a useful beginning to split off a longer word in another language. The combined corpus supplies evidence for the string, but the tokenizer also has to decide where it belongs. A piece selected because it is common in some languages can influence the segmentation of words in others.

The imbalance has a different form for a script used by few languages. A piece written in Latin or Cyrillic can draw on occurrences in several corpora using the same script. A piece in a less widely used script may derive most of its evidence from a much smaller part of the pool. It must still compete for entries in the same inventory. This puts pressure on the units available to [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/), including cases where the pieces that would serve them well have little chance of becoming common in the pooled counts. It also explains why the authors examine text coverage alongside the number of pieces produced by segmentation.

Resource size and script are related sources of imbalance with different consequences. A language using a common script can have its words split into pieces that are already available, giving it a readable token sequence with boundaries learned largely from other languages. A language whose script has limited coverage can face missing pieces as well as many short ones. The first case motivates looking beyond unknown tokens when assessing a vocabulary. The second motivates checking directly what fraction of the inventory represents the scripts in question.

#### How much sharing should vocabulary construction encourage?

The paper draws on an empirical study of multilingual BERT that found that shared sub-words were secondary to its cross-lingual ability. That finding leaves room for a different use of the vocabulary budget. If a multilingual system can transfer across languages even when their written pieces overlap little, it need not spend vocabulary capacity maximizing overlap for every language pair. Where words and fragments actually recur, the shared entry still has a clear purpose. Where the overlap is small, preserving useful units within each language may matter more. [Cross-Lingual Ability of Multilingual BERT](https://md.research.elamur.ai/free/en/papers/karthikeyan-2019-cross-lingual-ability-multilingual-bert/).

The two extremes make the choice concrete. Pooling every language before learning any entries lets the full corpus influence all vocabulary decisions. Learning separately for every language gives each its own chance to select pieces, but removes the opportunity to learn group-level entries from pooled evidence during that selection. The paper explores the space between these extremes. It uses text to decide which languages should learn pieces together, then keeps a shared inventory for use by the network.

This is a distinction between sharing in vocabulary construction and sharing in the network. Even if some entries are first learned from a particular group, the finished system can have one set of embeddings and common processing layers. The question is whether changing the data on which individual vocabulary decisions are made can produce a better input representation for a shared [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/).

### The method, step by step

#### Learn what each language would keep on its own

The starting point is a separate text corpus for each language. The authors run SentencePiece on each corpus to produce a provisional inventory, using a unigram language model. In this application, the unigram tokenizer scores candidate segmentations using the probabilities of their constituent pieces. Training on the language by itself lets the usefulness of a piece be judged on text from that language. The resulting inventory gives the clustering algorithm a list of strings that SentencePiece found worth keeping.

These inventories describe languages. They are also used later to size the group vocabularies. The final vocabulary is learned in a separate pass. This separation matters because the authors want both a way to discover overlap and a way to learn from it. Taking the provisional inventories directly as the finished vocabulary would provide the former signal, but would skip training a tokenizer on the combined text of languages whose inventories suggest they have something to share.

The authors first combine the provisional inventories into a set of candidate pieces. In the paper’s notation, that set is the union below.

```
V_L = ⋃ₗ∈L Vₗ
```

Here `L` is the set of pretraining languages and `l` indexes a member of that set. `Vₗ` is the provisional SentencePiece vocabulary learned from language `l`. `V_L` is the combined inventory used to describe the languages. The union symbol `⋃` collects all pieces that belong to at least one of the inventories, with `∈` indicating membership. An identical piece that appears in several inventories provides a single coordinate in the combined set.

The authors then assign one coordinate to every entry in this union. A language has a `1` at that coordinate if its provisional inventory contains the piece, and a `0` otherwise.

```
vₗ[i] = I[V_L[i] ∈ Vₗ]
```

In this expression, `vₗ` is the binary vector for language `l`, and `i` is the index of a coordinate. `V_L[i]` is the sub-word at that position in the combined inventory. `I` is an indicator, a function that returns `1` if the condition in brackets holds and `0` if it fails. `Vₗ` is the language’s own inventory and `∈` checks whether it contains the indexed piece. The value represents presence in a learned vocabulary. It carries no corpus count for that piece and no information about its contexts or meanings.

#### Group the languages by overlap

Languages whose provisional inventories contain many of the same pieces have many coordinates where both vectors are active. The authors use k-means with cosine distance to group the vectors. Cosine distance compares directions. For these binary inputs, the shared active coordinates contribute to the similarity, with the comparison taking account of the sizes of the vectors’ active parts. This gives the clustering procedure a measure of inventory overlap that can be used across all the languages.

The procedure uses `k` to set the number of groups it should find. The paper treats `k = 1` as the JOINT case, where there is one group and SentencePiece is fitted on all its text. At `k = 104`, each language contributes a separately trained vocabulary under the method. The authors chose `k = 8` following preliminary TyDi QA experiments and retained it for the other experiments. This was an empirical setting selected in the context of their Wikipedia corpora and language set.

Script labels and linguistic family labels are absent from this clustering input. Overlap can arise through ordinary words and recurring fragments, but it can also come from material copied or transliterated across articles. Accordingly, the groups are descriptions of the corpora as represented by their inventories. They can contain languages written mainly in different scripts. They can also separate languages that generally use the same script if their provisional vocabularies are sufficiently different.

#### Give each group space and learn its vocabulary

Once the group assignments are fixed, the authors pool the raw text belonging to each group and fit SentencePiece again on that pool. Before fitting it, they need a target vocabulary size. Giving more space to groups simply because their corpora are larger could reintroduce the pressure that motivated the method. Giving every group the same space would also ignore differences in how many languages it contains and how much of their vocabulary those languages share. The paper instead uses the size of the union of the provisional inventories within each group.

```
|V_cⱼ| ∝ |⋃ₗ∈cⱼ Vₗ|
```

Here `cⱼ` is the group with index `j` in the set of clusters `C`. `V_cⱼ` is the vocabulary learned from the pooled text for that group, and `|V_cⱼ|` denotes its target number of entries. On the right, `l` ranges over the languages belonging to `cⱼ`, `Vₗ` is each language’s provisional inventory, and `⋃` forms the union. The vertical bars on the right count distinct pieces in that union. The proportionality sign `∝` expresses how the targets are allocated across groups within the overall vocabulary budget.

This rule gives overlap a role in the allocation as well as in the assignments. Adding a language with many pieces absent from the other inventories makes the group’s union larger. A language whose pieces are already well represented contributes fewer new strings. The target therefore reflects both how many languages the group must serve and how much additional vocabulary those languages bring. The actual entries still come from running SentencePiece on the group’s text. The provisional union informs the size of that run.

The groups in the paper have quite different target sizes. The group containing English, Thai, and Yoruba is listed with 200,306 entries. The one containing Chinese in simplified and traditional forms, Japanese, and Korean has 25,528. A group including Arabic, Persian, and Urdu has 40,218, while the group containing Hindi, Malayalam, Tamil, and Telugu has 61,683. Those figures describe group vocabularies before the final union. They help distinguish the amount of vocabulary allocated during training from the number of distinct entries in the finished inventory.

#### Merge the group inventories for use on any input

The last step is to take the union of the group vocabularies. A piece selected by several groups becomes one entry in the shared inventory. The paper gives the construction as follows.

```
V = ⋃cⱼ∈C V_cⱼ
```

`V` is the vocabulary used by the pretrained system. `C` is the set of groups, `cⱼ` identifies a group with index `j`, and `V_cⱼ` is the vocabulary learned on its pooled text. The union `⋃` collects the sub-words from every group in `C`, keeping each distinct sub-word once. The clustering affects how entries are selected. After merging, languages draw on the inventory in common, so a group assignment serves vocabulary construction rather than routing input to a different network.

Building and using a language-clustered vocabulary The steps in order.

#### Pretrain on Wikipedia with a matched setup

The vocabulary training and pretraining draw on 906M Wikipedia sentences from 104 languages, the language set used by multilingual BERT. The SentencePiece settings reported by the authors are a unigram language model, character coverage of 0.9995, and 1M seed sentences. Character coverage controls how much of the observed character distribution the tokenizer aims to cover when it is built. The setting is especially relevant here because an inventory’s treatment of characters affects its ability to encode text even when a longer word or fragment is absent. Both JOINT and CLUSTER produce a final vocabulary of 488k sub-words.

For the matched runs, the network uses a hidden size of 768 and has 12 attention heads and 12 Transformer layers. The embedding size is 128, following an approach similar to [ALBERT](https://md.research.elamur.ai/free/en/papers/lan-2019-albert-lite-bert-self-supervised/). The embedding size is the number of components in the vector stored for each input piece, while the hidden size describes the representations used inside the Transformer. This setup has 150M parameters and was chosen to make experiments faster. Holding both that budget and the vocabulary size fixed lets the authors compare what the entries represent within the same network design.

The authors use masked language modeling for pretraining. They conceal parts of the input and train the network to recover the concealed text from its context. They use raw text with no language-specific preprocessing and apply whole-word masking, which sets the unit to be hidden using the apparent boundaries of a word. SentencePiece marks a boundary with the meta symbol `U+2581`, and the paper treats the token span between successive markers as a word. That is a practical rule for masking sub-word sequences. The authors note the complication for text such as Thai, where spaces do not ordinarily provide word boundaries in the same way.

The training procedure also controls how often a language is sampled. The authors start with its fraction of all Wikipedia sentences.

```
pₗ = nₗ / ∑ₗ′∈L nₗ′
```

`pₗ` is the empirical sentence proportion for language `l`. `nₗ` is the number of sentences in that language’s corpus. `L` is the collection of pretraining languages, and `l′` is a separate index that ranges across them in the denominator. The sum `∑` adds their sentence counts, so the division expresses the share belonging to `l`.

The authors raise those fractions to a power of 0.7 and normalize again. The resulting probabilities determine which language supplies data during pretraining.

```
qₗ = pₗ^0.7 / ∑ₗ′∈L pₗ′^0.7
```

`qₗ` denotes the resulting sampling probability for language `l`. `pₗ` is its original sentence share, and `pₗ′` is the corresponding share for language `l′`. The caret `^` denotes exponentiation and `0.7` is the smoothing exponent. The sum over all `l′` in `L` normalizes the reweighted shares. This reduces the dominance of the largest corpora in the sequence of pretraining samples. It is a separate intervention from deciding which languages contribute text to each SentencePiece run.

The authors use the LAMB optimizer with a batch size of 4096 and a learning rate of 0.0018. The rate increases linearly during a warmup covering 2.5% of the steps, then decreases linearly to 0 at the end. They clip the gradient at a norm of 1.0, which bounds the size of the gradient passed to the optimizer. They report no hyper-parameter search for pretraining. Their shorter-sequence setup uses a sequence length of 128 and 500k updates and supplies the pretrained network used for XNLI. The setup for WikiAnn NER and TyDi QA uses a sequence length of 512 and 125k updates.

The matched pretraining runs use 64 Google Cloud TPUs. The paper reports about 16 hours for the setup with sequence length 512, at about 2.3 steps per second, and about 15 hours for the setup with length 128, at 9.8 steps per second. It also trains a full-scale CLUSTER network with 24 Transformer layers, a hidden size of 1024, 16 attention heads, and an embedding size of 512. The larger setup has 550M parameters, chosen to approximate XLM-R’s parameter count. It uses length 512, a batch size of 4096, a learning rate of 0.0018, and 1.5 million steps on 256 Google Cloud TPUs. The full-scale training took 8 days. The paper reports that the experiments were run in TensorFlow.

### Experiments and results

#### Three tasks test different uses of the same vocabulary

The main comparison evaluates JOINT and CLUSTER on [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/), natural language inference, and [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/). In each case, pretraining supplies the initial network, followed by task-specific [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). The tasks use different kinds of evidence. A question-answering system must locate relevant text in a passage and identify an answer. An inference classifier makes one decision about the relationship between sentences. An entity tagger must find the boundaries of names and assign the correct labels. A change to segmentation can affect all of these, even though the way a token enters the final prediction differs.

The paper focuses on macro averages across languages, which give each language a contribution to the aggregate score regardless of how many examples it has. An average can therefore rise when the system improves for languages with smaller datasets. It can also rise when large gains for some languages accompany declines elsewhere. The authors report individual language scores to illuminate those two possibilities. The splits matter for reading the numbers. While the main comparisons for XNLI and WikiAnn NER rely on their respective test sets, the matched TyDi QA results come from the development set because its test set is private.

In the matched runs, the authors report using Adam for fine-tuning, with candidate settings evaluated across two seed values. They averaged the results of the two runs to decide which configuration was best. For the full-scale system, they used LAMB in fine-tuning because they found it more stable in that setup. The benchmark comparisons consequently answer two different questions. Matching the pretraining architecture, data, and vocabulary size provides a way to test how vocabulary construction affects results. The full-scale run asks how far the resulting approach can go in a larger system evaluated alongside published baselines.

#### TyDi QA tests the passage and the answer within it

[TyDi QA](https://md.research.elamur.ai/free/en/papers/clark-2020-tydi-qa-benchmark-information-seeking/) evaluates questions drawn from multiple languages. The version used in the paper contains material in 11 languages including English. The reported benchmark average covers 10 languages because English is excluded under the official evaluation convention. The paper reports 166,916 training examples, 18,670 development examples, and 18,751 test examples. No examples were removed, and the authors applied no preprocessing to the dataset.

The paper reports the two primary tasks separately. Passage selection, labeled SELECTP, evaluates whether the system finds the passage that answers the question. Minimal answer span, labeled MINSPAN, evaluates the smaller piece of text that constitutes the answer. Both use F1, a score that balances precision and recall under the benchmark’s evaluation rules. The authors use the official TyDi QA evaluation script. They report that a larger batch improved fine-tuning stability, settling on a batch size of 512 and searching learning rates of 3 × 10⁻⁵, 4 × 10⁻⁵, and 5 × 10⁻⁵ with 7, 8, and 9 epochs. The task settings inherited from the TyDi QA baseline include a maximum of 45 passages, an inclusion rate of 0.1 for unknown cases, a sequence length of 512, and a stride of 128 for the input windows.

For minimal answer span, the matched development-set macro F1 rises from 55.6 for JOINT to 58.5 for CLUSTER. In passage selection it rises from 69.4 to 71.7. Both averages exclude English. The authors report improvements across the evaluated languages on this task, with improvements present in both parts of the evaluation. The result is consistent with the tokenizer changing more than the handling of the answer string itself. Passage selection uses the representation of more surrounding text, and it also benefits in the same comparison.

TyDi QA development set minimal answer span macro F1, excluding English The clustered vocabulary improves the average score for locating the answer span.

**The numbers**

| System or setting | F1 |
| --- | --- |
| JOINT | 55.6 |
| CLUSTER (this paper) | 58.5 |

The larger CLUSTER system has development-set averages of 65.4 for minimal answer span and 78.0 for passage selection. The paper also submits it to the official leaderboard for the private test set. There it reports 63.4/77.7 for minimal answer span and passage selection. The multilingual BERT baseline shown in that comparison has 52.7/64.4, and the human benchmark shown alongside it is 70.1/79.9. The authors describe the full-scale test result as a state-of-the-art result for the benchmark at the time. The paper’s headline gain of +2.9 F1 concerns the matched minimal-span comparison on development data, while the full-scale test result belongs to a different experiment.

#### XNLI tests classification across languages

XNLI requires a system to classify the relation between sentences. The training set used in the paper is in English, with development and test data in 15 languages. The dataset counts reported in the paper are 392,702 for training, 2490 for development, and 5010 for test. The evaluation metric is classification accuracy. The English training input and multilingual evaluation make the result a test of how well the learned representation supports the same inference decisions across languages.

For the matched systems, the authors used a batch size of 32 and trained for 3 epochs. They searched learning rates of 1 × 10⁻⁵, 2 × 10⁻⁵, and 3 × 10⁻⁵, using development macro accuracy for selection and then evaluating the chosen system on the test data. JOINT and CLUSTER both selected 2 × 10⁻⁵. The paper reports their development macro accuracies as 68.1 and 70.2, respectively. Their test-set averages are 68.0 and 70.1.

XNLI test set macro accuracy across languages The clustered vocabulary improves average classification accuracy across the evaluation languages.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| JOINT | 68.0 |
| CLUSTER (this paper) | 70.1 |

The test-set language scores show where that average comes from. English stays at 81.3 for both vocabularies. Greek rises from 66.9 to 72.6, Hindi from 63.6 to 68.0, and Chinese from 66.4 to 71.0. Swahili rises from 54.1 to 56.7 and Thai from 64.6 to 67.6. French is the exception to the paper’s pattern of equal or better test performance, with 74.1 for JOINT and 74.0 for CLUSTER. The French development scores, 74.5 and 75.3, favor CLUSTER. The contrast between the splits cautions against giving the French test result the same interpretive weight as the pattern across languages and splits.

The full-scale CLUSTER system reports a development accuracy of 77.2. The paper’s test comparison gives it 77.0, alongside 65.4 for multilingual BERT and 79.2 for XLM-R. XNLI therefore supplies two distinct findings. CLUSTER helps in the matched vocabulary comparison, and the full-scale CLUSTER system scores below the published XLM-R result. The authors suggest the amount and domain of the pretraining data as possible reasons for the latter outcome.

#### WikiAnn NER tests transfer of entity boundaries and labels

The WikiAnn experiment follows the cross-lingual evaluation in [XTREME](https://md.research.elamur.ai/free/en/papers/hu-2020-xtreme-massively-multilingual-multi-task/), using data from the multilingual name-tagging collection and the balanced splits of Rahimi and colleagues. The task is to mark the span of an entity and predict its label. Training the tagger in English and evaluating it on text in other languages is the zero-shot transfer setting. The score is labeled-span F1. The boundaries as well as the tag matter, so identifying only part of a name fails to recover the labeled span. [WikiAnn](https://md.research.elamur.ai/free/en/papers/pan-2017-cross-lingual-name-tagging-linking/) and [Massively Multilingual Transfer for NER](https://md.research.elamur.ai/free/en/papers/rahimi-2019-massively-multilingual-transfer-ner/).

The paper reports 20,000 training examples and 262,300 examples in each of the development and test splits for WikiAnn NER. It also describes a correction to the dataset’s boundary tags for Greek, Thai, Japanese, Korean, and Chinese. An `I` tag denotes a token inside an entity, an `O` tag denotes a token outside an entity, and a `B` tag begins an entity. Where an `I` tag immediately followed an `O` tag, the authors converted its prefix to `B`. This corrects the span encoding before the two vocabulary settings are evaluated. The authors checked their scoring code against the `seqeval` library and obtained the same results.

The matched fine-tuning setup uses a learning rate of 4 × 10⁻⁵, a batch size of 32, and 2 epochs. The authors report that the settings gave stable performance in their trials and used them for both vocabularies. On the development set, the macro F1 scores are 61.3 for JOINT and 64.3 for CLUSTER. The test-set macro F1 values across all 40 languages are 61.7 and 64.5.

WikiAnn NER test set macro labeled-span F1 across XTREME languages The clustered vocabulary improves average entity tagging from English-language supervision.

**The numbers**

| System or setting | F1 |
| --- | --- |
| JOINT | 61.7 |
| CLUSTER (this paper) | 64.5 |

The language results vary more than they do on XNLI. Urdu goes from 32.9 to 61.8 in test labeled-span F1, a gain of 28.9 F1 as reported by the authors. Yoruba goes from 54.8 to 62.8, while Swahili goes from 64.7 to 72.2. Some languages lose ground. English has scores of 84.5 and 84.1, and Spanish has 77.4 and 75.5. The improvement on the macro average coexists with these losses. It reflects substantial gains for several of the languages that the joint vocabulary served less well.

For the full-scale system, the paper reports a test macro F1 of 73.6 across the 40 languages, alongside 62.2 for multilingual BERT and 65.4 for XLM-R. The authors describe the difference from XLM-R as an absolute gain of 8.2 F1. The full-scale development score is 73.7. The result shows the strength of the complete larger system in this setting. The matched comparison assigns a clearer role to vocabulary composition because JOINT and CLUSTER share the same size, training conditions, and pretraining corpus there.

### What the ablations show

#### The comparisons change the grouping and examine its consequences

The paper’s main controlled comparison changes how the sub-word vocabulary is learned and measures the consequences in the same experimental setup. It also varies the number of groups in preliminary TyDi QA work. The setting `k = 1` collapses the method to JOINT, while `k = 104` represents separate learning for each language before the resulting vocabularies are merged. The authors select `k = 8` for the main runs. The comparison treats the amount of joint learning during vocabulary construction as a variable. It does not isolate the effects of individual cluster assignments or of the rule that allocates entries to clusters.

The analyses after training are mostly comparisons of the two finished vocabularies. They examine actual sub-word use, the fraction of entries representing particular scripts, the length of tokenized sentences, and how often the tokenizer encounters material outside its inventory. These diagnostics are useful because they describe different properties. An inventory may contain entries for a script that rarely occur in a corpus. A system can also achieve adequate character coverage while splitting common words into many fragments. The paper consequently uses several kinds of evidence to connect vocabulary construction to downstream behavior.

#### Actual token use shows both sharing and separation

The authors build a new representation of each language for this analysis. They segment its monolingual corpus with a finished multilingual vocabulary, count the resulting occurrences of each sub-word, and normalize the counts to get a distribution. This differs from the binary vectors used to form the groups. Those vectors recorded whether a piece appeared in a provisional vocabulary. These distributions reflect how often pieces from the final inventory are used on real text.

The paper compares the distributions with Wasserstein-1 distance, written `W₁`, and reports its values on a ×1000 scale. Wasserstein distance compares distributions by considering how much mass would need to move to turn one into the other and the cost of those moves. The authors use it to summarize how similar two languages’ token use is under an inventory. It is a distributional measure. The values do not directly count how many types the two languages share, and they make no judgment about whether a piece has the same meaning in each language.

For English and Urdu, the reported distance on that scale is 8 with JOINT and 145 with CLUSTER. English and Japanese move from 9 to 306, while Urdu and Japanese move from 14 to 165. Japanese and Chinese show the opposite pattern, with 6 under JOINT and 1 under CLUSTER. They are in the same cluster, whereas the English–Urdu and English–Japanese pairs cross cluster boundaries. The selected comparisons show how clustering can concentrate sharing where the corpora have overlapping pieces while giving dissimilar languages more distinctive token distributions. This is stronger evidence for the intended behavior than the cluster membership alone, because it measures how the learned inventories are used.

#### The vocabulary makes more room for some scripts

The authors count the percentage of entries containing Chinese, Japanese, or Korean script characters, grouped under CJK, and do the same for Arabic-script characters. The share of CJK entries is 3.4% for JOINT and 6.1% for CLUSTER. The corresponding Arabic-script shares are 2.8% and 4.4%. These counts describe the make-up of the vocabulary. The CJK result fits the construction particularly well because the languages contribute text to a cluster of their own during vocabulary learning.

The authors connect the script counts to the frequency of out-of-vocabulary material, abbreviated OOV. A tokenizer with suitable pieces can encode more of the corpus using its known inventory. Across the pretraining text, the reported OOV rate is 0.200% for JOINT and 0.025% for CLUSTER. The paper describes this as a factor of 8 reduction. It reports reductions by a factor of 26 for Korean, 18 for Japanese, and 17 for Chinese. This is evidence that the extra representation of some scripts in the inventory changes how much text can actually be covered.

The paper also observes notable entity recognition gains for Arabic-script languages in their cluster and for Indian languages in another. Its interpretation is that better access to script-specific pieces contributes to these outcomes. That explanation is consistent with the script counts and OOV analysis, but the reported comparisons change many entries at once. The evidence supports a connection between coverage and task scores without establishing how much of a particular language’s gain a coverage change independently caused.

#### Shorter sequences help explain what changes for common scripts

The authors draw on [minimum description length](https://md.research.elamur.ai/free/en/concepts/minimum-description-length/) to compare the efficiency of the two segmentations. In this framing, an inventory is a codebook, and a tokenized corpus is the data written using that codebook. A description includes both. Under the paper’s simplified accounting, each sub-word is assigned a fixed-length integer index, typically 32 bits. The index count gives the following way to express the description length in units of those entries.

```
DL = |V| + T
```

`DL` denotes the description length in the paper’s accounting. `V` is the sub-word inventory, `|V|` counts its unique entries, and `T` counts the token indices used to encode the corpus. The plus sign combines the vocabulary term and the encoded-data term. With the vocabulary size held constant, differences in this measure come from the tokenized text. The authors report average tokens per sentence as a practical measure of that difference.

JOINT averages 20.9 tokens per pretraining sentence, while CLUSTER averages 20.2. The shorter sequences and lower OOV rates occur together. That matters because the gain in sequence length could have come with a cost in coverage if the inventory favored longer pieces while failing to retain enough alternatives for unfamiliar text. Here, both measures favor CLUSTER. In the authors’ interpretation, the inventory has more suitable pieces for individual languages, helping it encode text with fewer tokens while encountering fewer gaps.

Swahili and Yoruba are examples where coverage of a distinct script is insufficient as an explanation. Both use Latin script and have comparatively little data in the setup. The paper shows that the Swahili adverb `lazima` becomes `la` and `zima` under JOINT, whereas CLUSTER keeps `lazima` as a whole. The example makes the proposed mechanism visible. A boundary can be easy to encode with familiar pieces and still make a common word harder to represent. The authors report description lengths that are 9.4% shorter for Swahili and 11.1% shorter for Yoruba with CLUSTER. Their corresponding WikiAnn test gains are 7.5 and 8.0 F1 as reported in the paper.

The authors suggest that longer, more useful pieces simplify what the network has to learn from the token sequence. A representation made from very small pieces asks the network to combine those pieces before it can make use of the information conveyed by the original word. Keeping a familiar sequence together can make that extra combination unnecessary in some contexts. The experiments establish a correlation between the paper’s measure of description length and downstream performance in these comparisons. This is the basis for the authors’ suggestion that tokenized length could serve as a quick diagnostic while developing a vocabulary.

#### Corpora can connect languages across scripts

The authors look at some of the less obvious cluster assignments by returning to the Wikipedia articles. The Hindi and Tamil articles about India both contain the English rendering of the country’s formal name in their opening sentences. Articles in different languages discuss many of the same people and places, and translations or transliterations can recur across them. Those strings can create overlap in provisional vocabularies even where the scripts used for most text differ. The authors suggest that shared representations of names may help account for the strong entity recognition results among Indic languages in the same cluster.

They point to a related case for Korean. Korean Wikipedia can include Chinese characters in parentheses to clarify a word’s meaning. Chinese and Japanese already have substantial lexical overlap in the authors’ account. Alongside the Chinese text appearing in Korean articles, this gives the vocabulary clustering a reason to group those languages together. The clustering thus reflects what appears in the corpus, including conventions of the source material. The examples explain why assignments based on written inventories can depart from an assignment made solely by labeling each language with its main script.

### Limitations

#### Limits identified by the authors

The authors describe the full-scale comparison as an exception to their effort to hold model size fixed. Its parameter count was chosen to approximate XLM-R, but the paper trains only the CLUSTER version at that scale. It compares with published baseline scores. The authors suggest that the XNLI gap relative to XLM-R may be connected to the smaller amount of pretraining data and its restriction to Wikipedia. The full-scale gains on TyDi QA and WikiAnn characterize the whole system under the reported conditions. The matched vocabulary comparison is the basis for attributing gains more specifically to vocabulary construction.

The authors qualify their explanations for individual language effects. They hypothesize that additional coverage of rare scripts contributes to lower OOV rates and better downstream performance. They suggest that shared names may help Indic-language entity recognition. They also propose that description length can serve as a proxy for vocabulary quality because it tracks task performance in their experiments. Each explanation draws on observations that move together when the vocabulary changes. The experiments do not vary those properties independently.

The paper also acknowledges a boundary problem in whole-word masking. Its heuristic follows a SentencePiece marker associated with spacing, and some languages do not usually put spaces between words. As a consequence, the spans used for masking need not correspond closely to linguistic words in every language. Using a common heuristic gives the matched experiment a consistent procedure, while the quality of its word boundaries can still vary by language.

The TyDi QA test labels are private, so the paper uses development data for the preliminary and matched experiments and obtains a test result through the official submission for the full-scale system. The matched development averages therefore have a different role from the full-scale test averages. The appendix reports development results for the other tasks as well, allowing the reader to check whether the matched test pattern is also present on development data.

#### Limits visible in the experimental setup

The observed groups are specific to the corpora on which their provisional vocabularies were fitted. The paper’s own examples involve conventions of Wikipedia articles, including translated names and Chinese characters in Korean text. A collection with different spelling practices, genres, or conventions for including foreign-language material could change the pattern of overlap. The paper gives a method for discovering groups from text. The experiments establish the performance of the groups obtained from this particular multilingual collection.

The choice of `k = 8` came from preliminary question-answering experiments. The later results show that this choice also works for inference and entity recognition on the paper’s setup. They leave open how sensitive each task is to the number of groups and whether another grouping would help a particular language. The matched comparison changes both where candidate entries are learned and how the vocabulary space is distributed. An experiment fixing the group assignments while varying only the allocation rule would answer a separate question, as would a comparison between groups defined by lexical overlap and ones defined by script.

The binary vectors capture which sub-words the monolingual learner keeps. They omit how often each piece occurs, the contexts in which it appears, and whether it serves the same function in different languages. The paper’s language examples show why that distinction matters. An English phrase in a Hindi and a Tamil article can be genuine evidence of shared material useful to an entity recognizer. An identical short fragment found in unrelated words can also register as overlap. The method relies on the pattern across the inventory to make useful groups. The reported comparisons do not give a basis for treating every shared coordinate as evidence of a linguistic relationship.

The downstream tasks supply complementary evidence, but they cover smaller language sets than the 104-language pretraining corpus. The scores establish gains on the reported averages, and the NER results demonstrate that a gain on an average can accompany losses for individual languages. The paper describes fine-tuning across two seeds, and the full-scale pretraining run was performed once. The headline scores come without estimates of how they would vary across repeated pretraining runs. That makes the size and consistency of the observed effects more informative than a marginal difference on an individual language.

The description-length analysis also has a specific scope. With vocabulary size fixed, average tokens per sentence is a way to compare how much each inventory fragments the same corpus. It provides limited evidence about the linguistic quality of individual boundaries. A long piece can be appropriate for a common name or word, whereas a recurring short piece may be useful for productive constructions. The paper’s analysis connects shorter sequences with better results in these experiments. It leaves open how well average token count would rank inventories with different sizes, coverage, or allocation choices in other settings.

Finally, the vocabulary-generation method can be separated from the Transformer architecture, as the authors emphasize. The evidence for downstream quality comes from masked pretraining and the reported evaluation tasks. The broader claim is that a vocabulary-based system could use the procedure. The size and direction of the resulting effect on a different architecture, training objective, or corpus would require a comparison under those conditions.

### What came after

The later papers that cite this work pursue several questions raised by putting multilingual text through a shared inventory. The connection is most direct where the later work treats the tokenizer as a choice with consequences for individual languages. Other papers broaden the issue to adaptation, computing costs, or the relation between the vocabulary and the rest of the system. Their research questions help trace the paper’s place in that discussion. A specific claim about which studies reused the cluster construction, ran a direct comparison, or extended its allocation rule would require details of those studies’ methods.

#### Tokenizer quality in a particular language

[How Good is Your Tokenizer? On the Monolingual Performance of Multilingual Language Models](https://md.research.elamur.ai/free/en/papers/rust-2021-how-good-is-your-tokenizer/) takes the performance of a multilingual system within an individual language as its focus. That is a natural development of the contrast between the macro averages and the language-by-language scores in the clustering paper. An average tells a reader how the suite of languages fares overall, while a monolingual evaluation asks whether the language receiving the prediction has been served well. For tokenizer evaluation, the latter question makes resource size, the composition of the inventory, and the segmentation of common strings relevant to the interpretation.

[MuRIL](https://md.research.elamur.ai/free/en/papers/khanuja-2021-muril-multilingual-representations-indian-languages/) puts Indian languages at the center of multilingual representation. The earlier paper encounters these languages while building an inventory over Wikipedia in 104 languages. Its analysis of Indic clusters draws attention to multilingual articles about common people and places and to the named strings those articles share. A study centered on Indian languages brings the composition of that language set to the forefront. The papers are connected by the question of what shared representations need to preserve for languages that can share textual material even when they use different scripts.

[UNKs Everywhere](https://md.research.elamur.ai/free/en/papers/pfeiffer-2021-unks-everywhere-adapting-multilingual-language/) addresses adaptation to new scripts. In the clustering experiments, the set of intended languages is available when the vocabulary is rebuilt. Adaptation starts from the problem of serving a script that the existing system must learn to handle. That changes the practical role of vocabulary design. The earlier result shows that a fixed-size inventory can differ substantially in how much text it can encode. The adaptation question asks what to do when the coverage problem is already built into a pretrained system.

#### The vocabulary budget and the number of tokens it produces

[XLM-V](https://md.research.elamur.ai/free/en/papers/liang-2023-xlm-v-overcoming-vocabulary-bottleneck/) frames vocabulary as a bottleneck in multilingual masked language modeling. The clustering paper holds the number of vocabulary entries fixed and asks which pieces should fill that space. The bottleneck framing brings the capacity of the inventory itself into the discussion alongside its composition. The distinction matters when interpreting a better score. More space can help retain pieces that would otherwise be excluded, while a change in allocation can improve coverage or segmentation within a given budget.

[Scaling Laws with Vocabulary](https://md.research.elamur.ai/free/en/papers/tao-2024-scaling-laws-vocabulary-larger-models/) examines vocabulary size in relation to model size. The clustering paper had a specific reason to constrain the size of the inventory. In its motivating example, the embeddings account for a large fraction of the total parameters. Work on vocabulary scaling considers how that allocation could vary as the system grows. The two questions fit together. A vocabulary budget sets how much capacity is available for input units, and a construction procedure determines how that capacity is distributed among the pieces a system might need.

[Do All Languages Cost the Same?](https://md.research.elamur.ai/free/en/papers/ahia-2023-do-all-languages-cost-same/) brings tokenization into the study of commercial language models. The clustering paper measures input length through its description-length analysis and connects it to how finely the text is segmented. The later cost question gives sequence length a different significance. Where the token count is used to measure consumption, splitting comparable text into different numbers of units can change what a user pays. This connection follows from the treatment of tokens as a unit of accounting. The clustering experiments report corpus length and benchmark scores, rather than commercial costs.

#### Fairness and linguistic structure as design questions

[Language Model Tokenizers Introduce Unfairness Between Languages](https://md.research.elamur.ai/free/en/papers/petrov-2023-language-model-tokenizers-introduce-unfairness/) takes language-level disparities in tokenization as its subject. The clustering paper describes one source of such disparities. The frequency evidence available to a vocabulary learner can differ depending on how much text exists and how many languages can contribute pieces in the same script. The later fairness framing asks how the consequences of those differences are distributed across users and languages. It makes the individual tokenization outcome a subject of evaluation in its own right. [Bias, fairness & safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/).

[Parity-Aware Byte-Pair Encoding](https://md.research.elamur.ai/free/en/papers/foroutan-2026-parity-aware-byte-pair-encoding/) makes cross-lingual parity an explicit objective for work on Byte Pair Encoding. The clustering paper alters the corpora that compete together during vocabulary construction and assigns cluster budgets on the basis of provisional vocabulary overlap. Parity-aware work brings the balance of outcomes across languages into the design question directly. This is a distinction in what each formulation asks the vocabulary learner to account for. The cluster construction seeks to preserve useful local pieces and useful sharing. A parity objective asks how evenly the resulting tokenizer serves languages under the measure of interest.

[MYTE](https://md.research.elamur.ai/free/en/papers/limisiewicz-2024-myte-morphology-driven-byte-encoding/) brings [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/), the structure of words and their meaningful parts, into the design of a byte encoding for multilingual language modeling. The cluster method lets patterns of sub-word overlap determine how training text is grouped. A morphology-driven design starts from information about the pieces that make up words. Both lines of work respond to the fact that segmentation makes choices about which strings are worth keeping together. They use different evidence to inform that choice, and the clustering paper’s `lazima` example gives a concrete case of why the criterion can matter.

[MAGNET](https://md.research.elamur.ai/free/en/papers/ahia-2024-magnet-improving-multilingual-fairness-language/) puts adaptive, gradient-based tokenization in the service of multilingual fairness. In the clustering paper, provisional vocabularies and their overlaps supply the evidence for grouping languages ahead of pretraining. A gradient-based approach makes feedback from learning relevant to the tokenizer. This moves the question from how text should be pooled before fitting the vocabulary toward how tokenization choices can respond to the objective being optimized. Taken together, these later directions keep the same practical concern in view. The unit used to express input text shapes how different languages gain access to a shared system’s capacity.

## Cite

Cite as Hyung Won Chung, Dan Garrette, Kiat Chuan Tan and Jason Riesa. 2020. Improving Multilingual Models with Language-Clustered Vocabularies. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2020.emnlp-main.367](https://doi.org/10.18653/v1/2020.emnlp-main.367)

```bibtex
@inproceedings{chung2020improving,
  title = {{Improving Multilingual Models with Language-Clustered Vocabularies}},
  author = {Hyung Won Chung, Dan Garrette, Kiat Chuan Tan and Jason Riesa},
  booktitle = {Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.367},
  url = {https://doi.org/10.18653/v1/2020.emnlp-main.367}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
