Skip to main navigation Skip to search Skip to main content

Unboxing Default Argument Breaking Changes in Scikit Learn

  • Joao Eduardo Montandon
  • , Luciana Lourdes Silva
  • , Cristiano Politowski
  • , Ghizlane El Boussaidi
  • , Marco Tulio Valente
  • Universidade Federal de Minas Gerais
  • Instituto Federal de Minas Gerais
  • École de technologie supérieure

Research output: Contribution to Book/Report types › Contribution to conference proceedings › peer-review

4 Citations (Scopus)

Abstract

Machine Learning (ML) has revolutionized the field of computer software development, enabling data-based predictions and decision-making across several domains. Following modern software development practices, developers use third-party libraries - e.g., Scikit Learn, TensorFlow, and PyTorch - to integrate ML-based functionalities into their applications. Due to the complexity inherent in ML techniques, the models available in the APIs of these tools often require an extensive list of arguments to be set up. Library maintainers overcome this issue by defining default values for most of these arguments so developers can use ML models in their client applications effortlessly. By relying on these default arguments, the clients inadvertently depend on the value defined in these parameters to keep running as expected. We interpret this problem as a semantical breaking change variant, which we named Default Argument Breaking Change (DABC). In this work, we leverage 77 DABCs in Scikit Learn - a well-known ML library - and investigate how 194K client applications are vulnerable to them. Our results show that 72 DABCs (93%) are responsible for exposing 67,747 clients (35%). We also detected that most DABCs (61, 79%) involve APIs used in ML model training and model evaluation stages. Finally, we discuss the importance of managing DABCs in third-party ML libraries and provide insights for developers to mitigate the potential impact of these changes in their applications.

Original languageEnglish
Title of host publicationProceedings - 2023 IEEE 23rd International Working Conference on Source Code Analysis and Manipulation, SCAM 2023
EditorsLeon Moonen, Christian Newman, Alessandra Gorla
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages209-219
Number of pages11
ISBN (Electronic)9798350305067
DOIs
Publication statusPublished - 2023
Event23rd IEEE International Working Conference on Source Code Analysis and Manipulation, SCAM 2023 - Bogota, Colombia
Duration: 1 Oct 2023 → 2 Oct 2023

Publication series

NameProceedings - 2023 IEEE 23rd International Working Conference on Source Code Analysis and Manipulation, SCAM 2023

Conference

Conference23rd IEEE International Working Conference on Source Code Analysis and Manipulation, SCAM 2023
Country/TerritoryColombia
CityBogota
Period1/10/23 → 2/10/23

Keywords

  • breaking changes
  • default arguments
  • machine learning
  • python
  • scikit learn

ASJC Scopus subject areas

  • Artificial Intelligence
  • Software
  • Safety, Risk, Reliability and Quality

Fingerprint

Dive into the research topics of 'Unboxing Default Argument Breaking Changes in Scikit Learn'. These topics are generated from the title and abstract of the publication. Together, they form a unique fingerprint.

Cite this