Reinforcement Learning for Automated Pragma-Based Loop Optimization

Loops often dominate the execution time in high-performance computing, effective loop optimization is critical for overall performance. We propose a reinforcement learning–based framework that automatically discovers and composes transformations—including tiling, fusion, interchange, and unrolling—and evaluate the framework on a subset of Polybench benchmarks. Compared to the Polly compiler baseline, our approach achieves an average speedup of 2.46×, peaking at 7× on the jacobi-1d kernel, while also consistently outperforming a global greedy scheduling algorithm. By adaptively combining multiple transformations, the RL-based method exploits deeper synergies with minimal overhead once trained, thus alleviating the repeated manual tuning and hardware-specific adjustments required by conventional techniques.

Authors

Institutions

Publication Details

Published
2025-03-14
DOI
https://doi.org/10.1109/itoec63606.2025.10968878
Primary Topic
Formal Methods in Verification
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Reinforcement Learning for Automated Pragma-Based Loop Optimization

Qilong Zheng, Jiaxuan Li
Formal Methods in Verification
article

Reinforcement Learning for Automated Pragma-Based Loop Optimization

Qilong Zheng, Jiaxuan Li
article en

Abstract

Loops often dominate the execution time in high-performance computing, effective loop optimization is critical for overall performance. We propose a reinforcement learning–based framework that automatically discovers and composes transformations—including tiling, fusion, interchange, and unrolling—and evaluate the framework on a subset of Polybench benchmarks. Compared to the Polly compiler baseline, our approach achieves an average speedup of 2.46×, peaking at 7× on the jacobi-1d kernel, while also consistently outperforming a global greedy scheduling algorithm. By adaptively combining multiple transformations, the RL-based method exploits deeper synergies with minimal overhead once trained, thus alleviating the repeated manual tuning and hardware-specific adjustments required by conventional techniques.

University of Science and Technology of China (CN)
Openalex Percentile: Top 91%
Formal Methods in Verification
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Reinforcement Learning for Automated Pragma-Based Loop Optimization — Qilong Zheng, Jiaxuan Li · (2025) | TGRS Research Map | TGRS