From Unverifiable Domain Text to Cross-Lingual RLVR via Code-Switched Task Synthesis
Organizations: NAVER Cloud · KAIST AI
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.
Figures & tables
| Qwen2.5-3B-Instruct | Llama-3.2-3B-Instruct | |||||||||
| Bench. | RLVR-Base | +En | +Tgt | +BiMono | +Ours | RLVR-Base | +En | +Tgt | +BiMono | +Ours |
| KorMedMQ-D | 35.06 | 35.34 | 35.29 | 35.34 | 36.67 | 21.10 | 27.93 | 27.47 | 28.79 | 29.31 |
| MedMCQA* | 34.52 | 33.96 | 34.03 | 33.72 | 34.86 | 24.26 | 27.12 | 27.36 | 29.65 | 29.22 |
| KMMLU-Pro-M | 35.45 | 35.76 | 36.21 | 36.06 | 36.29 | 22.84 | 24.77 | 24.09 | 25.08 | 26.36 |
| Avg (Tgt) | 35.01 | 35.02 | 35.18 | 35.04 | 35.94 | 22.73 | 26.61 | 26.31 | 27.84 | 28.30 |
| Avg (En) | 51.42 | 52.19 | 52.97 | 52.96 | 52.13 | 51.65 | 56.64 | 56.89 | 57.21 | 57.26 |
| SmolLM3-3B | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Korean | Swahili | |||||||||
| Bench. | RLVR-Base | +En | +Tgt | +BiMono | +Ours | RLVR-Base | +En | +Tgt | +BiMono | +Ours |
| SecEval* | 44.3 | 50.1 | 49.8 | 51.1 | 57.3 | 25.8 | 26.8 | 28.6 | 25.9 | 28.3 |
| CyberMetric* | 65.8 | 70.6 | 80.2 | 72.4 | 80.0 | 54.0 | 53.9 | 54.2 | 54.5 | 55.0 |
| CTI-MCQ* | 40.6 | 43.2 | 45.5 | 43.8 | 47.1 | 41.9 | 42.1 | 43.2 | 43.4 | 45.0 |
| Avg (Tgt) | 50.23 | 54.63 | 58.50 | 55.77 | 61.47 | 40.57 | 40.93 | 42.00 | 41.27 | 42.77 |
| Variant | Target Avg | English Avg |
|---|---|---|
| RLVR-Base | 50.23 | 64.87 |
| + En | 54.63 | 67.00 |
| + Tgt | 58.50 | 67.83 |
| + BiMono | 55.77 | 66.80 |
| + Opt | 56.30 | 67.20 |
| + Pass | 59.37 | 67.07 |
| (English, Korean) | ( , ) | ( , ) | ( , ) |
|---|---|---|---|
| Base | 15.1 | 28.2 | 13.0 |
| En-only | 28.1 | 30.0 | 7.3 |
| Bi-Mono | 29.2 | 29.8 | 7.1 |
| Ours | 34.8 | 27.1 | 6.7 |
| vs. En-only | vs. Tgt-only | |||
| Win Rate(%) | Ours | En-only | Ours | Tgt-only |
| Medical | ||||
| Qwen2.5 | 48.3 | 40.0 | 47.5 | 42.5 |
| Llama3.2 | 47.0 | 38.8 | 43.3 | 42.0 |
| Cyber | ||||
| SmolLM3 | 36.3 | 31.7 | 58.7 | 21.7 |
Appendix figures & tables25 assets
Supplementary material from the paper’s appendix.
Appendix
| Domain | Source | |
|---|---|---|
| Cybersecurity | 207,048 | Primus-Seed, Primus-FineWeb |
| Medical | 158,714 | Biomed-Enriched |
| Total | 365,762 |
| Domain | Model | Pool | Filtered |
|---|---|---|---|
| Medical | Qwen2.5-3B-Instruct | 158,714 | 50,476 |
| Medical | Llama-3.2-3B-Instruct | 158,714 | 44,294 |
| Cybersecurity | SmolLM3-3B | 207,048 | 43,705 |
| Benchmark | Korean (Acc/Flu/Term) | COMET | |||
|---|---|---|---|---|---|
| GPT-5.5 | Human | KO | SW | ||
| SecEval | 4.94/4.82/4.70 | 4.25/4.18/4.12 | 0.81 | 0.852 | 0.803 |
| CyberMetric | 4.92/4.75/4.67 | 4.21/4.14/4.08 | 0.83 | 0.864 | 0.810 |
| CTI-MCQ | 4.88/4.74/4.66 | 4.16/4.10/4.02 | 0.79 | 0.851 | 0.808 |
| Qwen2.5-3B-Instruct | Llama-3.2-3B-Instruct | |||||||||||
| Bench. | Base | RLVR-Base | +En | +Tgt | +BiMono | +Ours | Base | RLVR-Base | +En | +Tgt | +BiMono | +Ours |
| Target Language | ||||||||||||
| KorMedMQ-D | 34.50 | 35.06 | 35.34 | 35.29 | 35.34 | 36.67 | 19.02 | 21.10 | 27.93 | 27.47 | 28.79 | 29.31 |
| MedMCQA* | 33.24 | 34.52 | 33.96 | 34.03 | 33.72 | 34.86 | 19.85 | 24.26 | 27.12 | 27.36 | 29.65 | 29.22 |
| KMMLU-Pro-M | 35.20 | 35.45 | 35.76 | 36.21 | 36.06 | 36.29 | 20.45 | 22.84 | 24.77 | 24.09 | 25.08 | 26.36 |
| Avg (Tgt) | 34.31 | 35.01 | 35.02 | 35.18 | 35.04 | 35.94 | 19.77 | 22.73 | 26.61 | 26.31 | 27.84 | 28.30 |
| SmolLM3-3B | ||||||||||||
| Korean | Swahili | |||||||||||
| Bench. | Base | RLVR-Base | +En | +Tgt | +BiMono | +Ours | Base | RLVR-Base | +En | +Tgt | +BiMono | +Ours |
| Target Language | ||||||||||||
| SecEval* | 40.9 | 44.3 | 50.1 | 49.8 | 51.1 | 57.3 | 26.9 | 25.8 | 26.8 | 28.6 | 25.9 | 28.3 |
| CyberMetric* | 63.6 | 65.8 | 70.6 | 80.2 | 72.4 | 80.0 | 53.0 | 54.0 | 53.9 | 54.2 | 54.5 | 55.0 |
| CTI-MCQ* | 33.7 | 40.6 | 43.2 | 45.5 | 43.8 | 47.1 | 41.4 | 41.9 | 42.1 | 43.2 | 43.4 | 45.0 |
| Variant | SecEval | CyberMetric | CTI-MCQ | Avg |
|---|---|---|---|---|
| RLVR-Base | ||||
| +En | ||||
| +Tgt | ||||
| +BiMono | ||||
| +Ours |
| SmolLM3-3B (Korean) | |||||||
| Bench. | RLVR-Base | +En | +Tgt | +BiMono | +Opt | +Pass | +Ours |
| Target Language | |||||||
| SecEval* | 44.3 | 50.1 | 49.8 | 51.1 | 52.0 | 54.7 | 57.3 |
| CyberMetric* | 65.8 | 70.6 | 80.2 | 72.4 | 71.0 | 77.4 | 80.0 |
| CTI-MCQ* | 40.6 | 43.2 | 45.5 | 43.8 | 45.9 | 46.0 | 47.1 |
| Avg (Tgt) | 50.23 | 54.63 | 58.50 | 55.77 | 56.30 | 59.37 | 61.47 |
| (English, Korean) | ( , ) | ( , ) | ( , ) |
|---|---|---|---|
| SecEval | |||
| Base | 8.3 | 39.2 | 5.4 |
| En-only | 15.3 | 41.8 | 3.4 |
| Bi-Mono | 16.3 | 41.1 | 3.7 |
| Ours | 23.8 | 38.8 | 2.5 |
| CyberMetric | |||
| vs. En-only | vs. Tgt-only | |||||||
| Benchmark | Ours% | En-only% | tie% | Ours% | Tgt-only% | tie% | ||
| Medical | ||||||||
| Qwen2.5-3B | MedQA | 47.0 | 36.0 | 1.0 | 48.0 | 41.0 | 0.0 | |
| MedMCQA | 50.0 | 40.0 | 3.0 | 46.0 | 47.0 | 1.0 | ||
| KMMLU-Pro-Medical | 50.0 | 37.0 | 0.0 | 54.0 | 36.0 | 0.0 | ||
| KorMedMCQA-Doctor | 46.0 | 47.0 | 0.0 | 42.0 | 46.0 | 2.0 | ||
Cross-Lingual Transfer
Cross-lingual transfer enables models to apply knowledge or capabilities learned in one language to tasks in another.
See all 256 papers