Indic Shift: One Vocabulary for India’s Languages

An open-source BPE tokenizer that unifies ten Brahmic scripts into one shared vocabulary, cutting Indic tokens up to 5× and training better models at equal compute.

Ask a frontier language model the same question in English and in Odia, Kannada, Malayalam, or Gujarati, and the Indian-language prompt takes two to five times as many tokens. That translates directly into higher API bills, slower generation, and a smaller context window for the same meaning.

India’s 22 scheduled official languages are written across 12 scripts: ten Brahmic scripts (covering 19 of those 22 languages, since Devanagari and Bengali are each shared by multiple languages), plus Arabic script for Urdu and Kashmiri and Ol Chiki for Santali. Those ten Brahmic scripts organize consonants, vowel signs, and viramas in parallel phonetic tables, yet UTF-8 puts each script in a separate 3-byte range. Byte-level BPE therefore treats Hindi भारत, Bengali ভারত, Gujarati ભારત, Odia ଭାରତ, and Telugu భారత as unrelated byte sequences and learns the same words ten separate times.

We are open-sourcing Indic Shift (Apache 2.0): a byte-level BPE tokenizer with a reversible pre-BPE transform that maps all ten Brahmic scripts into one shared vocabulary, covering all 22 scheduled languages without hurting English or code. Both sizes, indic-shift-262k and indic-shift-131k, are available now on GitHub and Hugging Face.

1.73tokens per word across all 22 scheduled Indian languagesGemma 4 3.38
Llama 3.1 8.55

2×effective vocabulary sizeIndic Shift 131K matches
plain BPE 262K

23% lesstraining compute to beat Gemma 4’s 1B modelsame documents
15.46B vs 20B tokens

How one vocabulary reads ten scripts

In 1991, the Bureau of Indian Standards published ISCII (Indian Script Code for Information Interchange). Because India’s Brahmic scripts share the same phonetic layout, ISCII encoded letters once and used a small shift code to mark which script was active. Unicode kept much of that row order inside each 128-code-point script block, but UTF-8 gave every block different leading bytes. As a result, BPE merges learned in Devanagari never transfer to Gujarati, Odia, Telugu, or Kannada.

Indic Shift brings that separation of phonetic body and script state into modern byte-level BPE as a small, deterministic, lossless transform that runs before BPE on encode and in reverse on decode.

Figure 1. How Indic Shift reads a word, and what it learns

1Take a word

ભારત

Bharat, in Gujarati

2Decompose it

→ Gujaratiscript marker+ભbha+ ાaa+રra+તta

One script marker, then one atom per letter: consonants, vowel signs, viramas. Every script shares the same atoms.

3Learn tokens

#13352→ Gujarati+#3092bha aa ra ta

BPE learns one token for the script marker and one for the four atoms.

In the end, the same word in four scripts1 word token, 3 script tokens

Devanagari

Gujarati

Telugu

Malayalam

भारत

bhaaarata

#3092

ભારત

→ Gujaratibhaaarata

#13352#3092

భారత

→ Telugubhaaarata

#9210#3092

ഭാരത

→ Malayalambhaaarata

#9603#3092

The word is the same token, #3092, in every script

भारत (Bharat, “India”) as it appears mid-sentence; every number is a real token ID. Steps 1 to 3 follow the word in Gujarati. In the end, every script decomposes to the same atoms, so the word is one token in all four. Outside Devanagari, the default, a script token comes first: once per run of a script, shared by every word in that run.

The transform runs before BPE on encode, and in reverse on decode. It does four things:

  1. Maps every letter to a shared atom. Unicode gives each Brahmic script its own block of 128 code points but keeps largely the same row order inside it, so a letter sits in the same place in each: भ (U+092D), ભ (U+0AAD), ଭ (U+0B2D), భ (U+0C2D). Indic Shift replaces all four with one shared phonetic atom, bha. Vowel signs, viramas and digits get shared atoms the same way.
  2. Writes the script once, as a marker. When the text changes script, Indic Shift emits a single marker token, and every atom after it belongs to that script until the next marker. Devanagari is the default and needs none, so Hindi, Marathi, Nepali and Sanskrit pay nothing.
  3. Runs BPE on the shared stream. Byte-level BPE then learns its merges over the atom stream instead of each script’s own bytes, so a word learned in one script is already in the vocabulary for the others: भारत is one entry, #3092, in all four scripts of Figure 1.
  4. Reverses exactly on decode. The markers carry the script state, so decoding restores the original text bit for bit. Private-use code points in the input are escaped first, so no text can collide with an atom or a marker. Urdu, Kashmiri and Santali, which are not written in Brahmic scripts, pass through unchanged.

Figure 2 shows the result: shared IDs across nine scripts, and under “Under the hood”, the exact stream of atoms and markers that BPE sees.

Figure 2. Shared token IDs across nine scripts, and the exact stream underneath

In Indic Shift 262K, each word is the same token in every script that spells it with the same letters: all nine scripts for कमल, सरकार and पुस्तक, and eight for नगर and भारत, where Tamil has no letter for ga or bha. A script marker comes once per run of a script, not once per word. The other columns count each tokenizer’s tokens for the word on its own.

Lowest token count across all 22 languages, with zero English or code tax

Bolting Indic tokens onto a legacy Western tokenizer by evicting existing entries is a zero-sum trade. Sarvam-105B, for example, replaces 22,830 entries of Gemma 3’s 262K vocabulary: it improves Indic over Gemma, but inherits Gemma’s weaker code efficiency (0.313 tok/byte) and loses compression on non-Indic global languages.

Sharing atoms across ten Brahmic scripts creates capacity from inside the vocabulary. Across all 22 scheduled Indian languages on IN22-Gen, Indic Shift 262K uses 1.4× fewer tokens than Sarvam-105B, 1.5× fewer than BharatGen Param2-17B, 1.8× fewer than Soket EKA-1, 2.0× fewer than Gemma 4, 2.5× fewer than GPT o200k, and 5× fewer than Llama 3.1 and Qwen3. It beats every external tokenizer across all 22 Indian languages individually (22/22 on IN22-Gen and IN22-Conv, 20/20 on FLORES Indic) while also beating Sarvam-105B, Soket EKA-1, and Gemma 4 on English (1.191), Romanized Indic (2.378), held-out code (0.262), and BFCL tool-calling (0.243).

Figure 3. Average fertility across all 22 scheduled Indian languages (IN22-Gen, tokens/word ↓)

Indic Shift 262K262K vocab1.73
Indic Shift 131K131K vocab · half size1.91
Sarvam-105B262K vocab2.45
BharatGen Param2-17B128K vocab2.66
Soket EKA-1256K vocab3.13
Gemma 4262K vocab3.38
GPT o200k200K vocab4.40
Llama 4 Scout201K vocab5.00
DeepSeek-V3129K vocab5.35
Llama 3.1128K vocab8.55
Qwen3152K vocab8.68
Macro-averaged tokens per whitespace word across all 22 scheduled Indian languages on IN22-Gen (clean items, lower is better). Even Indic Shift 131K, at half the vocabulary size, beats every external 256K–262K tokenizer.

Notice that second row: Indic Shift 131K (1.91 tok/word) has half the embedding table of Sarvam-105B (2.45), Soket EKA-1 (3.13), and Gemma 4 (3.38), yet beats every external 256K–262K tokenizer while staying tighter on English (1.23 vs. 1.24–1.33) and held-out code (0.275 vs. 0.281–0.313 tok/byte). Compare all 22 scheduled languages individually below, and switch between IS 262K and IS 131K to test either release.

Figure 4. Per-language fertility across all 22 scheduled Indian languages + English (IN22-Gen, lower is better)

Tokens per whitespace word on clean IN22-Gen items (lower = left = better). Orange: Indic Shift (262K or 131K). Grey: the selected tokenizer. The right column is the token ratio (the other tokenizer divided by Indic Shift).

Table 1. Cross-domain scorecard: Indic, English, Romanized, Code, and Agentic tool-calling (lower is better)

TokenizerVocabIN22-Gen (22)IN22-Conv (22)FLORES Indic (20)IndicCorpV2 (13)English FLORESDakshina Roman.Code Held-out (tpb)BFCL (tpb)
Indic Shift 262K262K1.7261.5691.5971.6621.1912.3780.2620.243
Indic Shift 131K131K1.9131.7351.7751.8581.2292.6210.2750.248
Plain-BPE Twin 262K262K1.9101.7281.7431.8291.1992.4300.2640.244
Sarvam-105B262K2.4502.2102.2342.2891.2382.6730.3130.254
BharatGen Param2-17B128K2.6552.5302.2652.5501.4903.4030.3040.269
Soket EKA-1256K3.1332.8722.2452.1651.3332.7450.2810.252
Gemma 4262K3.3813.0642.7352.7171.2382.6730.3120.254
GPT o200k200K4.4003.9563.5153.1161.2272.6880.2590.246
Llama 4 Scout201K5.0004.5194.175–1.235–0.259–
DeepSeek-V3129K5.3504.8344.643–1.235–0.280–
Llama 3.1128K8.5517.6878.1409.5011.2412.9740.2580.247
Qwen3152K8.6807.7467.789–1.261–0.262–
Evaluated in one unified harness on clean items (lower is better). Tokens/word for IN22, FLORES Indic, IndicCorpV2, English FLORES, and Dakshina Romanized; tokens/byte (tpb) for Code held-out and BFCL.

Isolating the transform: worth a 2× vocabulary doubling

Any tokenizer trained on a large Indian corpus will beat a Western tokenizer. To isolate what the cross-script transform contributes on its own, we trained a Plain-BPE Twin on the exact same corpus, pre-tokenization regex, digit chunking, and leading-space rule, removing only the Indic Shift mapping, and evaluated both at 32K, 64K, 131K, and 262K.

At every scale, Indic Shift matches or beats plain BPE at twice the vocabulary size. On IN22-Gen (22 languages), Indic Shift 32K (2.427) beats Twin 64K (2.456); 64K (2.141) beats Twin 131K (2.151); and 131K (1.913) matches Twin 262K (1.910). Same-size gains are largest on scripts with smaller web corpora: Gujarati drops 30.7% at 32K (18.3% at 262K), Odia 27.9% (17.2%), Kannada 23.6% (13.8%), and Telugu 22.0% (13.3%).

Figure 5. Controlled scaling (Indic Shift vs. Plain-BPE Twin) and cross-script vocabulary sharing

Worth a 2× vocabulary doubling

IN22-Gen, 22 languages · tokens per word, lower is better

Dashed guides show the 2× equivalence: Indic Shift at 32K beats Plain BPE at 64K; 64K beats 131K; 131K matches 262K. Percentages under each size are the same-size token reduction.

Cross-script token sharing

Left: identical corpus, regex, and rules; only the cross-script transform differs. Right: share of each language’s IN22-Gen word-token occurrences landing on vocabulary IDs also used by at least one other script (top 12 shared-script languages shown; at 262K, Indic Shift shares 18,944 word IDs across scripts versus 33 in its plain-BPE twin).

8,270 extra Latin slots. Because ten Brahmic scripts stop duplicating merges across separate Unicode blocks, Indic Shift uses fewer Indic entries to reach higher Indic compression. At 262K, that frees 8,270 additional Latin entries (96,817 vs. 88,547 in the plain-BPE twin), which is why English, code, Romanized Indic, European, Global South, and CJK all get tighter at every vocabulary size from 32K to 262K.

Fewer tokens, better models

Packing more bytes into each token raises per-token entropy, so shorter sequences only matter if models actually learn better from them. To test downstream quality, we trained matched 1B-parameter Llama-style models from scratch and scored them in bits per UTF-8 byte (BPB), a tokenizer-independent measure of how accurately a model predicts raw text.

Every run used the exact same architecture, the exact same 262,144-entry vocabulary (identical FLOPs per token), and the exact same WSD learning-rate schedule for 20.00 billion tokens on one decontaminated public stream in fixed document order. Only the tokenizer differed: Indic Shift 262K, its Plain-BPE Twin, Gemma 4, and Sarvam-105B.

In 20B tokens, Indic Shift reads 142.2 GB of text (29.22 million documents), which is 29.3% more text than Gemma 4 (109.9 GB) and 42.2% more than Sarvam-105B (99.95 GB, which expands heavily on the 5% non-Indic global-language slice after evicting non-Indic entries from Gemma 3). At 20B tokens, Indic Shift beats both Gemma 4 and Sarvam-105B across all six evaluation families: Indic, English, Code, Math, Romanized Indic, and Global languages.

Figure 6. Controlled 1B LLM pretraining at 20B tokens (bits per UTF-8 byte, negative = Indic Shift better)

Text read in 20B training tokens

Indic Shift 262K142.2 GB29.22M docs
Plain-BPE Twin136.8 GB28.11M docs · IS reads +3.9%
Gemma 4 (262K)109.9 GB22.60M docs · IS reads +29.3%
Sarvam-105B (262K)99.95 GB20.55M docs · IS reads +42.2%

Bits per byte, Indic Shift against

Every arm is a 1B Llama-style model with a 262,144-entry vocabulary trained on the same document stream in the same order. Bits per UTF-8 byte (BPB) is tokenizer-independent; negative Δ means lower loss per byte of original text.

