Manuscript Offprint

arXiv:2610.31407

Same Entity, Different Script: Diagnosing Cross-Script Entity Matching Failures in Language Models

Athira Gopal, Patil Prathamesh Pravin, Ankush Kadu, Arpit Jain, Ashwanth Krishnan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Multilingual language models can give different identity judgments when the same people's names are written in different scripts. We study this effect using 601 audited identity pairs with attested Devanagari and Latin forms, holding the question and relation fixed. Qwen2.5-7B's same-person accuracy falls from 35.1% in Latin to 8.5% in Devanagari under Marathi prompts, while different-person accuracy remains above 98%. Evaluation across five models reveals distinct response biases, and reduced tokenization fragmentation does not reliably close the gap. Replicating the design on 374 audited Malayalam pairs built from the same entities reproduces the effect in a second script and language family: same-person accuracy falls to 5.3%, about half the matched Devanagari rate, while the margin still ranks matching above non-matching names at 0.925 AUROC. Latin-trained probes recover label information from Devanagari states, exceeding a string-feature baseline under similarity-matched negatives. Scalar calibration recovers 87% of the raw model-probe balanced-accuracy gap, identifying decision criterion placement as a major contributor. Activation patching localises causal sensitivity to the second entity in Qwen's middle layers; one shared sensitivity direction transfers about half the full-state margin correction. A fact-independent intervention at this site raises held-out Marathi same-person accuracy from 6.5% to 33.5%, with 98.5% different-person accuracy. Together, these results distinguish script-dependent discrimination from criterion placement and identify a causal site for improving identity judgments.

1 Introduction

An identity judgment should remain consistent when the same people are presented through corresponding names in different scripts. Yet multilingual models can reject a matching pair in Devanagari and accept its attested Latin forms (Figure 1). This matters for multilingual entity matching: a system must connect aliases, birth names and pseudonyms even when a user's writing system differs from the model's most familiar surface forms.

We study this problem through controlled identity verification. Both candidate names are supplied; only their script-associated surface forms change. The question language, people and relation remain fixed. Across 601 audited pairs, Qwen2.5-7B's Marathi same-person accuracy drops from 35.1% in Lat-Lat to 8.5% in Dev-Dev, while it continues to reject almost all different-person pairs. The contrast isolates a failure to affirm identity within a task the model can partly solve through other surface forms. A second corpus in Malayalam, a different script and a Dravidian rather than Indo-Aryan language, shows the effect is not specific to Devanagari or to Indo-Aryan languages.

Our analysis connects three levels of evidence. First, we establish the behavioural gap across scripts and prompt languages, separating discrimination from response bias. Five-model evaluation and romanization controls show why tokenization efficiency alone is insufficient. Second, Latin-trained probes and output-score calibration establish how much label information remains available when the model answers incorrectly. Third, activation patching and subspace interventions identify where that information can influence the decision.

The resulting account is actionable. In Qwen, the second entity’s middle-layer state is a strong intervention site, and a shared sensitivity direction transfers roughly half the full-state correction. A vector learned from training entities raises held-out Marathi same-person accuracy more than fivefold. Controls on ranking, script condition and position explain this gain: much of it comes from moving

  • Equal contribution.

the decision criterion at a causally sensitive site. The script contrast also changes discrimination, so calibration and script robustness are distinct evaluation targets. Our contribution is a controlled benchmark and a diagnosis that connects these targets to measurable internal computations.

