[Paper Review] Breaking Model Lock-in: Cost-Efficient Zero-Shot LLM Routing via a Universal Latent Space
ZeroRouter introduces a universal latent space to enable zero-shot LLM routing, achieving higher accuracy at lower cost and latency, even on unseen models/datasets.
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.
Motivation & Objective
- Automate and optimize LLM selection to balance accuracy, cost, and latency.
- Decouple query characteristics from model profiling to enable seamless onboarding of new models without retraining.
- Develop a universal, cross-task latent space and a context-aware predictor for zero-shot routing.
- Provide a policy-driven routing framework adaptable to different operational priorities.
Proposed method
- Construct a universal latent space calibrated by information-theoretic anchor selection (D-optimality).
- Use lightweight profiling to map new models onto the latent space with anchors and binary cross-entropy optimization.
- Predict latent vectors from hybrid semantic and structural query features using a multi-task network.
- Estimate output length via a task-aware difficulty measure and a pre-calibrated lookup across complexity bins.
- Model routing as a multi-objective ILP that optimizes accuracy, cost, and latency under user-defined weights.
Experimental results
Research questions
- RQ1Can a universal latent space decouple query characteristics from model profiling to enable zero-shot onboarding of new LLMs?
- RQ2How can we efficiently profile new models with a small anchor set and still accurately predict performance across tasks and models?
- RQ3Does a context-aware latent space predictor enable robust generalization to out-of-distribution queries?
- RQ4Can routing be framed as a multi-objective optimization to balance accuracy, cost, and latency under different policies?
Key findings
- ZeroRouter consistently outperforms baselines on both in-distribution and out-of-distribution datasets across model scales.
- On smaller models, ZeroRouter achieves a max accuracy of 0.45 and lower cost and latency compared to baselines.
- On larger models, ZeroRouter attains a max accuracy of 0.68 and shows substantive reductions in cost and latency.
- ZeroRouter delivers strong zero-shot generalization, achieving the highest Max-Acc on OOD datasets (e.g., 0.68) and lower Min-Cost and Min-Lat values vs rivals.
- An information-theoretic anchor selection (D-optimality) markedly improves onboarding efficiency, outperforming random, diff-based, and disc-based strategies.
- Ablation studies confirm the latent-space design and task-aware difficulty improve routing performance and robustness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.