Accounting For Variance In Machine Learning Benchmarks
Accounting for Variance in Machine Learning Benchmarks
Intro
ML requires empiricism as you need to compare results with prior work. Hyper parameters need to be carefully chosen. Brute forcing these problems with more layers and hyper layers is prohibitive. In deep learning costs are even higher and test/validation/train splits are necessary.
2 variance in ml benches
Evaluations of an ML pipeline should account for distributions.
2.1 benchmarking with hyperparameter tuning
Where:
- : The model or hypothesis selected by the optimization procedure using training set and hyperparameters .
- : Training dataset.
- : Hyperparameters controlling the model or regularization.
- : Returns the value of that minimizes the expression.
- : A candidate model or hypothesis.
- : Hypothesis space containing all candidate models considered.
- : The selected model must belong to the hypothesis space.
- : Estimated empirical risk or prediction error of model on training set , measured using evaluation criterion .
- : risk is estimated from observed sample data not full population.
- : Loss function.
- : Regularization or complexity penalty applied to model , controlled by .
- : The optimization balances training error against model complexity.
Hyperparameter Optimization
used to build the predictor on the dataset . Complete pipeline will include hyper-parameter optimization procedure(s). After tuning the pipeline will return a single predictor:
So that is the result of and is not deterministic.
The performance measure: Need to evaluate the performance of the model. use evaluation metric same as hyperparameter optimization. Risk of applying to of size :
2.2 Empirical evaluation of variance
Looked at case studies.
variance in the learning procedure: 1) data sampling 2) data augmentation procedures 3) model initialization 4) dropout 5) data visit order in stochastic gradient descent
5 Our Recommendations: Good Benchmarks with a budget
- randomize as many sources of variation as possible
- use multiple data splits
- account for variance to detect meaningful improvements
6 Additional considerations
- compare models instead of procedures
- benchmarks and competitions with many contestants
- comparisons across multiple datasets
- non-normal metrics
7 Conclusion
In deep learning emphasis is placed on random weight initialization. Improvements should be made based on bench marks: 1) randomize as many sources of variations as possible in the performance estimation 2) prefer multiple random splits to fixed test sets 3) account for resulting variance when concluding on the benefit of an algorithm over another.