Buckets:
Roman Urdu and Script Drift in Small Open Models
Fatima Fellowship, Fall 2026. Technical challenge: Blind Spots of Frontier Models.
Main model: Qwen/Qwen3-4B-Instruct-2507. Comparison model: Qwen/Qwen3-1.7B. Everything ran in Google Colab.
In short: when I ask the 4B model a question in Roman Urdu, it mostly gets the answer right, but in about half of the cases it replies in Devanagari, the script used for Hindi. For example: एक घंटे में 60 मिनट होते हैं। I typed in Latin letters, so a Devanagari reply is probably hard to read for many Pakistani users. The answer is correct, but it doesn't help the person who asked. A test that only checks whether the answer is right would miss this.
I tried two easy fixes: removing the system prompt, and asking the model to reply in the same script. Neither one worked. The study is small (10 questions), so please read section 4 before trusting any number.
1. The blind spot
Urdu is the national language of Pakistan, and people with different mother tongues use it to talk to each other. When people chat, though, they mostly don't type Urdu script. They type Urdu in English letters. That is Roman Urdu. For example:
Aik ghantay mein kitnay minutes hotay hain?
From my own experience, most people in Pakistan chat in Roman Urdu, and many also use it when they talk to LLMs. That's the main reason I picked it.
Roman Urdu has no fixed spelling. kya, kia and kiya are all common, and people mix in English words as they go.
Hindi and Urdu sound very similar when spoken, but some words are different, and they're written differently. Hindi uses Devanagari. Urdu uses a Perso-Arabic script. Roman Urdu is Urdu in Latin letters. Since the spoken languages are so close, a model might not be sure which one it's looking at when it only sees Latin letters. I didn't test this idea, so I can't say it's the cause.
As far as I know, Roman Urdu is rarely covered by standard benchmarks, and most tests only check whether the answer is correct. The gap I looked at is a different one: the answer can be correct but in the wrong script.
2. How I tested it
2.1 Models
The details below come from the official model cards on Hugging Face: Qwen3-1.7B and Qwen3-4B-Instruct-2507.
| Qwen3-1.7B | Qwen3-4B-Instruct-2507 | |
|---|---|---|
| Parameters | 1.7B (1.4B non-embedding) | 4.0B (3.6B non-embedding) |
| Layers | 28 | 36 |
| Context length | 32,768 | 262,144 (native) |
| Thinking mode | Yes, can be switched on or off | No, non-thinking only |
| Published weights | BF16 | BF16 |
| Languages, per the card | 100+ languages and dialects | Better coverage of long-tail knowledge across multiple languages |
Neither card says anything about Urdu or Roman Urdu, so I can't say these models were built or tested for it.
I chose the 4B model as the main one for these reasons:
- I could load it on a Colab GPU (about 8 GB of GPU memory in fp16).
- Its card says it's an updated version of the Qwen3-4B non-thinking mode, with better instruction following and better multilingual long-tail knowledge.
- The card reports that it beats GPT-4.1-nano on several benchmarks, for example MMLU-Pro (69.6 vs 62.8) and MultiIF, a multilingual instruction-following test (69.0 vs 60.7). Those are the Qwen team's own numbers and I didn't reproduce them.
- When I checked, the card page showed about 2.9 million downloads in the last month.
- Its answers on my questions were mostly correct, so I could look at script behavior without comprehension problems getting in the way.
I think that makes it a reasonable choice for studying frontier-like behavior, but I didn't compare it with bigger models, so I can't say how close it really is.
The 1.7B model is there for comparison, and it's not only a size difference. Qwen3-1.7B is the original hybrid model (thinking and non-thinking). Qwen3-4B-Instruct-2507 is a later, updated, non-thinking-only release. So any difference between them in my results could come from size, from the update, or both, and I can't separate those. I ran the 1.7B model in non-thinking mode. It fails earlier and in more basic ways, so script behavior is hard to study there. Most of my extra tests were run on the 4B model only.
2.2 Questions
The main set has 10 questions, each written three ways with the same meaning and the same reference answer:
english, as a controlroman_urdu, Urdu in Latin lettersmixed, Roman Urdu with English words in it
That gives 30 prompts. The questions cover facts, simple math, a number sequence, a time calculation and one logic question. Each question has an id (q01 to q10) that ties its three versions together.
I also made a small pilot set of 9 prompts with no reference answers: a greeting in English, formal Urdu script, casual Urdu script and Roman Urdu, and a phone complaint in English, Urdu script, clean Roman Urdu, messy Roman Urdu (non-standard spelling) and mixed. I only used the pilot to look at outputs by eye.
2.3 Settings
- Chat template with
enable_thinking=False. This turns thinking off for the 1.7B model. The 4B-Instruct-2507 card says that model has no thinking mode and doesn't need the setting. - Sampling: temperature 0.7, top-p 0.8, top-k 20. Both cards suggest these values for non-thinking mode. I didn't set
min_porpresence_penalty. - 3 samples per prompt, seed 42, and at most 300 new tokens. The cards suggest much longer outputs (16,384 tokens for the 4B model, 32,768 for the 1.7B model). I used 300, so some answers got cut (see 3.7 and section 4).
- I loaded the weights in fp16. The cards list them as BF16.
- The main set used this system prompt: "Answer the user's question accurately and concisely. Do not invent facts. If uncertain, say so." The pilot used no system prompt.
- Every run saves the model commit, library versions, GPU and settings in
run_info.jsonl.
2.4 What I measured
I looked at two things separately: whether the answer is correct, and which script the reply is in.
For script, I count how many letters in the reply are Devanagari (Unicode U+0900 to U+097F). If more than 20% are, I mark the reply as Devanagari.
For correctness I used two checks. The first is an automatic one: a regex looks for the reference answer, including Devanagari and Urdu-script forms like बृहस्पति. I left out q03 and q06 there because they need a person to judge. The second is a score I gave each answer by reading it, explained next.
2.5 Scoring scale
Each labeled answer gets a score for correctness only:
| Score | Meaning |
|---|---|
| 1 | The final answer is right and nothing false is added |
| 0.5 | Partly right: the answer is right but comes with something false or confusing, or the verdict isn't clear |
| 0 | Wrong, no answer, or the model just repeats the question |
The script is not part of the score. A correct answer in Devanagari still gets 1, and I track the script separately. That's why a model can score high and still show the problem I'm describing.
error_type names the main problem in one word:
none: nothing wrongscript_drift: correct, but the reply is in Devanagarienglish_reply: correct, but in English for a Roman Urdu questionmisread_word: misunderstood a word and answered something elsewrong_math: wrong calculationwrong_logic: wrong conclusion on the logic questionwrong_answer: wrong factecho_question: repeated the question instead of answeringincomplete_answer: answers only part of the questionextra_false_claim: right answer plus a false extra claimself_contradiction: says one thing, then the oppositegarbled: scrambled textoff_topic: answers a different question
note is a one-line comment on the answer.
The labels are in annotations/results_all_annotated.csv and cover 132 answers: the Roman Urdu and mixed answers from both models in the main set, plus the English answers for q03 and q06. The other 102 rows (the rest of the English answers and the pilot) have no labels, and the ablation runs aren't in that file. I drafted the labels with help from Claude and then reviewed them.
2.6 What I ran
| Run | Model | Prompts | System prompt |
|---|---|---|---|
matched |
1.7B and 4B | all 30 | concise-answer prompt |
pilot |
1.7B and 4B | 9 pilot prompts | none |
abl_nosys |
4B | roman_urdu and mixed (20) | none |
abl_script |
4B | roman_urdu and mixed (20) | "Reply in the same language and script as the user's message." |
abl_multi |
4B | 4 Roman Urdu questions with "Mujhe ek sawal poochna hai." added in front | concise-answer prompt |
3. What I found
Every question has 3 samples, but the 3 samples of one question aren't independent. So the real sample size is the number of questions (10, or 8 for the automatic check), not 30. Charts for the two main results are in figures/ (fig1_accuracy_vs_script.png and fig2_drift_by_question.png).
3.1 Correct answers
Automatic check, on the 8 questions it can handle (24 answers per cell):
| Model | English | Mixed | Roman Urdu |
|---|---|---|---|
| Qwen3-1.7B | 23/24 | 21/24 | 10/24 |
| Qwen3-4B-2507 | 24/24 | 21/24 | 21/24 |
Mean hand score over all 10 questions (30 answers per cell). The English cell has only q03 and q06, so 6 answers:
| Model | English | Mixed | Roman Urdu |
|---|---|---|---|
| Qwen3-1.7B | 1.00 | 0.87 | 0.40 |
| Qwen3-4B-2507 | 1.00 | 0.85 | 0.88 |
The two methods agree. The 1.7B model drops a lot on Roman Urdu, and the 4B model mostly closes the gap. Since the two models differ in release and not only size (see 2.1), I can't say how much of that gap is size.
3.2 Which script the reply is in
Replies with more than 20% Devanagari letters (30 answers per cell):
| Model | English | Mixed | Roman Urdu |
|---|---|---|---|
| Qwen3-1.7B | 0 | 2 | 1 |
| Qwen3-4B-2507 | 0 | 5 | 16 |
The 4B model answered 16 of 30 Roman Urdu questions in Devanagari. The English control never did.
The 1.7B model shows almost no Devanagari here, but I don't read that as better script handling. Its Roman Urdu answers go wrong in other ways (see 3.7). In the pilot it did answer a phone complaint in Devanagari.
3.3 The system prompt isn't the cause, and an instruction doesn't fix it (4B)
Replies in Devanagari, out of 30:
| Condition | Roman Urdu | Mixed |
|---|---|---|
| Concise system prompt | 16 | 5 |
| No system prompt | 16 | 8 |
| "Reply in the same language and script" | 15 | 14 |
Taking away the system prompt changed nothing for Roman Urdu. The script instruction didn't reduce it either. For mixed prompts the number went up (8 to 14), but that's a difference of a few questions, so I wouldn't read much into it.
3.4 It depends on the question
For Roman Urdu with the 4B model, a question usually goes to Devanagari in all 3 samples or in none:
| Question | Concise prompt | No system prompt | Script instruction |
|---|---|---|---|
| q03 freezing point, q04 15% of 200, q05 largest planet, q08 minutes in an hour | 3/3 | 3/3 | 3/3 |
| q09 three quarters as a percentage | 3/3 | 3/3 | 0/3 |
| q07 next number in a sequence | 0/3 | 0/3 | 3/3 |
| q01 capital of Pakistan | 1/3 | 1/3 | 0/3 |
| q02, q06, q10 | 0/3 | 0/3 | 0/3 |
So random sampling isn't the main reason. Four questions drifted under all three conditions. The script instruction changed which questions drifted (q09 stopped, q07 started), but the total stayed almost the same. I don't know why some questions drift and others don't. Question type, word choice, length and English words are all mixed together in only 10 questions.
3.5 Right answer, wrong script
For the 4B model's Roman Urdu answers with the automatic check, the Devanagari replies were correct 12 times out of 13, and the Latin-script replies 9 times out of 11. So drifting doesn't mean the model misunderstood. This comparison is tangled up with the question itself (3.4), so I'm not claiming that script changes correctness.
3.6 A short Urdu sentence helped a little
I took the four questions that drifted every time and put this sentence in front of them: "Mujhe ek sawal poochna hai."
| Question | Before | With the sentence |
|---|---|---|
| q03 | 3/3 | 0/3 |
| q04 | 3/3 | 3/3 |
| q05 | 3/3 | 3/3 |
| q08 | 3/3 | 2/3 |
That's 12 out of 12 before and 8 out of 12 after. I'd call it a hint and nothing more. The sentence makes the prompt longer, adds Latin-script Urdu and sounds polite, all at once, and I didn't run a control (an English sentence, for example) to see which part matters. I also only tried questions that already drifted.
3.7 What kinds of mistakes
From the error labels on the Roman Urdu answers (30 per model):
- 4B: 12 answers have no problem, 14 are correct but in Devanagari, 3 misread a word (all on q01) and 1 adds a false extra claim.
- 1.7B: only 5 answers have no problem. The rest: 6 misread a word, 5 have wrong math, 3 repeat the question, 3 are incomplete, 3 are correct but in English, 2 are garbled, and 1 each is off topic, a wrong fact or Devanagari.
So the two models fail differently. The 1.7B model has trouble understanding. The 4B model understands but answers in the wrong script.
Other things I noticed.
Qwen3-4B:
q01(capital of Pakistan) uses the word dar-ul-hukumat. In every condition the model didn't answer. It treated the word as unknown and made up a different meaning each time. The mixed version, which says capital city, was answered correctly every time. For this question the problem looks like a rare word, not the script.q10_mixed(bus arrival time) came out as11:55instead of10:55in every condition.- For
q06_mixed(the logic question), all 3 samples start with "Yes" but end by saying we cannot logically conclude it. So the reply contradicts itself, and the final reasoning is right. All 3 were cut at 300 tokens. The English versions were fine. - In one pilot sample the model described a Roman Urdu and English message as "a mix of Hindi and English".
- 8 of 90 outputs in the main set were cut at 300 tokens, all of them Roman Urdu or mixed prompts. With no system prompt, 16 of 60 Roman Urdu and mixed outputs were cut.
Qwen3-1.7B:
- Examples of what went wrong: dar-ul-hukumat became "Office of the President", safar became "safari", and "teen chauthai (10% tax)" came out of nowhere. It also answered 120 rupees for 3 notebooks at 120 each.
- In the pilot, Urdu-script answers fell into repetition loops, and the Roman Urdu greeting kya haal hai? got a reply about being a language model. The 1.7B card warns about endless repetition and suggests a presence penalty. I didn't use one, so my settings may be part of the reason.
- In the pilot, the phone complaint was answered in Devanagari in 1 of 3 samples with clean spelling and 3 of 3 with messy spelling. That's one item, so it's only a hint.
3.8 The story in a few lines
- The 1.7B model has trouble understanding Roman Urdu (10/24, against 23/24 in English).
- The 4B model mostly understands it (21/24), but about half of its Roman Urdu answers come back in Devanagari.
- Removing the system prompt didn't fix that, and neither did asking for the same script. It depends a lot on the specific question.
- A test that only checks the answer would call the 4B model nearly perfect on Roman Urdu and never see the problem.
4. What this study can't show
- The dataset is tiny. With 10 questions, "16 out of 30" really means "about 5 questions out of 10 drift". The uncertainty is large.
- The automatic check is a regex. It can count a correct number inside a wrong explanation, and it can miss answers written with Devanagari digits. q03 and q06 aren't in the automatic numbers.
- The hand scores cover 132 of the 234 answers in the main set and pilot, and none of the ablation runs. The 0.5 score is my own judgment call.
- The 20% cutoff for the script check is my own choice. It misses mixed-script answers and a Hindi full stop (
।) inside a Latin-script answer. - I never tested spelling variation. I first wanted to compare different Roman Urdu spellings, but each question has only one Roman spelling. The only spelling comparison is one phone complaint in the pilot.
- Some controls are missing:
- There's no Urdu-script version of the main questions, so I can't tell "Roman Urdu is hard" from "Urdu is hard".
- There's no Roman Hindi control. Hindi and Urdu are close, so a Devanagari reply may come from the model not knowing which language it sees. I didn't test that.
- I didn't rerun the English control in the ablations.
- The short-sentence test has no control for which part of the sentence matters.
- The ablations ran on the 4B model only.
- Some Roman Urdu versions use words people rarely type (dar-ul-hukumat, sayyara, chauthai). Failures on those may come from the rare word, not from the Roman script.
- The pilot isn't comparable to the main set: no system prompt, different kinds of prompts, and one item per cell.
- I used one seed (42), temperature 0.7 and no greedy run.
- I used 300 new tokens. The model cards suggest 16,384 (4B) and 32,768 (1.7B) for most questions. Some answers were cut and I scored the cut text. Longer outputs might behave differently.
- I didn't use a presence penalty, and I loaded fp16 weights while the cards list BF16. I didn't test whether that changes anything.
- The 1.7B and 4B models are two different releases, not just two sizes, so comparing them isn't a clean size test.
- I describe what the model does. I don't know why it does it.
5. What could help
These are my own thoughts and opinions. I haven't tested any of them.
Data:
- Roman Urdu questions paired with Roman Urdu answers, and Urdu-script questions with Urdu-script answers, so the model learns that the reply script follows the user's script.
- The same question in several natural spellings (
kya,kia,kiya), clean and SMS-style, with the same answer. - Latin-script Hindi and Latin-script Urdu side by side, with their different word choices, each answered in the matching style. That would also help me check whether the model mixes the two up.
- Real chat-style text, with permission and filtering. Synthetic Roman Urdu is usually cleaner than the way people type.
Fine-tuning:
- LoRA fine-tuning of the 4B model on the script-matched data above. It looks cheap enough for a free GPU.
- Preference training (DPO or similar) on pairs where both answers are correct but one is in the wrong script. The answers are already right, so the only difference is the script, which is what I want the model to learn.
- Rewarding the same answer, in the right script, for the English, Roman Urdu and mixed versions of one question.
- For the 1.7B model, basic Roman Urdu understanding would probably need to come first, since it fails earlier.
Evaluation and decoding:
- Add a script check to multilingual tests next to accuracy, for example one number for "correct and in the user's script".
- Limit the output script at decoding time. If the prompt is Latin-script Urdu, block Devanagari tokens. It's a quick workaround that needs no training.
- Check the input script first and pick a system instruction automatically. The short-sentence test hints that a bit of Roman Urdu context may help, but I'd need proper controls.
Tokenizer and model:
- Look at how the tokenizer splits Roman Urdu compared to Devanagari. If Roman Urdu gets chopped into many small pieces, the model may have learned less about it.
- Try a special token that tells the model which script to answer in.
What I'd do next:
- Grow the dataset to 30 to 60 questions, with several Roman Urdu spellings each.
- Add an Urdu-script version, a Roman Hindi control and an English control for every ablation.
- Label every Roman Urdu answer, including the ablation runs.
- Run a greedy pass and a second seed.
- Repeat the ablations on the 1.7B model.
- Total size
- 1.29 MB
- Files
- 14
- Last updated
- Oct 21
- Pre-warmed CDN
- US EU US EU