References (100)

  • Gemma 2: Improving Open Language Models at a Practical Size
  • Yihong Liu, Mingyang Wang, Amir Hossein Kargaran, Ayyoob Imani, Orgest Xhelili, Haotian Ye, Chunlan Ma, François Yvon, and Hinrich Schütze. 2025. How transliterations improve crosslingual alignment. In COLING 2025. ArXiv:2409.17326. (opens arXiv in a new tab)
  • The Llama 3 Herd of Models
  • Locating and Editing Factual Associations in GPT
  • Mihir Panchal, Deeksha Varshney, Mamta, and Asif Ekbal. 2026. Indic-TunedLens: Interpreting multilingual models in Indian languages. ArXiv:2602.15038. (opens arXiv in a new tab)
  • Jirui Qi, Raquel Fernández, and Arianna Bisazza. 2023. Cross-lingual consistency of factual knowledge in multilingual language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing (EMNLP). ArXiv:2310.10378. Outstanding Paper Award. (opens arXiv in a new tab)
  • Qwen2.5 Technical Report
  • Puduppully. 2025. RomanLens: The role of latent romanization in multilinguality in LLMs. ArXiv:2502.07424. (opens arXiv in a new tab)
  • Both a Devanagari and a Latin form of each name must be observed in the knowledge base; no Latin form is machine-generated (generated_lat is false for all 601 retained items, and the Devanagari language field is Marathi throughout)
  • Because the entity set and the Wiki-data relations are unchanged, the tier distribution in Table 8 applies to both corpora
  • Every candidate was audited automatically for script purity of each field and manually for whether the two fields hold the same name rather than two different names of the same person, which is the failure mode the earlier version of this corpus did not catch
  • Five further pairs have no country recorded on either side, which the matcher credits as agreement, so the matcher's own count of country matches is 550
  • No text is
  • It is not bitwise reproducible across batch compositions: bfloat16 reductions depend on batch shape, which moves margins by up to 1.5 points near the decision boundary and flips 126 of 28,848 positive prompts, 0.4 percent, without changing any reported comparison
  • The gap is present in every paraphrase and every tier with more than one item, so it spans multiple wordings and relation types
  • The script gap survives in all three, but absolute accuracies differ enough that reporting a single paraphrase would misstate the level
  • The ordering of the other three conditions is not preserved across tiers: Lat–Dev exceeds Lat–Lat for observed aliases, 36.3 against 32.5 over 404 items, and falls below it for birth names, 33.0 against 43.0 over 171
  • We therefore report $d' = z(\text{hit rate}) - z(\text{false alarm rate})$
  • ><tr><td>Model</td><td>Prompt</td><td>Gate</td><td>Run</td><td>Test</td></tr><tr><td rowspan=
  • >Marathi</td><td>P0</td><td>10.6</td><td>37.7</td><td>51.0</td><td>43.9</td></tr><tr><td>P1</td><td>11.6</td><td>46.9</td><td>51.2</td><td>51.7</td></tr><tr><td>P2</td><td>3.2</td><td>3.5</td><td>2.7</td><td>9.8</td></tr><tr><td rowspan=
  • ><tr><td>Prompt</td><td>Tier</td><td>Dev–Dev</td><td>Dev–Lat</td><td>Lat–Dev</td><td>Lat–Lat</td><td>n</td></tr><tr><td rowspan=
  • Marathi and English rows are from the Marathi run, Hindi from the Hindi run
  • >Qwen</td><td>Marathi</td><td>1.494</td><td>2.376</td><td>+0.88 [0.14, 1.55]</td></tr><tr><td>Hindi</td><td>2.122</td><td>2.425</td><td>+0.30 [-0.22, 0.76]</td></tr><tr><td>English</td><td>2.765</td><td>2.833</td><td>+0.07 [-0.45, 0.74]</td></tr><tr><td rowspan=
  • Qwen’s ordering is not monotone
  • Except where a corpus is named, all figures in this appendix are from the Qwen run on the Marathi corpus
  • Devanagari names are cut into 16.5 tokens for Qwen, 10.1 for Llama and 9.3 for Gemma on the Marathi corpus, or 0.98, 0.61 and 0.56 tokens per character
  • Table 16 correlates the Devanagari-to-Latin token ratio against the margin gained by switching that item to Latin
  • mean benefit rises from 3.78 to 6.34 across quartiles spanning a token ratio of 2.12 to 4.49
  • Reducing fragmentation by automatic romanization gives no reliable recovery and lowers performance in most cells, while the human Latin form of the same name makes it better ( $§4.2$)
  • ><tr><td>Corpus</td><td>Token count</td><td>Names</td><td>Mean tokens</td><td>Retrieved at rank 1</td></tr><tr><td rowspan=
  • The last row of each block uses the first layer at which the correct counterpart reaches rank 1, and is necessarily restricted to names that ever do so
  • Each corpus is read under its own prompt language
  • >Marathi</td><td>Q1, least fragmented</td><td>2.12</td><td>3.78</td></tr><tr><td>Q2</td><td>2.60</td><td>3.82</td></tr><tr><td>Q3</td><td>3.16</td><td>5.74</td></tr><tr><td>Q4, most fragmented</td><td>4.49</td><td>6.34</td></tr><tr><td rowspan=
  • the inherent vowel is written even where it is unpronounced (iliyata for Eliot), and the anusvara is rendered m rather than n (gamdhi for Gandhi)
  • mean string similarity is 0.82 for Indic-origin names, with individual values such as 0.93 for mahatma gamdhi and 0.92 for naremdra modi
  • Fitting always uses Lat–Lat states and evaluation always uses Dev–
  • Ranges span the five automatic schemes
  • Cross-validation is five-fold with grouping by fact_id, so no target fact appears in both fitting and evaluation
  • At layer 0 the Marathi question-mark probe reaches 0.525 balanced accuracy in Qwen and 0.491 in Gemma, with recall split unevenly between the classes, 0.411 same against 0.639 different in Qwen and 0.691 against 0.291 in Gemma, so the direction of the imbalance is not the same in the two models
  • The drift is sharper in Gemma, whose behavioural bias runs the other way, so the late-layer representation is not simply tracking the model's output preference
  • The layer is chosen on the validation split alone and the accuracy reported on the test split at that layer, so no test item participates in the choice
  • The site columns of Table 25 average layers 10–18 and the three Latin-bearing donor conditions, while the control and reverse columns average all tested layers, 8–20, over a different donor set
  • It is the held-out test split and is independent of every analysis choice
  • This rules out that site as a useful residual-stream intervention point in the tested range; it does not prove that the first name was read correctly or that no first-name error was carried downstream
  • Single-layer patches move the margin substantially but flip the decision rarely; only sustained multi-layer patches flip at an appreciable rate, reaching 57 percent in Marathi and 77 percent in English when all three sites are patched together
  • Position figures are held-out test items at the layer chosen on validation alone; ties in validation are broken toward the lower layer, and two of the four selections are exact ties, Marathi's question mark with layer 17 and Hindi's with layer 15
  • ></td><td colspan=
  • The first-entity position cannot encode a later change to the second entity under causal masking, so that cell is degenerate and is omitted
  • >Prompt</td><td rowspan=
  • E1 and E2 are the entities, Q the question mark, R the readout, and the window column patches E1, E2 and Q jointly over layers 12–17
  • >Prompt</td><td colspan=
  • The upper block is the held-out split and is the estimate we rely on; the lower adds the train and validation items patched under the same gate, which is better powered but not independent of the layer choice
  • Attention reaches 5.41 in Marathi against 0.51 for the MLP, and 4.51 against 1.10 in English (Table 30)
  • No sparse mechanism is identified: the best head recovers about a third of what the top ten recover jointly, so the effect is spread over several heads without being uniform across them
  • The causal columns are the mean margin change from patching that site over layers 12 to 17 on positive pairs, 20 gated facts per prompt language; the behavioural columns are accuracy over all 601 facts
  • The behavioural gain from swapping appears in Lat–Lat as well as in Dev–Dev, which is why we read it as an ordering effect and not as evidence about script
  • E1 and E2 are the first and second entity, Q the question mark, R the readout position
  • Values are mean margin change with flip rate in parentheses
  • Marathi and English columns are from the Marathi run, Hindi from the Hindi run
  • >Donor, same language</td><td>Lat-Lat (used throughout)</td><td>5.97</td><td>4.45</td><td>7.22</td></tr><tr><td>Lat-Dev</td><td>5.88</td><td>6.88</td><td>4.61</td></tr><tr><td>Dev-Lat</td><td>4.03</td><td>5.15</td><td>5.66</td></tr><tr><td rowspan=
  • Mean of 12
  • Deficit is the Lat–Lat minus Dev–Dev projection onto the Devanagari run’s gradient
  • The random-direction column is the scale against which the observed cosines should be read
  • Appendix N shows what the same vector does across the 12–17 band
  • The normalisation order matters and is stated here because it is not recoverable from the numbers: all four are constructed first and each is then rescaled to unit length, so $v_{additive}$ is the normalised sum of the two raw single-swap vectors and not the sum of the two normalised ones
  • There is no floor on negative-pair accuracy in the rule, which is why the selected settings are free to lower it and do
  • It moves Marathi from 0.065 to 0.083 and English from 0.283 to 0.350, which is 7 and 27 percent of the gap to the Lat–Lat reference against 56 percent and more for anchoring
  • The deficit is positive and grows with depth when both states are read through the Devanagari run's direction, and neither grows nor stays positive once each state is read in its own frame
  • Added at one layer a universal additive vector yields a small gain, while supplying familiar Latin names helps substantially (left)
  • Negative-pair accuracy is 1.000 in every cell
  • Four cells select the largest scale in the grid, which is what left the single-layer result unresolved rather than negative; Appendix N resolves it by extending the grid, and §7 says what the resulting movement is
  • >Qwen2.5-7B</td><td>Marathi</td><td>16</td><td>6.0</td><td>0.083</td><td>0.993</td></tr><tr><td>English</td><td>12</td><td>8.0</td><td>0.350</td><td>1.000</td></tr><tr><td rowspan=
  • Prompt anchoring supplies a Latin form of one or both names in the prompt itself
  • >Condition</td><td colspan=
  • §7 shows the reference itself moves when the same vector is applied to it, so that percentage describes the arithmetic rather than a closure; Appendix N reports that sweep, and the comparison between the two is the point of §7
  • It therefore helps less than supplying the human Latin form and, as Appendix G shows, replacing the name with a romanization rather than anchoring it hurts outright
  • The reported additive variant sums the two raw single-script-swap differences before normalisation
  • All four are unit length, so the difference is directional, and the cosines say what it is
  • The single-layer sweep applied the vector at one layer and stopped at $\alpha=8$; both changes are needed
  • >Scale</td><td colspan=
  • The additive row is the variant selection optimised; the others are reported for completeness and must not be read as the result
  • that position is where the second name sits, and the first name’s script reaches it only through attention
  • Projecting each held-out item’s Lat–Lat minus Dev–Dev displacement onto the rank-one direction gives the distance that item would have to move, in the same units as $\alpha$ because both are unit length
  • They are validation-split rows: applied at layer 16 alone the window code reproduces the validation single-layer figures of §6.2, 2.44 whole and 1.38 rank-one over 10 gated items, to four decimal places
  • The single-layer grid stopped at $\alpha=8$, roughly half the required distance at every layer, which accounts for the null without any appeal to the direction being wrong
  • ><tr><td>Prompt language</td><td>Layer</td><td>Median coordinate</td><td>Beyond grid</td></tr><tr><td rowspan=
  • Rows one and two are validation-split and validate the window implementation against the validation single-layer figures of §6.2, not against the held-out numbers of Table 6; the body text below says why the two should not be compared
  • Layer, window and scale were selected on template 0 alone, and the mean-difference vector was estimated on 361 training entities none of which appear here, so templates 1 and 2 are held out twice over
  • >Marathi</td><td>0</td><td>7.5</td><td>42.5</td><td>42.1</td></tr><tr><td>1</td><td>10.0</td><td>39.2</td><td>51.2</td></tr><tr><td>2</td><td>2.1</td><td>18.8</td><td>8.8</td></tr><tr><td rowspan=
  • Balanced accuracy is given because positive-pair accuracy alone flatters the Hindi arm: it reaches 0.546 against a 0.401 reference, but pays 13 points of negative-pair accuracy for it, against under 3 in every other arm
  • >Arm</td><td colspan=
  • At their selected scales the sensitivity direction is the better of the two on both classes, 68.3 positives at 98.3 negatives against 38.3 at 97.5, so neither is exclusively effective under a negative-pair constraint
  • >Item's own</td><td>t01e2</td><td>0.16</td><td>0.15</td><td>0.20</td></tr><tr><td>t02e1</td><td>0.08</td><td>0.06</td><td>0.01</td></tr><tr><td>t12e0</td><td>0.06</td><td>0.02</td><td>-0.15</td></tr><tr><td rowspan=
  • Lower means the intervention acts more narrowly on the gate it was selected for
  • The mean difference is the mean of $\Delta$, the donor principal component is the leading right singular vector of $\Delta$ after centring, and the random direction is Gaussian
  • At rank k it is that direction together with the leading $k - 1$ principal components of $\Delta$ after the direction has been projected out, orthonormalised by a QR factorisation, which is also how the higher-rank probe subspaces of this section are formed
  • The never-correct group is same-person pairs the model fails in both scripts, so a positive margin change there is movement toward the gold label and not damage; what it measures is whether the intervention acts outside the gate it was selected on
  • Appendix O gives the sweep over layers 12 to 17 and ranks one to eight that these were selected from
  • Three arms share U: the item's own donor coordinate, another item's drawn within the same group and never its own, and one coordinate for every item, the mean over the training items
  • The single-layer arm scores accuracy at one layer (Appendix M), and §6 shows that a single-layer intervention moves margins while flipping almost nothing, where the 12 to 17 window flips half the items

Couldn't load all references. Reload the page to try again.