Breaking Model Lock-in: Cost-Efficient Zero-Shot LLM Routing via a Universal Latent Space
Cheng Yan, Wuyang Zhang, Zhiyuan Ning, Fan Xu, Ziyang Tao, Lu Zhang, Bing Yin, Yanyong Zhang
TL;DR
ZeroRouter introduces a universal latent space to decouple query properties from model profiling, enabling zero-shot onboarding of new LLMs and scalable routing. It combines a context-aware latent predictor, lightweight anchor-based profiling via an information-theoretic design (D-optimality), and a multi-objective ILP router to balance accuracy, cost, and latency. The approach demonstrates strong improvements on ID and OOD benchmarks, robust performance under evolving model pools, and efficient onboarding with minimal data. This framework promises cost-effective, adaptive LLM orchestration in rapidly changing model ecosystems, reducing retraining needs and improving resource utilization.
Abstract
The rapid proliferation of Large Language Models (LLMs) has led to a fragmented and inefficient ecosystem, a state of ``model lock-in'' where seamlessly integrating novel models remains a significant bottleneck. Current routing frameworks require exhaustive, costly retraining, hindering scalability and adaptability. We introduce ZeroRouter, a new paradigm for LLM routing that breaks this lock-in. Our approach is founded on a universal latent space, a model-agnostic representation of query difficulty that fundamentally decouples the characterization of a query from the profiling of a model. This allows for zero-shot onboarding of new models without full-scale retraining. ZeroRouter features a context-aware predictor that maps queries to this universal space and a dual-mode optimizer that balances accuracy, cost, and latency. Our framework consistently outperforms all baselines, delivering higher accuracy at lower cost and latency.
