All research 02 / 05

Notes from the research

Script or Token Count? Weight and KV-Cache Quantization on the Same Text in Two Scripts

Nov to Dec 2026 · 2 min read · Muhammad Shakaib Arsalan

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.

  • Quantization
  • Tokenization
  • Urdu
  • South Asian scripts

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

  1. 01The same passages in native and Latin script, from Belebele, Dakshina and FLORES-200
  2. 02Seven open models from 4B to 12B
  3. 03A go or no-go test written down before any model ran
  4. 04Quantize the weights (Q4_K_M, Q3_K_M, Q2_K) and the KV cache (q8_0, q4_0)
  5. 05Compare each against a Q8_0 reference: KL divergence and answers that flip
  6. 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.
Llama-3.1 answers that flip at Q3_K_MQuestions the uncompressed reference got right in both scripts. Noise between runs flips at most 1.3%.
  • Native script 9.0%
  • Roman script 22.5%
Six panels, one per model, plotting the native-to-romanized KL ratio against the token ratio, with a dashed line where the two are equal.
From the paper. KL ratio against token ratio at Q4_K_M, one panel per model. The dashed line is where damage would grow exactly with token count.

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.

Code and results on GitHub

Want to talk about this work?

Questions about the method or the data, or a role where this kind of work matters. Email is the quickest way.

Google Meet · 30 min

Book a call with Shakaib

Loading times…

Pick a date

Choose a day to see open times.

Times in your time zone

——
  • 30 minutes on Google Meet
  • Invite and Meet link by email
  • Need another time? Just email me

You’ll get a Google Calendar invite with the Meet link.

You’re booked.

An invite with the Meet link is on its way to .