Sovereignty Starts at the Tokenizer
AI / ML Architecture

Sovereignty Starts at the Tokenizer

Data residency is the easy half of sovereign AI. The vocabulary your model reads with decides what your language costs.

Ibrahim AbuAlhaol, PhD, P.Eng., SMIEEE

AI Technical Lead

Published: August 20, 2026 | Reading Time: 7 min

The most expensive sovereignty decision in an Arabic AI program is usually made before anyone has picked a model, by people who do not speak Arabic. It is made in the tokenizer.

Sovereign AI is sold as geography. The data stays in the country, the GPUs sit in a national facility, the contract names a local entity, and a minister cuts a ribbon. All of that is real and all of it is the easy half. Everything running on that hardware arrived from somewhere else: the base weights, the vocabulary the model reads with, the training recipe, and the benchmark used to declare the result good. Each of those carries design choices made by teams optimizing for English, and those choices do not stop applying at the border.

Data residency decides where your text sleeps. The tokenizer decides what your language costs. Only one of those appears on every invoice, every latency budget, and every context window you will ever pay for.
Six layers of an AI sovereignty claim and which ones a residency contract actually covers A stack of six layers. The bottom two, data residency and serving infrastructure, are marked as owned. The four above them, model weights, tokenizer and vocabulary, training recipe, and evaluation, are marked as imported. A typical sovereignty contract covers only the bottom two. Six layers of a sovereignty claim LAYER IN PRACTICE Evaluation: the benchmark you are graded on IMPORTED Training recipe: data mix, curriculum, tuning IMPORTED Tokenizer and vocabulary IMPORTED Model weights IMPORTED Serving infrastructure and accelerators OWNED Data residency: where the text is stored OWNED Amber layers are the ones a data residency contract does not cover.
Figure 1. Most sovereignty programs buy the bottom two layers and rent the four above them. The four above are where the behaviour of the system is actually decided.

What a tokenizer costs a language

A tokenizer is the lookup table that turns text into the numbered pieces a model consumes. It is trained on a corpus, and it learns to keep frequent sequences whole while splitting rare ones into fragments. Aleksandar Petrov and colleagues measured what happens when the same passage is translated into different languages and fed through the same tokenizer. The token counts diverged by as much as fifteen times. That gap opens before the model runs at all, and it persists in tokenizers that were built with multilingual support in mind.

Arabic sits on the wrong side of that gap for a structural reason. Words are built from a consonantal root shaped by a pattern, and prepositions, the definite article, conjunctions and possessive pronouns all attach directly to the word rather than standing apart. A single written Arabic word can carry what English spreads across five. A vocabulary learned mostly from English text has no reason to store that word as a unit, so it arrives at the model in fragments that line up with nothing meaningful.

One Arabic word segmented by meaning, by an English-first vocabulary, and by an Arabic-first vocabulary The Arabic word wabimadarisihim carries four units of meaning: and, in, schools, their. An English-first vocabulary breaks it into roughly seven fragments that do not match those units. An Arabic-first vocabulary covers it in about three, close to the morphology. One Arabic word, three ways to cut it UNITS OF MEANING wa and bi in madaris schools him their 4 meanings ENGLISH-FIRST VOCABULARY و ب مد ار س ه م 7 tokens ARABIC-FIRST VOCABULARY وب مدارس هم 3 tokens The word is wabimadarisihim (and in their schools). The two Arabic rows read right to left. Schematic. The exact pieces depend on the tokenizer, which is the point.
Figure 2. The fragments are not wrong, they are foreign. A vocabulary trained on Arabic keeps the word closer to whole, and every downstream cost is measured in those pieces.

That fragmentation is billed three times. It is billed in price, because commercial inference is metered per token. It is billed in latency, because output tokens are produced one after another and a longer sequence takes longer to finish. And it is billed in context, because a fixed window holds fewer Arabic words than English ones. The third bill is the one that damages systems rather than budgets. A retrieval pipeline sized for English documents quietly truncates Arabic ones, and nobody sees an error.

How many words a fixed 128,000 token context window holds at different tokens per word At 1.3 tokens per word a 128,000 token window holds about 98,000 words. At 1.5 it holds about 85,000. At 2.0 it holds 64,000. At 3.0 it holds about 43,000, less than half the first case. The same 128,000 token window, measured in words 1.3 tokens per word 98,000 words 1.5 tokens per word 85,000 words 2.0 tokens per word 64,000 words 3.0 tokens per word 43,000 words Arithmetic only: 128,000 divided by tokens per word. Tokens per word varies by tokenizer and by text. Measure yours on your own corpus.
Figure 3. A context window is advertised in tokens and consumed in words, and the exchange rate between them is set by a file you probably did not choose. The multipliers are illustrative, the arithmetic is not. Cross-language token disparity documented in Petrov et al., NeurIPS 2023.

The layers you can actually own

The useful move is to stop arguing about whether a system is sovereign and start listing which of the six layers in Figure 1 you control. Data residency and serving are commercial questions with commercial answers. The layer that changed recently is the weights.

