SMOOTHIE: A Theory of Hyper-parameter Optimization for Software Analytics
Preprint
Abstract
Hyper-parameter optimization is the black art of tuning a learner's control parameters. In software analytics, a repeated result is that such tuning can result in dramatic performance improvements. Despite this, hyper-parameter optimization is often applied rarely or poorly in software analytics--perhaps due to the CPU cost of exploring all those parameter options can be prohibitive. We theorize that learners generalize better when the loss landscape is ``smooth''. This theory is useful since the influence on ``smoothness'' of different hyper-parameter choices can be tested very quickly (e.g. for a deep learner, after just one epoch). To test this theory, this paper implements and tests SMOOTHIE, a novel hyper-parameter optimizer that guides its optimizations via considerations of ``smothness''. The experiments of this paper test SMOOTHIE on numerous SE tasks including (a) GitHub issue lifetime prediction; (b) detecting false alarms in static code warnings; (c) defect prediction, and (d) a set of standard ML datasets. In all these experiments, SMOOTHIE out-performed state-of-the-art optimizers. Better yet, SMOOTHIE ran 300% faster than the prior state-of-the art. We hence conclude that this theory (that hyper-parameter optimization is best viewed as a ``smoothing'' function for the decision landscape), is both theoretically interesting and practically very useful. To support open science and other researchers working in this area, all our scripts and datasets are available on-line at https://github.com/yrahul3910/smoothness-hpo/.Keywords
All Related Versions
This publication has 18 references indexed in Scilit:
- An empirical study of text-based machine learning models for vulnerability detectionEmpirical Software Engineering, 2023
- Hyperparameter optimization: Foundations, algorithms, best practices, and open challengesWIREs Data Mining and Knowledge Discovery, 2023
- Learning to recognize actionable static code warnings (is intrinsically easy)Empirical Software Engineering, 2021
- Better software analytics via “DUO”: Data mining algorithms using/used-by optimizersEmpirical Software Engineering, 2020
- Continual Prediction of Bug-Fix Time Using Deep Learning-Based Activity Stream EmbeddingIEEE Access, 2020
- Perceptions, Expectations, and Challenges in Defect PredictionIEEE Transactions on Software Engineering, 2018
- What is wrong with topic modeling? And how to fix it using search-based software engineeringInformation and Software Technology, 2018
- Tuning for software analytics: Is it really necessary?Information and Software Technology, 2016
- Taking the Human Out of the Loop: A Review of Bayesian OptimizationProceedings of the IEEE, 2015
- Instance-Based Learning AlgorithmsMachine Learning, 1991