NeurIPS 2026QuestionsPapersAreasAboutMarkdown

HAPS: Hierarchical LLM Routing with Joint Architecture and Parameter Search

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

NeurIPS page · Open on the map

Category: LLM Agents, Evals & Benchmarks › LLM Routing and Agent Evaluation · Type: new method · Keywords: LLM routing, architecture search, parameter adaptation, LoRA, hierarchical model selection

Summary

HAPS is a hierarchical LLM routing framework that jointly searches over model architectures and parameters, using a high-level router for architecture selection and a low-level router for input-conditioned LoRA parameter generation.

Explained to a 5-year-old

Some big computer programs called language models are good at different things. We want to pick the right one for each task. The new idea is to also adjust small parts of the chosen model to make it work even better. This helps the programs do their jobs more efficiently. It makes using big AI easier and faster.

Explained to a 5-year-old, longer

Big computer programs that understand language are called language models. Different language models can be good at different kinds of tasks, like answering questions or writing stories. Usually, people just choose which model to use, but they don't change how the model works inside. Changing the inside of a model can help it do a specific task better, but it takes a lot of work. The new idea is to pick a model and also make a few small changes to it at the same time. A high-level decision picks which model to use, like choosing a tool. Then a low-level decision creates a few tiny adjustments that depend on what the task is. These adjustments are like little tweaks that help the chosen model fit the task better. All the decisions are linked together so the model can share knowledge between picking the model and making the tweaks. The whole system is trained using a special reward that encourages good performance. Experiments show that this combined approach works better than just picking models without tweaks. The code is available for others to try and improve.

For a technical reader

HAPS introduces a hierarchical routing system that simultaneously selects an LLM architecture and generates input-conditioned LoRA parameters for the chosen model. A high-level router picks among candidate architectures, while a low-level router creates lightweight adapters that are tailored to the specific input. The two routers share a parameter generation mechanism, allowing knowledge to flow between architecture selection and adaptation. Training uses a reward-augmented objective that directly optimizes downstream task performance. Experiments demonstrate that HAPS consistently outperforms baseline routing methods, offering a practical way to deploy specialized LLMs with efficient on-the-fly adaptation.

Problem

Existing LLM routing methods only select among fixed model architectures and ignore parameter adaptation, which can limit performance on diverse tasks.

Method

The approach uses a hierarchical router: a high-level router selects among candidate LLM architectures, and a low-level router generates input-conditioned LoRA parameters for the selected architecture, coupled via a shared parameter generation mechanism and trained with a reward-augmented objective.

Results

The approach consistently outperforms strong routing baselines across the evaluated tasks.

Contributions

It introduces a joint architecture and parameter search framework for LLM routing, a shared parameter generation mechanism for cross-level knowledge transfer, and a reward-augmented training objective.

Practical relevance

The framework enables more efficient and adaptable deployment of LLMs across diverse tasks, making specialized model selection and parameter adaptation practical for real-world applications.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction