1: \begin{abstract}
2: This paper leverages the statistics of extreme values to predict the worst-case
3: convergence times of machine learning algorithms.
4: Timing is a critical non-functional property of ML systems, and providing the worst-case
5: converge times is essential to guarantee the availability of ML and its services.
6: However, timing properties such as worst-case convergence times (WCCT) are difficult to verify since
7: (1) they are not encoded in the syntax or semantics of underlying programming languages of AI,
8: (2) their evaluations depend on both algorithmic implementations and underlying systems, and
9: (3) their measurements involve uncertainty and noise.
10: Therefore, prevalent formal methods and statistical models fail to provide
11: rich information on the amounts and likelihood of WCCT.
12:
13: Our key observation is that the timing information we seek represents the extreme tail of execution times.
14: Therefore, extreme value theory (EVT), a statistical discipline that focuses on understanding and predicting the distribution of extreme values in the tail of outcomes, provides an ideal framework to model and analyze WCCT in the training
15: and inference phases of ML paradigm. Building upon the mathematical tools from EVT,
16: we propose a practical framework to predict the worst-case timing properties of ML.
17: Over a set of linear ML training algorithms,
18: we show that EVT achieves a better accuracy for predicting WCCTs than relevant statistical methods
19: such as the Bayesian factor. On the set of larger machine learning training algorithms and deep neural network inference,
20: we show the feasibility and usefulness of EVT models to accurately predict WCCTs, their expected return
21: periods, and their likelihood.
22:
23: \keywords{Machine Learning, Algorithm Convergence, Timing Properties, Worst-Case Execution Times,
24: Extreme Value Theorem (EVT)}
25: \end{abstract}
26: