SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.00485 · 2026

Efficient Multilingual Reasoning Transfer via Progressive Code-Switching

Hao-Ran Wei, Hao Zhou, Shujian Huang, Baosong Yang, Zhijun Wang, Junxiao Liu

arXiv · PDF · Open in the Atlas

Code that ran

None of the 4 samples (functions and classes) lifted from this paper's linked repositories has a recorded run on a synthesized input (4 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2607.00485.json · badge: /api/ran/2607.00485.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Mimino666/langdetect canonical (classifier label)
classifier basis: census
0 ran · 4 no recorded run
FunctionStatusWhere it lives
detect Not yet run
unverified (harvested, no recorded run)
Mimino666/langdetect/langdetect/detector_factory.py
pointer only (licence: NOASSERTION) · get_code("5844b9730cb37848")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Mimino666/langdetect (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

detect_langs Not yet run
unverified (harvested, no recorded run)
Mimino666/langdetect/langdetect/detector_factory.py
pointer only (licence: NOASSERTION) · get_code("9a2937a7854a309e")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Mimino666/langdetect (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_string Not yet run
unverified (harvested, no recorded run)
Mimino666/langdetect/langdetect/utils/messages.py
pointer only (licence: NOASSERTION) · get_code("58c22be3c7988cb3")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Mimino666/langdetect (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

unicode_block Not yet run
unverified (harvested, no recorded run)
Mimino666/langdetect/langdetect/utils/unicode_block.py
pointer only (licence: NOASSERTION) · get_code("d941128f6669bdf5")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Mimino666/langdetect (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large reasoning models (LRMs) have achieved strong reasoning capabilities in English, yet their performance degrades significantly when required to reason in other languages. A natural solution is to transfer the model's English reasoning ability to target languages. However, existing transfer approaches typically rely on distilled target-language reasoning traces from stronger LRMs or online supervision from external judge models, which are costly and difficult to scale. In this paper, we propose PCS (Progressive Code-Switching), a more efficient transfer framework that requires only lightweight translation -without any stronger model for distillation or judging. PCS first constructs code-switched reasoning traces by translating a subset of English reasoning steps into the target language, and uses them to initialize the model's codeswitching ability via supervised fine-tuning. It then applies reinforcement learning with a step-level language consistency curriculum, progressively raising the target-language ratio until the model reasons entirely in the target language. This progressive design provides a smooth transfer path that avoids the instability and performance degradation commonly observed when directly enforcing target-language reasoning. Experiments on multiple benchmarks and five typologically diverse languages show that PCS substantially narrows the performance gap between target-language and English reasoning, yielding more language-consistent reasoning while maintaining competitive accuracy. Code and scripts are freely available at https://github.com/NJUNLP/PCS

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2607.00485")
get_code_for_paper("2607.00485")
have("2607.00485")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2607.00485.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2607.00485.svg)](https://syntology.ai/paper/2607.00485)

Connect an agent — have() is free.