Manuscript Offprint

arXiv:2610.01241

Evaluating the Robustness of Japanese LLMs to IME-Related and Typographical Errors

Ryota Mibayashi, Hiroaki Ohshima

Ryota Mibayashi 1^{1}✉[0009-0005-8995-5579] and Hiroaki Ohshima 2^{2}[0000-0002-9492-2246]

1^{1} Kobe University, Hyogo, Japan mibayashi@people.kobe-u.ac.jp

2^{2} University of Hyogo, Hyogo, Japan ohshima@ai.u-hyogo.ac.jp

Abstract. Large language models (LLMs) have achieved strong performance across various natural language processing tasks. However, their robustness to typographical errors remains underexplored, particularly in Japanese, where text input involves multiple writing systems and IME-based conversion. In this study, we evaluate the robustness of Japanese LLMs against realistic Japanese-specific typos. We introduce five typo categories: Character Transposition, Character Replacement, Homophone Conversion, Japanese IME Conversion, and Full-Width Conversion. These perturbations are applied to three Japanese benchmark datasets (JMMLU, JCommonsenseQA, and JamC-QA), and eleven Japanese and multilingual LLMs are evaluated. The results show that Character Transposition and Character Replacement typos consistently reduce accuracy across benchmarks, whereas IME Conversion, Full-Width Conversion, and Homophone Conversion have relatively limited impact. These findings reveal that current Japanese LLMs remain vulnerable to realistic Japanese typing errors, particularly those that substantially distort the original input, highlighting the importance of robustness evaluation in practical input environments.

Keywords: Typographical Errors · Robustness · LLM

1 Introduction

Large Language Models (LLMs) have achieved remarkable performance across a wide range of natural language processing tasks and are increasingly being deployed in real-world applications. However, real-world user inputs frequently contain typographical errors and input mistakes. Therefore, evaluating the robustness of LLMs against noisy inputs has become an important research problem. Previous studies have investigated the impact of intentionally injected typographical errors in prompts on LLM performance [23]. These studies mainly focus on English and employ character-level attacks such as character insertion, deletion, replacement, and transposition. Previous studies have shown that such character-level perturbations can not only degrade task performance but also alter model behavior, potentially enabling the circumvention of safety mechanisms such as response control and content moderation. Therefore, evaluating

R. Miyayashi and H. Ohshima

Figure

Fig. 1. Overview of the proposed evaluation framework. Original and typo-injected prompts are input to Japanese LLMs, and the resulting outputs are compared to measure the impact of different typo patterns on model performance.

the robustness of LLMs against typographical errors is important not only for maintaining task performance but also for ensuring the reliability and safety of deployed systems.

However, typographical errors in Japanese differ substantially from those in English. While English typographical errors are typically represented as local modifications to alphabetic character sequences, Japanese text consists of multiple writing systems, including kanji, hiragana, katakana, and Roman characters.

Furthermore, Japanese text input commonly relies on an Input Method Editor (IME) for kana-to-kanji conversion, resulting in a wider variety of error sources. For example, commonly observed Japanese input errors include IME conversion mistakes, in which the same phonetic input is converted into a different kanji expression with an unintended meaning. For example, the input “kikaigakushuu” may be correctly converted to “機械学習” (machine learning) but mistakenly converted to “機会学習” (learning opportunities). Another characteristic example arises from keyboard-position errors. The intended Romanized input “sanka” (participation; “参加”) may become “sanak” due to a single mistyped character. While this corresponds to only a one-character error in the input sequence, the subsequent IME conversion can produce a drastically different output such as “三亜k”. Unlike English typographical errors, which are often limited to local character-level modifications, Japanese typing errors can propagate through the IME conversion process and result in substantial semantic changes. Mixed-script inputs that combine Roman and kana charac-ters, such as writing “python” as “p y ㄱ ㄋ n,” can also occur. These errors are not merely character-level perturbations but rather Japanese-specific noise arising from phonological and orthographic characteristics. Therefore, evaluating the robustness of Japanese LLMs requires considering not only conventional character-level attacks developed for English but also Japanese-specific orthographic variations and phonological errors.

To address this issue, we propose Japanese-specific typo generation methods that simulate realistic input errors observed in Japanese text entry. As shown in Figure 1, the generated typos are applied to existing Japanese benchmarks to evaluate their impact on the performance of Japanese LLMs. Specifically, we define five typo patterns: Character Transposition, Character Replacement, Homophone Conversion, Japanese IME Conversion, and Full-Width Conversion, and apply them to existing Japanese benchmarks. Using these perturbations, we quantitatively analyze which types of typographical errors Japanese LLMs are robust to and which types they are vulnerable to. The contributions of this study are summarized as follows.

– We propose typo generation methods specifically designed for Japanese, taking into account realistic Japanese input environments.

– We evaluate multiple Japanese LLMs and reveal their robustness to typographical errors by analyzing performance degradation across different typo categories.

References (22)