TL;DR
This paper proposes the "Model Atlas," a comprehensive graph representation of all machine learning models, their attributes, and how they relate through transformations like fine-tuning. The authors argue this atlas is crucial for model forensics, meta-ML research, and model discovery, but it's largely uncharted due to poor documentation, necessitating new ML methods that learn directly from model weights.
What Problem Does This Paper Address?
The explosion of publicly available ML models (millions and growing!) has created a "lost" landscape. Most models are undocumented, making it impossible to understand their origins, capabilities, or how they relate to others. This leads to wasted compute and time (re-training existing models), risks of propagating biases, intellectual property issues, and missed opportunities for knowledge transfer and reuse. The authors liken this to moving from studying individual specimens to understanding entire ecosystems, arguing that we need to map the ML model landscape.
Methods
The core proposal is the Model Atlas, a directed acyclic graph (DAG) where nodes are models and edges represent weight transformations (e.g., fine-tuning, quantization, merging). Both nodes and edges are enriched with attributes like performance, training data, and transformation details.
To address the "uncharted" nature of this atlas, the paper advocates for Weight-Space Learning methods that treat models themselves as data. Key techniques discussed include:
- Graph-based imputation: Using a partially charted atlas to infer properties of unknown nodes based on their neighbors (e.g., predicting accuracy or metadata).
- Avoiding equivariance: Instead of designing complex, symmetry-aware neural networks (which are computationally expensive and hard to scale), the authors propose methods that sidestep weight permutation symmetries. This includes:
- Probing-based methods: Representing models by their responses to predefined inputs.
- Leveraging connected components: Within a connected component of the atlas, neuron permutations are often fixed due to sequential fine-tuning, allowing standard architectures to be applied directly to weights.
- Pattern-based charting: Identifying common patterns in model repositories like duplicates, near-duplicates, quantization, checkpoint trajectories, hyperparameter sweeps, and model merging to infer atlas structure.
- Temporal dynamics: Using model creation/upload timestamps to infer edge direction, as parent models typically precede child models.
Datasets
The authors created two datasets for their experiments:
- Metadata Imputation Dataset: Based on Hugging Face's "hub-stats" dataset, including all 1.3 million models, used for imputing attributes like
pipeline_tag,library_name,model_type,license, andrelation_type. - DAG Recovery Dataset: A graph of models on Hugging Face, constructed by identifying ground truth edges based on
base_modelattributes. This dataset focuses on charting the atlas structure and includes models from three connected components: Qwen, Llama, and Stable Diffusion.
Key Insights and Ideas
- The ML landscape is an ecosystem, not just a collection of isolated models: Viewing models as interconnected entities with lineage and transformations is crucial for advancing the field.
- Documentation is severely lacking: Over 60% of models on Hugging Face lack documentation, and even when present, it's often sparse. This "lost model" problem is a major bottleneck.
- Weight-space learning is essential: To chart the atlas, we need ML methods that can learn directly from model weights, treating models as data points.
- Equivariance is a scalability hurdle: Directly tackling weight permutation symmetries is computationally prohibitive for large-scale atlases. Sidestepping this challenge is key.
- Temporal information is a powerful charting signal: Model upload times provide a strong constraint for inferring parent-child relationships in the atlas.
- Model merging is more prevalent in NLP than CV: This suggests different community practices and potential for cross-domain learning.
- Quantization often leads to leaf nodes: Quantized models are typically used for inference and not further fine-tuned, making them terminal points in the atlas.
Key Results
- The proposed atlas-based imputation method significantly outperforms baselines (e.g., random, majority vote, Price's model, MoTHer) in recovering atlas structure, achieving up to 85.10% accuracy on the Qwen dataset.
- Subtractive ablation studies show that each of the proposed assumptions (e.g., treating duplicates/quantized models as leaves, temporal consistency, snake/fan pattern detection) contributes to the overall high recovery accuracy.
- The analysis of Hugging Face data reveals significant differences in model depth and structure between NLP and CV models, with NLP models exhibiting deeper and more complex DAGs, suggesting iterative refinement practices.
- Quantization is rare in CV models but common in LLMs, indicating a shift in how efficiency is prioritized across domains.
- Adapter-based fine-tuning is dominant for generative models, while discriminative models favor full fine-tuning.
Limitations and Future Work
- Incomplete Atlas: The primary limitation is that the Model Atlas is far from complete, with most edges and node/edge features missing.
- Scalability of Weight-Space Learning: While progress is being made, current methods still struggle with the sheer scale and dimensionality of modern model repositories.
- Black-Box Models: Charting efforts are limited to models with accessible weights. Extending this to proprietary APIs (like ChatGPT or Gemini) requires new techniques.
- Recovering Training Trajectories: Current methods focus on node-level properties; recovering fine-grained edge attributes (optimizer, data, dynamics) for complex transformations (multi-parent edges, distillation) is an open challenge.
- Probe Selection: Developing minimal yet expressive probe sets for functional representation is an ongoing research area.
- Foundation Models: While the authors argue foundation models won't make model collections obsolete, their increasing dominance might shift the nature of the atlas.
- Community Effort: Charting the full atlas will require a broad community effort, and the authors hope their work will catalyze this.
Summary updated