[논문 리뷰] Empirical Analysis on CI/CD Pipeline Evolution in Machine Learning Projects
이 연구는 ML 프로젝트에서 CI/CD 구성이 어떻게 진화하는지 실증적으로 분석하고, 14-범주 공동진화 분류를 식별하며, CI/CD 변경과 관련된 패턴 및 개발자 전문성을 밝힙니다.
The growing popularity of machine learning (ML) and the integration of ML components with other software artifacts has led to the use of continuous integration and delivery (CI/CD) tools, such as Travis CI, GitHub Actions, etc. that enable faster integration and testing for ML projects. Such CI/CD configurations and services require synchronization during the life cycle of the projects. Several works discussed how CI/CD configuration and services change during their usage in traditional software systems. However, there is very limited knowledge of how CI/CD configuration and services change in ML projects. To fill this knowledge gap, this work presents the first empirical analysis of how CI/CD configuration evolves for ML software systems. We manually analyzed 343 commits collected from 508 open-source ML projects to identify common CI/CD configuration change categories in ML projects and devised a taxonomy of 14 co-changes in CI/CD and ML components. Moreover, we developed a CI/CD configuration change clustering tool that identified frequent CI/CD configuration change patterns in 15,634 commits. Furthermore, we measured the expertise of ML developers who modify CI/CD configurations. Based on this analysis, we found that 61.8% of commits include a change to the build policy and minimal changes related to performance and maintainability compared to general open-source projects. Additionally, the co-evolution analysis identified that CI/CD configurations, in many cases, changed unnecessarily due to bad practices such as the direct inclusion of dependencies and a lack of usage of standardized testing frameworks. More practices were found through the change patterns analysis consisting of using deprecated settings and reliance on a generic build language. Finally, our developer's expertise analysis suggests that experienced developers are more inclined to modify CI/CD configurations.
연구 동기 및 목표
- 일반 OSS 프로젝트와 비교하여 ML 프로젝트에서 CI/CD 구성요소가 어떻게 진화하는지 탐색한다.
- CI/CD 구성과 ML 소스 코드 간의 공동 변경 카테고리를 식별한다.
- ML 프로젝트 내 CI/CD 구성의 일반적인 변경 패턴을 발견한다.
- 개발자의 전문성이 CI/CD 구성을 수정하는 데 어떤 관련이 있는지 평가한다.
제안 방법
- Python과 Travis CI를 사용한 508개의 ML 프로젝트에서 .travis.yml를 수정하는 343 커밋의 수동 라벨링.
- CI/CD와 ML 공동 변경에 대한 14-범주 분류 체계 개발.
- 공동 변경 카테고리 간의 관계를 밝히기 위한 연관 규칙 학습(Apriori).
- CI/CD 변경 패턴을 탐색하기 위한 추상 구문 트리 분석(TraVanalyzer와 GumTree).
- 명령 이름과 Travis 키워드에 따른 CI/CD 변경의 패턴 클러스터링.
- 개발자 전문성과 파이프라인 변경 간의 관계를 밝히기 위한 상관 분석(Spearman 및 Kendall).
실험 결과
연구 질문
- RQ1RQ1: ML 프로젝트에서 CI/CD 파이프라인은 어떻게 진화합니까?
- RQ2RQ2: CI/CD 파이프라인은 ML 코드와 어떻게 공동으로 진화합니까?
- RQ3RQ3: CI/CD 구성에서 일반적인 변경 패턴은 무엇입니까?
- RQ4RQ4: ML 프로젝트에서 CI/CD 구성을 변경하는 개발자의 숙련도는 어느 정도입니까?
주요 결과
- 빌드 정책 변경이 ML CI/CD 진화를 지배하며, 커밋의 절반 이상에서 발생합니다.
- 공동 진화 분류체계에서 Testing과 Dependency Management가 두드러진 범주로 식별되며, Deployment와 Data Versioning은 덜 빈번합니다.
- 연관 규칙은 Documentation 또는 Pipeline Automation과 Dependency Management 및 Testing 변화 간의 주목할 만한 연관을 밝힙니다.
- Testing 변경은 커밋의 21.0%에서 나타나 가장 빈번한 공동 변경 카테고리입니다.
- Dependency Management 변경은 약 20.3%의 커밋을 차지하며, CI 스크립트에 의존성을 직접 포함하는 것은 나쁜 관행으로 간주됩니다.
- 일반적인 변경 패턴에는 더 이상 사용되지 않는 Travis 설정의 사용과 일반 빌드 언어에의 의존이 포함됩니다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.