Same Entity, Different Script: Diagnosing Cross-Script Entity Matching Failures in Language Models
Organizations: QpiAI India
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.
Figures & tables
| Dev–Dev | Dev–Lat | Lat–Dev | Lat–Lat | ||||||
| Model | Prompt | pos. | neg. | pos. | neg. | pos. | neg. | pos. | neg. |
| Qwen2.5-7B | Marathi | 8.5 | 99.8 | 29.4 | 99.1 | 35.0 | 99.8 | 35.1 | 99.7 |
| Hindi | 16.4 | 99.9 | 45.2 | 98.6 | 52.2 | 99.5 | 41.1 | 99.6 | |
| English | 28.2 | 100.0 | 61.3 | 98.9 | 66.0 | 98.7 | 56.3 | 99.6 | |
| Gemma-2-2b | Marathi | 91.8 | 25.2 | 96.7 | 27.6 | 92.2 | 29.0 | 96.6 | 34.1 |
| Hindi | 94.1 | 44.6 | 97.5 | 38.4 | 91.0 | 52.2 | 97.2 | 49.9 | |
| Malayalam ( ) | Devanagari ( ) | |||||
| Name scripts | pos. | neg. | AUROC | pos. | neg. | AUROC |
| Both native | 5.3 | 100.0 | 0.925 | 10.4 | 100.0 | 0.935 |
| Native, Latin | 33.5 | 98.6 | 0.941 | 33.2 | 98.8 | 0.960 |
| Latin, native | 38.1 | 99.6 | 0.964 | 37.8 | 99.8 | 0.970 |
| Both Latin | 48.8 | 99.9 | 0.990 | 41.0 | 99.6 | 0.981 |
| Gap, points | ||||||
| Prompt | Negative map | Probe | String baseline | Difference |
|---|---|---|---|---|
| Marathi | Original | 0.925 | 0.933 | [ , ] |
| Matched | 0.908 | 0.796 | [ , ] | |
| English | Original | 0.950 | 0.933 | [ , ] |
| Matched | 0.879 | 0.796 | [ , ] |
| Marathi | English | |||||
|---|---|---|---|---|---|---|
| Rule | BA | TPR | FPR | BA | TPR | FPR |
| Raw model | 0.525 | 0.058 | 0.008 | 0.633 | 0.267 | 0.000 |
| Margin + constant | 0.879 | 0.808 | 0.050 | 0.904 | 0.875 | 0.067 |
| E2 probe | 0.933 | 0.883 | 0.017 | 0.954 | 0.942 | 0.033 |
| String features | 0.933 | 0.883 | 0.017 | 0.933 | 0.883 | 0.017 |
| Site / contrast | Marathi ( ) | Hindi ( ) | English ( ) |
|---|---|---|---|
| First entity (E1) | 0.12 [ , 0.38] | [ , 0.16] | 0.27 [0.02, 0.53] |
| Second entity (E2) | 2.66 [1.67, 3.71] | 3.16 [2.47, 3.90] | 2.85 [2.28, 3.45] |
| Question mark | 0.61 [0.33, 0.97] | 0.33 [0.16, 0.52] | 0.79 [0.59, 1.00] |
| Readout | 1.26 [0.96, 1.58] | 1.08 [0.87, 1.30] | 1.33 [1.12, 1.57] |
| E2: correct wrong entity | 2.09 [0.41, 3.84] | [ , 1.08] | 0.70 [ , 1.54] |
| Marathi ( ) | English ( ) | |||||
| Direction | repair | signed | repair | signed | ||
| Whole patch | 2.54 | 0.48 | 1.17 | 4.90 | 1.03 | 1.98 |
| Local sensitivity | 1.30 | 0.23 | 0.47 | 2.65 | 0.79 | 1.01 |
| Mean difference | 3.50 | 1.81 | 1.82 | 4.33 | 2.67 | 2.67 |
| Donor PCA | 0.09 | 0.16 | 0.43 | 0.19 | 0.22 | |
| Probe | 0.00 | 0.13 | 0.02 | 0.08 | ||
| Entity-averaged AUROC | TPR (FPR) | ||||
|---|---|---|---|---|---|
| Arm | Dev–Dev | change | vector | offset | threshold only |
| Marathi | 0.952 | 0.335 (0.015) | 0.312 (0.012) | 0.336 (0.015) | |
| English (mr corpus) | 0.961 | 0.590 (0.024) | 0.714 (0.037) | 0.644 (0.024) | |
| Hindi | 0.935 | 0.546 (0.131) | 0.656 (0.178) | 0.594 (0.131) | |
Appendix figures & tables65 assets
Supplementary material from the paper’s appendix.
Appendix
| Tier | Items |
|---|---|
| Alias observed only | 404 |
| Explicit relation plus attested alias, birth name | 171 |
| Explicit plus alias, pseudonym | 13 |
| Explicit plus alias, nickname | 7 |
| Explicit relation observed, birth name | 5 |
| Explicit relation observed, nickname | 1 |
| Language | # | Template |
|---|---|---|
| Marathi | 0 | [a] ani [b] he ekac vyakti ahet ka? Are [a] and [b] one and the same person? |
| 1 | [a] ani [b] hi nave ekac vyaktila darshavatat ka? Do the names [a] and [b] denote the same person? | |
| 2 | [a] he [b] yance dusre nav ahe ka? Is [a] another name of [b]? | |
| Hindi | 0 | kya [a] aur [b] ek hi vyakti hain? Are [a] and [b] the same person? |
| 1 | kya [a] aur [b] ek hi vyakti ke nam hain? Are [a] and [b] names of the same person? | |
| 2 | kya [a] [b] ka dusra nam hai? Is [a] another name for [b]? |
| Model | Prompt | Gate | Run | Test |
|---|---|---|---|---|
| Qwen2.5-7B | Marathi | 53 | 53 | 12 |
| Hindi | 50 | 50 | 15 | |
| English (Marathi run) | 116 | 116 | 24 | |
| English (Hindi run) | 107 | 107 | 24 | |
| Gemma-2-2b | Marathi | 33 | 33 | 10 |
| Hindi | 65 | 60 | 12 |
| Dev–Dev rate | 0.00 | 0.17 | 0.33 | 0.50 | 0.67 | 0.83 | 1.00 |
|---|---|---|---|---|---|---|---|
| Qwen | 497 | 25 | 21 | 8 | 41 | 3 | 6 |
| Gemma | 0 | 0 | 0 | 1 | 81 | 131 | 388 |
| Prompt | Paraphrase | Dev–Dev | Dev–Lat | Lat–Dev | Lat–Lat |
|---|---|---|---|---|---|
| Marathi | P0 | 10.6 | 37.7 | 51.0 | 43.9 |
| P1 | 11.6 | 46.9 | 51.2 | 51.7 | |
| P2 | 3.2 | 3.5 | 2.7 | 9.8 | |
| Hindi | P0 | 14.8 | 61.8 | 73.4 | 50.0 |
| P1 | 28.2 | 71.6 | 79.7 | 59.2 | |
| P2 | 6.2 | 2.2 | 3.5 | 14.1 |
| Prompt | Tier | Dev–Dev | Dev–Lat | Lat–Dev | Lat–Lat | |
|---|---|---|---|---|---|---|
| Marathi | Alias observed | 10.4 | 27.7 | 36.3 | 32.5 | 404 |
| Explicit plus alias, birth name | 4.3 | 34.8 | 33.0 | 43.0 | 171 | |
| Explicit plus alias, pseudonym | 0.0 | 9.0 | 16.7 | 17.9 | 13 | |
| Explicit plus alias, nickname | 14.3 | 33.3 | 42.9 | 45.2 | 7 | |
| Explicit observed, birth name | 13.3 | 33.3 | 33.3 | 16.7 | 5 | |
| Explicit observed, nickname | 0.0 | 0.0 | 0.0 | 0.0 | 1 |
| Model | Prompt | Dev–Dev | Lat–Lat | Gap (CI) |
|---|---|---|---|---|
| Qwen | Marathi | 1.494 | 2.376 | |
| Hindi | 2.122 | 2.425 | ||
| English | 2.765 | 2.833 | ||
| Gemma | Marathi | 0.724 | 1.410 | |
| Hindi | 1.428 | 1.910 | ||
| English | 1.136 | 1.866 |
| Corpus | Token count | Names | Mean tokens | Retrieved at rank 1 |
|---|---|---|---|---|
| Marathi | 217 | 8.4 | 41.0% | |
| 11–15 | 396 | 13.0 | 22.0% | |
| 16–20 | 303 | 17.8 | 17.5% | |
| 286 | 26.2 | 16.8% | ||
| Hindi | 220 | 8.4 | 42.7% | |
| 11–15 | 400 | 13.0 | 24.0% |
| Relationship | |||
| Marathi | |||
| Token ratio vs Latin-script benefit, pooled | 601 | ||
| foreign-origin names | 489 | ||
| native-origin names | 112 | ||
| Token ratio vs layer of first recognition | 604 of 1202 | ||
| Hindi | |||
| Corpus | Quartile | Mean token ratio | Mean benefit |
|---|---|---|---|
| Marathi | Q1, least fragmented | 2.12 | 3.78 |
| Q2 | 2.60 | 3.82 | |
| Q3 | 3.16 | 5.74 | |
| Q4, most fragmented | 4.49 | 6.34 | |
| Hindi | Q1, least fragmented | 2.12 | 3.29 |
| Q2 | 2.60 | 3.43 |
| Feature set | Qwen (mr) | Qwen (en) | Gemma (mr) | Qwen (hi) | Gemma (hi) |
|---|---|---|---|---|---|
| Surface features only | 0.602 | 0.564 | 0.588 | 0.572 | 0.561 |
| + early-layer retrieval | 0.590 | 0.568 | 0.557 | 0.574 | 0.626 |
| + retrieval across layers | 0.694 | 0.728 | 0.672 | 0.722 | 0.653 |
| + relation states | 0.954 | 0.962 | 0.864 | 0.937 | 0.915 |
| Model | Prompt | Dev–Dev | replaced | anchored | Lat–Lat |
|---|---|---|---|---|---|
| Qwen2.5-7B | Marathi | 0.537 | 0.523–0.548 | 0.535–0.554 | 0.706 |
| Hindi | 0.546 | 0.508–0.525 | 0.550–0.562 | 0.748 | |
| English | 0.667 | 0.550–0.579 | 0.671–0.733 | 0.781 | |
| Gemma-2-2b | Marathi | 0.754 | 0.621–0.683 | 0.675–0.731 | 0.871 |
| Hindi | 0.829 | 0.646–0.702 | 0.681–0.721 | 0.827 | |
| English | 0.529 | 0.510–0.548 | 0.533–0.615 | 0.646 |
| Version 1 | Version 2 | Canonical |
|---|---|---|
| imdira gamdhi | imdira gamdhi | Indira Gandhi |
| jaoNrja iliyata | jorja iliyata | George Eliot |
| meri eNna ivhansa | meri aena ivhansa | Mary Anne Evans |
| naremdra modi | naremdra modi | Narendra Modi |
| Fit on | Evaluate on | Qwen | Gemma | Llama |
|---|---|---|---|---|
| English | English | 0.950 (L18) | 0.921 (L11) | 0.942 (L11) |
| English | Marathi | 0.929 (L15) | 0.883 (L10) | 0.954 (L9) |
| Marathi | English | 0.942 (L21) | 0.838 (L20) | 0.925 (L21) |
| Marathi | Marathi | 0.925 (L16) | 0.925 (L14) | 0.950 (L19) |
| Qwen (28 layers) | Gemma (26 layers) | ||||||
|---|---|---|---|---|---|---|---|
| Prompt | Layer | Bal. | S | D | Bal. | S | D |
| Marathi | 0 | 0.525 | 0.411 | 0.639 | 0.491 | 0.691 | 0.291 |
| 4 | 0.832 | 0.915 | 0.749 | 0.665 | 0.927 | 0.403 | |
| 8 | 0.902 | 0.820 | 0.983 | 0.913 | 0.857 | 0.970 | |
| 12 | 0.871 | 0.742 | 1.000 | 0.910 | 0.834 | 0.987 | |
| 16 | 0.913 | 0.832 | 0.993 | 0.901 | 0.807 | 0.995 | |
| Marathi | Hindi | |||
| Question mark | Readout | Question mark | Readout | |
| Balanced accuracy, held-out test | 0.925 | 0.892 | 0.942 | 0.925 |
| Selected layer | 16 | 6 | 8 | 17 |
| Same recall on failures | 0.789 | 0.570 | 0.829 | 0.927 |
| Failure recall by behavioural group, Marathi, question-mark position | ||||
| Robust across scripts | 0.944 | |||
| Qwen | Gemma | Llama | |||||
|---|---|---|---|---|---|---|---|
| Prompt | Switched span | at E2 | at Q | at E2 | at Q | at E2 | at Q |
| Marathi | first | 0.967 | 0.918 | 0.859 | 0.839 | 0.937 | 0.928 |
| second | 0.491 | 0.899 | 0.394 | 0.615 | 0.547 | 0.842 | |
| Hindi | first | 0.938 | 0.708 | 0.788 | 0.793 | 0.932 | 0.923 |
| second | 0.627 | 0.899 | 0.404 | 0.683 | 0.616 | 0.913 | |
| English | first | 0.906 | 0.760 | 0.797 | 0.687 | 0.936 | 0.903 |
| Site | Control | Window | ||||||
|---|---|---|---|---|---|---|---|---|
| Prompt | E1 | E2 | Q | R | wrong ent. | wrong pos. | reverse | 12–17 |
| Marathi ( ) | 0.12 | 2.66 | 0.61 | 1.26 | 0.70 | 0.57 | 12.95 | |
| Hindi ( ) | 3.16 | 0.33 | 1.08 | 2.08 | 0.40 | 12.35 | ||
| English ( ) | 0.27 | 2.85 | 0.79 | 1.33 | 0.86 | 0.37 | 11.65 | |
| Quantity | Marathi | Hindi | English |
|---|---|---|---|
| Held-out test items ( , , ) | |||
| First entity (E1) | 0.12 [ 0.13, 0.38] | 0.03 [ 0.25, 0.16] | 0.27 [0.02, 0.53] |
| Second entity (E2) | 2.66 [1.67, 3.71] | 3.16 [2.47, 3.90] | 2.85 [2.28, 3.45] |
| Question mark (Q) | 0.61 [0.33, 0.97] | 0.33 [0.16, 0.52] | 0.79 [0.59, 1.00] |
| Readout (R) | 1.26 [0.96, 1.58] | 1.08 [0.87, 1.30] | 1.33 [1.12, 1.57] |
| E2 minus wrong-entity donor | 2.09 [0.41, 3.84] | 0.51 [ 2.06, 1.08] | 0.70 [ 0.21, 1.54] |
| Native-script prompts | English prompts | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Corpus | Layer | E1 | E2 | Q | R | E1 | E2 | Q | R |
| Marathi | 8 | 0.28 | 0.31 | 0.42 | 0.02 | 0.95 | 0.01 | 0.11 | |
| 9 | 0.14 | 0.53 | 0.47 | 0.05 | 0.93 | 0.10 | |||
| 10 | 0.14 | 0.59 | 0.35 | 0.12 | 0.78 | 0.01 | 0.20 | ||
| 11 | 0.12 | 0.79 | 0.38 | 0.09 | 0.60 | 0.52 | 0.08 | 0.19 | |
| 12 | 0.17 | 1.80 | 0.23 | 0.08 | 0.45 | 1.94 | 0.16 | 0.25 | |
| Patch | Marathi | English |
|---|---|---|
| Layers 9–11 | 0.77 (0.00) | 0.04 (0.07) |
| Layers 12–14 | 4.04 (0.04) | 3.10 (0.22) |
| Layers 15–17 | 9.08 (0.30) | 6.91 (0.50) |
| Layers 12–17 | 11.70 (0.43) | 9.05 (0.64) |
| Layers 18–20 | 0.56 (0.00) | 0.28 (0.00) |
| E1+E2, 12–17 | 12.23 (0.51) | 9.99 (0.69) |
| Variant | Marathi | English | Hindi | |
|---|---|---|---|---|
| Donor, same language | Lat–Lat (used throughout) | 5.97 | 4.45 | 7.22 |
| Lat–Dev | 5.88 | 6.88 | 4.61 | |
| Dev–Lat | 4.03 | 5.15 | 5.66 | |
| Donor, other language | Lat–Lat | 6.26 | 4.21 | 4.30 |
| Dev–Dev | 0.11 | 0.53 | 1.09 | |
| Negative pairs | margin change, joint 12–17 |
| Patched | Marathi | English | Hindi |
| Full residual stream, single layer | 2.16 | 1.31 | 1.58 |
| Attention output only, single layer | 0.52 | 0.29 | 0.41 |
| MLP output only, single layer | 0.07 | 0.48 | 0.26 |
| Attention output, cumulative | 5.41 | 4.51 | 4.16 |
| MLP output, cumulative | 0.51 | 1.10 | 0.56 |
| Best single head | 1.70 | 1.44 | 1.66 |
| E2 patch | E1 patch | Dev–Dev acc. | Lat–Lat acc. | |||||
|---|---|---|---|---|---|---|---|---|
| Prompt | canon. | swap. | canon. | swap. | canon. | swap. | canon. | swap. |
| Marathi | 4.79 | 3.78 | -0.11 | 0.03 | 0.551 | 0.572 | 0.719 | 0.751 |
| Hindi | 5.78 | 4.45 | -0.08 | 0.41 | 0.572 | 0.632 | 0.746 | 0.814 |
| English | 3.72 | 3.36 | -0.42 | 0.09 | 0.675 | 0.759 | 0.799 | 0.856 |
| Layer | deficit | Latin frame | own frame | ||||
|---|---|---|---|---|---|---|---|
| Marathi prompts | |||||||
| 12 | 0.33 | 0.37 | +0.001 | 3.19 | 4.85 | 0.01 | 0.40 |
| 13 | 0.53 | 0.39 | +0.002 | 2.87 | 4.57 | 0.09 | 0.22 |
| 14 | 0.63 | 0.44 | +0.000 | 2.73 | 4.47 | 0.07 | 0.19 |
| 15 | 0.89 | 0.49 | 0.002 | 2.37 | 4.01 | 0.34 | 0.18 |
| 16 | 1.32 | 0.53 | +0.001 | 1.76 | 3.01 | 0.58 | 0.36 |
| Native-script prompts | English prompts | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Corpus | Layer | ||||||||
| Marathi | 10 | 0.058 | 0.058 | 0.058 | 0.075 | 0.333 | 0.333 | 0.333 | 0.350 |
| 12 | 0.058 | 0.058 | 0.058 | 0.067 | 0.333 | 0.333 | 0.342 | 0.367 | |
| 14 | 0.058 | 0.058 | 0.067 | 0.075 | 0.333 | 0.333 | 0.333 | 0.342 | |
| 16 | 0.058 | 0.058 | 0.075 | 0.083 | 0.333 | 0.333 | 0.333 | 0.333 | |
| 18 | 0.058 | 0.058 | 0.058 | 0.058 | 0.333 | 0.333 | 0.333 | 0.333 | |
| Model | Prompt | Layer | Positives | Negatives | |
|---|---|---|---|---|---|
| Qwen2.5-7B | Marathi | 16 | 6.0 | 0.083 | 0.993 |
| English | 12 | 8.0 | 0.350 | 1.000 | |
| Gemma-2-2b | Marathi | 10 | 0.5 | 0.925 | 0.246 |
| English | 12 | 3.0 | 0.979 | 0.231 | |
| Llama-3.1-8B | Marathi | 11 | 8.0 | 0.354 | 0.661 |
| English | 21 | 4.0 | 0.478 | 0.849 |
| Marathi | English | Hindi | ||||
|---|---|---|---|---|---|---|
| Condition | positives | negatives | positives | negatives | positives | negatives |
| No intervention | 0.065 | 0.994 | 0.283 | 1.000 | 0.122 | 1.000 |
| Prompt anchor, first | 0.201 | 1.000 | 0.547 | 0.997 | 0.260 | 0.997 |
| Prompt anchor, second | 0.189 | 0.996 | 0.588 | 0.992 | 0.353 | 0.999 |
| Prompt anchor, both | 0.219 | 0.990 | 0.613 | 1.000 | 0.362 | 0.997 |
| Automatic romanization anchor | 0.108 | 0.997 | 0.317 | 0.989 | 0.157 | 0.994 |
| Marathi prompts | English prompts | |||
|---|---|---|---|---|
| Scale | positives | negatives | positives | negatives |
| 0.067 | 1.000 | 0.333 | 1.000 | |
| 0.075 | 1.000 | 0.333 | 1.000 | |
| 0.083 | 1.000 | 0.333 | 1.000 | |
| 0.083 | 1.000 | 0.350 | 1.000 | |
| 0.117 | 1.000 | 0.358 | 1.000 | |
| Marathi | English | |||
| Condition | positives | negatives | positives | negatives |
| No intervention | 0.065 | 0.994 | 0.283 | 1.000 |
| Vector, full | 0.113 | 0.993 | 0.292 | 0.996 |
| Vector, first entity | 0.276 | 0.992 | 0.694 | 0.971 |
| Vector, second entity | 0.219 | 0.992 | 0.481 | 0.986 |
| Vector, additive | 0.335 | 0.985 | 0.590 | 0.976 |
| Prompt language | Layer | Median coordinate | Beyond grid |
|---|---|---|---|
| Marathi | 12 | 15.3 | 0.00 |
| 13 | 15.3 | 0.00 | |
| 14 | 16.3 | 0.00 | |
| 15 | 17.7 | 0.00 | |
| 16 | 17.8 | 0.00 | |
| 17 | 17.8 | 0.01 |
| Configuration | Prompt | whole | rank-one | share | rank-one flips | |
|---|---|---|---|---|---|---|
| Layer 16 only | Marathi | 10 | 2.44 | 1.38 | 0.56 | 0.00 |
| Layers 12–17 | Marathi | 10 | 13.66 | 8.68 | 0.63 | 0.40 |
| Layers 12–17, held out | English | 20 | 7.39 | 3.88 | 0.52 | 0.15 |
| Layers 12–17, held out | Marathi | 10 | 7.80 | 3.52 | 0.45 | 0.00 |
| Prompt | Template | Dev–Dev | with vector | Lat–Lat |
|---|---|---|---|---|
| Marathi | 0 | 7.5 | 42.5 | 42.1 |
| 1 | 10.0 | 39.2 | 51.2 | |
| 2 | 2.1 | 18.8 | 8.8 | |
| English | 0 | 33.3 | 70.4 | 56.2 |
| 1 | 35.0 | 75.8 | 60.8 | |
| 2 | 16.7 | 30.8 | 41.7 |
| Balanced accuracy | Positives / negatives, repaired | |||||
|---|---|---|---|---|---|---|
| Arm | baseline | with vector | Lat–Lat | positives | negatives | reference |
| Marathi | 53.0 | 66.0 | 66.9 | 33.5 | 98.5 | 34.0 |
| English, Marathi corpus | 64.2 | 78.3 | 76.5 | 59.0 | 97.6 | 52.9 |
| Hindi | 56.1 | 70.8 | 70.1 | 54.6 | 86.9 | 40.1 |
| English, Hindi corpus | 63.0 | 77.9 | 76.0 | 58.5 | 97.4 | 52.1 |
| Mean difference | Local sensitivity | |||
|---|---|---|---|---|
| Scale | positives | negatives | positives | negatives |
| 6.7 | 100.0 | 25.8 | 100.0 | |
| 7.5 | 100.0 | 68.3 | 98.3 | |
| 8.3 | 100.0 | 85.8 | 80.0 | |
| 8.3 | 100.0 | 96.7 | 39.2 | |
| 11.7 | 100.0 | 100.0 | 0.8 | |
| Amount | fold | Marathi | Hindi | English |
|---|---|---|---|---|
| Item’s own | t01e2 | 0.16 | 0.15 | 0.20 |
| t02e1 | 0.08 | 0.06 | 0.01 | |
| t12e0 | 0.06 | 0.02 | ||
| Another item’s | t01e2 | 0.23 | 0.14 | 0.18 |
| t02e1 | 0.10 | 0.11 | 0.00 | |
| t12e0 | 0.13 | 0.05 |
| Layer | Whole | Jac 1 | Jac 8 | Mean diff | PCA | Probe | Random |
|---|---|---|---|---|---|---|---|
| Marathi prompts | |||||||
| 12 | 0.97 | 0.61 | 0.81 | 1.52 | 0.13 | 0.00 | |
| 13 | 2.05 | 1.25 | 1.32 | 2.01 | 0.03 | 0.02 | 0.02 |
| 14 | 2.50 | 2.04 | 2.41 | 2.38 | 0.04 | 0.02 | |
| 15 | 5.01 | 3.40 | 4.01 | 3.32 | 0.01 | 0.02 | |
| 16 | 5.52 | 4.00 | 4.54 | 3.62 | 0.40 | 0.03 | 0.06 |
| Native-script prompts | English prompts | ||||||||
| Corpus | Layer | E1 | E2 | Q | R | E1 | E2 | Q | R |
| Marathi | 8 | 1.05 | 2.21 | 0.16 | 0.03 | 0.38 | 1.18 | ||
| 9 | 0.88 | 1.64 | 1.22 | 0.17 | 0.36 | 0.98 | |||
| 10 | 1.03 | 1.66 | 1.51 | 0.20 | 0.38 | 1.44 | |||
| 11 | 0.19 | 1.71 | 3.43 | 0.48 | 0.26 | 2.07 | 1.37 | ||
| 12 | 1.68 | 4.21 | 0.53 | 0.03 | 1.82 | 1.66 | |||
| Prompt | Paraphrase | Dev–Dev | Dev–Lat | Lat–Dev | Lat–Lat |
|---|---|---|---|---|---|
| Marathi | P0 | 1.2 | 5.2 | 3.5 | 5.1 |
| P1 | 51.4 | 52.0 | 51.1 | 51.3 | |
| P2 | 50.0 | 50.0 | 50.0 | 50.0 | |
| Hindi | P0 | 1.4 | 14.2 | 21.0 | 13.6 |
| P1 | 6.6 | 25.3 | 30.0 | 20.5 | |
| P2 | 50.0 | 49.9 | 49.9 | 50.0 |
| Qwen2.5-7B | Gemma-2-2b | Llama-3.1-8B | |
| Layers | 28 | 26 | 32 |
| Devanagari tokens per character, Marathi | 0.98 | 0.56 | 0.61 |
| Devanagari tokens per character, Hindi | 0.99 | 0.55 | 0.60 |
| gap, English prompts | |||
| gap, Marathi prompts | (excluded) | ||
| gap, Hindi prompts | (excluded) |
| Layer | Marathi | English |
|---|---|---|
| 11 | 0.60 | 0.33 |
| 12 | 0.60 | 0.44 |
| 13 | 0.56 | 0.59 |
| 14 | 0.36 | 0.69 |
| 15 | 0.30 | 0.81 |
| 16 | 0.21 | 0.94 |
| Prompt | E1 | E2 | Q | R | E2 minus wrong entity |
|---|---|---|---|---|---|
| Swept band, 11–29 | |||||
| Marathi | 0.004 | 0.154 | 0.093 | 1.471 | +0.023 |
| English | 0.003 | 0.336 | 0.135 | 2.301 | +0.104 |
| Depth-matched, 14–26 | |||||
| Marathi | 0.002 | 0.090 | 0.134 | 1.491 | +0.023 |
| English | 0.005 | 0.389 | 0.164 | 2.429 | +0.122 |
| Fact | Devanagari field reads | Latin field reads | Kind |
|---|---|---|---|
| q485697 | Kepler Laveran Lima Ferreira | Pepe | different name |
| q855252 | Rama IX, Thailand | Bhumibol Adulyadej | different name |
| q213812 | George Herman Ruth | Babe Ruth | different name |
| q35811 | Zarathustra | Zoroaster | different tradition |
| q61047 | Ferdinand Eisenstein | Gotthold Eisenstein | different given name |
| q11576 | Raúl González | Raúl | full vs short |
| Marathi | Hindi | |
|---|---|---|
| Surface baseline, balanced accuracy | 0.933 | 0.946 |
| Surface baseline, AUC | 0.970 | 0.967 |
| Probe, balanced accuracy | 0.925 | 0.942 |
| Surface recovery on the model’s failures | 0.869 | 0.896 |
| Probe recovery on the model’s failures | 0.789 | — |
| Probe where the surface baseline is correct | 0.973 | 0.996 |
| Negatives | Probe | Baseline | Probe baseline | |
| Marathi | shipped | 0.925 | 0.933 | 0.008 [ 0.033, 0.017] |
| matched | 0.908 | 0.796 | 0.112 [ 0.067, 0.163] | |
| English | shipped | 0.950 | 0.933 | 0.017 [ 0.004, 0.042] |
| matched | 0.879 | 0.796 | 0.083 [ 0.025, 0.142] | |
| Probe where the surface baseline fails, shipped and 49 matched | ||||
| Marathi | shipped | 0.250 [0.059, 0.476] | ||
| At layer 16 | Best layer | |||
|---|---|---|---|---|
| Position | Marathi | English | Marathi | English |
| Second entity | 0.942 | 0.954 | 0.954 (17) | 0.958 (14) |
| Question mark | 0.925 | 0.933 | 0.942 (6) | 0.950 (18) |
| Readout | 0.838 | 0.879 | 0.925 (7) | 0.950 (20) |
| Sequence ratio | Items | Surface | Probe |
|---|---|---|---|
| 0.3 and below | 3 | 0.000 | 0.333 |
| 0.3 to 0.5 | 15 | 0.267 | 0.400 |
| 0.5 to 0.7 | 34 | 1.000 | 0.912 |
| above 0.7 | 68 | 1.000 | 0.971 |
| String | Dev–Dev | Lat–Lat | |||
|---|---|---|---|---|---|
| Negatives | classifier | positives | AUC | positives | AUC |
| Occupation and country | 0.800 | 7.9 | 0.755 | 36.0 | 0.893 |
| Also string similarity | 0.680 | 8.0 | 0.753 | 36.0 | 0.901 |
| Real corpus | Nonce corpus | ||||
|---|---|---|---|---|---|
| Prompt | Condition | positives | negatives | positives | negatives |
| Marathi | Dev–Dev | 0.085 | 0.998 | 0.046 | 1.000 |
| Dev–Lat | 0.294 | 0.991 | 0.024 | 1.000 | |
| Lat–Dev | 0.350 | 0.998 | 0.169 | 1.000 | |
| Lat–Lat | 0.351 | 0.997 | 0.036 | 1.000 | |
| English | Dev–Dev | 0.282 | 1.000 | 0.206 | 1.000 |
| Marathi prompts | English prompts | |||||
|---|---|---|---|---|---|---|
| Latin overlap | Dev–Dev | Lat–Lat | gap | Dev–Dev | Lat–Lat | gap |
| 0.4 | 7.2 | 38.5 | 31.3 | 14.9 | 49.4 | 34.5 |
| 0.4–0.6 | 6.9 | 36.5 | 29.6 | 26.8 | 61.0 | 34.2 |
| 0.6–0.8 | 8.0 | 35.6 | 27.6 | 28.8 | 55.8 | 27.1 |
| 0.8 | 10.8 | 32.1 | 21.3 | 32.9 | 56.9 | 24.0 |
| items | 58 / 94 / 295 / 154 | same items | ||||
| Prompt | template 0 | template 1 | template 2 |
|---|---|---|---|
| Marathi | |||
| English | |||
| Hindi |
| Arm | Condition | Positives | Negatives |
|---|---|---|---|
| Marathi | Dev–Dev, unmodified | 0.065 | 0.994 |
| Dev–Dev, vector | 0.335 | 0.985 | |
| Lat–Lat, unmodified | 0.340 | 0.997 | |
| Lat–Lat, vector | 0.629 | 0.976 | |
| English, mr corpus | Dev–Dev, unmodified | 0.283 | 1.000 |
| Dev–Dev, vector | 0.590 | 0.976 |
| Native prompts | English prompts | |||
| Site | positives | negatives | positives | negatives |
| Marathi corpus | ||||
| unmodified | 0.065 | 0.994 | 0.283 | 1.000 |
| second entity | 0.335 | 0.985 | 0.590 | 0.976 |
| first entity | 0.071 | 0.993 | 0.332 | 1.000 |
| question mark | 0.250 | 0.953 | 0.433 | 0.990 |
| Positive-pair gap | Balanced gap | |||
|---|---|---|---|---|
| Arm | untreated | both treated | Change | untreated |
| Marathi | 27.5 [+21.1, +34.4] | 29.4 | +1.9 | +13.9 [+10.6, +17.4] |
| English, mr corpus | 24.6 [+16.2, +33.8] | 16.6 | -8.0 | +12.3 [+8.1, +16.9] |
| Hindi | 27.9 [+21.8, +34.7] | 14.4 | -13.5 | +14.0 [+10.9, +17.4] |
| English, hi corpus | 26.1 [+18.3, +34.4] | 15.8 | -10.3 | +13.1 [+9.2, +17.2] |
| Entity AUROC | TPR at the vector’s FPR | |||||
|---|---|---|---|---|---|---|
| Template | baseline | vector | change | vector | threshold | offset |
| 0 | 0.851 | 0.885 | +0.034 | 0.425 (0.021) | 0.308 | 0.267 (0.004) |
| 1 | 0.938 | 0.941 | +0.003 | 0.392 (0.012) | 0.371 | 0.637 (0.037) |
| 2 | 0.924 | 0.944 | +0.020 | 0.188 (0.012) | 0.242 | 0.421 (0.021) |
| Mean-difference direction, gated margin change | ||||
|---|---|---|---|---|
| Prompts | Fold | one constant for every item | the item’s own | another item’s |
| en | t01e2 | 5.51 | 3.97 | 4.18 |
| en | t02e1 | 3.30 | 3.18 | 3.26 |
| en | t12e0 | 4.13 | 3.85 | 4.05 |
| hi | t01e2 | 4.35 | 4.47 | 4.25 |
| hi | t02e1 | 7.00 | 6.62 | 6.20 |
| Intervention | Fitted on | Selected on | Templates | Reported on |
|---|---|---|---|---|
| Single-layer vector | 361 train entities | 60 of 120 validation | 0 for selection, 0–2 for test | 120 test |
| Window vector | 361 train entities | 60 of 120 validation | 0 for selection, 0–2 for test | 120 test |
| Sensitivity sweep | 31 Marathi, 60 English gated train items | 60 of 120 validation | 0 only | validation only |
| Scalar offset | nothing fitted; one constant selected | 60 of 120 validation | 0 only | 120 test |
| Rank-one subspace | 31 Marathi, 60 English gated train items | fold t01e2 | train 0–1, evaluate 2 | gated test items |
| Condition control | frozen, nothing fitted | nothing selected | 0–2 | 120 test |
| Local sensitivity | Mean difference | ||||||
| positives | negatives | balanced | positives | negatives | balanced | ||
| Marathi prompts | |||||||
| 0.5 | 0.258 | 1.000 | 0.629 | 0.5 | 0.067 | 1.000 | 0.533 |
| 0.6 | 0.308 | 1.000 | 0.654 | 1 | 0.075 | 1.000 | 0.537 |
| 0.7 | 0.342 | 1.000 | 0.671 | 1.5 | 0.083 | 1.000 | 0.542 |
| 0.8 | 0.483 | 1.000 | 0.742 | 2 | 0.083 | 1.000 | 0.542 |
| Both native | Native, Lat | Lat, native | Both Latin | ||||||
| Corpus | Prompt | pos. | neg. | pos. | neg. | pos. | neg. | pos. | neg. |
| Malayalam | Malayalam | 5.3 | 100.0 | 33.5 | 98.6 | 38.1 | 99.6 | 48.8 | 99.9 |
| English | 26.5 | 98.9 | 58.2 | 97.1 | 66.4 | 95.6 | 62.9 | 99.6 | |
| Devanagari | Marathi | 10.4 | 100.0 | 33.2 | 98.8 | 37.8 | 99.8 | 41.0 | 99.6 |
| English | 30.0 | 99.6 | 64.4 | 98.6 | 66.0 | 97.5 | 62.9 | 99.6 | |
| Entity-averaged AUROC | |||||||||
| Prompt | Paraphrase | Mlym–Mlym | Mlym–Lat | Lat–Mlym | Lat–Lat |
|---|---|---|---|---|---|
| Malayalam | P1 | 10.5 | 48.7 | 62.5 | 65.8 |
| P2 | 10.5 | 56.6 | 64.5 | 70.4 | |
| P3 | 2.6 | 7.9 | 2.0 | 4.6 | |
| English | P1 | 26.3 | 73.7 | 86.2 | 61.2 |
| P2 | 28.3 | 75.7 | 90.8 | 62.5 | |
| P3 | 12.5 | 40.8 | 23.7 | 47.4 |
Cross-Lingual Consistency in Language Models
Cross-lingual consistency in language models studies whether equivalent inputs across languages produce comparable knowledge, reasoning, and safety behavior.
See all 71 papers