Anatomy of a Machine Learning Ecosystem: 2 Million Models on Hugging Face

Benjamin Laufer, Hamidah Oderinwale, Jon Kleinberg

TL;DR

This paper maps the "family trees" of 1.86 million models on Hugging Face using an evolutionary biology lens to analyze how open-source AI models evolve over time. The authors discover that model mutations are highly directed rather than random, showing clear ecosystem-wide drifts toward permissive licensing, English language specialization, and automated, leaner documentation.

What Problem Does This Paper Address?

The modern AI paradigm relies heavily on a "pre-train and fine-tune" lifecycle, where foundational base models are adapted by decentralized developers into thousands of specialized derivatives. However, the macro-structure of this peer-production ecosystem has remained largely unexamined. We lack empirical data on how traits—like licenses, tasks, languages, and documentation practices—propagate, mutate, or drift across generations of models. This paper fills that gap by treating Hugging Face as a digital ecosystem and applying phylogenetic methods to trace model lineages.

Methods

  • Lineage Mapping: The authors scraped metadata for 1.86 million models to build directed acyclic graphs (DAGs) based on base_model tags, capturing fine-tunes, quantizations, adapters, and merges.
  • Genetic Similarity Metrics: Treating model metadata and model cards as a model's "DNA," they calculated semantic distances using character-level (Normalized Levenshtein Distance) and term-level (Bag-of-Words, TF-IDF cosine similarity) representations.
  • Sub-tree Sampling: To handle the combinatorial explosion of comparing massive families, they designed a weighted sampling procedure across specific local subgraph structures (parents, siblings, cousins).
  • Trait Drift Analysis: They modeled trait mutations (e.g., switching licenses or tasks) as directed networks and solved an integer programming problem to find optimal linear orderings, revealing the directional flow of evolution.

Datasets

  • The authors introduce a massive, newly compiled snapshot dataset of 1.86 million models hosted on Hugging Face.
  • This includes full text from 1.25 million model cards (representing 67.04% of the models) to analyze documentation practices.

Key Insights and Ideas

  • Non-Random, Directed Evolution: In biological asexual reproduction, a child is typically closer to its parent than to its sibling due to random mutations. In the ML ecosystem, the opposite is true: sibling models are more similar to each other than to their parent. This indicates that developers mutate models in highly directed, similar ways due to shared environmental and market pressures.
Directed mutations cause sibling models to resemble each other more than their parents.
  • License Relaxation: There is a strong, unidirectional drift from restrictive or commercial licenses (like Gemma or Llama clauses) toward highly permissive (Apache-2.0, MIT) or copyleft licenses. This often happens in direct violation of the upstream model's terms, suggesting community preferences for openness outweigh legal compliance fears.
  • Language Specialization: While foundational base models are frequently multilingual, their descendants rapidly specialize, drifting overwhelmingly toward English-only compatibility.
  • The ML Lifecycle Recapitulated: Task mutations follow a clear evolutionary trajectory that mirrors the standard ML pipeline: starting at low-level feature extraction, moving to modality translation (text generation), and ending at human-aligned classification or reinforcement learning.

Key Results

  • Sprawling Lineages: The authors successfully mapped complex family trees across the ecosystem, showing that model families vary widely in size and structure, with some massive components showing "S-curve" adoption patterns over time.
Sprawling model family trees mapped from Hugging Face metadata.
  • Quantified Documentation Decay: The length of model cards drops by approximately 5,000 characters from parent to child, with the parent card being roughly twice the size of the child's. Concurrently, the use of terms like "automatically generated" spikes to ~30% in derivative models, signaling a shift toward lean, automated documentation.
  • Predictable Trait Drifts: The optimal ordering algorithm successfully accounted for 94% of license drift directions and 95% of task mutation directions, confirming that evolution in this ecosystem is overwhelmingly acyclic and directed.
Cosine similarity metrics across different sub-tree depths confirm strong family resemblances.

Limitations and Future Work

  • Logged Relationships Only: The study relies strictly on explicitly declared base_model tags on Hugging Face; models related implicitly (e.g., different parameter sizes of the same architecture released separately) are missed.
  • Surface-Level DNA: Metadata and model cards are proxies for traits. Future work could look deeper into config.json files for architectural traits (attention heads, vocabulary size) or analyze the model weights directly.
  • Platform Lifecycle: The analysis is bounded by the lifespan and reporting conventions of Hugging Face, meaning historical shifts in platform UI or auto-generation tools could introduce data inconsistencies.

Summary updated

Abstract

Many have observed that the development and deployment of generative machine learning (ML) and artificial intelligence (AI) models follow a distinctive pattern in which pre-trained models are adapted and fine-tuned for specific downstream tasks. However, there is limited empirical work that examines the structure of these interactions. This paper analyzes 1.86 million models on Hugging Face, a leading peer production platform for model development. Our study of model family trees -- networks that connect fine-tuned models to their base or parent -- reveals sprawling fine-tuning lineages that vary widely in size and structure. Using an evolutionary biology lens to study ML models, we use model metadata and model cards to measure the genetic similarity and mutation of traits over model families. We find that models tend to exhibit a family resemblance, meaning their genetic markers and traits exhibit more overlap when they belong to the same model family. However, these similarities depart in certain ways from standard models of asexual reproduction, because mutations are fast and directed, such that two `sibling' models tend to exhibit more similarity than parent/child pairs. Further analysis of the directional drifts of these mutations reveals qualitative insights about the open machine learning ecosystem: Licenses counter-intuitively drift from restrictive, commercial licenses towards permissive or copyleft licenses, often in violation of upstream license's terms; models evolve from multi-lingual compatibility towards english-only compatibility; and model cards reduce in length and standardize by turning, more often, to templates and automatically generated text. Overall, this work takes a step toward an empirically grounded understanding of model fine-tuning and suggests that ecological models and methods can yield novel scientific insights.
BibTeX
@misc{laufer2025anatomy,
  author = {Benjamin Laufer and Hamidah Oderinwale and Jon Kleinberg},
  title = {{Anatomy of a Machine Learning Ecosystem: 2 Million Models on Hugging Face}},
  year = {2025},
  eprint = {2508.06811},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.06811},
}
Figure