Live
Black Hat USAAI BusinessBlack Hat AsiaAI BusinessAutomate Your Handyman Pricing: The True Hourly Cost AI ForgetsDev.to AIToken Usage Is the New RAM UsageDev.to AIStop Writing Rules for AI AgentsDev.to AIBig Tech firms are accelerating AI investments and integration, while regulators and companies focus on safety and responsible adoption.Dev.to AIWhat’s the point of an AI novel?Financial Times TechLarge Language Models for Education: A Survey and OutlookDev.to AIHow to Publish a Paid API for AI Agents Using MCP and AgenticTradeDev.to AILatent Reasoning Sprint #3: Activation Difference Steering and Logit LensLessWrongDocker Model Runner vs Ollama: Local AI Deployment Compared 2026Dev.to AII Built an AI Content Pipeline That Publishes 4 SEO-Optimized Articles Per Day — Here's the ArchitectureDEV CommunityMy Reading Journey: Jan-Mar 2026DEV CommunityBuilding a Second Brain for Claude CodeDEV CommunityBlack Hat USAAI BusinessBlack Hat AsiaAI BusinessAutomate Your Handyman Pricing: The True Hourly Cost AI ForgetsDev.to AIToken Usage Is the New RAM UsageDev.to AIStop Writing Rules for AI AgentsDev.to AIBig Tech firms are accelerating AI investments and integration, while regulators and companies focus on safety and responsible adoption.Dev.to AIWhat’s the point of an AI novel?Financial Times TechLarge Language Models for Education: A Survey and OutlookDev.to AIHow to Publish a Paid API for AI Agents Using MCP and AgenticTradeDev.to AILatent Reasoning Sprint #3: Activation Difference Steering and Logit LensLessWrongDocker Model Runner vs Ollama: Local AI Deployment Compared 2026Dev.to AII Built an AI Content Pipeline That Publishes 4 SEO-Optimized Articles Per Day — Here's the ArchitectureDEV CommunityMy Reading Journey: Jan-Mar 2026DEV CommunityBuilding a Second Brain for Claude CodeDEV Community
AI NEWS HUBbyEIGENVECTOREigenvector

SCPatcher: Automated Smart Contract Code Repair via Retrieval-Augmented Generation and Knowledge Graph

arXiv cs.SEby [Submitted on 1 Apr 2026]April 2, 20261 min read1 views
Source Quiz

arXiv:2604.00687v1 Announce Type: new Abstract: Smart contract vulnerabilities can cause substantial financial losses due to the immutability of code after deployment. While existing tools detect vulnerabilities, they cannot effectively repair them. In this paper, we propose SCPatcher, a framework that combines retrieval-augmented generation with a knowledge graph for automated smart contract repair. We construct a knowledge graph from 5,000 verified Ethereum contracts, extracting function-level relationships to build a semantic network. This graph serves as an external knowledge base that enhances Large Language Model reasoning and enables precise vulnerability patching. We introduce a two-stage repair strategy, initial knowledge-guided repair followed by Chain-of-Thought reasoning for co

View PDF HTML (experimental)

Abstract:Smart contract vulnerabilities can cause substantial financial losses due to the immutability of code after deployment. While existing tools detect vulnerabilities, they cannot effectively repair them. In this paper, we propose SCPatcher, a framework that combines retrieval-augmented generation with a knowledge graph for automated smart contract repair. We construct a knowledge graph from 5,000 verified Ethereum contracts, extracting function-level relationships to build a semantic network. This graph serves as an external knowledge base that enhances Large Language Model reasoning and enables precise vulnerability patching. We introduce a two-stage repair strategy, initial knowledge-guided repair followed by Chain-of-Thought reasoning for complex vulnerabilities. Evaluated on a diverse set of vulnerable contracts, SCPatcher achieves 81.5% overall repair rate and 91.0% compilation pass rate, substantially outperforming existing methods.

Comments: 6 pages, 3 figures

Subjects:

Software Engineering (cs.SE)

Cite as: arXiv:2604.00687 [cs.SE]

(or arXiv:2604.00687v1 [cs.SE] for this version)

https://doi.org/10.48550/arXiv.2604.00687

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Shipeng Ye [view email] [v1] Wed, 1 Apr 2026 09:44:45 UTC (303 KB)

Was this article helpful?

Sign in to highlight and annotate this article

AI
Ask AI about this article
Powered by Eigenvector · full article context loaded
Ready

Conversation starters

Ask anything about this article…

Daily AI Digest

Get the top 5 AI stories delivered to your inbox every morning.

More about

modellanguage modelannounce

Knowledge Map

Knowledge Map
TopicsEntitiesSource
SCPatcher: …modellanguage mo…announcereasoningpaperarxivarXiv cs.SE

Connected Articles — Knowledge Graph

This article is connected to other articles through shared AI topics and tags.

Knowledge Graph100 articles · 181 connections
Scroll to zoom · drag to pan · click to open

Discussion

Sign in to join the discussion

No comments yet — be the first to share your thoughts!

More in Models