Abstract
Coding tasks serve as a critical benchmark for Large Language Models (LLMs), requiring high-level instruction comprehension and complex reasoning. However, current Large Multimodal Models (LMMs) lack rigorous evaluation in tasks that emphasize visual reasoning. We introduce HumanEval-V, a benchmark of 253 human-annotated Python coding tasks where visual diagrams are indispensable for problem comprehension. Our evaluation of 19 state-of-the-art LMMs reveals a significant "visual reasoning gap": even top-tier models like Claude 3.5 Sonnet fail over 60% of these tasks. These results highlight the limitations of current LMMs in translating visual logic into functional code and suggest key directions for future research in multimodal intelligence.
Introduction
While LMMs have shown proficiency in image captioning and basic visual question answering, they often struggle with the abstract, structured logic found in technical diagrams. Existing benchmarks frequently suffer from "data leakage" or provide textual descriptions that allow models to bypass visual reasoning entirely. In real-world software engineering, diagrams are essential for explaining complex data structures, algorithms, and state changes. HumanEval-V addresses this by providing tasks where the diagram is the only way to understand the required logic, testing pure visual reasoning rather than domain-specific knowledge.
The HumanEval-V Benchmark
HumanEval-V consists of 253 tasks across six categories. Each task is structured with three core components: an indispensable diagram containing the core logic, a Python function signature, and handcrafted test cases for verification. To ensure the benchmark specifically tests visual perception rather than just coding proficiency, the researchers introduced a Vision-to-Text-to-Code (V2T2C) pipeline. This method decouples image understanding from code generation by using a "describer" model to translate visual logic into text before a "coder" model implements it.
Task Taxonomy and Categories
The benchmark spans six primary categories that reflect common visual reasoning patterns in programming: Rearrangement, Expansion, Validation, Aggregation, Iteration, and Computation. These categories test a wide range of capabilities, from spatial transformations to dynamic state tracking and iterative operations.
Key Results and Insights
Evaluation of 19 state-of-the-art LMMs revealed that visual reasoning remains a significant hurdle for current AI:
- Leading Performance: Claude 3.5 Sonnet emerged as the leader with a 36.8% pass@1 rate, followed by GPT-4o at 27.7%.
- Open-Weight Models: Pixtral 124B led open-weight models with a 21.3% pass@1 rate, while 70B parameter models generally scored below 4%.
- Scaling and Iteration: While scaling helps (Claude 3.5 Sonnet reached 74.3% at pass@100), it is not a complete solution. However, iterative refinement using test-case feedback significantly boosted performance, with Claude's success rate rising to 55.3% after four iterations.
- The Human-AI Intuition Gap: Tasks that are intuitive for humans—such as following a simple path through a grid or identifying a repeating color pattern—often prove insurmountable for even the best LMMs.
Conclusion
HumanEval-V highlights a substantial gap between current LMM capabilities and true visual reasoning. The benchmark demonstrates that models are significantly better at describing a diagram in words than they are at translating that same visual logic directly into code. Future work must focus on creating more resource-efficient training methods to bridge this visual reasoning gap, moving beyond simple parameter scaling toward deeper structural and spatial understanding.
Summary updated