HyDRA: Hybrid Dynamic Routing Architecture for Heterogeneous LLM Pools

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Expert, extended

Summary

Microsoft has developed HyDRA (Hybrid Dynamic Routing Architecture), a framework for dynamically routing queries to heterogeneous large language model (LLM) pools in production environments like GitHub Copilot. Unlike existing routers that make binary strong-vs-weak decisions and require retraining when the model catalog changes, HyDRA predicts fine-grained, multi-dimensional capability requirements for each query using a lightweight ModernBERT encoder with four independent sigmoid heads for reasoning, code generation, debugging, and tool use. It then matches these requirements against configuration-defined model profiles via a shortfall-matching algorithm to select the cheapest suitable model. This decoupling allows adding or removing models with only a YAML configuration change, requiring zero retraining. On SWE-Bench Verified, HyDRA achieved 75.4% resolution, exceeding the Claude Sonnet 4.6 baseline (74.2%) with 12.9% cost savings, and at iso-quality, matched Sonnet with 54.1% cost savings. It also demonstrates language-invariant routing across 21 languages, including CJK and European script families.

Key takeaway

For AI Architects and CTOs managing LLM deployments, HyDRA offers a significant advancement in cost efficiency and operational flexibility. Its decoupled architecture means you can update your LLM catalog (add, remove, reprice models) by simply editing a YAML file, eliminating the need for costly and time-consuming retraining. This enables dynamic adaptation to evolving model landscapes and diverse user needs, including multilingual support, while achieving substantial cost savings without sacrificing quality. Consider implementing multi-dimensional routing to optimize resource allocation and maintain agility in your LLM infrastructure.

Key insights

HyDRA dynamically routes LLM queries based on multi-dimensional capability predictions and decoupled model profiles, enabling cost savings and catalog flexibility.

Principles

Method

HyDRA uses a ModernBERT encoder with K=4 sigmoid heads to predict query requirements. A shortfall-matching algorithm then selects the cheapest model from configuration-defined profiles that meet these predicted requirements.

In practice

Topics

Code references

Best for: AI Architect, CTO, VP of Engineering/Data, Machine Learning Engineer, AI Engineer, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.