# ECCO: Evidence-Driven Causal Reasoning for Compiler Optimization

Source: [ECCO: Evidence-Driven Causal Reasoning for Compiler Optimization](<https://www.sota2.com/research/paper/69818124a8b01e76cc8e22d1>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-02-04T05:00:04.388Z

Authors: Haolin Pan, Lianghong Huang, Jinyuan Dong, Mingjie Xing, Yanjun Wu

Published: 2026-01-23T01:23:20.000Z

## Abstract

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.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Compiler Optimization on cbench](<https://www.sota2.com/research/sota/compiler-optimization-on-cbench.md>): Compiler Optimization; cbench; I\_O3: 0.3519.

- [Compiler Optimization on chstone](<https://www.sota2.com/research/sota/compiler-optimization-on-chstone.md>): Compiler Optimization; chstone; I\_O3: 35.5.

- [Compiler Optimization on mibench](<https://www.sota2.com/research/sota/compiler-optimization-on-mibench.md>): Compiler Optimization; MIBench; I\_O3: 27.12.

- [Compiler Optimization on npb](<https://www.sota2.com/research/sota/compiler-optimization-on-npb.md>): Compiler Optimization; npb; I\_O3: 32.97.

- [Compiler Optimization on tensorflow](<https://www.sota2.com/research/sota/compiler-optimization-on-tensorflow.md>): Compiler Optimization; tensorflow; I\_O3: 0.1172.

- [Compiler Optimization on opencv](<https://www.sota2.com/research/sota/compiler-optimization-on-opencv.md>): Compiler Optimization; opencv; I\_O3: 15.58.

- [Compiler Optimization on blas](<https://www.sota2.com/research/sota/compiler-optimization-on-blas.md>): Compiler Optimization; BLAS; I\_O3: 12.99.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2602.00087>)

[PDF](<https://arxiv.org/pdf/2602.00087.pdf>)
