Notes from the research
Script or Token Count? Weight and KV-Cache Quantization on the Same Text in Two Scripts
Compressed models are said to lose the most on non-Latin scripts. This paper takes the same passages written in two scripts and asks whether the script is to blame, or how many tokens the text turns into.
The question
Most people who run a language model on their own machine run a quantized one: the weights are stored in fewer bits, often with a compressed KV cache, the memory of the text the model has already read. Earlier studies found that non-Latin scripts lose the most quality when you do this.
But the same sentence in Urdu script and in Roman Urdu is cut into a different number of tokens. The paper separates the two to see which one does the damage, across Urdu, Hindi, Bengali, Nepali, Sinhala and Arabic.
How the study works
- 01The same passages in native and Latin script, from Belebele, Dakshina and FLORES-200
- 02Seven open models from 4B to 12B
- 03A go or no-go test written down before any model ran
- 04Quantize the weights (Q4_K_M, Q3_K_M, Q2_K) and the KV cache (q8_0, q4_0)
- 05Compare each against a Q8_0 reference: KL divergence and answers that flip
- 06Fit the damage against the token count and check what script adds
What came out
- The damage follows the token count. Across six models and 14 languages the slope of the KL ratio against the token ratio is 0.88 (95% interval 0.61 to 1.06). Inside a single language, across models, it is 0.58.
- Romanized text flips more answers. At Q3_K_M, on questions the reference got right in both scripts, romanized answers flipped 2.4 to 4.2 times as often. For Llama-3.1 that is 22.5% against 9.0%.
- Whether the script matters beyond token count depends on the measure. With full-vocabulary KL, Latin script diverged 40 to 46% more per token, but that did not survive correction for multiple tests.
- A q8_0 KV cache is close to free. A q4_0 cache costs far more: 0.0195 against 0.0008 nats per token for Llama-3.1.
- Even before any compression, the models were 3 to 47 points less accurate on romanized text.
What it doesn’t show
- The tokenizer comes with the model, so the two cannot be fully pulled apart, and the script is not assigned at random.
- Six to fourteen languages is a small sample. After correction for multiple tests, only the within-language slope below 1 holds.
- Seven models from 4B to 12B, one runtime, and one romanization per passage, cleaner than what people actually type.
Paper and code
Preprint, arXiv planned for January 2027. Code and results are public.