Papers › HAPS: Hierarchical LLM Routing with Joint Architecture and Parameter Search
HAPS: Hierarchical LLM Routing with Joint Architecture and Parameter Search
Zihang Tian, Rui Li, Jingsen Zhang, Xiaohe Bo, Wei Huo, Xu Chen
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 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.
In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.
Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, on Syntology's MCP service (how to connect):
get_harvested_code_for_paper(arxiv_id="2601.05903")get_code(code_sha256="…")with a sample'scode_sha256from the list belowget_citation_path(paper_1="2601.05903", paper_2="…")with another paper's arXiv id or titleget_concepts_for_paper(arxiv_id="2601.05903")
Code
Syntology 29 code samples harvested from 1 repository linked to this paper: 15 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 4 honoured, 0 violated, 1 with no contract checked; 10 where Syntology's instrument failed) · 14 unverified. Where Syntology's instrument failed: 9 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.
By repository: found in paper text by Syntology: 29 samples from 1 repository, 15 ran (5 with no instrument failure; 10 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.
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
29 samples harvested: 15 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 4 honoured, 0 violated, 1 with no contract checked; 10 where Syntology's instrument failed) · 14 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.
Licence: 29 of the 29 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 zihangtian/HAPS. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.
Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.
A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.
421651a025757bd2 · report
fixture: signature entity:str/0/str, data:dict/0/? · returned str · level recorded 2026-09-24 4e352843534fc897 · report
fixture: signature in_dim:int/0/int, hidden_dim:int/0/int, num_layers:int/0/int · returned Sequential · level recorded 2026-09-22 bdcb5e997f2d2deb · report
fixture: signature target_dim:int/0/int, base_model:callable/0/?, base_tokenizer:callable/0/?, device:str/0/str, config:NoneType/0/? · returned LoRAParamGenerator · level recorded 2026-09-22 07274e6bcd20a571 · report
fixture: signature tokenizer:MinimalTokenizer/0/?, sys_desc:str/0/str, user_prompt:str/0/str, add_gen:bool/0/bool · returned str · level recorded 2026-09-24 688aa7b93e59d244 · report
fixture: signature base_model:callable/0/?, base_tokenizer:callable/0/?, device:str/0/str, config:NoneType/0/? · returned LoRAParamGenerator · level recorded 2026-09-24 21fc093fb707f917 · report
fixture: signature base_model:callable/0/?, base_tokenizer:callable/0/?, device:str/0/str, config:NoneType/0/? · returned LoRAParamGenerator · level recorded 2026-09-24 2a0e8ed4d390ad37 · report
fixture: signature base_model:callable/0/?, base_tokenizer:callable/0/?, device:str/0/str, config:NoneType/0/? · returned LoRAParamGenerator · level recorded 2026-09-24 3bbfdafb9b91dbc5 · report
fixture: signature prediction:str/0/str, ground_truth:str/0/str · returned int · level recorded 2026-09-24 0caf82090ef6e6d4 · report
fixture: signature base_router_model:callable/0/?, generators:list/1/callable, set_use_cache:bool/0/bool, force_disable_backbone_grad:bool/0/bool · returned _GeneratorContextManager · level recorded 2026-09-22 c871481cb5ee3d92 · report
fixture: signature prediction:str/0/str, ground_truth:str/0/str · returned tuple · level recorded 2026-09-22 98c58698259e92d3 · report
fixture: signature optimizer:SGD/0/?, total_steps:int/0/int, start_factor:float/0/float, end_factor:float/0/float · returned LinearLR · level recorded 2026-09-22 fb49c3f0373ad6da · report
fixture: signature router_model:callable/0/?, router_tokenizer:callable/0/? · returned int · level recorded 2026-09-24 2f50635caabfd754 · report
fixture: signature file_path:str/0/str · returned str · level recorded 2026-09-22 6c668580324cfd97 · report
fixture: signature s:str/0/str · returned str · level recorded 2026-09-22 de9edf0e896f695f · report
fixture: signature txt:str/0/str · returned tuple · level recorded 2026-09-22 799d16886a6a81e3 · report
72c43d0193d96948 · report
5d71dd1ffa52a5e3 · report
d5697c67776c9c90 · report
501cee2e98916613 · report
1cdca1d7dc67aa3b · report
0f9fc87d9679a749 · report
07cfc394c321ff0c · report
0e8bb5d73900d198 · report
7ad611ed8663e682 · report
a6e6550ffa3be13f · report
caaef05dd205f755 · report
9460a8aaf3d5ea99 · report
10daa5c7dd333b7e · report
Method as code Syntology
What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.
1 assembly on this paper: 1 harvested, 0 generated.
harvested Assembly for HAPS (graph method: HAPS). 29 bricks; individually on a fixture: 15 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 4 honoured, 0 violated, 1 with no contract checked; 10 where Syntology's instrument failed) · 14 unverified. The assembly has not been run end-to-end.
- rl_train entry · level 0 · unverified ·
7ad611ed8663e682 - Agent helper · level 0 · unverified ·
799d16886a6a81e3 - align_model_and_tokenizer helper · level 0 · unverified ·
501cee2e98916613 - build_prompt helper · level 1 · ran · our draft was wrong ·
07274e6bcd20a571 - candidate2gen model · level 0 · unverified ·
1cdca1d7dc67aa3b - evaluate_HALO_bucketed metric · level 0 · unverified ·
07cfc394c321ff0c - f1_score helper · level 1 · ran · honoured contract ·
c871481cb5ee3d92 - load_mNt helper · level 0 · unverified ·
0e8bb5d73900d198 - load_txt helper · level 1 · ran · our draft was wrong ·
2f50635caabfd754 - parse_router_output helper · level 1 · ran · honoured contract ·
de9edf0e896f695f - route helper · level 0 · unverified ·
a6e6550ffa3be13f - run helper · level 0 · unverified ·
9460a8aaf3d5ea99 - Retriever helper · level 1 · ran ·
421651a025757bd2 - GeneratorConfig helper · level 0 · unverified ·
72c43d0193d96948 - create_generator_optimizer helper · level 0 · unverified ·
0f9fc87d9679a749 - get_linear_scheduler scheduler · level 1 · ran · our draft was wrong ·
98c58698259e92d3 - infer_backbone_hidden_dim helper · level 1 · ran · honoured contract ·
fb49c3f0373ad6da - em helper · level 1 · ran · honoured contract ·
3bbfdafb9b91dbc5 - eval_mode_for_base_and_gens helper · level 1 · ran · our draft was wrong ·
0caf82090ef6e6d4 - route_batch helper · level 0 · unverified ·
caaef05dd205f755 - run_batch sampler · level 0 · unverified ·
10daa5c7dd333b7e - normalize_answer helper · level 1 · ran · our draft was wrong ·
6c668580324cfd97 - LoRAParamGenerator model · level 0 · unverified ·
5d71dd1ffa52a5e3 - _build_mlp helper · level 1 · ran · our draft was wrong ·
4e352843534fc897 - _init_linear_ helper · level 0 · unverified ·
d5697c67776c9c90 - _make_generator helper · level 1 · ran · our draft was wrong ·
bdcb5e997f2d2deb - create_llama_8b helper · level 1 · ran · our draft was wrong ·
688aa7b93e59d244 - create_mistral_7b helper · level 1 · ran · our draft was wrong ·
21fc093fb707f917 - create_qwen_7b helper · level 1 · ran; the contract check could not run (RAISES) ·
2a0e8ed4d390ad37
Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2601.05903") returns these assemblies with each brick's role and wiring (how to connect).
Results from the paper
The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2601.05903, 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