paper-with-me

홈 › Papers

GasAgent: A Multi-Agent Framework for Automated Gas Optimization in Smart Contracts

2025-07-21 · Jingyi Zheng, Zifan Peng, Yule Liu, Junfeng Wang, Yifan Liao, Wenhan Dong, Xinlei He arxiv

Smart contracts are trustworthy, immutable, and automatically executed programs on the blockchain. Their execution requires the Gas mechanism to ensure efficiency and fairness. However, due to non-optimal coding practices, many contracts contain Gas waste patterns that need to be optimized. Existing solutions mostly rely on manual discovery, which is inefficient, costly to maintain, and difficult to scale. Recent research uses large language models (LLMs) to explore new Gas waste patterns. However, it struggles to remain compatible with existing patterns, often produces redundant patterns, and requires manual validation/rewriting. To address this gap, we present GasAgent, the first multi-agent system for smart contract Gas optimization that combines compatibility with existing patterns and automated discovery/validation of new patterns, enabling end-to-end optimization. GasAgent consists of four specialized agents, Seeker, Innovator, Executor, and Manager, that collaborate in a closed loop to identify, validate, and apply Gas-saving improvements. Experiments on 100 verified real-world contracts demonstrate that GasAgent successfully optimizes 82 contracts, achieving an average deployment Gas savings of 9.97%. In addition, our evaluation confirms its compatibility with existing tools and validates the effectiveness of each module through ablation studies. To assess broader usability, we further evaluate 500 contracts generated by five representative LLMs across 10 categories and find that GasAgent optimizes 79.8% of them, with deployment Gas savings ranging from 4.79% to 13.93%, showing its usability as the optimization layer for LLM-assisted smart contract development.

📄 PDF Abstract BibTeX arXiv:2507.15761

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

AgenticTCAD: A LLM-based Multi-Agent Framework for Automated TCAD Code Generation and Device Optimization

2025-12-26 · Guangxi Fan, Tianliang Ma, Xuguang Sun, Xun Wang 외 arxiv

With the continued scaling of advanced technology nodes, the design-technology co-optimization (DTCO) paradigm has become increasingly critical, rendering efficient device design and optimization essential. In the domain…

Code Generation

Environment-Grounded Automated Prompt Optimization for LLM Game Agents

2026-06-16 · Rean Clive Fernandes, Lukas Fehring, Theresa Eimer, Marius Lindauer 외 arxiv

LLM agents in interactive environments are highly sensitive to their prompts, yet prompt engineering remains a manual, task-specific process. We introduce an automated prompt optimization framework for LLM agents that de…

Prompt Engineering

Youtu-Agent: Scaling Agent Productivity with Automated Generation and Hybrid Policy Optimization

2025-12-31 · Yuchen Shi, Yuzheng Cai, Siqi Cai, Zihan Xu 외 arxiv

Existing Large Language Model (LLM) agent frameworks face two significant challenges: high configuration costs and static capabilities. Building a high-quality agent often requires extensive manual effort in tool integra…

Reinforcement LearningPrompt Engineering

Co-evolving Agent Architectures and Interpretable Reasoning for Automated Optimization

2026-04-20 · Jiahao Huang, Peilan Xu, Xiaoya Nan, Wenjian Luo arxiv

Automating operations research (OR) with large language models (LLMs) remains limited by hand-crafted reasoning--execution workflows. Complex OR tasks require adaptive coordination among problem interpretation, mathemati…

Code Generation

MARS: A Multi-Agent Framework Incorporating Socratic Guidance for Automated Prompt Optimization

2025-03-21 · Jian Zhang, Zhangqi Wang, Haiping Zhu, Jun Liu 외

The basic question-answering format of large language models involves inputting a prompt and receiving a response, and the quality of the prompt directly impacts the effectiveness of the response. Automated Prompt Optimi…

Question Answering