ModelLens: Finding the Best for Your Task from Myriads of Models

Rui Cai, Weijie Jacky Mo, Xiaofei Wen, Qiyao Ma, Wenhui Zhu, Xiwen Chen, Muhao Chen, Zhe Zhao

TL;DR

ModelLens is a unified framework for model recommendation that navigates the massive ecosystem of hundreds of thousands of open-source models. By learning a performance-aware latent space from scattered public leaderboard data, it can rank thousands of heterogeneous models for a new task zero-shot—without requiring a single forward pass or fine-tuning step.

What Problem Does This Paper Address?

The open-source AI community is currently experiencing a "paradox of choice." Platforms like HuggingFace host hundreds of thousands of models, but finding the right one for a specific dataset is a nightmare.

Existing solutions fall short in "in-the-wild" settings:

  • AutoML typically searches over small, predefined pools.
  • Transferability Estimation requires running a forward pass of every candidate model on the target dataset, which is computationally infeasible when you have 50,000 candidates.
  • Model Routing assumes you already have a high-quality pool of models to choose from.

Practitioners are often left with ad-hoc trial-and-error or simply picking the most popular model, which may not be the most effective for their specific task.

Methods

The authors introduce ModelLens, which treats model selection as a large-scale recommendation problem. The core idea is that while public leaderboard interactions are noisy and scattered, they collectively trace an "implicit atlas" of model capabilities.

1. Multi-View Representations

ModelLens represents models and datasets using three complementary views:

  • Learned IDs: Captures specific behaviors observed during training.
  • Semantic Metadata: Uses frozen text embeddings from model/dataset descriptions and tokenized names.
  • Structural Attributes: Explicitly encodes model scale (size buckets) and architecture family (e.g., Llama, BERT, ViT).

2. Residual + Prior Decomposition

The scoring function is split into two parts:

  • Structural Prior: Models predictable trends, like neural scaling laws (larger models generally perform better).
  • Residual Interaction: Captures fine-grained, task-specific compatibility that model size alone can't explain.

3. Generalization via ID Dropout

To handle the "cold-start" problem (ranking a brand-new model or dataset), the authors use ID Dropout. During training, the model is occasionally forced to ignore the learned IDs and rely solely on semantic descriptions and structural metadata. This ensures the system generalizes to models it has never seen before.

Figure 1: Model recommendation in the wild. (Left) Atlas of ∼47K models (dots) and ∼9.6K datasets (⋆) laid out by a force-directed projection of our interaction-trained ecosystem structure rather than surface-level description similarity. The dashed circle marks the example dataset MMMU. (Right) Magnified view around MMMU: our framework retrieves the top-5 candidate models in this learned space (green numbered badges). In contrast, nearest neighbours under raw description embeddings (black filled circles reached by dashed arrows) recover semantically related but performance-irrelevant models (e.g., DeBERTa-MNLI, DiT-Classifier) that lie far away in the learned atlas.

Datasets

The authors curated a massive new benchmark for Model Recommendation in the Wild:

  • Scale: 1.62 million evaluation records.
  • Diversity: 47,000 models and 9,600 datasets across 2,551 tasks.
  • Sources: Aggregated from HuggingFace, the Open LLM Leaderboard, and PapersWithCode.
  • Evaluation Scenarios: The paper tests "Performance Completion" (filling in missing leaderboard entries) and "Cold-start Generalization" (predicting for entirely unseen models and datasets).

Key Insights and Ideas

  • Functional vs. Semantic Similarity: A major "aha moment" is that models that describe themselves similarly aren't always functionally similar. As seen in Figure 1, raw description embeddings might group a multimodal model with a text-only classifier, whereas ModelLens’s interaction-trained space correctly clusters them by actual capability.
  • Leaderboards as Supervision: The paper proves that noisy, heterogeneous leaderboard data (mixing zero-shot, few-shot, and fine-tuning results) is a rich enough signal to learn a global map of the model ecosystem.
  • Synergy with Routing: ModelLens isn't just a standalone tool; it can act as a "pre-filter" for model routers. By providing a high-quality, task-specific candidate pool, it significantly boosts the efficiency of downstream serving systems.

Key Results

ModelLens consistently outperforms baselines like ZAP and Task2Vec, especially in the difficult "unseen dataset" setting.

  • Ranking Accuracy: In cold-start scenarios for new datasets, ModelLens achieved a weighted Kendall’s $\tau_w$ of 0.745, significantly higher than the next best baseline (ZAP at 0.253).
  • Improving Routers: When used to construct candidate pools for popular routing methods (like KNNRouter or Router-R1), ModelLens improved performance by up to 81% across diverse QA benchmarks.
Table 1: Model ranking performance under new model and new dataset evaluation settings. Best results are in bold, and second-best results are underlined.

Limitations and Future Work

  • Reporting Bias: The framework relies on public leaderboard data, which is inherently biased toward popular models and benchmarks.
  • Cross-Modality Sparsity: While it generalizes across domains, recommendation remains challenging in areas where leaderboard coverage is sparse (e.g., niche scientific modalities).
  • Open vs. Closed Source: The study primarily focuses on open-source models on HuggingFace; extending this to proprietary API-based models is a logical next step.
  • Future Directions: The authors suggest investigating fairness-aware recommendations to ensure smaller, efficient models aren't overshadowed by "scaling law" biases.

Summary updated

BibTeX
@inproceedings{cai2026modellens,
  author = {Rui Cai and Weijie Jacky Mo and Xiaofei Wen and Qiyao Ma and Wenhui Zhu and Xiwen Chen and Muhao Chen and Zhe Zhao},
  title = {{ModelLens: Finding the Best for Your Task from Myriads of Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=aorWdSFrIh},
}
Figure