Title :
Using machine learning to focus iterative optimization
Author :
Agakov, F. ; Bonilla, E. ; Cavazos, J. ; Franke, B. ; Fursin, G. ; Boyle, M. F P O ; Thomson, J. ; Toussaint, M. ; Willia, C. K I
Author_Institution :
Sch. of Informatics, Edinburgh Univ., UK
Abstract :
Iterative compiler optimization has been shown to outperform static approaches. This, however, is at the cost of large numbers of evaluations of the program. This paper develops a new methodology to reduce this number and hence speed up iterative optimization. It uses predictive modelling from the domain of machine learning to automatically focus search on those areas likely to give greatest performance. This approach is independent of search algorithm, search space or compiler infrastructure and scales gracefully with the compiler optimization space size. Off-line, a training set of programs is iteratively evaluated and the shape of the spaces and program features are modelled. These models are learnt and used to focus the iterative optimization of a new program. We evaluate two learnt models, an independent and Markov model, and evaluate their worth on two embedded platforms, the Texas Instrument C67I3 and the AMD Au1500. We show that such learnt models can speed up iterative search on large spaces by an order of magnitude. This translates into an average speedup of 1.22 on the TI C6713 and 1.27 on the AMD Au1500 in just 2 evaluations.
Keywords :
iterative methods; learning (artificial intelligence); optimising compilers; AMD Au1500; Markov model; Texas Instrument C67I3; compiler infrastructure; iterative compiler optimization; machine learning; search algorithm; search space; Costs; Instruments; Iterative algorithms; Iterative methods; Machine learning; Machine learning algorithms; Optimization methods; Optimizing compilers; Predictive models; Shape;
Conference_Titel :
Code Generation and Optimization, 2006. CGO 2006. International Symposium on
Print_ISBN :
0-7695-2499-0
DOI :
10.1109/CGO.2006.37