NeurIPS 2026 / Evaluations and Datasets

SCDBench

A Benchmark for LLM-Based Smart Contract Decompilers

Kaihua Qin1Dawn Song2Arthur Gervais3

1 University of Warwick2 UC Berkeley3 University College London

SCDBench evaluates LLM-based smart contract decompilers using 600 real-world Ethereum contracts and 227,383 semantic checkpoints. Frontier models achieve higher semantic consistency than the open-weight baseline, while GLM-5 with reasoning outperforms its instruct variant on this metric (20.7% versus 17.7% after repair). One-step compiler-guided repair improves compilation, ABI recovery, and semantic consistency for every model. However, structural success does not ensure faithful behavior. Repaired GPT-5.3-Codex leads compilation and ABI recovery, while repaired Claude Opus 4.7 achieves the highest overall semantic consistency. Even the best setting perfectly recovers only 42 of 600 contracts (7.0%) under the benchmark's checks. These main findings persist on a second 600-contract sample, highlighting both the value of compiler feedback and the need for stronger semantic recovery.

Decompilation results

Zero-shot generation and one-step compilation repair.

Sample
Complexity
Setting

Original sample: 600 contracts and 14,553 public functions.

All contracts / Both settings

Best results after one-step repair

Compilation
90.3%GPT-5.3-Codex
ABI recovery
0.896GPT-5.3-Codex
Semantic consistency
29.4%Claude Opus 4.7
Perfect recovery
42 / 600Claude Opus 4.7
Original sample results before and after one-step repair
ModelSettingFormat% contractsCompilation% contractsABI recoverymicro-F1Semantics% functionsPerfect recoverycontracts / 600
Claude Opus 4.7Zero-shot72.5%56.8%0.61522.5%33 / 600
Claude Opus 4.7Repaired72.5%69.2%0.72129.4%42 / 600
GPT-5.3-CodexZero-shot94.0%70.2%0.76619.6%33 / 600
GPT-5.3-CodexRepaired94.0%90.3%0.89628.0%41 / 600
GLM-5Zero-shot86.7%36.8%0.4289.9%14 / 600
GLM-5Repaired86.7%67.2%0.69720.7%18 / 600
GLM-5 (instruct)Zero-shot90.0%24.0%0.2875.8%4 / 600
GLM-5 (instruct)Repaired90.0%64.3%0.65817.7%6 / 600

Bold: best within each setting. High reasoning except GLM-5 (instruct). Perfect recovery requires all benchmarked functions to pass, with no missing or spurious functions.

Effect of one-step repair

Zero-shotRepaired

Benchmark

SampleContractsPublic functionsSemantic checkpoints
Original60014,553227,383
Second60014,578226,138

200 easy, 200 medium, and 200 hard contracts per sample. Original-sample code coverage: 77.8%. The two samples share no contracts or selected near-duplicate clusters.

Evaluation protocol
  1. 1. Format

    Complete Solidity and compiler settings.

  2. 2. Compilation

    A valid compiled contract.

  3. 3. ABI

    Recovered public function signatures.

  4. 4. Semantics

    Matching returns, reverts, logs, and storage changes.

Scores are cumulative. One-step repair uses compiler feedback on format-valid outputs that fail compilation. Contracts are sampled from source-verified Ethereum deployments. Passing finite checkpoints does not prove equivalence over all executions.

Paper and resources

Citation
BibTeX
@inproceedings{qin2026scdbench,
  title = {{SCDBench}: A Benchmark for {LLM}-Based
           Smart Contract Decompilers},
  author = {Qin, Kaihua and Song, Dawn and Gervais, Arthur},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://arxiv.org/abs/2605.29059}
}