Low Dimensional Embeddings for Model Capability Understanding

Shivam Patel, William Cocke, Gauri JoshiAdaptFM @ ICML 2026

TL;DR

LOCUS is an attention-based framework that maps Large Language Models (LLMs) into a low-dimensional embedding space based on their performance across various queries. Unlike previous methods that require expensive retraining to add new models, LOCUS uses a deterministic forward pass to "onboard" models instantly, achieving state-of-the-art routing accuracy with up to 4.8x less data than existing baselines.

What Problem Does This Paper Address?

With over 300,000 models currently on Hugging Face, the LLM ecosystem is expanding at a rate that makes manual management impossible. Researchers and engineers face a "model selection" crisis: How do we compare models of vastly different architectures? How do we find a "proxy" model if our preferred API is down? And how do we route a specific user query to the model most likely to answer it correctly?

Existing approaches to "model embeddings" (representing a model's capabilities as a vector) often rely on backpropagation. This means every time a new model is released, the entire embedding space might need to be retrained to keep things consistent. Furthermore, these older methods often lack "geometric meaning"—the distance between two model vectors doesn't necessarily correlate with how similar their behaviors are.

Methods

The authors introduce LOCUS (LOw-dimensional embeddings for Model Capability UnderStanding), which treats model embedding as a set-processing task.

  1. Input: For any model $m$, LOCUS takes a small set of evaluations—pairs of (query encoding, correctness score).
  2. Continuous Tokenization: An MLP transforms these heterogeneous inputs into "evaluation tokens."
  3. Latent Bottleneck Attention: To handle large numbers of queries efficiently, LOCUS uses a "Perceiver-style" bottleneck. Instead of every query attending to every other query ($O(n^2)$ complexity), they attend to a small set of learned latent vectors, reducing complexity to $O(n)$.
  4. Permutation Invariance: Crucially, the architecture uses bidirectional attention without positional encodings. This ensures the resulting model embedding is the same regardless of the order in which the queries are processed.
  5. Correctness Predictor: A lightweight decoder takes a model embedding and a new query embedding to predict the probability that the model will succeed.

Because the encoder is pre-trained, "onboarding" a new model simply requires running a single forward pass through the network.

Datasets

The study evaluates LOCUS using a massive pool of 112 language models (including Llama, Mistral, Qwen, and specialized math/code models).

The models were tested across 10 public benchmarks covering diverse reasoning tasks:

  • Math/Logic: MathQA, GSM8K, ASDiv, LogiQA.
  • Knowledge/Reasoning: MMLU, GPQA, PIQA, Social-IQA.
  • Safety/Truthfulness: TruthfulQA.
  • Medical: MedMCQA.

Query representations were generated using the all-mpnet-base-v2 sentence encoder.

Key Insights and Ideas

  • Geometry Equals Behavior: The most striking finding is that the LOCUS embedding space is "geometrically meaningful." The distance between two models in this 128-dimensional space correlates strongly (Pearson 0.85–0.89) with their "disagreement rate" on actual tasks. If two models are close in the vector space, they likely fail and succeed on the same types of questions.
  • Extreme Sample Efficiency: While baselines struggle with small datasets, LOCUS produces informative embeddings with as few as 128–256 query evaluations. This makes it practical for testing new, expensive proprietary models.
  • Stability and Fingerprinting: Unlike gradient-based embeddings, which can "drift" or change significantly if retrained on the same data, LOCUS is deterministic. This allows for "model fingerprinting"—detecting if a "new" model is actually just a renamed version of an existing one.
  • Portfolio Optimization: The authors show that you don't need 112 models to cover all bases. Using "k-medoids" clustering in the embedding space, they identified a 15-model portfolio that matches the routing accuracy of the entire 112-model pool.

Key Results

  • Efficiency: LOCUS is 4.8x more sample-efficient than baselines like EmbedLLM and IRT-Net.
  • Routing Accuracy: LOCUS achieved a routing accuracy of 64.7% (with 1024 samples), significantly higher than EmbedLLM (59.6%) and IRT-Net (63.3%).
  • Resilience: If a top-tier model becomes unavailable, routing to its "nearest neighbor" in the LOCUS space retains up to 85% of the original routing performance.
  • Speed: The system is incredibly fast. Generating an embedding for the entire 112-model pool takes ~100ms, and predicting correctness for 4,096 queries takes only ~20ms on a single V100 GPU.

Limitations and Future Work

  • Modality: The current work is limited to text-to-text models. The authors suggest extending LOCUS to multimodal models (vision-language) in the future.
  • Fixed Query Encoders: The system relies on a frozen sentence encoder for queries. While ablations showed robustness across different encoders, the quality of the model embedding is inherently tied to the quality of the query representations.
  • Active Learning: A promising future direction is "adaptive query evaluation"—choosing the most informative queries to ask a new model to find its location in the embedding space even faster.

Summary updated

BibTeX
@inproceedings{patel2026low,
  author = {Shivam Patel and William Cocke and Gauri Joshi},
  title = {{Low Dimensional Embeddings for Model Capability Understanding}},
  booktitle = {AdaptFM @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=0XVoLXts8F},
}
Figure