PyPI中深度学习包供应链的特征分析:领域、集群与脱离行为
Characterizing Deep Learning Package Supply Chains in PyPI: Domains, Clusters, and Disengagement
AI总结:
本研究分析PyPI中TensorFlow与PyTorch的深度学习包供应链,揭示其领域分布、集群形态与包脱离的原因,为供应链维护与依赖管理提供参考。
摘要:
深度学习(DL)包供应链(SC)对于DL框架保持竞争力至关重要,但目前仍缺乏关于DL包供应链本质的关键认知。为填补这一知识空白,本文针对两个具有代表性的PyPI DL包供应链,探究其包的领域分布、集群特征与脱离行为。我们分析了近600万条PyPI包发布版本的元数据,为TensorFlow和PyTorch这两个主流DL框架构建了具备版本敏感性的供应链。研究发现,两个供应链中的热门包(按月下载量衡量)覆盖8大类下的34个领域;应用、基础设施和科学类在两个供应链的热门包中占比均超85%,其中TensorFlow供应链在基础设施包上形成专长,PyTorch供应链则在应用类包上更具优势。我们采用Leiden社区检测算法,在两个供应链中分别识别出131个和100个集群;按依赖复杂度从低到高,集群主要呈现箭头型、星型、树型和森林型四种形态。多数集群为箭头型或星型,但树型和森林型集群包含了绝大多数包(TensorFlow供应链占70%,PyTorch供应链占90%)。我们归纳出包从供应链中脱离(即从安装依赖中移除DL框架及其依赖项)的三类原因:依赖问题、功能改进与安装便捷性,且两个供应链中最常见的脱离原因存在差异。本研究为PyPI DL供应链的维护与依赖管理实践提供了丰富启示。
英文摘要:
Deep learning (DL) package supply chains (SCs) are critical for DL frameworks to remain competitive. However, vital knowledge on the nature of DL package SCs is still lacking. In this paper, we explore the domains, clusters, and disengagement of packages in two representative PyPI DL package SCs to bridge this knowledge gap. We analyze the metadata of nearly six million PyPI package distributions and construct version-sensitive SCs for two popular DL frameworks: TensorFlow and PyTorch. We find that popular packages (measured by the number of monthly downloads) in the two SCs cover 34 domains belonging to eight categories. Applications, Infrastructure, and Sciences categories account for over 85% of popular packages in either SC and TensorFlow and PyTorch SC have developed specializations on Infrastructure and Applications packages respectively. We employ the Leiden community detection algorithm and detect 131 and 100 clusters in the two SCs. The clusters mainly exhibit four shapes: Arrow, Star, Tree, and Forest with increasing dependency complexity. Most clusters are Arrow or Star, but Tree and Forest clusters account for most packages (Tensorflow SC: 70%, PyTorch SC: 90%). We identify three groups of reasons why packages disengage from the SC (i.e., remove the DL framework and its dependents from their installation dependencies): dependency issues, functional improvements, and ease of installation. The most common disengagement reason in the two SCs are different. Our study provides rich implications on the maintenance and dependency management practices of PyPI DL SCs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。