Papers › TARPO: Token-Wise Latent-Explicit Reasoning via Action-Routing Policy Optimization

TARPO: Token-Wise Latent-Explicit Reasoning via Action-Routing Policy Optimization

4 Jun 2026arXiv:2606.05859added by Syntology

Liting Zhang, Shiwan Zhao, Xuyang Zhao, Zichen Xu, Jianye Wang, Qicheng Li

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Latent reasoning has emerged as a promising alternative to discrete Chain-of-Thought (CoT) in large language models (LLMs), enabling more expressive reasoning by operating over continuous representations. However, the inherently deterministic nature of continuous representations limits policy exploration in reinforcement learning (RL). To address this, we propose TARPO (Token-Wise Latent-Explicit Reasoning via Action-Routing Policy Optimization), a pure RL framework that adaptively switches between discrete token generation and continuous latent reasoning at each step. TARPO introduces a lightweight action head router that observes the current hidden state and samples a routing decision from a binary mode-selection space, preserving the stochasticity of discrete token sampling from the vocabulary. The LLM backbone and router are jointly optimized end-to-end with a shared group-relative advantage signal. Extensive experiments across Qwen2.5 (from 1.5B to 7B) and Llama-3.1-8B backbones demonstrate that TARPO consistently outperforms existing explicit and latent reasoning RL baselines across diverse benchmarks. Further analysis shows that TARPO learns adaptive token-wise switching behaviors while maintaining stable training dynamics. Our code is available at https://github.com/NKU-LITI/TARPO-master.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2606.05859")

Code

Syntology Ran 10 of 18 code samples harvested from 2 repositories linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 9 ran with no contract checked.

By repository: found in paper text by Syntology: 18 samples from 2 repositories, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

unslothai/unsloth found in paper text by Syntology report
NKU-LITI/TARPO-master found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 10 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
9ran
8unverified

Licence: 5 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_view unslothai/unsloth/docker/unsloth_nb_view.py found in paper text by Syntology ran Apache-2.0 (permissive) · 5734cdff3479c248 · report
clean_section unslothai/unsloth/docker/unsloth_nb_view.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · c994f7c8db8f0369 · report
colab_cell_magic_fix unslothai/unsloth/docker/unsloth_colab_compat.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 749159f289094827 · report
estimate_pass_at_k NKU-LITI/TARPO-master/humanevaleval.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · e080db2eaa81fdb3 · report
extract_python_code NKU-LITI/TARPO-master/eval_tharp_humaneval_avg.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 6cad710a9cef59bc · report
parse_readme unslothai/unsloth/docker/unsloth_nb_view.py found in paper text by Syntology ran Apache-2.0 (permissive) · 0e45f9de20f9f709 · report
pin_from unslothai/unsloth/docker/unsloth_nb_compat.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 9a228da89620120f · report
read_problems NKU-LITI/TARPO-master/humanevaleval.py found in paper text by Syntology ran no licence file found · pointer only · e289de48f4ad6a1e · report
strip_notebook unslothai/unsloth/docker/unsloth_nb_strip_colab.py found in paper text by Syntology ran Apache-2.0 (permissive) · 76d9203754a4938d · report
tier_for_model unslothai/unsloth/docker/unsloth_nb_compat.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 3b12c847e4486846 · report
check_correctness NKU-LITI/TARPO-master/humanevaleval.py found in paper text by Syntology unverified no licence file found · pointer only · 1177382634e74969 · report
evaluate_saved_trajectories NKU-LITI/TARPO-master/eval_tarpo_math_avg.py found in paper text by Syntology unverified no licence file found · pointer only · 4ff13c21e1ebe6bd · report
main unslothai/unsloth/docker/unsloth_nb_content_sig.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 6b380b9c888dc9d8 · report
main unslothai/unsloth/docker/unsloth_nb_strip_colab.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 97ce574c0c7a8f63 · report
middle_digest unslothai/unsloth/docker/unsloth_nb_content_sig.py found in paper text by Syntology unverified Apache-2.0 (permissive) · df154046e115394b · report
migrate unslothai/unsloth/docker/unsloth_nb_strip_colab.py found in paper text by Syntology unverified Apache-2.0 (permissive) · b001aed562e92777 · report
run unslothai/unsloth/unsloth-cli.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 8325061d57610640 · report
sidecar_for unslothai/unsloth/docker/unsloth_nb_compat.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 10d7392c75c7582a · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2606.05859, was issued in June 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections