Under-representation of languages in training data
Under-representation in training data is a major reason models perform worse in some languages, as shown by Telugu, Marathi, and Punjabi on GPT-4's MMLU benchmarks, though a language's structure and culture also matter.
A Student's Experience With a Chatbot
Imagine a student who is most comfortable writing in Telugu and asks a chatbot a detailed question about a school subject. The answer comes back weaker than it would have been in English. Some sentences feel off, and a few facts are hard to trust. The student did nothing wrong, and the question was not harder than an English one. The gap comes from how the model was built and what it was taught on.
This article follows that gap through three places where it shows up: the data a model learns from, the translation shortcuts people use to work around it, and the way text is split into tokens, which affects both speed and price. Along the way you will learn how to compute a simple ratio that measures how under-represented a language is in web data, and how to read that ratio without drawing the wrong conclusion.
What do you think happens?
Before reading the benchmark result, which of these three languages do you think needs the most tokens to express the same message: English, Hindi, or Burmese?
Reveal answer
Burmese. On the MASSIVE benchmark the median token length was 7 in English, 32 in Hindi, and 72 in Burmese.
The same meaning can take far more tokens in some languages than in others. That difference drives both how slow and how expensive a request is.
How Training Data Shapes a Model
Under-representation of a language in Common Crawl means its share of the data is much smaller than its share of world speakers, even when it has many speakers. Common Crawl is a large web crawl dataset.
A model learns patterns from the text it is trained on. If a language appears only rarely in that text, the model has fewer examples to learn from, and it tends to perform worse in that language. The source points to a concrete case: Telugu, Marathi, and Punjabi are the three languages where GPT-4 performed worst on the MMLU benchmarks, and these same three languages are among the most under-represented in Common Crawl.
- 1Web text is collected into a large crawl, and most of that text is written in English.
- 2A language with few pages in the crawl gives the model only a small number of examples to learn from.
- 3With fewer examples, the model learns that language's patterns less thoroughly.
- 4When someone later asks a question in that language, the answers tend to be weaker than the same question asked in English.
The mechanism is about how much material the model sees, not about whether the language is worth learning. The source describes this as a major reason for worse performance, which is why representation in the training data is the first place to look when a model is weak in a language.
Why Structure and Culture Also Matter
Low representation is a major factor, but it is not the only one. The source notes that a language's structure and the culture it carries can make it harder for a model to learn, even when there is a reasonable amount of text. Coverage tells you how much material exists. Structure and culture affect how difficult that material is to learn from.
Translating Queries Through English
Since LLMs are generally good at translation, a tempting workaround is to translate every non-English query into English, let the model answer in English, and then translate that answer back into the original language. The source treats this as a reasonable but imperfect option, for two separate reasons. The diagram below traces the path a query takes through this pipeline and marks where meaning can be lost.
The first reason is a dependency. The translation step only works well if the model understands the original language sufficiently. For an under-represented language, the translation itself can be the weak point, so the workaround assumes a capability that may be missing.
The second reason is information loss. Some languages mark the relationship between speakers directly in their pronouns. Vietnamese is the source's example. When such a sentence is translated into English, the various pronouns all become I and you, so the information about how the two speakers relate to each other disappears. The English model never sees it, and the translated-back reply cannot restore what was dropped.
Behavior That Differs by Language
Quality problems are not the only way language affects a model. The source reports that model behavior can also differ by language in ways that matter for safety. NewsGuard tested ChatGPT-3.5 in April 2023 by asking it to write misinformation articles about China. The same kind of request was made in English, in simplified Chinese, and in traditional Chinese. The model declined to produce false claims for six of seven English prompts, but it produced false claims all seven times in simplified Chinese and all seven times in traditional Chinese.
The source states that the cause of this difference is unclear. What it does establish is that the same model can behave differently depending on the language of the request, so a safety check run only in English does not cover the other languages.
Token Counts and the Cost of a Message
A model reads and writes text as tokens, and the amount of work it does depends on how many tokens are involved. According to the source, a model's inference latency and cost are both proportional to the number of tokens in the input and the response. If a language needs more tokens to express the same meaning, every request in that language takes longer and costs more, even when the model's quality is the same.
The source gives a benchmark. Yennie Jun tested GPT-4 on MASSIVE, a dataset of one million short texts translated across 52 languages. For the same meaning, Burmese and Hindi needed far more tokens than English or Spanish. The median token length was 7 in English, 32 in Hindi, and 72 in Burmese.
How many times longer is a Burmese message?
Using the MASSIVE median token lengths, how many times as many tokens does a Burmese message need compared with the same message in English?
- 1Identify the two values
The median is 72 tokens for Burmese and 7 tokens for English.
- 2Divide Burmese by English
Dividing the Burmese count by the English count tells you how many English-sized token budgets the Burmese message uses. $$\frac{72}{7} \approx 10.3$$
- 3Interpret the result
A Burmese message needs about 10.3 times as many tokens as the same English message. Every request in Burmese takes longer and costs more in proportion to that count, under the source's assumption that token generation time is the same in every language.
A median Burmese message is about 10.3 times as long in tokens as the English message.
The same division works for Hindi: $\frac{32}{7} \approx 4.6$, so a Hindi message needs about 4.6 times the tokens of the English one. The ratio is the tool for comparing any two languages, and it is the number to use when estimating a bill or response time from a token count.
Fitting a message into a fixed context window
Suppose a model has a fixed context window of 4,096 tokens (a hypothetical limit for this example), and a language needs 2.5 times as many tokens as English for the same message. How much English-equivalent content fits in the window?
- 1Compute the usable budget
The window is fixed at 4,096 tokens, so the space available for the message does not grow.
- 2Divide by the token multiplier
Each unit of English content costs 2.5 units of tokens in this language. $$\frac{4096}{2.5} \approx 1638$$
- 3Interpret the result
Only about 1,638 tokens' worth of English-equivalent content fit, roughly 40 percent of what the same window holds in English.
About 1,638 English-equivalent tokens fit, against 4,096 in English.
Measuring the Crawl Gap With a Ratio
The source measures under-representation by comparing two percentages for each language: the percent of the world population that speaks it, and the percent of Common Crawl written in it. Dividing the first by the second gives a single number. The question is not simply whether a language appears in the data, but whether its presence is in line with how many people speak it.
If the two shares matched perfectly, the ratio would be 1. The further the ratio rises above 1, the more the language is under-represented relative to its speakers. A ratio below 1 indicates the opposite: a language that is over-represented in the crawl compared with its speaker share. Because both numbers are percentages, the percent sign cancels and the result is a plain number.
- 1Find the language's share of world speakers as a percentage.
- 2Find the language's share of Common Crawl as a percentage, using the same scale.
- 3Divide the speaker share by the crawl share.
- 4Read the result: 1 means balance, values above 1 mean under-representation, values below 1 mean over-representation.
Common Errors When Reading the Ratio
Common mistake Reversing the division
What it looks likeDividing crawl share by speaker share for English gives 45.88 divided by 18.15, about 2.5, and suggests English is under-represented.
Why it failsThe ratio is defined as speaker share divided by crawl share, so the direction is fixed.
Do this insteadDivide the world speaker share by the Common Crawl share, then compare the result to 1.
Common mistake Treating the ratio as a percentage
What it looks likeReading a ratio of 231.5 as 231.5 percent of the crawl.
Why it failsThe two percentages cancel, so the result is a plain number, not a share.
Do this insteadRead the ratio as a multiple of balance: 231.5 means about 231 times more under-represented than balance would predict.
Common mistake Assuming many speakers means a low ratio
What it looks likeConcluding that Bengali is well represented because it has many speakers.
Why it failsThe ratio depends on the crawl share as well as the speaker count, and Bengali's ratio is still about 36.56.
Do this insteadCompare the speaker share with the crawl share for that same language.
Common mistake Treating a ratio of 1 as proof of good model quality
Why it failsThe ratio measures representation in the data only. The source notes that structure and culture also affect how well a model learns a language.
Do this insteadUse the ratio as one piece of evidence, alongside benchmarks and checks of specific behavior.
Common mistake Reading the ratio from a tiny sample as precise
Why it failsA few values on one table describe a pattern, not an exact measurement of every language.
Do this insteadDescribe the pattern and its direction rather than claiming exact performance.
| Reading | What it means | Correct interpretation |
|---|---|---|
| Ratio = 1 | Speaker share equals crawl share | Balanced representation |
| Ratio above 1 (e.g. 36.56) | Speaker share exceeds crawl share | Under-represented relative to speakers |
| Ratio below 1 (e.g. 0.40) | Crawl share exceeds speaker share | Over-represented relative to speakers |
Interpreting the representation ratio at three reference points
English Dominance and Model Performance
The source connects the representation gap to the behavior of general-purpose models such as GPT-4. English holds a very large share of Common Crawl, so models that draw on this text tend to work much better in English than in other languages. The concept map below links the pieces: the crawl composition, the training data, the model, and the per-language scores.
The clearest example in the source is the MMLU benchmark, a suite of 14,000 multiple-choice problems spanning 57 subjects. GPT-4 performed much better on MMLU in English than on the same kind of questions in under-represented languages such as Telugu. The questions in the other languages were produced by translating the English versions with Azure AI Translator.
A second line of evidence comes from math. Yennie Jun gave GPT-4 six problems from Project Euler in an informal test. GPT-4 solved problems posed in English more than three times as often as problems posed in Armenian or Farsi, and it failed every one posed in Burmese and Amharic. Because the test used only six problems, read it as an illustration of a pattern rather than a precise measurement. Its value is that the same direction of disparity appears in a task that requires multi-step reasoning, not just recall of facts.
Where Language-Focused Models Fit
One response to these gaps is to train models that focus on a particular non-English language. The source says many such models exist. Chinese is the most active language after English, with models such as ChatGLM, YAYI, and Llama-Chinese. Other examples include CroissantLLM for French, PhoGPT for Vietnamese, and Jais for Arabic, and the source notes there are many more.
Practice Reading the Ratio and Token Costs
A language has 3.5 percent of world speakers and 0.5 percent of Common Crawl. Compute its representation ratio and say whether it is under-represented, balanced, or over-represented. Then, if the same message in this language needs 4 times the tokens of its English version, state how many times longer the request is.
Hints
- Divide the world speaker share by the Common Crawl share. Keep the order: speakers first.
- A ratio above 1 means the language is under-represented in the crawl relative to its speakers.
- The token multiplier is a direct ratio: 4 times the tokens means 4 times the length under the source's cost assumption.
Explain in two sentences why the translate-and-back workaround can fail for a language whose pronouns encode the relationship between speakers, and why it is still a reasonable option for some requests.
Hints
- Think about where the information is lost: before the model sees the text, or after it answers.
- Consider what the workaround depends on: the model must understand the source language well enough to translate it.
Key Takeaways
- Under-representation of a language in training data lowers model performance in that language, because the model has fewer examples to learn from; structure and culture also matter, so more data alone is not a complete fix.
- Translating queries into English and back is a reasonable but imperfect workaround: it depends on the model understanding the source language and can lose information such as pronoun-encoded relationships.
- Token counts differ by language (median 7 in English, 32 in Hindi, 72 in Burmese), and since latency and cost scale with tokens, the same message can cost and take far more in some languages.
- The representation ratio divides a language's world speaker share by its Common Crawl share: 1 means balance, values above 1 mean under-representation, and values below 1 mean over-representation, such as English at about 0.40.
- English dominance in the crawl is linked to better general-purpose model performance in English on benchmarks such as MMLU, so check a model's behavior in the specific language you use.