Manuscript Offprint

arXiv:2610.08037

Are Language Models Script-Aware?

David Kletz, Sandra Mitrović, Ljiljana Dolamić, Fabio Rinaldi

Abstract

Language models frequently generate outputs in unintended languages or scripts, a phenomenon known as off-target generation. While existing research has focused on language selection, the dimension of script knowledge remains understudied: before any linguistic understanding can occur, users must recognize the graphic symbols in a model's response. We investigate whether Small and Large Language Models (SLMs and LLMs) possess script knowledge by testing them on multi-scriptic languages. Through two complementary experiments, we evaluate whether models (1) adapt their output script to match the input, and (2) follow explicit instructions to generate text in a specified script. The models we tested demonstrate substantial script knowledge: they all achieve a near-perfect Latin script fidelity (more than 98%) and follow script instructions with high frequency. Nevertheless, we notice differences between LLMs and SLMs, with higher scores for LLMs including for non-standard script combinations.

1 Introduction

Language models increasingly demonstrate remarkable multilingual capabilities, yet they frequently fail to generate outputs in the expected language, a phenomenon known as off-target generation (Xu et al., 2024; Richburg and Carpuat, 2024), also referred to as language confusion (Marchisio et al., 2024). Several studies point the severity of this issue. For example, Dai et al. (2024) show that BLOOMZ-7B1 and mT0-xl (Muennighoff et al., 2023) reach an off-target ratio higher than 60% under a zero-shot setting in several languages. Likewise, Llama3.1 models generate non-English outputs in 37% of cases when English is expected (Vykopal et al., 2025). This problem is particularly frequent for low-resource languages (Senrich et al., 2024; Nie et al., 2025), further reinforcing the exclusion of speakers of low-resource languages. While existing research has focused primarily on language selection, a more fundamental dimension remains understudied: script knowledge. Before any linguistic understanding can occur, users must recognize the graphic symbols employed in a model's response. Written communication relies on scripts—the sets of standardized visual symbols used to represent language (Miton and Morin, 2021; Gelb, 1963). This basic condition of legibility constitutes a prerequisite for meaningful human-AI interaction. Importantly, many languages can be written in multiple scripts (see details in Appendix C): Serbian uses both Latin and Cyrillic, Konkani is actively written in five scripts (Agarwal et al., 2025), and Kazakh employs Latin, Cyrillic, and Arabic (Makhambetov et al., 2013). These multi-scriptic languages provide natural test cases for assessing whether models possess genuine script knowledge and whether they exhibit systematic biases toward particular scripts. Training corpora for language models are heavily biased toward the Latin script—more than 77% of mBERT's vocabulary is Latin, compared to only 1% Georgian (Ács, 2019). This imbalance measurably affects model behavior: the script used for a given language significantly impacts performance (Muller et al., 2021), with, for example, dramatic output changes observed when Kazakh is written in Latin instead of Cyrillic (Isbarov et al., 2025). While recent work has revealed performance disparities across scripts (Song et al., 2025; Hada et al., 2024), linguistic gaps (Hussen et al., 2025), and tokenization challenges (Zhang et al., 2025; Land and Arnett, 2025), as well as script tracing across transformer layers (Saji et al., 2025; Kletz et al., 2026), no study has systematically evaluated whether models understand scripts as distinct entities that can

∗^{*}These authors contributed equally to this work.

be deliberately selected and controlled 1^{1}. This work investigates the script knowledge of both Small and Large Language Models through the following research questions 2^{2}:

RQ1 Do models adapt their output script to match the input?

RQ2 Can models follow explicit instructions to generate text in a specified script, regardless of the input script?

References (33)