软件工程预训练模型的自动化分类:一项基于 Hugging Face 数据集的案例研究
Automated categorization of pre-trained models for software engineering: A case study with a Hugging Face dataset
AI总结:
针对 Hugging Face 缺乏面向软件工程的预训练模型分类问题,本文结合模型卡片、标签、文献与相似度策略实现自动分类,并建立 SE 任务与 PTM 的映射。
摘要:
软件工程(SE)活动因预训练模型(PTM)的出现而发生了革命性变化;PTM 是指可通过微调来执行特定 SE 任务的大型机器学习(ML)模型。然而,专业知识有限的用户在为当前任务选择合适模型时可能需要帮助。为解决该问题,Hugging Face(HF)平台通过收集、存储和整理大量模型来简化 PTM 的使用。尽管如此,该平台目前仍缺乏专门面向 SE 的 PTM 全面分类,即现有标签更适合通用 ML 类别。本文提出一种方法,通过实现面向 SE 任务的 PTM 自动分类来弥补这一空白。首先,我们利用 HF 的公共数据转储提取 PTM 信息,包括模型文档和关联标签。随后,我们采用半自动方法,从现有文献中识别 SE 任务及其对应的 PTM。该方法包括建立 HF 标签与特定 SE 任务之间的初始映射,并使用基于相似度的策略识别具有相关标签的 PTM。评估表明,在考虑 pipeline 标签时,模型卡片包含足够信息来分类 PTM。此外,我们还依靠模型名称提供了 SE 任务与所存储 PTM 之间的映射。
英文摘要:
Software engineering (SE) activities have been revolutionized by the advent of pre-trained models (PTMs), defined as large machine learning (ML) models that can be fine-tuned to perform specific SE tasks. However, users with limited expertise may need help to select the appropriate model for their current task. To tackle the issue, the Hugging Face (HF) platform simplifies the use of PTMs by collecting, storing, and curating several models. Nevertheless, the platform currently lacks a comprehensive categorization of PTMs designed specifically for SE, i.e., the existing tags are more suited to generic ML categories. This paper introduces an approach to address this gap by enabling the automatic classification of PTMs for SE tasks. First, we utilize a public dump of HF to extract PTMs information, including model documentation and associated tags. Then, we employ a semi-automated method to identify SE tasks and their corresponding PTMs from existing literature. The approach involves creating an initial mapping between HF tags and specific SE tasks, using a similarity-based strategy to identify PTMs with relevant tags. The evaluation shows that model cards are informative enough to classify PTMs considering the pipeline tag. Moreover, we provide a mapping between SE tasks and stored PTMs by relying on model names.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。