English

GroupTuner: Efficient Group-Aware Compiler Auto-Tuning

Software Engineering 2025-06-25 v2

Abstract

Modern compilers typically provide hundreds of options to optimize program performance, but users often cannot fully leverage them due to the huge number of options. While standard optimization combinations (e.g., -O3) provide reasonable defaults, they often fail to deliver near-peak performance across diverse programs and architectures. To address this challenge, compiler auto-tuning techniques have emerged to automate the discovery of improved option combinations. Existing techniques typically focus on identifying critical options and prioritizing them during the search to improve efficiency. However, due to limited tuning iterations, the resulting data is often sparse and noisy, making it highly challenging to accurately identify critical options. As a result, these algorithms are prone to being trapped in local optima. To address this limitation, we propose GroupTuner, a group-aware auto-tuning technique that directly applies localized mutation to coherent option groups based on historically best-performing combinations, thus avoiding explicitly identifying critical options. By forgoing the need to know precisely which options are most important, GroupTuner maximizes the use of existing performance data, ensuring more targeted exploration. Extensive experiments demonstrate that GroupTuner can efficiently discover competitive option combinations, achieving an average performance improvement of 12.39% over -O3 while requiring only 77.21% of the time compared to the random search algorithm, significantly outperforming state-of-the-art methods.

Keywords

Cite

@article{arxiv.2505.08598,
  title  = {GroupTuner: Efficient Group-Aware Compiler Auto-Tuning},
  author = {Bingyu Gao and Mengyu Yao and Ziming Wang and Dong Liu and Ding Li and Xiangqun Chen and Yao Guo},
  journal= {arXiv preprint arXiv:2505.08598},
  year   = {2025}
}

Comments

The final version of this paper is going to appear in the ACM SIGPLAN/SIGBED International Conference on Languages, Compilers, and Tools for Embedded Systems (LCTES'25), June 16-17, 2025, Seoul, Republic of Korea

R2 v1 2026-06-28T23:31:34.566Z