Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

ECCO: Evidence-Driven Causal Reasoning for Compiler Optimization

About

Compiler auto-tuning faces a dichotomy between traditional black-box search methods, which lack semantic guidance, and recent Large Language Model (LLM) approaches, which often suffer from superficial pattern matching and causal opacity. In this paper, we introduce ECCO, a framework that bridges interpretable reasoning with combinatorial search. We first propose a reverse engineering methodology to construct a Chain-of-Thought dataset, explicitly mapping static code features to verifiable performance evidence. This enables the model to learn the causal logic governing optimization decisions rather than merely imitating sequences. Leveraging this interpretable prior, we design a collaborative inference mechanism where the LLM functions as a strategist, defining optimization intents that dynamically guide the mutation operations of a genetic algorithm. Experimental results on seven datasets demonstrate that ECCO significantly outperforms the LLVM opt -O3 baseline, achieving an average 24.44% reduction in cycles.

Haolin Pan, Lianghong Huang, Jinyuan Dong, Mingjie Xing, Yanjun Wu• 2026

Related benchmarks

TaskDatasetResultRank
Compiler Optimizationcbench
I_O30.3519
13
Compiler Optimizationchstone
I_O335.5
13
Compiler OptimizationMIBench
I_O327.12
13
Compiler Optimizationnpb
I_O332.97
13
Compiler Optimizationtensorflow
I_O30.1172
13
Compiler Optimizationopencv
I_O315.58
13
Compiler OptimizationBLAS
I_O312.99
13
Showing 7 of 7 rows

Other info

Follow for update