Megadose AI progress, ranked daily.

SolBehave: Evaluating the Behavioural Correctness of LLM-Generated Smart Contracts

· ArXiv · AI/CL/LG ·
SolBehave tests whether generated Solidity behaves like the original, and compilation alone fails that test.

The paper benchmarks seven open-weight models on 250 reproducible Ethereum contracts after one automated repair pass. Compilation rates ranged from 26.4% to 92.7%, but only 31.4% of compiling generated function bodies matched the original under differential fuzzing. Contract-level divergence was common under both historical transaction replay and DCR-guided synthetic replay, which tests legitimate call sequences that may not have appeared on-chain. Gemma-4-31B was the only model kept below 3% divergence on both replay tests. ArXiv · AI/CL/LG's note

score 5

Categories: Research