Skip to main content
QUICK REVIEW

[Paper Review] Analyzing the Evolution and Maintenance of ML Models on Hugging Face

Joel Castaño, Silverio Martínez‐Fernández|arXiv (Cornell University)|Nov 22, 2023
Robotics and Automated SystemsEngineering4 citations
TL;DR

This study analyzes the evolution and maintenance of over 380,000 machine learning models on Hugging Face using repository mining and commit analysis. It proposes a novel classification system for model maintenance status based on commit types (corrective, perfective, adaptive), revealing that perfective maintenance dominates, and demonstrates that model evolution is driven by community trends, framework adoption, and collaborative development patterns.

ABSTRACT

Hugging Face (HF) has established itself as a crucial platform for the development and sharing of machine learning (ML) models. This repository mining study, which delves into more than 380,000 models using data gathered via the HF Hub API, aims to explore the community engagement, evolution, and maintenance around models hosted on HF, aspects that have yet to be comprehensively explored in the literature. We first examine the overall growth and popularity of HF, uncovering trends in ML domains, framework usage, authors grouping and the evolution of tags and datasets used. Through text analysis of model card descriptions, we also seek to identify prevalent themes and insights within the developer community. Our investigation further extends to the maintenance aspects of models, where we evaluate the maintenance status of ML models, classify commit messages into various categories (corrective, perfective, and adaptive), analyze the evolution across development stages of commits metrics and introduce a new classification system that estimates the maintenance status of models based on multiple attributes. This study aims to provide valuable insights about ML model maintenance and evolution that could inform future model development strategies on platforms like HF.

Motivation & Objective

  • To understand the growth, evolution, and maintenance dynamics of machine learning models on Hugging Face, a central platform for ML model sharing.
  • To investigate how community engagement, framework usage, tagging practices, and dataset adoption have evolved over time on the platform.
  • To analyze model card text for recurring themes and insights into developer priorities and model documentation practices.
  • To classify commit messages into corrective, perfective, and adaptive maintenance types using a neural network approach.
  • To develop and validate a new multi-attribute classification system for estimating the maintenance status of ML models based on version control and metadata patterns.

Proposed method

  • Collected data from the Hugging Face Hub API and the HFCommunity dataset to ensure consistency and completeness.
  • Performed text analysis on model card descriptions using NLP techniques to identify prevalent themes and community trends.
  • Classified commit messages into maintenance categories (corrective, perfective, adaptive) using a pre-trained neural network model with 89% test accuracy.
  • Validated classification results through manual inspection of 125 commit messages, achieving 86% accuracy.
  • Developed a multi-attribute model maintenance classification framework based on commit frequency, file edit patterns, and metadata attributes.
  • Applied statistical and temporal analysis to track commit evolution across development stages and correlate maintenance patterns with model characteristics.

Experimental results

Research questions

  • RQ1How has the Hugging Face community evolved in terms of model volume, domain focus, framework usage, and tagging trends over time?
  • RQ2What are the dominant themes and insights in model card descriptions, and how do they reflect community priorities and documentation practices?
  • RQ3What types of maintenance activities (corrective, perfective, adaptive) are most prevalent in ML models hosted on Hugging Face?
  • RQ4How do commit patterns and file editing behaviors evolve across different stages of model development?
  • RQ5Can a multi-attribute classification system effectively estimate the maintenance status of ML models based on version control and metadata?

Key findings

  • The Hugging Face community has experienced significant growth, with increasing adoption of new frameworks and tags, particularly in generative AI and NLP domains.
  • Model card text analysis revealed recurring themes such as model performance, fine-tuning procedures, and ethical considerations, indicating a focus on transparency and reproducibility.
  • Perfective commits (optimization and refinement) were the most frequent type, suggesting a strong emphasis on improving model efficiency and performance.
  • Corrective commits (bug fixes) were less common, indicating relatively stable core functionality in many models, though variability exists across repositories.
  • The lifecycle of commits shows an initial phase of active development followed by stabilization and optimization of core components, especially in high-activity models.
  • The proposed maintenance classification framework demonstrated high reliability and can be used to guide users in selecting models with predictable and reliable maintenance patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.