arXiv

TurtleAI: Benchmarking Multimodal Models for Visual Programming in Turtle Graphics

Title: TurtleAI: Evaluating Multimodal Models on Visual Programming in Turtle Graphics

Abstract

While Vision-Language Models (VLMs) have increasingly been applied to visual programming to generate code for visual tasks, existing research has predominantly targeted productivity applications. Consequently, it remains uncertain how effectively current VLMs handle education-focused visual programming or what specific constraints hinder their performance. To address this knowledge gap, we present TurtleAI, a new benchmark comprising 823 tasks derived from authentic visual programming scenarios within the Turtle Graphics environment. Successfully completing these tasks demands that models interpret geometric patterns, deduce spatial relationships, and produce Python code that accurately recreates those patterns.

We assessed the capabilities of over 20 VLMs, including GPT-5, GPT-4o, and Qwen2-VL-72B, discovering that they face substantial challenges, with the majority achieving success rates under 30%. To mitigate these shortcomings, we developed a data generation method requiring only a limited number of seed samples. When Qwen2-VL-72B was fine-tuned on the resulting synthetic dataset, it demonstrated an approximate 20% performance boost on real-world tasks. Our analysis of failures indicates that GPT-4o is particularly weak in spatial reasoning and exact visual replication. Furthermore, we found that fine-tuning primarily enhances the correlation between a model’s visual reasoning processes and its code implementation.


Source: arXiv Generated at: 2026-06-03 00:00:00 UTC

Related Articles

TikTok Billionaire Tops Ambani as Asia’s Second-Richest
Bloomberg

TikTok Billionaire Tops Ambani as Asia’s Second-Richest

TikTok founder surpasses Mukesh Ambani to become Asia’s second-richest person, marking a significant shift in the region...

Publishers in UK can opt out of Google AI search results
BBC News

Publishers in UK can opt out of Google AI search results

UK publishers can now opt out of Google’s AI search summaries, a CMA ruling designed to boost their bargaining power and...

Kioxia Edges Nearer Toyota’s Market Cap in Shakeup to Japan Inc.
Bloomberg

Kioxia Edges Nearer Toyota’s Market Cap in Shakeup to Japan Inc.

Kioxia’s market cap nears Toyota’s, signaling a major shift in Japan’s corporate hierarchy. This narrowing gap highlight...

Reuters

Morning Bid: Marvell, a fitting name for the latest AI darling

Reuters highlights Marvell as a top AI stock, noting its name perfectly suits its status as the newest market darling.

Financial Times

Tim Hayward: I built the Jaguar E-Type of computer keyboards

Tim Hayward compares his bespoke keyboard designs to the Jaguar E-Type. He explores high-end customization for personal ...

Financial Times

AI Labs: Zuckerberg’s $100bn gamble

Meta’s $100 billion AI investment aims to secure AI dominance, but questions remain whether sheer spending can outpace c...