Abstract
Large Multimodal Models (LMMs) have demonstrated remarkable capabilities in text-to-code and image-to-text tasks. However, their ability to integrate visual perception with complex logical reasoning remains under-explored. This paper introduces ScratchEval, a benchmark utilizing the block-based visual programming language Scratch to evaluate LMMs. By requiring models to "execute" logic directly from graphical code blocks, ScratchEval reveals a significant "vision-logic gap." Even state-of-the-art models like Gemini-1.5-Pro and GPT-4o struggle with these child-level puzzles, often failing to surpass 50% accuracy.
Introduction
While current LMMs excel at converting UI mockups to HTML or performing OCR, these tasks often treat vision and logic as sequential, decoupled steps. The authors argue that true visual programming requires a unified capability: understanding the spatial arrangement of graphical blocks while simultaneously processing their inherent programming logic. ScratchEval serves as a "stress test" for this multi-step reasoning on visual data.
The ScratchEval Benchmark
The researchers developed a suite of 305 multiple-choice questions manually curated from educational sources. The benchmark covers four cognitive domains:
- Math (133 questions): Arithmetic problems embedded in scripts.
- Logical Thinking (99 questions): Reasoning involving loops, conditionals, and variables.
- Graphic Perception (59 questions): Inferring visual outputs from drawing scripts.
- Spatial Perception (43 questions): Determining final positions and orientations of characters.
Evaluation Methodology
Ten state-of-the-art models were tested using three prompting strategies: direct prompts (no-CoT), Zero-shot Chain-of-Thought (CoT), and a novel Explained CoT (eCoT) where the model first describes visual elements before performing logical analysis.
Key Results and Insights
The evaluation highlights a stark performance ceiling for current LMMs. Gemini-1.5-Pro emerged as the top performer with an overall accuracy of 52.8%, followed by GPT-4o at 43.9%. Notably, the open-source Qwen2-VL (72B) outperformed several proprietary models, including GPT-4-Turbo and Claude 3.5 Sonnet.
The Vision-Logic Gap
A primary finding is the "Vision-Logic Gap." Models are proficient at "seeing" (OCR-ing block text) but fail at "simulating" the code. For instance, a model might correctly identify a 10-iteration loop but fail to calculate the final value of a variable modified within it. This suggests that LMMs are currently better at "visual intuition" (spatial/graphic tasks) than "visual computation" (math/logic tasks).
Prompting as a Force Multiplier
Chain-of-Thought (CoT) prompting significantly improved performance by 10% to 20% across all models. This indicates that models possess the underlying knowledge but require a structured "scratchpad" to manage the complexity of visual logic. However, models still frequently "hallucinate" intermediate execution steps even when the initial block identification is correct.
Limitations and Future Directions
The current benchmark is limited by its multiple-choice format and its specific focus on the Scratch language. Furthermore, the authors suspect that standard vision tokenizers may lose fine-grained spatial information necessary for understanding nested block structures. Future research should explore direct code execution tasks and specialized vision encoders tuned for structured graphical data.
Summary updated