HM-ROUTER: Joint Model and Harness Routing for Agentic Systems
Hao Mark Chen, Royson Lee, Yasuyuki Okoshi, Dimitris Anastasiou, Wayne Luk, Hongxiang Fan
Abstract
Agent performance depends on both the underlying model and the harness that manages its tool use and execution. Selecting a suitable pair requires accounting for their compatibility, yet training samples may cover only a subset of the growing combination space. We introduce HM-Router, a routing method that jointly selects a model and harness for each query. It learns separate model and harness representations shared across routes, with an interaction term inspired by canonical polyadic (CP) tensor decomposition to capture how their compatibility varies with the query. This sharing allows training samples from observed pairs to inform predictions for unobserved combinations. We curate a benchmark from 12 public agent benchmarks, covering 293 routes, 73 models, and 25 harnesses. HM-Router exceeds the strongest evaluated learned baseline by 7.3 percentage points in mean routing accuracy and leads at all seven evaluated cost budgets on the six-benchmark subset. When 90% of routes have their training outcomes withheld, allowing unobserved combinations improves normalized accuracy by 15.8 points over restricting the same router to observed routes. HM-Router has also demonstrated training sample efficiency for new routes and components and generalization to unseen benchmarks. Our code and data are open-sourced at https://github.com/hmarkc/HM-Router.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CL
Related papers
DEALS: Decentralized Expertise-Aware Load Serving for Multi-Agent LLM Systems
Shared title terminologycs.LGJingjuan Huang, Wenbin Wang, Yanchuan Yin et al.
MA-JEPA: Joint-Embedding World Models for Multi-Agent Reinforcement Learning
Shared title terminologycs.LGBrandon Gary Kaplowitz, Osaze James Obahor, Christian Schroeder de Witt
CONMAN: Steering LLM Agent Actions via Contrastive World Model Manipulation
Shared title terminologycs.LGHaoyu He, Fengqing Jiang, Radha Poovendran et al.
Beyond Routing Flips: Asymmetric Silencing, Phase Bifurcation, and Bitwise-Exact Diagnosis of MoE Reinforcement Learning
Shared title terminologycs.LGZhiyuan Zhang
ReAgent: Closed-Loop Self-Healing for Open-Weight Tool-Calling Agents, from Structural Hallucinations to Decision Errors
Shared title terminologycs.LGCharlie Galvin, Katie Kitchen, Chiara Picardi
Automated Machine Learning for Time-Series Early Warning Systems: Separating Signal from Mirage Alarms
Shared title terminologycs.LGFrederick von Rönge