arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.02279cs.SEcs.LG
收藏

深度学习程序中的设计气味:一项实证研究

Design Smells in Deep Learning Programs: An Empirical Study

Polytechnique Montréal(蒙特利尔理工学院)

Amin Nikanjam, Foutse Khomh

摘要:

如今,我们正在见证许多行业越来越多地采用基于深度学习(DL)的软件系统。设计深度学习程序需要构建深度神经网络(DNN),然后在数据集上训练它。这个过程要求开发人员进行多个架构(例如,层的类型、大小、数量和顺序)和配置(例如,优化器、正则化方法和激活函数)选择,这些选择影响DL模型的质量,并因此影响软件质量。一个未充分指定或设计不良的DL模型可能会成功地进行训练,但在部署到生产中时可能会表现不佳。DL程序中的设计气味是在DL组件开发期间做出的糟糕的设计和/或配置决策,这些决策可能对性能产生负面影响(即,预测精度),然后是基于DL的软件系统的质量。在本文中,我们提出了一个流行的DL架构,即深度前馈神经网络,这是广泛应用于工业应用的8个设计气味的目录。通过对DL设计现有文献的回顾和对659个存在性能问题和设计效率低下的DL程序的手动检查,确定了设计气味。气味是通过描述它们的上下文、后果和推荐的重构来指定的。为了提供经验证据的相关性和感知的影响,建议的设计气味,我们进行了一项调查,81 DL开发。一般来说,开发人员认为所提出的设计气味反映了设计或实现问题,一致性水平在47%和68%之间变化。

英文摘要:

Nowadays, we are witnessing an increasing adoption of Deep Learning (DL) based software systems in many industries. Designing a DL program requires constructing a deep neural network (DNN) and then training it on a dataset. This process requires that developers make multiple architectural (e.g., type, size, number, and order of layers) and configuration (e.g., optimizer, regularization methods, and activation functions) choices that affect the quality of the DL models, and consequently software quality. An under-specified or poorly-designed DL model may train successfully but is likely to perform poorly when deployed in production. Design smells in DL programs are poor design and-or configuration decisions taken during the development of DL components, that are likely to have a negative impact on the performance (i.e., prediction accuracy) and then quality of DL based software systems. In this paper, we present a catalogue of 8 design smells for a popular DL architecture, namely deep Feedforward Neural Networks which is widely employed in industrial applications. The design smells were identified through a review of the existing literature on DL design and a manual inspection of 659 DL programs with performance issues and design inefficiencies. The smells are specified by describing their context, consequences, and recommended refactorings. To provide empirical evidence on the relevance and perceived impact of the proposed design smells, we conducted a survey with 81 DL developers. In general, the developers perceived the proposed design smells as reflective of design or implementation problems, with agreement levels varying between 47\% and 68\%.

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

↑