analiza aiqbench
This research investigates the internal mechanisms of large language models regarding script selection, revealing that non-Latin scripts are generated by specific, localized attention heads while Latin script relies on diffuse contributions across the network. The study demonstrates that these routing mechanisms generalize to unseen writing systems and exhibit a distinct asymmetry favoring Latin as a privileged substrate within the model's latent space. These findings provide critical mechanistic insights into how LLMs handle orthographic variation without compromising semantic integrity.
The Latin Substrate: How Language Models Represent and Mediate Script Choice
De la arXiv
Text integralMany languages are written in multiple scripts, requiring large language models (LLMs) to generate equivalent linguistic content in distinct orthographic forms. While prior work suggests that LLMs route information through shared latent representations, how they internally mediate script variation remains poorly understood. We study this question by first examining per-layer output distributions with the logit lens, which reveals consistent latent romanization during transliteration, and then through representational and mechanistic analyses of script generation.
At the representational level, we show that scripts of the same language become increasingly separable across layers and that a simple linear steering direction can flip a model's output script while largely preserving semantic content. The vector generalizes to writing systems unseen during construction: it flips non-Latin output to Latin, but maps Latin output into varied non-Latin scripts. At the mechanistic level, we localize a small set of late-layer attention heads that causally mediate script choice.
These heads transfer across unrelated languages and writing systems, suggesting that script routing is implemented by language-agnostic components. Across both analyses, we observe a consistent directional asymmetry: non-Latin output is produced by a compact, identifiable gate, while Latin-script output emerges from diffuse contributions across the model. Overall, our findings hint that LLMs organize script variation around shared latent representations while exhibiting a privileged substrate toward Latin script.
Text integral sub licența deschisă a publicației · 216 cuvinte