Arabic-first open models now exist and are documented in the literature. Jais, released in 2023 by Inception, MBZUAI and Cerebras, is a 13 billion parameter model pretrained on a mixture of Arabic, English and code, and it outperformed the open multilingual models of its size on Arabic. ALLaM came out of Saudi Arabia's SDAIA. Fanar was built end to end at Qatar Computing Research Institute under Hamad Bin Khalifa University, sponsored by Qatar's Ministry of Communications and Information Technology with the stated purpose of enabling sovereign AI development. Fanar Star is 7 billion parameters trained from scratch on roughly a trillion tokens. Fanar Prime is 9 billion, built by continuing training on top of Gemma-2 9B with the same corpus.

That second variant is the pattern worth copying. You do not have to pretrain from zero to own a model. You take open weights, extend the vocabulary so your language stops being fragmented, continue training on your own corpus, and the result is a model you can serve, audit, quantize and modify without asking anyone. Sovereignty at the weights layer is now an engineering project rather than a national program.

Small models are what make independence affordable

There is a persistent assumption that a sovereign model has to be a large one, and it is the assumption that kills these programs at the budget stage. When my co-authors and I assessed the full carbon bill of Noor, a very large Arabic language model, we accounted for data collection and storage, research and development, pretraining, and projected serving. Inference and the exogenous costs around the project moved the total more than people expected. Training is the headline. Serving is the mortgage.

Read that in money and the conclusion is the same. A 7 to 13 billion parameter Arabic-first model that fits on hardware you already have turns sovereignty into a line item. Frontier-scale sovereignty stays a slide. And because the smaller model reads Arabic with an Arabic vocabulary, it also spends fewer tokens per document than a much larger multilingual model, so it wins on latency and unit cost at the same time it wins on quality for the language you care about.

Evaluation is the layer nobody can sell you

The top of the stack is the layer most programs never budget for. ArabicMMLU, published at ACL 2024 by a team at MBZUAI, covers 40 tasks and 14,575 multiple choice questions in Modern Standard Arabic, drawn from school exams across North Africa, the Levant and the Gulf. It is the right place to start and it is not your benchmark. It does not contain your dialect, your regulations, your document formats, or the way your customers actually type when they are annoyed.

A few hundred items written and graded by your own staff, in the dialect your users write in and on the tasks your system is bought to perform, is the one artifact no vendor can supply. It is also the artifact that makes every layer beneath it swappable. When you own the evaluation, changing model providers becomes a Tuesday afternoon. When you do not, you are choosing between vendors on the strength of their own report cards.

What leaders should do

  1. Measure tokens per word on your own corpus before you shortlist a model. Take a thousand real documents, run them through each candidate tokenizer, and multiply the result by your price per token and your context window. That number will shape your budget more than any benchmark score on the vendor's slide.
  2. Write your sovereignty claim as the six layer table in Figure 1 and mark each layer owned, rented or imported, with a named owner. If the honest version and the publishable version differ, you have found your roadmap.
  3. Fund the evaluation set before the model. Commission 300 to 500 items in your dialect and your domain, graded by your own people, versioned in a repository, and re-run against every candidate.
  4. Default to the smallest Arabic-first open-weight model that passes that evaluation, extend its vocabulary on your corpus rather than pretraining from scratch, and repeat the comparison every quarter as new open weights appear.

Sovereignty is not a place. It is a list of dependencies you can name, priced and owned deliberately rather than by default. The tokenizer earns first mention because it is the most invisible dependency in the stack and the one that charges you on every single request, in a currency that never appears in the procurement document.

The encouraging part is that the layers have become cheaper to own in the past three years. Arabic-first open weights exist and are documented. Vocabulary extension is well understood. Continued pretraining on a national corpus is within reach of a competent team with a modest cluster. What remains scarce is the willingness to measure what your own language costs you, and to build the evaluation that only you can build.

Related Articles

References & Extended Literature

  1. Petrov, A., La Malfa, E., Torr, P. H. S., & Bibi, A. (2023). Language Model Tokenizers Introduce Unfairness Between Languages. Advances in Neural Information Processing Systems 36. arxiv.org/abs/2305.15425
  2. Sengupta, N., et al. (2023). Jais and Jais-chat: Arabic-Centric Foundation and Instruction-Tuned Open Generative Large Language Models. arxiv.org/abs/2308.16149
  3. Fanar Team, Qatar Computing Research Institute (2025). Fanar: An Arabic-Centric Multimodal Generative AI Platform. arxiv.org/abs/2501.13944
  4. Bari, M. S., et al. (2024). ALLaM: Large Language Models for Arabic and English. Saudi Data and AI Authority. arxiv.org/abs/2407.15390
  5. Koto, F., Li, H., Shatnawi, S., et al. (2024). ArabicMMLU: Assessing Massive Multitask Language Understanding in Arabic. Findings of ACL 2024. arxiv.org/abs/2402.12840
  6. Lakim, I., Almazrouei, E., Abualhaol, I., Debbah, M., & Launay, J. (2022). A Holistic Assessment of the Carbon Footprint of Noor, a Very Large Arabic Language Model. Proceedings of BigScience Episode #5, Workshop on Challenges & Perspectives in Creating Large Language Models, ACL. aclanthology.org/2022.bigscience-1.8