基于语义指纹的预训练语言模型元数据插补方法
Towards Imputation of Pre-Trained Language Model Metadata using Semantic Fingerprinting
AI总结:
提出语义指纹(SemFin)方法,利用Hugging Face配置文件和仓库标签自动插补缺失的PTLM元数据并重建模型谱系,在317,133个模型上相比基线提升预测准确率最高31.4%,并成功处理16.6%的孤立模型。
摘要:
托管在Hugging Face等平台上的预训练语言模型(PTLM)形成了类似于软件依赖图的复杂谱系结构。然而,与传统软件生态系统不同,PTLM仓库通常因缺少元数据(如许可证、复用方法、流水线标签、模型类型和训练库)而缺乏可靠来源。为弥补这一差距,我们引入了语义指纹(SemFin),一种轻量级方法,它结合Hugging Face(HF)配置文件与模型仓库标签,自动插补缺失的模型元数据字段并重建模型谱系链。我们在包含317,133个PTLM的大规模数据集上评估了SemFin。结果表明,配置文件通常编码了实例化和复用模型所需的技术要求,使其能够作为模型复用的结构蓝图,尤其适用于基于Transformer的架构。通过结合这些配置文件与模型仓库标签,SemFin显著优于现有的基于传播的插补方法,与Graph Avg和Hub Avg基线相比,预测准确率分别提升高达31.4%和26.6%。重要的是,SemFin还为16.6%的孤立模型插补了元数据,而传播方法对此类模型无效。将SemFin应用于为167,089个未标记模型插补缺失的复用方法和许可证元数据,结果显示可追踪的复用方法链扩展了75.9%,许可证谱系链扩展了53.6%,发现了86个以前不可见的复用方法模式,而不兼容许可证模式的比例仅从34.8%增加到36.8%。这些发现证明了自动推导的结构信号如何支持AI物料清单(AIBOM)的自动构建,帮助将元数据从容易出错的手动声明转变为直接从模型工件推断的信息。
英文摘要:
Pre-trained language models (PTLMs) hosted on platforms such as Hugging Face form complex lineage structures similar to software dependency graphs. However, unlike traditional software ecosystems, PTLM repositories often lack reliable provenance due to missing metadata, such as licenses, reuse methods, pipeline tags, model types, and training libraries. To address this gap, we introduce Semantic Fingerprinting (SemFin), a lightweight approach that combines Hugging Face (HF) configuration files with model repository tags to automatically impute missing model metadata fields and reconstruct model lineage chains. We evaluate SemFin on a large-scale dataset of 317,133 PTLMs. Our results show that configuration files typically encode the technical requirements necessary to instantiate and reuse models, enabling them to serve as a structural blueprint for model reuse, particularly for transformer-based architectures. By combining these configuration files with model repository tags, SemFin significantly outperforms the existing propagation-based imputation approaches, improving prediction accuracy by up to 31.4% and 26.6% compared to Graph Avg and Hub Avg baselines. Importantly, SemFin also imputes metadata for 16.6% of isolated models where propagation-based methods fail. Applying SemFin to impute missing reuse-method and license metadata for 167,089 unlabeled models reveals that traceable reuse method chains expand by 75.9% and license lineage chains by 53.6%, uncovering 86 previously invisible reuse method patterns, while the proportion of incompatible license patterns only increases from 34.8% to 36.8%. These findings demonstrate how automatically derived structural signals can support the automated construction of AI Bills of Materials (AIBOMs), helping transform metadata from an error-prone manual declaration into information inferred directly from model artifacts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。