Metraipolis › archive › dc_1edf63979fe4

Can Large Language Models Recover Semantic Optimization Opportunities That Compilers Miss? — arXiv:2608.03983

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.03983
License (as archived)
CC0-1.0
Archived
2026-10-31T12:19:43.683Z
SHA-256 of the archived text
0c08c5f221be0f9f525808ed18d5bb8bde9167904fe7fa0f25300055476468ac
Stable URL of this page
https://metraipolis.com/documento/dc_1edf63979fe4

How to cite

Can Large Language Models Recover Semantic Optimization Opportunities That Compilers Miss? — arXiv:2608.03983 — arXiv (en), https://arxiv.org/abs/2608.03983 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_1edf63979fe4 (Metraipolis archive dc_1edf63979fe4, sha256 0c08c5f221be0f9f525808ed18d5bb8bde9167904fe7fa0f25300055476468ac)
BibTeX
@misc{dc1edf63979fe4,
  title = {Can Large Language Models Recover Semantic Optimization Opportunities That Compilers Miss? — arXiv:2608.03983},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.03983},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_1edf63979fe4; sha256 0c08c5f221be0f9f525808ed18d5bb8bde9167904fe7fa0f25300055476468ac},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.03983. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Optimizing compilers miss profitable transformations when their enabling semantics are absent from the analyzed program representation. We ask whether large language models (LLMs) can recover such semantics from heterogeneous C/C++ context and realize them as validated, contract-preserving artifacts. We introduce SeGaBench, an executable benchmark containing 100 synthetic and 20 source-backed cases spanning low-level assumptions, data-structure invariants, and high-level semantic lifting. Each case includes hidden enabling semantics, an oracle artifact, correctness and semantic validators, and a reproducible performance protocol. We evaluate five LLMs using five independent responses per case. The strongest model produces correct artifacts in 94.8% of responses, achieves at least 1.05x speedup in 83.3%, and obtains a performance success on 93.3% of cases. Nevertheless, correct artifacts often close only part of the oracle gap. These results show that LLMs can complement compiler analysis as speculative semantic proposers, provided that their artifacts are validated and evaluated.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-05 in cs.AI).
Categorie arXiv: Programming Languages (cs.PL) ; Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2608.03983 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-31T12:05:53.106Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-08-05?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).