Concepts / Evaluating LLM performance across languages

Evaluating LLM performance across languages

Both coverage and difficulty can lower quality. Adding more data helps with coverage, but it does not guarantee a complete fix if the language's structure or cultural context is still hard to learn from.

  • Programming

A Weaker Answer in Telugu

Imagine a student who is most comfortable writing in Telugu. They ask 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 first is the data a model learns from. The second is the translation shortcuts people use to work around the gap. The third is the way text is split into tokens, which affects both speed and price. For each one, we will trace what happens to the message step by step, so you can see where the quality or the cost is lost.

Following a Language Through the Training Data

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. Think of it as a learner who has read thousands of pages in one language and only a handful in another. Their answers in the less-read language will usually be shakier, even when they are equally clever.

The source material gives a concrete case. Telugu, Marathi, and Punjabi are the three languages where GPT-4 performed worst on the MMLU benchmarks. These same three languages are among the most under-represented in Common Crawl, a large web crawl dataset. The two facts line up: the languages with the least material in the training data are the ones where the benchmark results were weakest.

Structure and Culture as Extra Hurdles

Low representation is not the whole story. 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.

Key point

Both coverage and difficulty can lower quality. Adding more data helps with coverage, but it does not guarantee a complete fix if the language's structure or cultural context is still hard to learn from.

Tracing a Query Through Translation

Because 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. Many people use this approach. The source treats it as a reasonable but imperfect option, for two separate reasons.

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 quietly assumes a capability that may be missing. If the first step is shaky, every later step inherits the problem.

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.

Original queryVietnamese, speakerrelationship in pronounsEnglish translationpronouns become I and youModel answer inEnglishrelationship detail neverseenTranslated replyrelationship detail notrestoredtranslate to Englishmodel answerstranslate back
At which steps does meaning get lost when a non-English query is translated to English, sent to the model, and translated back, and where does the lost information end up?

Read the pipeline from left to right. The loss happens at the first translation step, and the model never gets a chance to recover it. The second translation step only changes the wording back into the original language; it cannot bring back a distinction that was removed earlier. This is why round-trip translation is a workaround rather than a complete fix.

Measuring Length in Tokens

Models do not read text as characters or words. They read tokens, and the same meaning can need a different number of tokens in different languages. This matters for speed and price. 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 to make this concrete. 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.

English7 tokens (median)Hindi32 tokens (median)Burmese72 tokens (median)about 4.6 times longerabout 10.3 times longer
If the same message is split into tokens in English, Hindi, and Burmese, how many tokens does each take, and what multiplier does that give relative to English?
Worked example

How much longer is a message in Burmese than in English?

Using the MASSIVE medians, how many times more tokens does Burmese need than English for the same meaning? Then apply the ratio to a hypothetical English request of 100 tokens.

  1. 1
    Write the ratio

    Divide the Burmese median by the English median: $\frac{72}{7}$.

  2. 2
    Compute the multiplier

    $\frac{72}{7} \approx 10.3$, so Burmese needs about 10.3 times as many tokens for the same meaning.

  3. 3
    Apply the ratio to a new message

    A 100-token English request would need about $100 \times 10.3 \approx 1029$ tokens in Burmese, under the same assumption that the median ratio holds for this message.

  4. 4
    Interpret the result

    If latency and cost scale with tokens, the Burmese request would take and cost roughly ten times as much as the English one, all else equal.

Result

Burmese needs about 10.3 times the tokens of English in the MASSIVE benchmark, so a 100-token English request maps to roughly 1,029 tokens in Burmese as an estimate.

What do you think happens?

Before reading the result, which of these languages needs the most tokens to express the same message: English, Hindi, or Burmese?

  • English

  • Hindi

  • Burmese

Reveal answer
Answer:

Burmese, with a median of 72 tokens in the MASSIVE benchmark, compared with 32 for Hindi and 7 for English.

The longest token count in the benchmark belongs to Burmese, which is why the Burmese multiplier is the largest of the three.

Why Behavior and Cost Diverge

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.

Cost and speed are a separate axis. Tokenization length, the translation step, and training data share each feed into what a user actually experiences. The concept map below shows how these factors connect to output quality and to the per-message cost.

Training data shareless text in the languageOutput qualityweaker answersPer-message costlatency and price riseStructure andcultureharder material to learnfromTokenization lengthmore tokens per messageTranslation stepmay lose informationfewer examples to learn fromharder to learndetails droppedcost scales with tokens
Which factors (training data share, tokenization length, translation step) feed into the difference in output quality and per-message cost between English and another language?

Common Mistakes When Comparing Languages

  • Common mistake

    Assuming round-trip translation fully restores a model's answer in another language

    What it looks like

    A Vietnamese question is translated to English, answered, and translated back, but the reply treats the speakers as strangers.

    Why it fails

    Pronouns that encode the speakers' relationship all became I and you, so the detail was gone before the model answered.

    Do this instead

    Treat translation as a workaround that can drop information, and check whether the distinctions that matter survive the trip.

  • Common mistake

    Treating a token count difference as a measure of quality

    What it looks like

    Concluding that Burmese is a worse language for models because its messages are longer in tokens.

    Why it fails

    Token length measures how the text is split, not how well the model understands it. Quality and token count are separate measurements.

    Do this instead

    Report token length as a cost and latency factor, and measure quality with separate tests.

  • Common mistake

    Applying the median multiplier to every message as an exact figure

    What it looks like

    Multiplying a single 100-token English message by 10.3 and reporting exactly 1029 tokens as the cost.

    Why it fails

    The 7 and 72 values are medians over a dataset of short texts. One message can differ from the median, and the time-per-token assumption may not hold.

    Do this instead

    Present the result as an estimate under stated conditions, and measure real message lengths when precision matters.

  • Common mistake

    Assuming a language-focused model removes every language gap

Practice Estimating Token Cost

MEDIUM

Using the MASSIVE medians (7 tokens for English, 32 for Hindi), calculate how many times longer a Hindi message is in tokens than an English message with the same meaning. Then estimate the Hindi token count for a 50-token English request, assuming the median ratio holds.

Hints
  • Divide the Hindi median by the English median to get the multiplier.
  • Multiply the English request length by that multiplier, and remember this is an estimate under the time-per-token assumption.
MEDIUM

A colleague says that since a Telugu answer costs more, the model must simply know less Telugu. Write two sentences explaining why cost and knowledge are separate questions, citing one factor from this article for each.

Hints
  • Think about what drives per-message cost: token count, latency, and price.
  • Think about what drives output quality: training data share, structure and culture, and the translation step.

Key Takeaways

  • Under-representation in training data is a major reason models perform worse in some languages. Telugu, Marathi, and Punjabi were the three weakest languages for GPT-4 on the MMLU benchmarks and are among the most under-represented in Common Crawl.
  • Translating a query into English and back is a common workaround, but it depends on the model understanding the original language and can drop information, such as relationships between speakers encoded in Vietnamese pronouns.
  • Tokenization efficiency varies by language. On MASSIVE the median token length was 7 in English, 32 in Hindi, and 72 in Burmese, so a message in Burmese is about 10.3 times longer in tokens, and latency and per-token cost scale with that count.
  • Model behavior can also differ by language, as NewsGuard's test of ChatGPT-3.5 showed for misinformation in English versus Chinese. The source states that the cause of this difference is unclear, and language structure and culture also affect quality alongside data volume.

Related concepts

More concepts starting with E