ACL Findings2026
TURTLEAI: Benchmarking Multimodal Models for Visual Programming in Turtle Graphics
Chao Wen, Jacqueline Staub, Adish Singla
Abstract
Vision-language models (VLMs) have been explored for visual programming, where they generate code to solve visual tasks.However, most prior work focuses on visual programming for productivity; it remains unclear how well current VLMs perform on education-oriented visual programming and what factors limit their performance.To bridge this gap, we introduce TURTLEAI, a benchmark containing 823 tasks curated based on real-world visual programming tasks in the Turtle Graphics domain.Solving these tasks requires models to perceive geometric patterns, reason about spatial relationships, and synthesize Python code that faithfully reproduces geometric patterns.We evaluate 20+ VLMs, including GPT-5, GPT-4o, and Qwen2-VL-72B, and find that they struggle significantly, with most achieving success rates below 30%.To address these limitations, we propose a data generation technique that requires only a small set of seed samples.Fine-tuning Qwen2-VL-72B on the resulting synthetic data yields an improvement of about 20% on realworld tasks.Our failure analysis reveals that GPT-4o struggles with spatial reasoning and precise visual replication, whereas fine-tuning primarily improves the alignment between visual reasoning and code implementation.Pixtral-12B Pixtral-12B-TURTLE (Fine-tuned) GPT-4o Qwen2-VL-72B Qwen2-VL-72B-TURTLE (Fine-tuned)Analyze the provided image of a geometric pattern.Write Python code to replicate the pattern in the image. Input ImageN.A.(a) VLMs' outputs for replicating different input images.def draw(t): """ Draws a flower-like pattern composed of 12 dodecagons.Each dodecagon is rotated by 30 degrees relative to the previous one, creating a star-like structure.""" def draw_polygon(side_length=50, num_sides=12): """ Draws a single regular polygon with the given side length and number of sides.""" angle = 360 / num_sides for _ in range(num_sides): t.forward(side_length) t.left(angle) def draw_flower(num_petals, side_length, num_sides, angle): """ Draws a flower with the given number of petals, side length, number of sides, and angle.""" for _ in range(num_petals): draw_polygon(side_length, num_sides) t.left(angle)
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
- Zero-Shot Text-to-Image Generation cites Learning Transferable Visual Models From Natural Language Supervision
- MathVista: Evaluating Mathematical Reasoning of Foundation Models in Visual Contexts cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
Builds on14
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
- Zero-Shot Text-to-Image GenerationAditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray et al.ICML 2021 · 6,356 citations
- MathVista: Evaluating Mathematical Reasoning of Foundation Models in Visual ContextsPan Lu, Hritik Bansal, Tony Xia, Jiacheng Liu et al.ICLR 2024 · 1,472 citations
Related papers
- RealChart2Code: Bridging the Gap in Real-World Chart-to-Code Generation via Multi-Task EvaluationJiajun Zhang, Yuying Li, Zhixun Li, Xingyu Guo et al.ACL 2026
- From Charts to Code: A Hierarchical Benchmark for Multimodal ModelsJiahao Tang, Henry Hengyuan Zhao, Lijian Wu, Zijian Zhang et al.ACL 2026 · 5 citations
- DynaMath: A Dynamic Visual Benchmark for Evaluating Mathematical Reasoning Robustness of Vision Language ModelsChengke Zou, Xingang Guo, Rui Yang, Junyu Zhang et al.ICLR 2025
- PlotGen-Bench: Evaluating VLMs on Generating Visualization Code from Diverse Plots across Multiple LibrariesYi Zhao, Zhen Yang, Shuaiqi Duan, Wenmeng Yu et al.ACL Findings 2026
- Is GPT-4V (ision) All You Need for Automating Academic Data Visualization? Exploring Vision-Language Models' Capability in Reproducing Academic ChartsZhehao Zhang, Weicheng Ma, Soroush VosoughiEMNLP Findings 2024 · 3 citations
