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
One script marker, then one atom per letter: consonants, vowel signs, viramas. Every script shares the same atoms.
3Learn tokens
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
The transform runs before BPE on encode, and in reverse on decode. It does four things:
- 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.
- 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.
- 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.
- 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
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 ↓)
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)
Table 1. Cross-domain scorecard: Indic, English, Romanized, Code, and Agentic tool-calling (lower is better)
| Tokenizer | Vocab | IN22-Gen (22) | IN22-Conv (22) | FLORES Indic (20) | IndicCorpV2 (13) | English FLORES | Dakshina Roman. | Code Held-out (tpb) | BFCL (tpb) |
|---|---|---|---|---|---|---|---|---|---|
| Indic Shift 262K | 262K | 1.726 | 1.569 | 1.597 | 1.662 | 1.191 | 2.378 | 0.262 | 0.243 |
| Indic Shift 131K | 131K | 1.913 | 1.735 | 1.775 | 1.858 | 1.229 | 2.621 | 0.275 | 0.248 |
| Plain-BPE Twin 262K | 262K | 1.910 | 1.728 | 1.743 | 1.829 | 1.199 | 2.430 | 0.264 | 0.244 |
| Sarvam-105B | 262K | 2.450 | 2.210 | 2.234 | 2.289 | 1.238 | 2.673 | 0.313 | 0.254 |
| BharatGen Param2-17B | 128K | 2.655 | 2.530 | 2.265 | 2.550 | 1.490 | 3.403 | 0.304 | 0.269 |
| Soket EKA-1 | 256K | 3.133 | 2.872 | 2.245 | 2.165 | 1.333 | 2.745 | 0.281 | 0.252 |
| Gemma 4 | 262K | 3.381 | 3.064 | 2.735 | 2.717 | 1.238 | 2.673 | 0.312 | 0.254 |
| GPT o200k | 200K | 4.400 | 3.956 | 3.515 | 3.116 | 1.227 | 2.688 | 0.259 | 0.246 |
| Llama 4 Scout | 201K | 5.000 | 4.519 | 4.175 | – | 1.235 | – | 0.259 | – |
| DeepSeek-V3 | 129K | 5.350 | 4.834 | 4.643 | – | 1.235 | – | 0.280 | – |
| Llama 3.1 | 128K | 8.551 | 7.687 | 8.140 | 9.501 | 1.241 | 2.974 | 0.258 | 0.247 |
| Qwen3 | 152K | 8.680 | 7.746 | 7.789 | – | 1.261 | – | 0.262 | – |
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
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
Bits per byte, Indic Shift against
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 / family | Indic Shift 262K | Plain-BPE Twin | Gemma 4 | Sarvam-105B | Δ vs Gemma 4 | Δ vs Sarvam-105B |
|---|---|---|---|---|---|---|
| Indic family (5-set mean) | 0.6647 | 0.6675 | 0.6803 | 0.6813 | -2.30% | -2.44% |
| Indic web held-out (16 langs) | 0.4597 | 0.4610 | 0.4850 | 0.4825 | -5.23% | -4.74% |
| Held-out web Indic (22 langs) | 0.5034 | 0.5040 | 0.5237 | 0.5229 | -3.88% | -3.73% |
| IN22-Gen (22 langs) | 0.7263 | 0.7331 | 0.7391 | 0.7420 | -1.73% | -2.11% |
| FLORES Indic | 0.7810 | 0.7853 | 0.7949 | 0.7947 | -1.74% | -1.72% |
| English family (3-set mean) | 1.0318 | 1.0339 | 1.0465 | 1.0505 | -1.40% | -1.78% |
| Code family (5-set mean) | 0.6878 | 0.6905 | 0.7012 | 0.7063 | -1.91% | -2.62% |
| Math & numbers (4-set mean) | 1.3566 | 1.3608 | 1.3707 | 1.3709 | -1.03% | -1.04% |
| Romanized Indic (2-set mean) | 1.9240 | 1.9329 | 1.9684 | 1.9672 | -2.25% | -2.20% |
| Global languages (2-set mean) | 1.2188 | 1.2204 | 1.2456 | 1.2670 | -2.15% | -3.80% |
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.
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:
@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/}
}