基于Hugging Face的语义保持评估经验框架
An Empirical Framework for Evaluating Semantic Preservation Using Hugging Face
AI总结:
本文提出基于Hugging Face的语义保持评估经验框架,通过分析模型演化数据,揭示语义漂移检测方法及重构模式,为构建更可信的ML系统提供基础。
摘要:
随着机器学习(ML)成为高自主系统的重要组成部分,确保学习启用软件系统(LESS)的可信度变得至关重要。然而,ML的非确定性和运行时定义的语义使传统软件重构复杂化。我们定义LESS中的语义保持为一种属性,即智能组件的优化不会改变系统的整体功能行为。本文介绍了一个经验框架,通过挖掘HuggingFace上的模型演化数据来评估LESS中的语义保持。我们从大量模型中提取提交历史、模型卡片和性能指标。为了建立基准,我们在三个领域进行了案例研究,追踪版本间的性能变化。我们的分析展示了如何通过提交中的评估指标检测语义漂移,并揭示了基于提交信息分析的常见重构模式。尽管API限制限制了估计完整阈值的可能性,但我们的管道为定义社区接受的语义保持边界提供了基础。我们的贡献包括:(1)从170万个Hugging Face条目中通过可重复的管道收集的ML模型演化大规模数据集,(2)用于评估536个模型和4000多个指标子集的语义保持评估实用管道,(3)展示语义漂移的实证案例研究。这些贡献共同推动了更可维护和可信的ML系统的基础。
英文摘要:
As machine learning (ML) becomes an integral part of high-autonomy systems, it is critical to ensure the trustworthiness of learning-enabled software systems (LESS). Yet, the nondeterministic and run-time-defined semantics of ML complicate traditional software refactoring. We define semantic preservation in LESS as the property that optimizations of intelligent components do not alter the system's overall functional behavior. This paper introduces an empirical framework to evaluate semantic preservation in LESS by mining model evolution data from HuggingFace. We extract commit histories, $\textit{Model Cards}$, and performance metrics from a large number of models. To establish baselines, we conducted case studies in three domains, tracing performance changes across versions. Our analysis demonstrates how $\textit{semantic drift}$ can be detected via evaluation metrics across commits and reveals common refactoring patterns based on commit message analysis. Although API constraints limited the possibility of estimating a full-scale threshold, our pipeline offers a foundation for defining community-accepted boundaries for semantic preservation. Our contributions include: (1) a large-scale dataset of ML model evolution, curated from 1.7 million Hugging Face entries via a reproducible pipeline using the native HF hub API, (2) a practical pipeline for the evaluation of semantic preservation for a subset of 536 models and 4000+ metrics and (3) empirical case studies illustrating semantic drift in practice. Together, these contributions advance the foundations for more maintainable and trustworthy ML systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。