arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.01642cs.SEcs.AI
收藏

“我认为模型完全是另一回事”:关于预训练模型命名规范的实证研究及一种增强命名一致性的工具

"I see models being a whole other thing": An Empirical Study of Pre-Trained Model Naming Conventions and A Tool for Enhancing Naming Consistency

Purdue University(普渡大学);Loyola University Chicago(芝加哥洛约拉大学)

Wenxin Jiang, Mingyu Kim, Chingwo Cheung, Heesoo Kim, George K. Thiruvathukal, James C. Davis

AI总结:

本文首次实证研究 Hugging Face 上预训练模型的命名实践,揭示工程师偏好与现状不匹配,并提出自动化 DNN 架构评估技术 DARA,以 94% 准确率检测模型类型命名不一致,为命名标准化和供应链安全奠定基础。

摘要:

随着深度学习创新的持续推进,许多工程师正在将预训练模型(PTMs)作为组件纳入计算机系统。一些 PTM 是基础模型,另一些则是为适应不同需求而微调的变体。当这些 PTM 命名得当,就能促进模型的发现与复用。然而,已有研究表明,模型名称并非总是经过精心选择,有时可能不准确并具有误导性。PTM 包的命名实践尚未得到系统研究,这阻碍了工程师高效搜索并可靠复用这些模型的能力。在本文中,我们对 Hugging Face PTM 注册库中的 PTM 命名实践开展了首次实证调查。我们首先报告了一项针对 108 名 Hugging Face 用户的问卷调查,突出其与传统软件包命名的差异,并呈现关于 PTM 命名实践的发现。调查结果表明,工程师的偏好与当前 PTM 命名实践之间存在不匹配。随后,我们引入 DARA,这是首个自动化 DNN 架构评估技术,旨在检测 PTM 命名不一致。我们的结果表明,仅凭架构信息就足以检测这些不一致,在识别模型类型方面达到 94% 的准确率,并且在其他架构元数据上也取得了良好的性能(超过 70%)。我们还强调了自动化命名工具的潜在用例,例如模型验证、PTM 元数据生成与校验,以及抄袭检测。我们的研究为自动化命名不一致检测奠定了基础。最后,我们展望未来工作将聚焦于用于标准化包命名、改进模型选择与复用以及加强 PTM 供应链安全性的自动化工具。

英文摘要:

As innovation in deep learning continues, many engineers are incorporating Pre-Trained Models (PTMs) as components in computer systems. Some PTMs are foundation models, and others are fine-tuned variations adapted to different needs. When these PTMs are named well, it facilitates model discovery and reuse. However, prior research has shown that model names are not always well chosen and can sometimes be inaccurate and misleading. The naming practices for PTM packages have not been systematically studied, which hampers engineers' ability to efficiently search for and reliably reuse these models. In this paper, we conduct the first empirical investigation of PTM naming practices in the Hugging Face PTM registry. We begin by reporting on a survey of 108 Hugging Face users, highlighting differences from traditional software package naming and presenting findings on PTM naming practices. The survey results indicate a mismatch between engineers' preferences and current practices in PTM naming. We then introduce DARA, the first automated DNN ARchitecture Assessment technique designed to detect PTM naming inconsistencies. Our results demonstrate that architectural information alone is sufficient to detect these inconsistencies, achieving an accuracy of 94% in identifying model types and promising performance (over 70%) in other architectural metadata as well. We also highlight potential use cases for automated naming tools, such as model validation, PTM metadata generation and verification, and plagiarism detection. Our study provides a foundation for automating naming inconsistency detection. Finally, we envision future work focusing on automated tools for standardizing package naming, improving model selection and reuse, and strengthening the security of the PTM supply chain.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