TL;DR
This paper presents the first large-scale longitudinal study of how open-source machine learning (ML) models evolve, analyzing over 680,000 commits across 100,000 models on Hugging Face. The authors reveal that model evolution is fundamentally data-centric—driven by "Output Data" and "Project Metadata"—and follows iterative patterns that align more closely with data science methodologies (like CRISP-DM) than traditional software engineering.
What Problem Does This Paper Address?
While we have decades of research on how traditional software code evolves, Machine Learning models are a different beast. They aren't just code; they are a complex fusion of code, data preprocessing, training pipelines, and—most importantly—learned weights.
Until now, we lacked a systematic understanding of how these models are maintained and improved in the wild. Do developers follow standard versioning? What actually changes when a model is "updated"? This paper fills that gap by providing a multifaceted taxonomy of ML changes and analyzing the temporal patterns of development on Hugging Face (HF), the industry's central hub for model sharing.
Methods
The researchers employed a sophisticated pipeline combining repository mining, LLM-based classification, and probabilistic modeling:
- Repository Mining: They extracted commit histories and metadata from 100,000 HF models using the HF API and direct Git processing.
- LLM-powered Classification: To categorize 680,000+ commits, they used Gemini 2.5 Flash, guided by an extended version of the Bhatia et al. ML change taxonomy. They validated this with a rigorous two-phase human-in-the-loop process, achieving high inter-coder reliability (Cohen’s Kappa > 0.85).
- Bayesian Networks (BNs) & Dynamic Bayesian Networks (DBNs): The authors used BNs to find correlations between project characteristics (like popularity) and change types. They used DBNs to model the sequence of changes, uncovering how one type of commit (e.g., a parameter change) influences the likelihood of the next.
- Metadata Diffing: For a subset of models, they performed deep inspections of the actual model files (e.g.,
.safetensors,.bin) to see if internal structures or just numerical weights were changing.
Datasets
The study utilized four distinct datasets derived from Hugging Face:
- Commit Dataset: 680,966 classified commits from 100,000 randomly sampled models.
- Sequence Dataset: 14,343 models with at least 10 commits, used for temporal (DBN) analysis.
- Tag Release Dataset: 2,251 releases from 202 models that utilize explicit Git tags for versioning.
- Metadata Dataset: A deep-dive into 28 models to analyze internal parameter and configuration evolution.
Key Insights and Ideas
- The "Work-Artifact" Loop: A dominant pattern emerged where technical changes (Parameter Tuning, Model Structure) are almost immediately followed by an Output Data commit. This reflects the iterative nature of ML: change a setting, run the pipeline, and commit the resulting weights/logs.
- ML is Data-First, Code-Second: Unlike traditional software where code logic dominates, the most frequent changes on HF are Output Data, Project Metadata, and Sharing.
- The Popularity Paradox: Highly popular projects often have "cleaner" public histories. They tend to start from a more mature baseline with fewer foundational setup commits, suggesting that much of the early "messy" experimentation happens behind the scenes before a public debut.
- Releases vs. Commits: Commits are used for granular, rapid-fire updates to artifacts. In contrast, formal Releases are used as communication milestones, heavily focused on Sharing and External Documentation.
- Weight-Watching: Between releases, structural changes (like adding layers or changing shapes) are rare. Most evolution consists of fine-tuning numerical weights within a static architecture.
Key Results
- Dominance of Artifacts: "Output Data" (weights/logs) accounts for the largest share of commits, especially in recent years (peaking at ~30% of all activity).
- Temporal Pacing: Rapid-fire commits (less than 1 hour apart) are dominated by artifact generation. Deliberate updates like "External Documentation" typically happen after longer intervals (over a week).
- Tight Coupling: Adding a new dependency (Add Dependency) has a 94.8% probability of co-occurring with changes to the Model Structure, showing that ML updates are often bundled and comprehensive.
- CRISP-DM Alignment: The study quantitatively mapped commit types to the CRISP-DM lifecycle, showing a clear progression from "Business/Data Understanding" (Phase 1) to "Iterative Development" (Phase 3) and finally "Deployment/Sharing" (Phase 4).
Limitations and Future Work
- Platform Bias: The study focuses exclusively on Hugging Face. While HF is the leader, development patterns might differ on GitHub or in private corporate environments.
- Domain Imbalance: The HF ecosystem is currently dominated by Natural Language Processing (NLP) models, which may skew the aggregate results.
- Implicit Versioning: Many developers do not use formal Git tags, meaning the "Release" analysis is limited to a smaller, more disciplined subset of the community.
- Future Directions: The authors suggest future work should link these evolution patterns to actual model performance metrics and user adoption rates to determine which maintenance "tempos" lead to the most successful models.
Summary updated