Metraipolis › archive › dc_53b94077195b

Code Transformation Rule Synthesis using LLMs: Potential and Limits — arXiv:2609.03592

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.03592
License (as archived)
CC0-1.0
Archived
2026-10-17T02:16:18.277Z
SHA-256 of the archived text
a01b6b218a1810e0d459e0f6ba6782b1c0911f40e627fc50c57eec21d2d5b9aa
Stable URL of this page
https://metraipolis.com/documento/dc_53b94077195b

How to cite

Code Transformation Rule Synthesis using LLMs: Potential and Limits — arXiv:2609.03592 — arXiv (en), https://arxiv.org/abs/2609.03592 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_53b94077195b (Metraipolis archive dc_53b94077195b, sha256 a01b6b218a1810e0d459e0f6ba6782b1c0911f40e627fc50c57eec21d2d5b9aa)
BibTeX
@misc{dc53b94077195b,
  title = {Code Transformation Rule Synthesis using LLMs: Potential and Limits — arXiv:2609.03592},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.03592},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_53b94077195b; sha256 a01b6b218a1810e0d459e0f6ba6782b1c0911f40e627fc50c57eec21d2d5b9aa},
  year = {2026}
}

Archived text

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

Due to their black-box nature, LLMs suffer from limited explain- ability and a lack of determinism. Their usage cost can also rise, particularly with repetitive tasks on large codebases. To mitigate this, we conduct a novel empirical study targeting three domain- specific languages for transformation rules, namely Comby, GritQL, and Ast-Grep. We evaluate three LLMs (GPT-5.4, GPT-oss-120B, and Llama3.1-8B) on six diverse datasets covering four software- evolution tasks: API misuse correction, program repair, API migra- tion, and language version migration. Our results provide evidence that transformation rule synthesis moves beyond proof-of-concept with strong frontier models. GPT-5.4 achieves consistently high rule applicability rates and produces transformations closest to the ground truth across most benchmarks. Smaller and open-weight GPT-oss-120B and Llama3.1-8B models remain effective for simpler, localized changes but struggle with complex migration scenarios. We also observe non-negligible generalizability through the usage of meta-variables and through a high reuse score in the first quartile of many datasets. Finally, when compared to the anti-unification algorithm, LLMs outperform it in correctness, but underperform in rule applicability. Overall, our results show great potential for LLMs to generate sound, correct, generalizable, and reusable rules.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-04 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2609.03592 — 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-17T02:03:40.004Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-09-04?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).