SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.05903 · 2026

HAPS: Hierarchical LLM Routing with Joint Architecture and Parameter Search

Xu Chen, Rui Li, Zihang Tian, Jingsen Zhang, ♣ Xiaohe, Wei Huo

arXiv · PDF · Open in the Atlas

Code that ran

15 of 29 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; 4 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 10 failures of our instrument; 14 no recorded run), measured 2026-11-22; 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.05903.json · badge: /api/ran/2601.05903.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
zihangtian/HAPS community
Papers with Code archive
15 ran · 14 no recorded run
FunctionStatusWhere it lives
Retriever Ran
ran on a synthesized input
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("421651a025757bd2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

_build_mlp Ran
ran; our contract draft was wrong, not the code
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("4e352843534fc897")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

_make_generator Ran
ran; our contract draft was wrong, not the code
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("bdcb5e997f2d2deb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

build_prompt Ran
ran; our contract draft was wrong, not the code
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("07274e6bcd20a571")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

create_llama_8b Ran
ran; our contract draft was wrong, not the code
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("688aa7b93e59d244")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

create_mistral_7b Ran
ran; our contract draft was wrong, not the code
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("21fc093fb707f917")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

create_qwen_7b Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("2a0e8ed4d390ad37")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

em Ran
ran, honoured the contract we drafted
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("3bbfdafb9b91dbc5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

eval_mode_for_base_and_gens Ran
ran; our contract draft was wrong, not the code
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("0caf82090ef6e6d4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

f1_score Ran
ran, honoured the contract we drafted
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("c871481cb5ee3d92")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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_linear_scheduler Ran
ran; our contract draft was wrong, not the code
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("98c58698259e92d3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

infer_backbone_hidden_dim Ran
ran, honoured the contract we drafted
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("fb49c3f0373ad6da")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

load_txt Ran
ran; our contract draft was wrong, not the code
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("2f50635caabfd754")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

normalize_answer Ran
ran; our contract draft was wrong, not the code
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("6c668580324cfd97")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

parse_router_output Ran
ran, honoured the contract we drafted
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("de9edf0e896f695f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

Agent Not yet run
unverified (harvested, no recorded run)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("799d16886a6a81e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

GeneratorConfig Not yet run
unverified (harvested, no recorded run)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("72c43d0193d96948")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

LoRAParamGenerator Not yet run
unverified (harvested, no recorded run)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("5d71dd1ffa52a5e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

_init_linear_ Not yet run
unverified (harvested, no recorded run)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("d5697c67776c9c90")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

align_model_and_tokenizer Not yet run
unverified (harvested, no recorded run)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("501cee2e98916613")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

candidate2gen Not yet run
unverified (harvested, no recorded run)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("1cdca1d7dc67aa3b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

create_generator_optimizer Not yet run
unverified (harvested, no recorded run)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("0f9fc87d9679a749")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

evaluate_HALO_bucketed Not yet run
unverified (harvested, no recorded run)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("07cfc394c321ff0c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

load_mNt Not yet run
unverified (harvested, no recorded run)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("0e8bb5d73900d198")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

rl_train Not yet run
unverified (harvested, no recorded run)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("7ad611ed8663e682")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

route Not yet run
unverified (harvested, no recorded run)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("a6e6550ffa3be13f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

route_batch Not yet run
unverified (harvested, no recorded run)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("caaef05dd205f755")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

run Not yet run
unverified (harvested, no recorded run)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("9460a8aaf3d5ea99")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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.

run_batch Not yet run
unverified (harvested, no recorded run)
zihangtian/HAPS/HotpotQA/joint_rl/rl_batch.py
pointer only (licence: NONE) · get_code("10daa5c7dd333b7e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zihangtian/HAPS 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 29 samples lifted from this paper's linked repositories, 29 carry a function identity and 0 do not. Of the 29 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 2 the same month, 2 later) and 27 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
normalize_answer
brick of this paper's assembly: helper
133 other papers
116 dated earlier, 3 the same month, 13 later, 1 undated · 1 only as an assembly brick
1508.06615 (2015-08)
Character-Aware Neural Language Models
1606.05250 (2016-06)
SQuAD: 100,000+ Questions for Machine Comprehension of Text
1608.07905 (2016-08)
Machine Comprehension Using Match-LSTM and Answer Pointer
and 130 more not named here
f1_score
brick of this paper's assembly: helper
19 other papers
17 dated earlier, 1 the same month, 1 later
1809.09600 (2018-09)
HOTPOTQA: A Dataset for Diverse, Explainable Multi-hop Question Answering
1905.05460 (2019-05)
Cognitive Graph for Multi-Hop Reading Comprehension at Scale
1911.02896 (2019-11)
Contextualized Sparse Representations for Real-Time Open-Domain Question Answering
and 16 more not named here

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-22.

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 language model (LLM) routing aims to exploit the specialized strengths of different LLMs for diverse tasks. However, existing approaches typically focus on selecting LLM architectures while overlooking parameter settings, which are critical for task performance. In this paper, we introduce HAPS, a hierarchical LLM routing framework that jointly searches over model architectures and parameters. Specifically, we use a high-level router to select among candidate LLM architectures, and then search for the optimal parameters for the selected architectures based on a low-level router. We design a parameter generation network to share parameters between the two routers to mutually enhance their capabilities. In the training process, we design a reward-augmented objective to effectively optimize our framework. Experiments on two commonly used benchmarks show that HAPS consistently outperforms strong routing baselines. We have released our code at https://github.com/zihangtian/HAPS.

For agents

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

get_harvested_code_for_paper("2601.05903")
get_code_for_paper("2601.05903")
have("2601.05903")

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

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

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

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

Connect an agent — have() is free.