Papers › RelayLLM: Efficient Reasoning via Collaborative Decoding

RelayLLM: Efficient Reasoning via Collaborative Decoding

8 Jan 2026arXiv:2601.05167added by Syntology

Chengsong Huang, Tong Zheng, Langlin Huang, Jinyuan Li, Haolin Liu, Jiaxin Huang

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

Large Language Models (LLMs) for complex reasoning is often hindered by high computational costs and latency, while resource-efficient Small Language Models (SLMs) typically lack the necessary reasoning capacity. Existing collaborative approaches, such as cascading or routing, operate at a coarse granularity by offloading entire queries to LLMs, resulting in significant computational waste when the SLM is capable of handling the majority of reasoning steps. To address this, we propose RelayLLM, a novel framework for efficient reasoning via token-level collaborative decoding. Unlike routers, RelayLLM empowers the SLM to act as an active controller that dynamically invokes the LLM only for critical tokens via a special command, effectively "relaying" the generation process. We introduce a two-stage training framework, including warm-up and Group Relative Policy Optimization (GRPO) to teach the model to balance independence with strategic help-seeking. Empirical results across six benchmarks demonstrate that RelayLLM achieves an average accuracy of 49.52%, effectively bridging the performance gap between the two models. Notably, this is achieved by invoking the LLM for only 1.07% of the total generated tokens, offering a 98.2% cost reduction compared to performance-matched random routers.

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="2601.05167")

Code

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

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

Chengsong-Huang/RelayLLM 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

15 samples harvested; 2 ran; 0 honoured the contract we drafted; 13 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
1ran
13unverified

Licence: 15 of the 15 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 Chengsong-Huang/RelayLLM. “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.

get_rope_index Chengsong-Huang/RelayLLM/RL_stage/verl/models/transformers/qwen2_vl.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · e81f53ee64a9fcbe · report
unpad_dataproto Chengsong-Huang/RelayLLM/RL_stage/verl/protocol.py found in paper text by Syntology ran no licence file found · pointer only · a91c18341292d50e · report
call_large_model_service_batch Chengsong-Huang/RelayLLM/eval/generate_withhelp.py found in paper text by Syntology unverified no licence file found · pointer only · 600783807e2925f1 · report
compute_advantage_return Chengsong-Huang/RelayLLM/RL_stage/verl/trainer/core_algos.py found in paper text by Syntology unverified no licence file found · pointer only · 0638ade1ad381db2 · report
flash_attention_forward Chengsong-Huang/RelayLLM/RL_stage/verl/models/transformers/flash_attention_utils.py found in paper text by Syntology unverified no licence file found · pointer only · 81c1dcce890376c5 · report
format_reward Chengsong-Huang/RelayLLM/RL_stage/data_filter.py found in paper text by Syntology unverified no licence file found · pointer only · e8ef1d6648c2b294 · report
get_kl_controller Chengsong-Huang/RelayLLM/RL_stage/verl/trainer/core_algos.py found in paper text by Syntology unverified no licence file found · pointer only · 7633fd09bcf8972a · report
insert_special_string_between_tokens Chengsong-Huang/RelayLLM/SFT_stage/add_command_upload.py found in paper text by Syntology unverified no licence file found · pointer only · 151d28c51ebb0904 · report
pad_dataproto_to_divisor Chengsong-Huang/RelayLLM/RL_stage/verl/protocol.py found in paper text by Syntology unverified no licence file found · pointer only · 21c38014814eae1e · report
prepare_fa2_from_position_ids Chengsong-Huang/RelayLLM/RL_stage/verl/models/transformers/flash_attention_utils.py found in paper text by Syntology unverified no licence file found · pointer only · 74621bb999fe25b1 · report
process_example Chengsong-Huang/RelayLLM/eval/results_recheck.py found in paper text by Syntology unverified no licence file found · pointer only · 76700adff75fb92c · report
qwen2_vl_attn_forward Chengsong-Huang/RelayLLM/RL_stage/verl/models/transformers/qwen2_vl.py found in paper text by Syntology unverified no licence file found · pointer only · 94cb835f47dcfc92 · report
qwen2_vl_forward_old Chengsong-Huang/RelayLLM/RL_stage/verl/models/transformers/qwen2_vl.py found in paper text by Syntology unverified no licence file found · pointer only · 1a0b75b2de257457 · report
register_adv_estimator Chengsong-Huang/RelayLLM/RL_stage/verl/trainer/core_algos.py found in paper text by Syntology unverified no licence file found · pointer only · 42327ca81422c69b · report
union_tensor_dict Chengsong-Huang/RelayLLM/RL_stage/verl/protocol.py found in paper text by Syntology unverified no licence file found · pointer only · ad658a1d6fe829ba · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2601.05167, was issued in January 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