There is a newer version of the record available.

Published October 20, 2022 | Version 0.1

Software Engineering Practices for Machine Learning — Adoption, Effects, and Team Assessment

Description

Machine learning (ML) is extensively used in production-ready applications, calling for ma-
ture engineering techniques to ensure robust development, deployment and maintenance. Given
the potential negative impact ML can have on people, society or the environment, engineering
techniques that can ensure robustness against technical errors and adversarial attacks are of con-
siderable importance. In this work, we investigate how teams of experts develop, deploy and
maintain software with ML components. Moreover, we link what teams do to the effects they aim
to achieve and provide means for improvement. Towards this goal, we mined both academic and
grey literature, and compiled a catalogue of engineering practices for ML. We validated this cata-
logue using a large-scale survey, which measured the degree of adoption of the practices and their
perceived effects. Moreover, we ran validation interviews with practitioners to add depth to the
survey results. The catalogue covers a broad range of practices for engineering software systems
with ML components and for ensuring non-functional properties that fall under the umbrella of
trustworthy ML, such as robustness or fairness. Here, we present the results of our study, which
indicate, for example, that larger and more experienced teams tend to adopt more practices, but
that trustworthiness practices tend to be neglected. Moreover, we show that the effects mea-
sured in our survey, such as team agility or accountability, can be predicted quite accurately from
groups of practices. This allowed us to contrast the importance of the practices for these effects
as well as adoption rates, revealing, for example, that widely adopted practices are, in reality, less
important with respect to some effects. For instance, writing reusable scripts for data cleaning
and merging is highly adopted, but has a limited impact on reproducibility. Based on the results
from our survey, we were also able to develop a maturity model that measures the engineering
ability of teams developing software with ML components and benchmark it against other teams
in our data set. Overall, our study provides a quantitative assessment of ML engineering practices
and their impact on desirable properties of software with ML components; it also opens multiple
avenues for improving the adoption of useful practices.

Files

code_data.zip

Files (41.9 kB)

Name Size
md5:a54c462b4bb7e5d914a27e4c2f04dfc8
41.9 kB Preview Download