{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,7,30]],"date-time":"2025-07-30T16:38:43Z","timestamp":1753893523966,"version":"3.41.2"},"reference-count":41,"publisher":"American Association for the Advancement of Science (AAAS)","funder":[{"DOI":"10.13039\/100000183","name":"U.S. Army Research Office","doi-asserted-by":"crossref","award":["W911NF-23-1-0111"],"award-info":[{"award-number":["W911NF-23-1-0111"]}],"id":[{"id":"10.13039\/100000183","id-type":"DOI","asserted-by":"crossref"}]},{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["CPS-1453860, CCF-1837131, MCB-1936775, CNS-1932620"],"award-info":[{"award-number":["CPS-1453860, CCF-1837131, MCB-1936775, CNS-1932620"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["2243104"],"award-info":[{"award-number":["2243104"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100006502","name":"Defense Sciences Office, DARPA","doi-asserted-by":"publisher","award":["N66001- 17-1-4044"],"award-info":[{"award-number":["N66001- 17-1-4044"]}],"id":[{"id":"10.13039\/100006502","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100002418","name":"Intel Corporation","doi-asserted-by":"publisher","id":[{"id":"10.13039\/100002418","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100005014","name":"Northrop Grumman","doi-asserted-by":"publisher","id":[{"id":"10.13039\/100005014","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["spj.science.org"],"crossmark-restriction":true},"short-container-title":["Intell Comput"],"published-print":{"date-parts":[[2025,1]]},"abstract":"<jats:p>\n            The single instruction multiple data (SIMD) capability in modern processors is critical to improving the performance of current compute-intensive programs. Modern compilers use vectorization techniques to exploit the SIMD capability, by detecting data parallelism in scalar source code and transforming a group of scalar instructions into vector-based instructions. In this study, we focus on one of the most common vectorization techniques, a technique called loop-based vectorization, which targets loops and optimizes their performance by grouping multiple occurrences of the same operation across loop iterations into a single SIMD instruction. We propose a data-driven graph-based learning framework for automatic vectorization, called\n            <jats:italic toggle=\"yes\">autograph<\/jats:italic>\n            , which takes an input program, extracts the loops, and then learns a structured representation to automatically predict the correct vectorization and interleaving factors. Our proposed framework utilizes deep reinforcement learning to learn an optimal policy (observations to actions) from an intelligent agent in a SIMD environment, and automatically injects the predicted vectorization pragmas into the input program. We conducted an extensive evaluation on multiple benchmark datasets and comparisons with state-of-the-art baselines. Our results show that autograph achieves on average 2.49\u00d7 performance improvement for Polybench compared to NeuroVectorizer and 3.69\u00d7 compared to the baseline -O3.\n          <\/jats:p>","DOI":"10.34133\/icomputing.0113","type":"journal-article","created":{"date-parts":[[2025,4,15]],"date-time":"2025-04-15T16:07:31Z","timestamp":1744733251000},"update-policy":"https:\/\/doi.org\/10.34133\/aaas_crossmark_01","source":"Crossref","is-referenced-by-count":0,"title":["A Graph-Based Learning Framework for Compiler Loop Auto-Vectorization"],"prefix":"10.34133","volume":"4","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-4999-9252","authenticated-orcid":false,"given":"Yao","family":"Xiao","sequence":"first","affiliation":[{"name":"Department of Electrical and Computer Engineering, Viterbi School of Engineering, \rUniversity of Southern California, Los Angeles, CA, USA."}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Nesreen K.","family":"Ahmed","sequence":"additional","affiliation":[{"name":"Cisco AI Research","place":["USA"]}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Mihai","family":"Capot\u0103","sequence":"additional","affiliation":[{"name":"Intel Labs","place":["USA"]}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Guixiang","family":"Ma","sequence":"additional","affiliation":[{"name":"Intel Labs","place":["USA"]}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Theodore L.","family":"Willke","sequence":"additional","affiliation":[{"name":"Intel Labs","place":["USA"]}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Shahin","family":"Nazarian","sequence":"additional","affiliation":[{"name":"Department of Electrical and Computer Engineering, Viterbi School of Engineering, \rUniversity of Southern California, Los Angeles, CA, USA."}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2118-0816","authenticated-orcid":true,"given":"Paul","family":"Bogdan","sequence":"additional","affiliation":[{"name":"Department of Electrical and Computer Engineering, Viterbi School of Engineering, \rUniversity of Southern California, Los Angeles, CA, USA."},{"name":"Thomas Lord Department of Computer Science, USC School of Advanced Computing, USC Viterbi School of Engineering","place":["USA"]}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"221","published-online":{"date-parts":[[2025,6,2]]},"reference":[{"issue":"6","key":"e_1_3_3_2_2","doi-asserted-by":"crossref","first-page":"132","DOI":"10.1145\/1133255.1133997","article-title":"Auto-vectorization of interleaved data for SIMD","volume":"41","author":"Nuzman D","year":"2006","unstructured":"Nuzman D, Rosen I, Zaks A. Auto-vectorization of interleaved data for SIMD. ACM SIGPLAN Not. 2006;41(6):132\u2013143.","journal-title":"ACM SIGPLAN Not"},{"key":"e_1_3_3_3_2","unstructured":"Bachega L Chatterjee S Dockser KA Gunnels JA Gupta M Gustavson FG Lapkowski CA Liu GK Mendell MP Wait CD et\u00a0al. A high-performance SIMD floating point unit for bluegene\/l: Architecture compilation and algorithm design. Paper presented at: Proceedings of the 13th International Conference on Parallel Architecture and Compilation Techniques 2004; 2004; Antibes Juan-les-Pins France."},{"issue":"4","key":"e_1_3_3_4_2","doi-asserted-by":"crossref","first-page":"42","DOI":"10.1109\/40.526924","article-title":"MMX technology extension to the Intel architecture","volume":"16","author":"Peleg A","year":"1996","unstructured":"Peleg A, Weiser U. MMX technology extension to the Intel architecture. IEEE Micro. 1996;16(4):42\u201350.","journal-title":"IEEE Micro"},{"key":"e_1_3_3_5_2","doi-asserted-by":"crossref","unstructured":"Porpodas V Rocha RC Goes LF. VW-SLP: Auto-vectorization with adaptive vector width. Paper presented at: Proceedings of the 27th International Conference on Parallel Architectures and Compilation Techniques; 2018; Limassol Cyprus.","DOI":"10.1145\/3243176.3243189"},{"key":"e_1_3_3_6_2","doi-asserted-by":"crossref","unstructured":"Porpodas V. SuperGraph-SLP auto-vectorization. Paper presented at: 2017 26th International Conference on Parallel Architectures and Compilation Techniques (PACT); 2017; Portland OR USA.","DOI":"10.1109\/PACT.2017.21"},{"key":"e_1_3_3_7_2","unstructured":"Mendis C Yang C Pu Y Amarasinghe D Carbin M. Compiler auto-vectorization with imitation learning. Adv Neural Inf Process Syst. 2019:32."},{"key":"e_1_3_3_8_2","doi-asserted-by":"crossref","unstructured":"Haj-Ali A Ahmed NK Willke T Shao YS Asanovic K Stoica I. NeuroVectorizer: End-to-end vectorization with deep reinforcement learning. Paper presented at: Proceedings of the 18th ACM\/IEEE International Symposium on Code Generation and Optimization; 2020; San Diego CA USA.","DOI":"10.1145\/3368826.3377928"},{"key":"e_1_3_3_9_2","doi-asserted-by":"crossref","unstructured":"Tian X Saito H Su E Gaba A Masten M Garcia E Zaks A. LLVM framework and IR extensions for parallelization SIMD vectorization and offloading. Paper presented at: 2016 Third Workshop on the LLVM Compiler Infrastructure in HPC (LLVM-HPC); 2016; Salt Lake City UT USA.","DOI":"10.1109\/LLVM-HPC.2016.008"},{"key":"e_1_3_3_10_2","doi-asserted-by":"crossref","unstructured":"Trifunovic K Nuzman D Cohen A Zaks A Rosen I. Polyhedral-model guided loop-nest auto-vectorization. Paper presented at: 2009 18th International Conference on Parallel Architectures and Compilation Techniques; 2009; Raleigh NC USA.","DOI":"10.1109\/PACT.2009.18"},{"issue":"4","key":"e_1_3_3_11_2","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/2086696.2086729","article-title":"Using machine learning to improve automatic vectorization","volume":"8","author":"Stock K","year":"2012","unstructured":"Stock K, Pouchet LN, Sadayappan P. Using machine learning to improve automatic vectorization. ACM Trans Architect Code Opt. 2012;8(4):1\u201323.","journal-title":"ACM Trans Architect Code Opt"},{"key":"e_1_3_3_12_2","doi-asserted-by":"crossref","first-page":"1879","DOI":"10.1109\/JPROC.2018.2817118","article-title":"Machine learning in compiler optimization","volume":"106","author":"Wang Z","year":"2018","unstructured":"Wang Z, O\u2019Boyle M. Machine learning in compiler optimization. Proc IEEE. 2018;106:1879\u20131901.","journal-title":"Proc IEEE"},{"key":"e_1_3_3_13_2","unstructured":"Cummins C Fisches Z Ben-Nun T Hoefler T O\u2019Boyle M Leather H. ProGraML: A graph-based program representation for data flow analysis and compiler optimizations. Paper presented at: Thirty-Eighth International Conference on Machine Learning (ICML); 2021."},{"key":"e_1_3_3_14_2","doi-asserted-by":"crossref","unstructured":"Chen Z Gong Z Szaday JJ Wong DC Padua D Nicolau A Veidenbaum AV Watkinson N Sura Z Maleki S et\u00a0al. LORE: A loop repository for the evaluation of compilers. Paper presented at: 2017 IEEE International Symposium on Workload Characterization (IISWC); 2017; Seattle WA USA.","DOI":"10.1109\/IISWC.2017.8167779"},{"key":"e_1_3_3_15_2","doi-asserted-by":"crossref","unstructured":"Nuzman D Dyshel S Rohou E Rosen I Williams K Yuste D Cohen A Zaks A. Vapor SIMD: Auto-vectorize once run everywhere. Paper presented at: International Symposium on Code Generation and Optimization (CGO 2011); 2011; Chamonix France.","DOI":"10.1109\/CGO.2011.5764683"},{"key":"e_1_3_3_16_2","doi-asserted-by":"crossref","unstructured":"McFarlin DS Arbatov V Franchetti F Puschel M. Automatic SIMD vectorization of fast Fourier transforms for the Larrabee and AVX instruction sets. Paper presented at: Proceedings of the International Conference on Supercomputing; 2011; Tucson AZ USA.","DOI":"10.1145\/1995896.1995938"},{"key":"e_1_3_3_17_2","doi-asserted-by":"crossref","unstructured":"Leather H Cummins C. Machine learning in compilers: Past present and future. Paper presented at: 2020 Forum for Specification and Design Languages (FDL); 2020; Kiel Germany.","DOI":"10.1109\/FDL50818.2020.9232934"},{"key":"e_1_3_3_18_2","unstructured":"Trofin M Qian Y Brevdo E Lin Z Choromanski K Li D. MLGO: A machine learning guided compiler optimizations framework. arXiv. 2021. https:\/\/doi.org\/10.48550\/arXiv. 2101.04808"},{"key":"e_1_3_3_19_2","doi-asserted-by":"crossref","unstructured":"Mammadli R Jannesari A Wolf F. Static neural compiler optimization via deep reinforcement learning. Paper presented at: 2020 IEEE\/ACM 6th Workshop on the LLVM Compiler Infrastructure in HPC (LLVM-HPC) and Workshop on Hierarchical Parallelism for Exascale Computing (HiPar); 2020; Atlanta GA USA.","DOI":"10.1109\/LLVMHPCHiPar51896.2020.00006"},{"key":"e_1_3_3_20_2","first-page":"31","article-title":"Neural code comprehension: A learnable representation of code semantics","author":"Ben-Nun T","year":"2018","unstructured":"Ben-Nun T, Jakobovits AS, Hoefler T. Neural code comprehension: A learnable representation of code semantics. Adv Neural Inf Process Syst. 2018;31, 3589\u20133601.","journal-title":"Adv Neural Inf Process Syst"},{"key":"e_1_3_3_21_2","doi-asserted-by":"crossref","unstructured":"Brauckmann A Goens A Ertel S Castrillon J. Compiler-based graph representations for deep learning models of code. Paper presented at: Proceedings of the 29th International Conference on Compiler Construction; 2020; San Diego CA USA.","DOI":"10.1145\/3377555.3377894"},{"key":"e_1_3_3_22_2","unstructured":"Cummins C Fisches ZV Ben-Nun T Hoefler T O\u2019Boyle MF Leather H. ProGraML: A graph-based program representation for data flow analysis and compiler optimizations. Paper presented at: International Conference on Machine Learning; 2021; Virtual."},{"issue":"5","key":"e_1_3_3_23_2","doi-asserted-by":"crossref","first-page":"145","DOI":"10.1145\/358438.349320","article-title":"Exploiting superword level parallelism with multimedia instruction sets","volume":"35","author":"Larsen S","year":"2000","unstructured":"Larsen S, Amarasinghe S. Exploiting superword level parallelism with multimedia instruction sets. ACM SIGPLAN Not. 2000;35(5):145\u2013156.","journal-title":"ACM SIGPLAN Not"},{"key":"e_1_3_3_24_2","doi-asserted-by":"crossref","unstructured":"Chen Y Mendis C Amarasinghe S. All you need is superword-level parallelism: Systematic control-flow vectorization with SLP. Paper presented at: Proceedings of the 43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation; 2022; San Diego CA USA.","DOI":"10.1145\/3519939.3523701"},{"key":"e_1_3_3_25_2","doi-asserted-by":"crossref","unstructured":"Nuzman D Zaks A. Outer-loop vectorization: Revisited for short SIMD architectures. Paper presented at: Proceedings of the 17th International Conference on Parallel Architectures and Compilation Techniques; 2008; Toronto Ontario Canada.","DOI":"10.1145\/1454115.1454119"},{"key":"e_1_3_3_26_2","doi-asserted-by":"crossref","unstructured":"Baghsorkhi SS Vasudevan N Wu Y. FlexVec: Auto-vectorization for irregular loops. Paper presented at: Proceedings of the 37th ACM SIGPLAN Conference on Programming Language Design and Implementation; 2016; Santa Barbara CA USA.","DOI":"10.1145\/2908080.2908111"},{"issue":"6","key":"e_1_3_3_27_2","doi-asserted-by":"crossref","first-page":"1416","DOI":"10.1109\/TVLSI.2019.2897650","article-title":"Self-optimizing and self-programming computing systems: A combined compiler, complex networks, and machine learning approach","volume":"27","author":"Xiao Y","year":"2019","unstructured":"Xiao Y, Nazarian S, Bogdan P. Self-optimizing and self-programming computing systems: A combined compiler, complex networks, and machine learning approach. IEEE Trans Very Large Scale Integ Syst. 2019;27(6):1416\u20131427.","journal-title":"IEEE Trans Very Large Scale Integ Syst"},{"issue":"6","key":"e_1_3_3_28_2","doi-asserted-by":"crossref","first-page":"950","DOI":"10.1109\/TC.2021.3071507","article-title":"Plasticity-on-chip design: Exploiting self-similarity for data communications","volume":"70","author":"Xiao Y","year":"2021","unstructured":"Xiao Y, Nazarian S, Bogdan P. Plasticity-on-chip design: Exploiting self-similarity for data communications. IEEE Trans Comput. 2021;70(6):950\u2013962.","journal-title":"IEEE Trans Comput"},{"key":"e_1_3_3_29_2","doi-asserted-by":"crossref","unstructured":"Xiao Y Xue Y Nazarian S Bogdan P. A load balancing inspired optimization framework for exascale multicore systems: A complex networks approach. Paper presented at: 2017 IEEE\/ACM International Conference on Computer-Aided Design (ICCAD); 2017; Irvine CA USA.","DOI":"10.1109\/ICCAD.2017.8203781"},{"key":"e_1_3_3_30_2","unstructured":"Lattner C Adve V. LLVM: A compilation framework for lifelong program analysis & transformation. Paper presented at: International symposium on code generation and optimization 2004. CGO 2004; 2004; San Jose CA USA."},{"key":"e_1_3_3_31_2","volume-title":"Reinforcement learning: An introduction","author":"Sutton RS","year":"2018","unstructured":"Sutton RS, Barto AG. Reinforcement learning: An introduction. Cambridge (MA): MIT Press; 2018."},{"key":"e_1_3_3_32_2","first-page":"1025","article-title":"Inductive representation learning on large graphs","volume":"30","author":"Hamilton W","year":"2017","unstructured":"Hamilton W, Ying Z, Leskovec J. Inductive representation learning on large graphs. Adv Neural Inf Process Syst. 2017;30:1025\u20131035.","journal-title":"Adv Neural Inf Process Syst"},{"key":"e_1_3_3_33_2","unstructured":"Kipf TN Welling M. Semi-supervised classification with graph convolutional networks. arXiv. 2016. https:\/\/doi.org\/10.48550\/arXiv. 1609.02907"},{"key":"e_1_3_3_34_2","unstructured":"Moritz P Nishihara R Wang S Tumarov A Liaw R Liang E Elibol M Yang Z Paul W Jordan MI et\u00a0al. Ray: A distributed framework for emerging AI applications. Paper presented at: 13th USENIX Symposium on Operating Systems Design and Implementation (OSDI 18); 2018; Carlsbad CA USA."},{"key":"e_1_3_3_35_2","unstructured":"Liang E Liaw R Moritz P Nishihara R Fox R Goldberg K Gonzalez JE Jordan MI Stoica I. Ray RLlib: A composable and scalable reinforcement learning library. 31st Conference on Neural Information Processing Systems (NIPS 2017); 2017; Long Beach CA USA."},{"key":"e_1_3_3_36_2","unstructured":"Liaw R Liang E Nishihara R Moritz P Gonzalez JE Stoica I. Tune: A research platform for distributed model selection and training. arXiv. 2018. https:\/\/doi.org\/10.48550\/arXiv.1807.05118."},{"key":"e_1_3_3_37_2","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3290353","article-title":"code2vec: Learning distributed representations of code","volume":"3","author":"Alon U","year":"2019","unstructured":"Alon U, Zilberstein M, Levy O, Yahav E. code2vec: Learning distributed representations of code. Proc ACM Progr Lang. 2019;3:1\u201329.","journal-title":"Proc ACM Progr Lang"},{"key":"e_1_3_3_38_2","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/1186736.1186737","article-title":"SPEC CPU2006 benchmark descriptions","volume":"34","author":"Henning JL","year":"2006","unstructured":"Henning JL. SPEC CPU2006 benchmark descriptions. ACM SIGARCH Comput Architect News. 2006;34:1\u201317.","journal-title":"ACM SIGARCH Comput Architect News"},{"key":"e_1_3_3_39_2","unstructured":"Bailey D Harris T Saphir W Van Der Wijngaart R Woo A Yarrow M. The NAS parallel benchmarks 2.0. Technical Report NAS-95-020. NASA Ames Research Center; 1995."},{"key":"e_1_3_3_40_2","unstructured":"Pouchet LN. Polybench: The polyhedral benchmark suite. https:\/\/www.cs.colostate.edu\/~pouchet\/software\/polybench\/. 2012."},{"key":"e_1_3_3_41_2","unstructured":"Guthaus MR Ringenberg JS Ernst D Austin TM Mudge T Brown RB. MiBench: A free commercially representative embedded benchmark suite. Paper presented at: Proceedings of the Fourth Annual IEEE International Workshop on Workload Characterization; 2001; Austin TX USA."},{"key":"e_1_3_3_42_2","doi-asserted-by":"crossref","unstructured":"Perozzi B Al-Rfou R Skiena S. DeepWalk: Online learning of social representations. Paper presented at: Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; 2014; New York NY USA.","DOI":"10.1145\/2623330.2623732"}],"container-title":["Intelligent Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/spj.science.org\/doi\/pdf\/10.34133\/icomputing.0113","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,2]],"date-time":"2025-06-02T15:35:48Z","timestamp":1748878548000},"score":1,"resource":{"primary":{"URL":"https:\/\/spj.science.org\/doi\/10.34133\/icomputing.0113"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,1]]},"references-count":41,"alternative-id":["10.34133\/icomputing.0113"],"URL":"https:\/\/doi.org\/10.34133\/icomputing.0113","relation":{},"ISSN":["2771-5892"],"issn-type":[{"type":"electronic","value":"2771-5892"}],"subject":[],"published":{"date-parts":[[2025,1]]},"assertion":[{"value":"2024-01-09","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-01-04","order":1,"name":"revised","label":"Revised","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-01-21","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-06-02","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}],"article-number":"0113"}}