arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.16746cs.SE
收藏

代码大语言模型生态系统

Ecosystem of Large Language Models for Code

Zhou Yang, Jieke Shi, Premkumar Devanbu, David Lo

AI总结:

本文基于 Hugging Face 首次系统分析代码大语言模型生态系统,揭示其幂律分布特征、九类模型复用方式及文档与许可证实践的特殊性。

摘要:

大量公开可访问的源代码数据、现代语言模型的进步以及日益增长的计算资源,共同推动了代码大语言模型(简称 LLM4Code)开发的显著激增。代码数据集与模型之间的交互形成了一个复杂的生态系统,其内部存在值得研究的复杂依赖关系。本文首次对代码模型生态系统进行了开创性分析。我们以 Hugging Face——基于 Transformer 的模型的首要枢纽——作为主要数据来源,整理了一份经人工确认与软件工程相关的数据集和模型列表。通过分析该生态系统,我们首先识别出流行且有影响力的数据集、模型和贡献者。流行度通过多种指标进行量化,包括下载次数、点赞次数、复用次数等。该生态系统遵循幂律分布,表明用户更倾向于选择广受认可的模型和数据集。随后,我们将生态系统中模型的复用方式人工划分为九个类别,分析了主流的模型复用实践。排名前三的最流行复用类型是微调、架构共享和量化。我们还探索了 LLM4Code 发布的相关实践,特别关注文档实践和许可证选择。我们发现,该生态系统中的文档所包含的信息少于托管在 GitHub 上的一般人工智能(AI)相关仓库中的文档。此外,许可证的使用情况也与其他软件仓库不同。生态系统中的模型采用了一些 AI 特定许可证,例如 RAIL(负责任 AI 许可证)和 AI 模型许可协议。

英文摘要:

The availability of vast amounts of publicly accessible data of source code and the advances in modern language models, coupled with increasing computational resources, have led to a remarkable surge in the development of large language models for code (LLM4Code, for short). The interaction between code datasets and models gives rise to a complex ecosystem characterized by intricate dependencies that are worth studying. This paper introduces a pioneering analysis of the code model ecosystem. Utilizing Hugging Face -- the premier hub for transformer-based models -- as our primary source, we curate a list of datasets and models that are manually confirmed to be relevant to software engineering. By analyzing the ecosystem, we first identify the popular and influential datasets, models, and contributors. The popularity is quantified by various metrics, including the number of downloads, the number of likes, the number of reuses, etc. The ecosystem follows a power-law distribution, indicating that users prefer widely recognized models and datasets. Then, we manually categorize how models in the ecosystem are reused into nine categories, analyzing prevalent model reuse practices. The top 3 most popular reuse types are fine-tuning, architecture sharing, and quantization. We also explore the practices surrounding the publication of LLM4Code, specifically focusing on documentation practice and license selection. We find that the documentation in the ecosystem contains less information than that in general artificial intelligence (AI)-related repositories hosted on GitHub. Additionally, the license usage is also different from other software repositories. Models in the ecosystem adopt some AI-specific licenses, e.g., RAIL (Responsible AI Licenses) and AI model license agreement.

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

↑