Metraipolis › archive › dc_d021e458930e
RAGas: Retrieval-Augmented Gas Optimization for Smart Contracts with Continuous Knowledge Integration — arXiv:2608.15857
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.15857
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-18T17:29:03.624Z
- SHA-256 of the archived text
f6cc09c494d8a765db633899399518f6804f6af786e33029ed509bfc734cf9af- Stable URL of this page
https://metraipolis.com/documento/dc_d021e458930e
How to cite
RAGas: Retrieval-Augmented Gas Optimization for Smart Contracts with Continuous Knowledge Integration — arXiv:2608.15857 — arXiv (en), https://arxiv.org/abs/2608.15857 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_d021e458930e (Metraipolis archive dc_d021e458930e, sha256 f6cc09c494d8a765db633899399518f6804f6af786e33029ed509bfc734cf9af)
BibTeX
@misc{dcd021e458930e,
title = {RAGas: Retrieval-Augmented Gas Optimization for Smart Contracts with Continuous Knowledge Integration — arXiv:2608.15857},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.15857},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_d021e458930e; sha256 f6cc09c494d8a765db633899399518f6804f6af786e33029ed509bfc734cf9af},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.15857. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Ethereum is now integral to mission-critical sectors, including finance, healthcare, and supply chain management. Execution fees, commonly referred to as Gas, scale with the computational complexity of their functions. Smart contracts on Ethereum incur execution fees, known as Gas, which increase with computational complexity. Thus, optimizing Gas-intensive code while preserving functional equivalence significantly lowers deployment costs. No existing system continuously exploits evolving Gas usage patterns. We systematically analyze syntactic and semantic constructs that drive excessive Gas use. This yields six high-level categories covering twelve fine-grained antipatterns underpinning a curated knowledge base. We operationalize these insights with RAGas, a three-stage retrieval-augmented generation framework that uses a large language model to pinpoint and automatically fix Gas inefficiencies. Experiments on deployed contracts demonstrate that RAGas reduces Gas usage by up to 11% and achieves high precision and recall in detecting code snippets exhibiting Gas wastage. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-18 in cs.AI). Categorie arXiv: Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2608.15857 — 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-18T16:29:13.836Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-08-18?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).