Loading...
Please wait, while we are loading the content...
Similar Documents
Automatic Feature Generation for Setting Compilers Heuristics
| Content Provider | Semantic Scholar |
|---|---|
| Author | Leather, Hugh Yom-Tov, Elad Namolaru, Mircea Freund, Ari |
| Copyright Year | 2008 |
| Abstract | Heuristics in compilers are often designed by manually analyzing sample programs. Recent advances have successfully applied machine learning to automatically generate heuristics. The typical format of these approaches reduces the input loops, functions or programs to a finite vector of features. A machine learning algorithm then learns a mapping from these features to the desired heuristic parameters. Choosing the right features is important and requires expert knowledge since no machine learning tool will work well with poorly chosen features. This paper introduces a novel mechanism to generate features. Grammars describing languages of features are defined and from these grammars sentences are randomly produced. The features are then evaluated over input data and computed values are given to machine learning tools. We propose the construction of domain specific feature languages for different purposes in different parts of the compiler. Using these feature languages, complex, machine generated features are extracted from program code. Using our observation that some functions can benefit from setting different compiler options, while others cannot, we demonstrate the use of a decision tree classifier to automatically identify the former using the automatically generated features. We show that our method outperform human generated features on problems of loop unrolling and phase ordering, achieving a statistically significant decrease in run-time compared to programs compiled using GCC's heuristics. |
| File Format | PDF HTM / HTML |
| Alternate Webpage(s) | https://www.research.ed.ac.uk/portal/files/24552437/SMART2008.pdf |
| Alternate Webpage(s) | http://www.yom-tov.info/Papers/SMART2008.pdf |
| Alternate Webpage(s) | http://homepages.inf.ed.ac.uk/hleather/publications/2008_autofeatures_smart.pdf |
| Language | English |
| Access Restriction | Open |
| Content Type | Text |
| Resource Type | Article |