Lune

ISSTA2021顶会

TERA: optimizing stochastic regression tests in machine learning projects

Saikat Dutta, Jeeva Selvam, Aryaman Jain, Sasa Misailovic

摘要

The stochastic nature of many Machine Learning (ML) algorithms makes testing of ML tools and libraries challenging. ML algorithms allow a developer to control their accuracy and run-time through a set of hyper-parameters, which are typically manually selected in tests. This choice is often too conservative and leads to slow test executions, thereby increasing the cost of regression testing. We propose TERA, the first automated technique for reducing the cost of regression testing in Machine Learning tools and libraries (jointly referred to as projects) without making the tests more flaky. TERA solves the problem of exploring the trade-off space between execution time of the test and its flakiness as an instance of Stochastic Optimization over the space of algorithm hyper-parameters. TERA presents how to leverage statistical convergence-testing techniques to estimate the level of flakiness of the test for a specific choice of hyper-parameters during optimization. We evaluate TERA on a corpus of 160 tests selected from 15 popular machine learning projects. Overall, TERA obtains a geomean speedup of 2.23x over the original tests, for the minimum passing probability threshold of 99%. We also show that the new tests did not reduce fault detection ability through a mutation study and a study on a set of 12 historical build failures in studied projects.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • FLEX: fixing flaky tests in machine learning projects by updating assertion bounds 引用了 Detecting numerical bugs in neural network architectures
  • FLEX: fixing flaky tests in machine learning projects by updating assertion bounds 引用了 Audee: Automated Testing for Deep Learning Frameworks
  • FLEX: fixing flaky tests in machine learning projects by updating assertion bounds 引用了 Detecting flaky tests in probabilistic and machine learning applications
  • FLEX: fixing flaky tests in machine learning projects by updating assertion bounds 引用了 A study on the lifecycle of flaky tests
  • Understanding and Improving Flaky Test Classification 引用了 FLEX: fixing flaky tests in machine learning projects by updating assertion bounds
  • Understanding and Improving Flaky Test Classification 引用了 Detecting flaky tests in probabilistic and machine learning applications
  • Balancing Effectiveness and Flakiness of Non-Deterministic Machine Learning Tests 引用了 FLEX: fixing flaky tests in machine learning projects by updating assertion bounds
  • Balancing Effectiveness and Flakiness of Non-Deterministic Machine Learning Tests 引用了 Detecting numerical bugs in neural network architectures
  • Balancing Effectiveness and Flakiness of Non-Deterministic Machine Learning Tests 引用了 Audee: Automated Testing for Deep Learning Frameworks
  • Balancing Effectiveness and Flakiness of Non-Deterministic Machine Learning Tests 引用了 Detecting flaky tests in probabilistic and machine learning applications
  • Detecting flaky tests in probabilistic and machine learning applications 引用了 A study on the lifecycle of flaky tests
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper3

  1. FLEX: fixing flaky tests in machine learning projects by updating assertion boundsSaikat Dutta, August Shi, Sasa MisailovicFSE 2021 · 33 次引用
  2. Understanding and Improving Flaky Test ClassificationShanto Rahman, Saikat Dutta, August ShiOOPSLA 2025 · 5 次引用
  3. Balancing Effectiveness and Flakiness of Non-Deterministic Machine Learning TestsChunqiu Steven Xia, Saikat Dutta, Sasa Misailovic, Darko Marinov 等ICSE 2023 · 5 次引用

它引用的 Paper8

  1. A study on the lifecycle of flaky testsWing Lam, Kivanç Muslu, Hitesh Sajnani, Suresh ThummalapentaICSE 2020 · 107 次引用
  2. Audee: Automated Testing for Deep Learning FrameworksQianyu Guo, Xiaofei Xie, Yi Li, Xiaoyu Zhang 等ASE 2020 · 83 次引用
  3. Efficient Compiler Autotuning via Bayesian OptimizationJunjie Chen, Ningxin Xu, Peiqi Chen, Hongyu ZhangICSE 2021 · 73 次引用
  4. Detecting flaky tests in probabilistic and machine learning applicationsSaikat Dutta, August Shi, Rutvik Choudhary, Zhekun Zhang 等ISSTA 2020 · 71 次引用
  5. Detecting numerical bugs in neural network architecturesYuhao Zhang, Luyao Ren, Liqian Chen, Yingfei Xiong 等FSE 2020 · 66 次引用

相关 Paper

  1. Dependent-test-aware regression testing techniquesWing Lam, August Shi, Reed Oei, Sai Zhang 等ISSTA 2020 · 44 次引用
  2. More Precise Regression Test Selection via Reasoning about Semantics-Modifying ChangesYu Liu, Jiyang Zhang, Pengyu Nie, Milos Gligoric 等ISSTA 2023 · 19 次引用
  3. FlakeFlagger: Predicting Flakiness Without Rerunning TestsAbdulrahman Alshammari, Christopher Morris, Michael Hilton, Jonathan BellICSE 2021 · 63 次引用
  4. Automatic Unit Test Generation for Machine Learning Libraries: How Far Are We?Song Wang, Nishtha Shrestha, Abarna Kucheri Subburaman, Junjie Wang 等ICSE 2021 · 36 次引用
  5. Test Selection for Unified Regression TestingShuai Wang, Xinyu Lian, Darko Marinov, Tianyin XuICSE 2023 · 9 次引用
黄昏的海面,两侧是细线勾勒的悬崖