深度学习框架开发中假设自动识别的探索性研究
An Exploratory Study on Automatic Identification of Assumptions in the Development of Deep Learning Frameworks
AI总结:
本研究构建了基于TensorFlow和Keras仓库的最大假设数据集AssuEval,对比多类模型的假设识别效果,发现ALBERT性能最优,不推荐直接用主流大模型做该任务,微调可提升大模型表现。
摘要:
在深度学习(DL)框架开发过程中,利益相关者会不断做出各类假设。这些假设与多种软件制品(如需求、设计决策、技术债务)相关,一旦失效就可能引发系统故障。现有的假设管理方法与工具通常依赖人工识别假设,但在DL框架开发场景中,假设分散在代码注释、提交记录、拉取请求、议题等各类来源中,人工识别的成本极高。本研究面向GitHub上DL框架项目的开发者与用户场景,针对议题、拉取请求、提交三类文本,评估不同分类模型的假设识别效果。首先,我们从GitHub的TensorFlow与Keras代码仓库中收集假设数据,构建了全新的、规模最大的假设数据集AssuEval。随后,我们在AssuEval数据集上探究了七类非transformer基模型(如支持向量机、分类与回归树)、ALBERT模型,以及三类仅解码器模型(ChatGPT、Claude、Gemini)的假设识别性能。研究结果显示,ALBERT在AssuEval数据集上的假设识别表现最优,F1值达到0.9584,远优于其他模型——排名第二的Claude 3.5 Sonnet模型F1值仅为0.8858。尽管ChatGPT、Claude、Gemini是当下流行的模型,但由于识别性能偏低,我们不推荐将其用于DL框架开发中的假设识别任务。针对假设识别任务对ChatGPT、Claude、Gemini或其他语言模型(如Llama3、Falcon、BLOOM)进行微调,或许能够提升这类模型的假设识别性能。
英文摘要:
Stakeholders constantly make assumptions in the development of deep learning (DL) frameworks. These assumptions are related to various types of software artifacts (e.g., requirements, design decisions, and technical debt) and can turn out to be invalid, leading to system failures. Existing approaches and tools for assumption management usually depend on manual identification of assumptions. However, assumptions are scattered in various sources (e.g., code comments, commits, pull requests, and issues) of DL framework development, and manually identifying assumptions has high costs. This study intends to evaluate different classification models for the purpose of identification with respect to assumptions from the point of view of developers and users in the context of DL framework projects (i.e., issues, pull requests, and commits) on GitHub. First, we constructed a new and largest dataset (i.e., the AssuEval dataset) of assumptions collected from the TensorFlow and Keras repositories on GitHub. Then we explored the performance of seven non-transformers based models (e.g., Support Vector Machine, Classification and Regression Trees), the ALBERT model, and three decoder-only models (i.e., ChatGPT, Claude, and Gemini) for identifying assumptions on the AssuEval dataset. The study results show that ALBERT achieves the best performance (f1-score: 0.9584) for identifying assumptions on the AssuEval dataset, which is much better than the other models (the 2nd best f1-score is 0.8858, achieved by the Claude 3.5 Sonnet model). Though ChatGPT, Claude, and Gemini are popular models, we do not recommend using them to identify assumptions in DL framework development because of their low performance. Fine-tuning ChatGPT, Claude, Gemini, or other language models (e.g., Llama3, Falcon, and BLOOM) specifically for assumptions might improve their performance for assumption identification.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。