NeurIPS 2026 / Evaluations and Datasets
SCDBench
A Benchmark for LLM-Based Smart Contract Decompilers
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.
Original sample: 600 contracts and 14,553 public functions.
All contracts / Both settingsBest 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
| Model | Setting | Format% contracts | Compilation% contracts | ABI recoverymicro-F1 | Semantics% functions | Perfect recoverycontracts / 600 |
|---|---|---|---|---|---|---|
| Claude Opus 4.7 | Zero-shot | 72.5% | 56.8% | 0.615 | 22.5% | 33 / 600 |
| Claude Opus 4.7 | Repaired | 72.5% | 69.2% | 0.721 | 29.4% | 42 / 600 |
| GPT-5.3-Codex | Zero-shot | 94.0% | 70.2% | 0.766 | 19.6% | 33 / 600 |
| GPT-5.3-Codex | Repaired | 94.0% | 90.3% | 0.896 | 28.0% | 41 / 600 |
| GLM-5 | Zero-shot | 86.7% | 36.8% | 0.428 | 9.9% | 14 / 600 |
| GLM-5 | Repaired | 86.7% | 67.2% | 0.697 | 20.7% | 18 / 600 |
| GLM-5 (instruct) | Zero-shot | 90.0% | 24.0% | 0.287 | 5.8% | 4 / 600 |
| GLM-5 (instruct) | Repaired | 90.0% | 64.3% | 0.658 | 17.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
| Sample | Contracts | Public functions | Semantic checkpoints |
|---|---|---|---|
| Original | 600 | 14,553 | 227,383 |
| Second | 600 | 14,578 | 226,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. Format
Complete Solidity and compiler settings.
2. Compilation
A valid compiled contract.
3. ABI
Recovered public function signatures.
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
@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}
}