Two controls separate data throughput from representation quality. First, we branched Indic Shift and ran its full learning-rate decay right where it finished reading Gemma 4’s exact 109.9 GB (22.60M documents). Indic Shift finished in 15.46B tokens (22.7% fewer FLOPs) and still beat Gemma 4 on Indic web (−2.48%), 22-language held-out web (−1.40%), FLORES Indic (−0.94%), IN22-Gen (−0.68%), and Romanized Indic (−0.87%), while tying English, code, math, and global languages within 0.01% to 0.17%.

Second, compared directly against its Plain-BPE Twin at 20B tokens (identical data, regex, and rules), Indic Shift beats its twin across all six evaluation families, cuts shared-script IN22-Gen BPB by −1.20% (led by Odia −2.49%, Gujarati −2.45%, Meitei −2.22%, Bodo −1.92%, and Sanskrit −1.91%), and reaches the twin’s final IN22-Gen quality in 80% of the compute (16.03B tokens).

Full equal-compute 1B model BPB table (20B tokens each)

Table 2. Controlled 1B models at 20B tokens (bits per UTF-8 byte ↓)

Evaluation set / familyIndic Shift 262KPlain-BPE TwinGemma 4Sarvam-105BΔ vs Gemma 4Δ vs Sarvam-105B
Indic family (5-set mean)0.66470.66750.68030.6813-2.30%-2.44%
Indic web held-out (16 langs)0.45970.46100.48500.4825-5.23%-4.74%
Held-out web Indic (22 langs)0.50340.50400.52370.5229-3.88%-3.73%
IN22-Gen (22 langs)0.72630.73310.73910.7420-1.73%-2.11%
FLORES Indic0.78100.78530.79490.7947-1.74%-1.72%
English family (3-set mean)1.03181.03391.04651.0505-1.40%-1.78%
Code family (5-set mean)0.68780.69050.70120.7063-1.91%-2.62%
Math & numbers (4-set mean)1.35661.36081.37071.3709-1.03%-1.04%
Romanized Indic (2-set mean)1.92401.93291.96841.9672-2.25%-2.20%
Global languages (2-set mean)1.21881.22041.24561.2670-2.15%-3.80%
Lower BPB is better. Every arm is a 1B Llama-style model with 262,144 vocab trained for 9,536 steps (20.00B tokens) on the same public stream in the same document order.

Drop into Python or Hugging Face

Indic Shift ships as a standalone Python package with the tokenizer files bundled in the wheel, so it needs no network calls at runtime and depends only on tokenizers. It includes a CLI (indic-shift encode, decode, inspect), a stateful StreamDecoder for token-by-token generation, and a Hugging Face PreTrainedTokenizer wrapper.

Python · indic-shift 1.0
import indic_shift

tok = indic_shift.load("262k")   # or "131k" (exact prefix)

text = "भारत की विविधता · भारताचे वैविध्य · ભારતનું વૈવિધ્ય · ಭಾರತದ ವೈವಿಧ್ಯ"
ids = tok.encode(text)
assert tok.decode(ids) == text

# Streaming decode (carries one byte of script state across chunks)
dec = tok.stream_decoder()
out = "".join(dec.step(i) for i in ids) + dec.flush()
assert out == text

# Hugging Face PreTrainedTokenizer
# pip install "indic-shift[transformers]"
from indic_shift.hf import IndicShiftTokenizer
hf_tok = IndicShiftTokenizer.from_name("262k")

Open source under Apache 2.0

Both indic-shift-262k and indic-shift-131k are available on Hugging Face and GitHub, along with the full specification and evaluation code.

Acknowledgements

Indic Shift draws on decades of Indian language engineering and public benchmarks: the ISCII (IS 13194:1991) standard, AI4Bharat’s cross-script work (IndicBART, IndicBERT v2) and IN22 benchmarks, Meta’s FLORES+ dataset, Google Research’s Dakshina dataset, MultiPL-E, BFCL, and the open-source tokenizers from Google (Gemma), Sarvam AI, BharatGen (Param2), Soket Labs (EKA-1), OpenAI (o200k), Meta (Llama), DeepSeek, and Alibaba (Qwen).

Citation

Please cite this work as:

Chariot Team, “Indic Shift: One Vocabulary for India’s Languages”, Chariot, December 2026.

Or use the BibTeX entry:

BibTeX
@misc{chariot2026indicshift,
  author = {{Chariot Team}},
  title  = {Indic Shift: One Vocabulary for India's Languages},
  year   = {2026},
  month  = dec,
  url    = {https://chariot.in/news/indic-shift/}
}