SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.05167 · 2026

RelayLLM: Efficient Reasoning via Collaborative Decoding

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

arXiv · PDF · Open in the Atlas

Code that ran

9 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 6 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/2601.05167.json · badge: /api/ran/2601.05167.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
Chengsong-Huang/RelayLLM canonical (classifier label)
classifier basis: census
9 ran · 6 no recorded run
FunctionStatusWhere it lives
call_large_model_service_batch Ran
ran; our contract draft was wrong, not the code
Chengsong-Huang/RelayLLM/eval/generate_withhelp.py
pointer only (licence: NONE) · get_code("600783807e2925f1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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. A run is recorded.

format_reward Ran
ran, honoured the contract we drafted
Chengsong-Huang/RelayLLM/RL_stage/data_filter.py
pointer only (licence: NONE) · get_code("e8ef1d6648c2b294")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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. A run is recorded.

get_kl_controller Ran
ran; our contract draft was wrong, not the code
Chengsong-Huang/RelayLLM/RL_stage/verl/trainer/core_algos.py
pointer only (licence: NONE) · get_code("7633fd09bcf8972a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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. A run is recorded.

get_rope_index Ran
ran; our contract draft was wrong, not the code
Chengsong-Huang/RelayLLM/RL_stage/verl/models/transformers/qwen2_vl.py
pointer only (licence: NONE) · get_code("e81f53ee64a9fcbe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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. A run is recorded.

prepare_fa2_from_position_ids Ran
ran; our contract draft was wrong, not the code
Chengsong-Huang/RelayLLM/RL_stage/verl/models/transformers/flash_attention_utils.py
pointer only (licence: NONE) · get_code("74621bb999fe25b1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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. A run is recorded.

process_example Ran
ran; our contract draft was wrong, not the code
Chengsong-Huang/RelayLLM/eval/results_recheck.py
pointer only (licence: NONE) · get_code("76700adff75fb92c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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. A run is recorded.

register_adv_estimator Ran
ran; our contract draft was wrong, not the code
Chengsong-Huang/RelayLLM/RL_stage/verl/trainer/core_algos.py
pointer only (licence: NONE) · get_code("42327ca81422c69b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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. A run is recorded.

union_tensor_dict Ran
ran; our contract draft was wrong, not the code
Chengsong-Huang/RelayLLM/RL_stage/verl/protocol.py
pointer only (licence: NONE) · get_code("ad658a1d6fe829ba")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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. A run is recorded.

unpad_dataproto Ran
ran; our contract draft was wrong, not the code
Chengsong-Huang/RelayLLM/RL_stage/verl/protocol.py
pointer only (licence: NONE) · get_code("a91c18341292d50e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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. A run is recorded.

compute_advantage_return Not yet run
unverified (harvested, no recorded run)
Chengsong-Huang/RelayLLM/RL_stage/verl/trainer/core_algos.py
pointer only (licence: NONE) · get_code("0638ade1ad381db2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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.

flash_attention_forward Not yet run
unverified (harvested, no recorded run)
Chengsong-Huang/RelayLLM/RL_stage/verl/models/transformers/flash_attention_utils.py
pointer only (licence: NONE) · get_code("81c1dcce890376c5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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.

insert_special_string_between_tokens Not yet run
unverified (harvested, no recorded run)
Chengsong-Huang/RelayLLM/SFT_stage/add_command_upload.py
pointer only (licence: NONE) · get_code("151d28c51ebb0904")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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.

pad_dataproto_to_divisor Not yet run
unverified (harvested, no recorded run)
Chengsong-Huang/RelayLLM/RL_stage/verl/protocol.py
pointer only (licence: NONE) · get_code("21c38014814eae1e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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.

qwen2_vl_attn_forward Not yet run
unverified (harvested, no recorded run)
Chengsong-Huang/RelayLLM/RL_stage/verl/models/transformers/qwen2_vl.py
pointer only (licence: NONE) · get_code("94cb835f47dcfc92")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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.

qwen2_vl_forward_old Not yet run
unverified (harvested, no recorded run)
Chengsong-Huang/RelayLLM/RL_stage/verl/models/transformers/qwen2_vl.py
pointer only (licence: NONE) · get_code("1a0b75b2de257457")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chengsong-Huang/RelayLLM when it was checked. 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 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 11 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 0 the same month, 7 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.

FunctionAlso present inEarliest-datedOthers named
unpad_dataproto 10 other papers
6 dated earlier, 3 later, 1 undated
2503.17352 (2025-03)
OpenVLThinker: Complex Vision-Language Reasoning via Iterative SFT-RL Cycles
2505.11049 (2025-05)
GuardReasoner-VL: Safeguarding VLMs via Reinforced Reasoning
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
and 7 more not named here
get_kl_controller 9 other papers
6 dated earlier, 2 later, 1 undated
2503.17352 (2025-03)
OpenVLThinker: Complex Vision-Language Reasoning via Iterative SFT-RL Cycles
2505.11049 (2025-05)
GuardReasoner-VL: Safeguarding VLMs via Reinforced Reasoning
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
and 6 more not named here
get_rope_index 7 other papers
4 dated earlier, 2 later, 1 undated
2504.15716 (2025-04)
DianJin-R1: Evaluating and Enhancing Financial Reasoning in Large Language Models
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
2506.01908 (2025-06)
Reinforcement Learning Tuning for VideoLLMs: Reward Design and Data Efficiency
and 4 more not named here
union_tensor_dict 7 other papers
6 dated earlier, 1 undated
2503.17352 (2025-03)
OpenVLThinker: Complex Vision-Language Reasoning via Iterative SFT-RL Cycles
2505.11049 (2025-05)
GuardReasoner-VL: Safeguarding VLMs via Reinforced Reasoning
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
and 4 more not named here
compute_advantage_return 3 other papers
1 dated earlier, 1 later, 1 undated
2503.17352 (2025-03)
OpenVLThinker: Complex Vision-Language Reasoning via Iterative SFT-RL Cycles
2603.02635 (2026-03)
SaFeR-ToolKit: Structured Reasoning via Virtual Tool Calling for Multimodal Safety
openreview_Y1PXB8HBV7
See First, Reason Later: Mutual Information-Guided Reinforcement Learning for Vision-Language Models
flash_attention_forward 3 other papers
1 dated earlier, 1 later, 1 undated
2503.17352 (2025-03)
OpenVLThinker: Complex Vision-Language Reasoning via Iterative SFT-RL Cycles
2603.02635 (2026-03)
SaFeR-ToolKit: Structured Reasoning via Virtual Tool Calling for Multimodal Safety
openreview_Y1PXB8HBV7
See First, Reason Later: Mutual Information-Guided Reinforcement Learning for Vision-Language Models
register_adv_estimator 3 other papers
1 dated earlier, 1 later, 1 undated
2503.17352 (2025-03)
OpenVLThinker: Complex Vision-Language Reasoning via Iterative SFT-RL Cycles
2603.02635 (2026-03)
SaFeR-ToolKit: Structured Reasoning via Virtual Tool Calling for Multimodal Safety
openreview_Y1PXB8HBV7
See First, Reason Later: Mutual Information-Guided Reinforcement Learning for Vision-Language Models
pad_dataproto_to_divisor 2 other papers
1 dated earlier, 1 undated
2503.17352 (2025-03)
OpenVLThinker: Complex Vision-Language Reasoning via Iterative SFT-RL Cycles
openreview_Y1PXB8HBV7
See First, Reason Later: Mutual Information-Guided Reinforcement Learning for Vision-Language Models
format_reward 1 other paper
1 later
2602.10635 (2026-02)
OmniSapiens: A Foundation Model for Social Behavior Processing via Heterogeneity-Aware Relative Policy Optimization
qwen2_vl_attn_forward 1 other paper
1 dated earlier
2504.15716 (2025-04)
DianJin-R1: Evaluating and Enhancing Financial Reasoning in Large Language Models
qwen2_vl_forward_old 1 other paper
1 dated earlier
2504.15716 (2025-04)
DianJin-R1: Evaluating and Enhancing Financial Reasoning in Large Language Models

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

Deploying 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, Re-layLLM 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 helpseeking. Empirical results across six benchmarks demonstrate that RelayLLM improves the average accuracy from 42.5% to 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. Our code is available at https:// github.com/Chengsong-Huang/RelayLLM.

For agents

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

get_harvested_code_for_paper("2601.05167")
get_code_for_paper("2601.05167")
have("2601.05167")

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

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

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

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

Connect an agent — have() is free.