LOCUS: Low-Dimensional Model Embeddings for Efficient Model Exploration, Comparison, and Selection
Shivam Patel, William Cocke, Gauri Joshi
TL;DR
LOCUS addresses the challenge of managing a large, evolving pool of LLMs by learning a fixed-dimensional embedding for each model that summarizes capability across queries. It introduces an attention-based encoder F_ heta that tokenizes and processes query evaluations, augmented by a correctness predictor G_psi to predict per-query correctness, enabling training-free onboarding of new models. The embedding dimension is $d=128$ with two latent-bottleneck blocks ($L=2$, $r=64$) that reduce attention complexity from $O(n_m^2)$ to $O(n_m r)$ while preserving information flow, and the space geometry correlates with model similarity, enabling clustering, nearest-neighbor proxies, and portfolio selection. Empirically, LOCUS achieves up to $4.8\times$ better sample efficiency than baselines, maintains robust routing and correctness predictions, and supports practical utilities such as resilient routing and efficient model portfolios, with embeddings remaining stable under varying query sets and enabling secure fingerprinting insights.
Abstract
The rapidly growing ecosystem of Large Language Models (LLMs) makes it increasingly challenging to manage and utilize the vast and dynamic pool of models effectively. We propose LOCUS, a method that produces low-dimensional vector embeddings that compactly represent a language model's capabilities across queries. LOCUS is an attention-based approach that generates embeddings by a deterministic forward pass over query encodings and evaluation scores via an encoder model, enabling seamless incorporation of new models to the pool and refinement of existing model embeddings without having to perform any retraining. We additionally train a correctness predictor that uses model embeddings and query encodings to achieve state-of-the-art routing accuracy on unseen queries. Experiments show that LOCUS needs up to 4.8x fewer query evaluation samples than baselines to produce informative and robust embeddings. Moreover, the learned embedding space is geometrically meaningful: proximity reflects model similarity, enabling a range of downstream applications including model comparison and clustering, model portfolio selection, and resilient proxies of unavailable models.
