Skip to content
Mohammad Awadallah
All posts

Test a model's Arabic before you rely on it

English leaderboards won't tell you how a model handles your Arabic text. Here is a practical way to build a small test set from your real tasks and score any model on it.

4 min readAlso in:العربيةFrançais

Every week a new model ships with a results table that says it is the best. Most of those numbers are measured in English, on multiple-choice questions. If your work happens in Arabic, the table doesn’t answer the question that matters: will this model understand my text and write correct Arabic on my tasks?

Why English results aren’t enough

1. Performance doesn’t carry over between languages. When researchers published ArabicMMLU — 14,575 questions from real school exams across North Africa, the Levant and the Gulf — the best Arabic-centric model scored only 62.3%, and well-known models such as LLaMA2 and Falcon struggled to reach 50%.

2. Machine translation distorts the test. When the Open Arabic LLM Leaderboard released its second version in February 2025, it dropped the machine-translated tasks, because translation introduced linguistic and cultural mismatches that don’t reflect real Arabic. A test translated from English partly measures the translation, not the model.

3. Arabic can cost you more. The tokenizer turns text into the units a model reads. A NeurIPS 2023 study found that the same text, once translated, can differ in token length by up to 15 times between languages in some cases. More tokens mean higher bills on paid APIs, slower responses, and less room in the context window. Measure this on your own text instead of assuming a figure.

4. Published scores can be inflated. A NAACL 2024 study showed that questions from some popular benchmarks have leaked into training data, so models recall answers instead of working them out. Your private test set can’t have leaked — it was never published.

Build your own test set

You don’t need thousands of examples. Thirty to fifty from your real work reveal more than any leaderboard.

Step 1: collect tasks as they are. Take examples of what you will actually send the model: a customer message that needs a reply, a report that needs a summary, text with data to extract into a table. Strip personal or confidential details first.

Step 2: vary the Arabic. Include formal Modern Standard Arabic, dialect as people really type it, mixed text with English terms, and numbers in both scripts (٣ and 3). Models usually stumble on the mixed cases, not on clean formal prose.

Step 3: write down what counts as correct. For extraction and classification the answer is fixed, so compare it directly. For writing tasks, write clear criteria: is the reply polite? Does it stick to the facts given? Is the Arabic grammatical? Does it avoid inventing information?

Step 4: add trick questions. Ask about something that isn’t in the text you provided. A good model says the information isn’t there; a weak one invents a confident answer.

Scoring without losing a week

Tasks with a fixed answer: a short script that compares output to the expected answer is enough. If you want a ready-made tool, the open-source promptfoo reads a config file of prompts and checks, runs it against several models — local Ollama models included — and shows the results side by side. For academic benchmarks there is EleutherAI’s lm-evaluation-harness.

Open-ended tasks: a strong model can grade the others’ answers (LLM-as-judge). The MT-Bench study found GPT-4’s verdicts agreed with humans over 80% of the time — the same rate at which humans agree with each other — but that was measured in English. For Arabic, the BALSAM team found model judgments correlated strongly with human ones, while automatic metrics such as BLEU and ROUGE correlated very poorly, so they dropped them.

Watch for the judge’s documented biases, though: it favors longer answers, the answer shown first, and answers from models like itself. In practice:

  • Swap the order of the answers and grade again.
  • Check a sample of its verdicts yourself — at least ten.
  • Never let a model grade itself.

Measure more than correctness

  • Latency: how many seconds until a full reply on your real Arabic text?
  • Token count: how many tokens does the same text take in each model? That sets the cost and how much fits in context.
  • Consistency: run the same prompt three times. A model that is right once and wrong twice doesn’t belong in a production system.

The takeaway

Leaderboards help you narrow the field to three or four models, but the decision should come from your own test set. Thirty examples from your work, written criteria and repeated runs are enough to know which model deserves to be built on. And when a new model ships next week, you rerun the same set in an hour instead of believing a new table.