NL2Scratch: An Executable Benchmark and Evaluation for Block-Based Programming
HDHeejin DoAlexandre BallenghienYWYang Wu
April Yi Wang HDHeejin Do
Alexandre Ballenghien
YWYang Wu

April Yi Wang
+4
NL2Scratch provides an executable benchmark for generating Scratch programs from natural language, with 311,648 parser-validated program-description pairs from real projects. To measure semantic alignment beyond lexical overlap, it introduces Semantic Alignment Consistency (SAC), an interpretable slot-level metric. A semantically validated subset of 23,594 examples and an 800-instance diagnostic benchmark are also constructed. Experiments on LLMs show that high token-level F1 (above 0.93) does not guarantee perfect SAC, especially on longer examples, with errors concentrated on operational slots such as actions, conditions, and numeric arguments.

arXiv ·
· June 20, 2026