Can this Model Also Recognize Dogs? Zero-Shot Model Search from Weights

Jonathan Kahana, Or Nathan, Eliahu Horwitz, Yedid Hoshen · DOI

Abstract

As model repositories like Hugging Face grow to house millions of models, the lack of standardized documentation makes finding specific classifiers nearly impossible. This paper introduces ProbeLog, a framework that enables zero-shot model search using only model weights. By treating a model's response to a fixed set of "probe" images as a functional fingerprint, ProbeLog allows users to query repositories via text to find models with specific capabilities, bypassing the need for metadata.

Introduction

The "Model Zoo" is becoming a jungle. Platforms like Hugging Face host over 1.2 million models, but a startling reality exists: nearly 60% of these models are either undocumented or have empty "README" templates.

The state of documentation on Hugging Face: nearly 60% of models lack useful READMEs.

Currently, if a user requires a model for a specific niche concept, they face two suboptimal choices: rely on often-missing text-based metadata or incur the high cost of training a new model from scratch. ProbeLog proposes a "functional" search: instead of asking what the documentation says the model does, it asks what the model actually does when given specific inputs.

Methodology

The core of the framework is the ProbeLog descriptor. The process involves three main steps:

  1. Probing: A fixed set of ordered images (e.g., 1,000 images from the COCO dataset) are fed into every model in a repository.
  2. Descriptor Creation: For every output dimension (logit) of a model, the system records its response to those images. This vector of responses becomes the "fingerprint" for that specific class.
  3. Zero-Shot Text Alignment: To enable text-based search (e.g., "Find a dog classifier"), the researchers leverage CLIP. By embedding probe images and text queries into a shared space, they create a "synthetic" ProbeLog descriptor to compare against the library of real model descriptors.
The ProbeLog pipeline: generating a functional descriptor by recording model responses to a fixed set of probe images.

To ensure scalability, the authors introduced Collaborative Probing. Probing millions of models is computationally expensive; by probing each model with only a random subset of images and using Matrix Factorization to fill in missing values, they reduced encoding costs by 3x without significant loss in accuracy.

Experimental Setup

Since no standard benchmark existed for model searching, the authors curated two new datasets:

  • INet-Hub: A synthetic repository of 1,500 models trained on ImageNet subsets, containing over 85,000 searchable logits.
  • HF-Hub: A real-world collection of 71 models from Hugging Face, manually annotated to create a ground-truth mapping.

The primary probe set consisted of images from the COCO dataset, demonstrating that the method remains effective even when probe images are "out-of-distribution" relative to the model's training data.

Key Insights and Results

A major shift in this work is searching at the logit level rather than the model level. Representing an entire model as one vector fails because a single model often recognizes multiple distinct classes. Logit-level search is invariant to class order and allows for granular retrieval. Furthermore, the researchers found that identity is best captured through functional responses rather than parameter values; two models with different weights can have nearly identical descriptors if they perform the same task.

ProbeLog demonstrated high retrieval accuracy, achieving over 40% top-1 accuracy on the INet-Hub for text-to-model search—a significant improvement over the 0.1% expected from random search. The method proved robust for "in-the-wild" models on Hugging Face and maintained efficiency through Collaborative Probing, proving that a full set of responses is not strictly necessary to understand a model's function.

Conclusion and Future Work

While currently focused on discriminative classification, ProbeLog establishes a foundation for weight-space search. Future work includes extending this functional descriptor approach to generative models (like LLMs or Diffusion models) and scaling to repositories containing billions of logits using high-performance vector databases like FAISS.

Summary updated

BibTeX
@inproceedings{kahana2025can,
  author = {Jonathan Kahana and Or Nathan and Eliahu Horwitz and Yedid Hoshen},
  title = {{Can this Model Also Recognize Dogs? Zero-Shot Model Search from Weights}},
  booktitle = {WSL @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=fJESU1M2qj},
}
Figure