Manuscript Offprint

arXiv:2610.25399

From Unverifiable Domain Text to Cross-Lingual RLVR via Code-Switched Task Synthesis

Cheonbok Park, Jihwan Kim, Shinyoung Joo, Joosung Lee, Hwiyeol Jo, Jeonghoon Kim, Jaegul Choo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Reinforcement Learning with Verifiable Rewards (RLVR) can improve reasoning in large language models, but specialized non-English domains expose a data mismatch. Raw English domain text is often available, while target-language RLVR tasks with verifiable rewards are scarce. We introduce code-switched task synthesis for cross-lingual RLVR, a data-centric approach that derives target-language and code-switched RLVR task variants from otherwise unverifiable English domain text. Using fill-in-the-middle multiple-choice QA as a seed task format, we synthesize automatically verifiable tasks from domain passages and reshape them into cross-lingual variants. These variants preserve the same evidence-answer relation but change how English and target-language evidence are presented during RLVR. On Korean medical benchmarks and cybersecurity benchmarks across four target languages, code-switched training outperforms matched monolingual and bilingual-mixture baselines on average target-language performance while maintaining comparable English performance. Additional analyses provide evidence of better target-language input understanding and stronger cross-lingual alignment in both model outputs and internal representations. These results suggest that code-switched training helps target-language inputs access domain reasoning learned more strongly in English.

1 Introduction

Reinforcement Learning with Verifiable Rewards (RLVR) has become a powerful post-training method for improving the reasoning ability of large language models (Shao et al., 2024; Guo et al., 2025). Its effectiveness depends on tasks whose outcomes can be automatically verified and converted into reward signals. Mathematics and programming naturally provide such tasks through exact answers, symbolic checks, or execution, but the same assumption does not generally hold for knowledge-intensive domains. Although raw text is abundant, scaling the creation of high-quality verifiable problems is difficult and time-consuming. We study this setting using cybersecurity and medicine as controlled domain testbeds (Zhang et al., 2025; Su et al., 2026). This limitation is more severe outside English, where domain-specific multilingual corpora are scarce and rewardable reasoning data is even scarcer (Dobler et al., 2026; Wang et al., 2025b). Thus, a central obstacle for cross-lingual domain RLVR is not only how to obtain multilingual data, but how to turn that data into verifiable training signals.

A practical way to construct verifiable supervision from domain text is fill-in-the-middle multiple-choice question answering (FIM-MCQA) synthesis (Lu et al., 2026; Ren et al., 2025). FIM-MCQA masks a span from a domain passage, treats the removed span as the correct answer, and rewards the model for selecting it. This turns otherwise unverifiable raw text into an automatically verifiable task. In multilingual settings, the verified seed task can be translated into a target language to construct target-language training data.

Yet translation alone may not provide the most effective transfer signal. Multilingual reasoning gaps often stem from input understanding or cross-lingual alignment failures (Kang et al., 2026; Son et al., 2026), and specialized domains may require target-language inputs to access stronger English-side domain knowledge. Code-switching offers such a bridge by placing English and target-language evidence in the same context, but it has mainly been studied in pretraining, supervised fine-tuning, or inference-time settings (Chen et al., 2024; Zhu et al., 2024; Etxaniz et al., 2024; Yoo et al., 2024).

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors.

1^{1}Work done during NAVER Cloud residency program.

et al., 2026; Wang et al., 2025c; Yoo et al., 2025). We instead ask how to make code-switching part of the verifiable RLVR training signal itself.

We introduce code-switched task synthesis for cross-lingual RLVR as a data-construction approach for specialized domains where English text is available but target-language RLVR data with verifiable rewards is scarce. We synthesize FIM-MCQA seed tasks from cybersecurity and medical corpora and derive target-language and code-switched training variants that preserve the same evidence-answer relation. This design keeps the training signal compatible with standard answer-based RLVR while changing how the domain evidence is presented across languages. We evaluate the resulting data on Korean medical and cybersecurity benchmarks and in Swahili, Hindi, and Japanese cybersecurity transfer settings. The code-switched data improves target-language performance over monolingual and bilingual-mixture baselines, with comparable English performance. Input-level, representation-level, and reasoning-trace analyses suggest that code-switched training helps models leverage English-dominant domain reasoning for target-language beyond translated and bilingual variants.

Contributions. We introduce code-switched task synthesis for cross-lingual RLVR as a data-construction approach for domains where English text is available but target-language RLVR data with verifiable rewards is scarce. Starting from English FIM-MCQA seed tasks, we derive target-language and code-switched training variants that preserve the same evidence-answer relation and remain compatible with standard answer-based RLVR. Under matched supervision, code-switched data improves target-language performance over English-only, target-language-only, and bilingual-mixture training while maintaining comparable English performance. Analyses of answer consistency, input understanding, representations, and generated reasoning suggest that code-switched training helps target-language inputs access English-side domain reasoning beyond translated and bilingual variants.

References (10)