NeurIPS 2026QuestionsPapersAreasAboutMarkdown

SCDBench: A Benchmark for LLM-Based Smart Contract Decompilers

Kaihua Qin, Dawn Song, Arthur Gervais

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: LLM Agents, Evals & Benchmarks › Verified Code Synthesis and Testing · Type: benchmark or dataset · Keywords: smart contract decompilation, LLM evaluation, benchmark, semantic consistency, blockchain security

Areas: Code & Coding Agents › Code Verification › Code benchmarks; Safety & Security › Cybersecurity › Vulnerability Detection; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Software Engineering Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › Software Engineering Benchmarks

Summary

SCDBench introduces a large-scale dataset of 600 real-world Solidity contracts with paired bytecode and ground-truth source code, and a multi-stage benchmark that evaluates decompilation across format completeness, compilability, ABI recovery, and semantic consistency, revealing that frontier LLMs only perfectly decompile 42 of the contracts.

Explained to a 5-year-old

People want to turn hidden computer code into readable code for smart contracts. They made a big collection of real contracts and a way to test if the code is correct. They check if the code looks right, can be compiled, matches the contract's actions, and does the same thing as the original. They tried using big AI models to do this, but the models only got a few right. This helps make sure the contracts are safe.

Explained to a 5-year-old, longer

People need to understand the code that runs on blockchain, which is hidden and hard to read. They want to turn that hidden code into normal language code that developers can understand. To check if a tool does this well, they need a big set of real examples. They made a collection of many real smart contracts, each with its hidden code and the correct readable version. They also added special checkpoints that let them see if the code does the same things as the original. The test checks four things: does the output look like proper code, can it be compiled, does it have the right interface, and does it behave exactly like the original. They tried using the newest AI models to do the translation, but the models often made mistakes. Even the best AI model only got about seven percent of the contracts completely right. They also tried a trick where the AI helps fix compilation errors, which helped a bit. This work gives researchers a reliable way to compare different translation tools. It also shows where more research is needed, especially for making the behavior match exactly. Ultimately, this helps make blockchain applications safer and more trustworthy.

For a technical reader

The work creates a comprehensive benchmark that pairs 600 real Solidity contracts with their bytecode and ground-truth source, then evaluates decompilation across four stages: syntactic completeness, compilability, ABI recovery, and semantic fidelity via replay. It tests several state-of-the-art LLMs in zero-shot settings and shows that while they can generate compilable code, semantic correctness remains low, with only 42 contracts fully correct. Adding a same-model compilation-repair step improves results at modest cost. The benchmark provides a reproducible, multi-dimensional evaluation framework for future research in automated contract recovery.

Problem

Evaluating smart contract decompilers is challenging because existing benchmarks use narrow datasets, inconsistent metrics, and limited checks of semantic correctness, making it difficult to assess whether generated source code truly matches the original contract's behavior.

Method

The approach creates a dataset of 600 real-world Solidity contracts with bytecode and ground-truth source code, and evaluates decompiler outputs through four cumulative stages: format completeness, compilability, ABI recovery, and semantic consistency via differential replay.

Results

Frontier LLMs produce structured and compilable Solidity, yet the best model only perfectly decompiles 42 out of 600 contracts; adding same-model compilation repair improves performance at modest additional cost.

Contributions

The paper provides a large-scale dataset with semantic checkpoints and a multi-stage benchmark for LLM-based decompilation, highlighting the gap in semantic consistency and the benefit of compilation repair.

Practical relevance

SCDBench offers a reproducible evaluation framework to improve the reliability of smart contract decompilation, enhancing blockchain security and transparency.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction