CausalTuner: Feature-Aware Causal Guidance for Compiler Auto-tuning
Modern compilers like LLVM and GCC provide hundreds of optimization options (e.g., flags or passes), yet their fixed, predefined sequences (e.g., -O3) often fail to exploit the full performance potential of specific programs. Search-based auto-tuning has emerged to address this pass selection and ordering problem — known as the phase ordering problem. Existing approaches typically reduce search complexity by identifying critical flags or employing localized group-based mutations. However, these methods often remain feature-agnostic or rely on manually designed static mappings during the online search. Consequently, they fail to adaptively link program features to optimization logic. Furthermore, they are prone to being misled by spurious correlations and noise inherent in sparse performance data.
To address this limitation, we propose CausalTuner, a feature-aware framework that injects causal rules into a Two-Phase Rule-Injected Search Engine to guide the optimization search. By identifying performance-critical pass subsequences and mining the causal dependencies between program features and optimization effectiveness, CausalTuner effectively transforms the search process from heuristic-driven to causal-guided. We evaluate CausalTuner on a diverse range of benchmarks, including cBench, Polybench, SPEC CPU 2017, and llama.cpp. CausalTuner consistently outperforms existing autotuning methods, discovering superior optimization configurations more efficiently with fewer search iterations.
Mon 15 JunDisplayed time zone: Mountain Time (US & Canada) change
14:00 - 15:20 | Session 1: Advanced Compiler TuningLCTES at Flatirons 3 Chair(s): Myeonggyun Han Kyungpook National University | ||
14:00 10mKeynote | Opening Remarks LCTES Jeronimo Castrillon TU Dresden, Germany | ||
14:10 22mTalk | RAPO: Retrieval-Augmented Phase Ordering LCTES Jinwook Yang Seoul National University, Junghyun Lee Seoul National University, South Korea, Yeonsun Hong Seoul National University, Hyojin Sung Seoul National University DOI | ||
14:32 22mTalk | CausalTuner: Feature-Aware Causal Guidance for Compiler Auto-tuning LCTES Jiaqing Zhong National University of Defense Technology, Juan Chen College of Computer Science and Technology, National University of Defense Technology, China, Yichang Zhou National University of Defense Technology, Kuan Li Dongguan University of Technology DOI | ||
14:54 22mTalk | Empirical Observations about Profile-Guided Optimizations for Mainstream C/C++ Compilers LCTES DOI | ||