Abstract
Sketching is a fundamental human activity for ideation and communication. While AI has advanced image generation, capturing the iterative, sequential nature of sketching remains difficult. We introduce SketchAgent, a method that enables multimodal Large Language Models (LLMs) to generate sketches stroke-by-stroke through conversational interaction. By using an intuitive sketching language and a coordinate-grid canvas, SketchAgent allows models like Claude 3.5 and GPT-4o to create, edit, and collaborate on sketches without any fine-tuning. We demonstrate that SketchAgent produces recognizable, human-like sketches and enables meaningful human-agent collaboration.
Introduction: Sketching as a Process
Traditional AI image generation often treats sketches as static pixel grids or optimized curves. However, human sketching is inherently sequential—a dialogue between the hand and the eye where each stroke informs the next. Existing models often fail to capture this "hand-drawn" quality, producing mechanical outputs or lacking semantic understanding of individual strokes. SketchAgent addresses this by leveraging the reasoning capabilities of LLMs to treat sketching as a sequential language task.
Methodology
Overview of SketchAgent capabilities: sequential generation, human-agent collaboration, and chat-based editing. Source, p. 1
SketchAgent operates by translating text prompts into a sequence of drawing actions. The framework relies on several key innovations:
- The Numbered Canvas: To overcome the spatial reasoning limitations of LLMs, the agent uses a 50x50 numbered grid. This allows the model to reference specific coordinates (e.g.,
x10y20) rather than estimating pixel positions. - Sketching Language: The model outputs a simplified string-based format representing points and time steps ($t$-values).
- Bezier Curve Fitting: To achieve a fluid, hand-drawn aesthetic, the system fits cubic Bézier curves to the predicted points, avoiding the jagged appearance of simple polylines.
- In-Context Learning (ICL): The model is provided with examples of the sketching language and encouraged to use Chain-of-Thought reasoning. It "thinks" about the object's structure (e.g., "drawing the head first") before generating coordinates.
Human-Agent Collaboration and Editing
Because SketchAgent generates sketches stroke-by-stroke, it can interact with users in real-time. In collaborative mode, the agent and a human can take turns adding strokes to a shared canvas. In chat-based editing, users can provide natural language instructions to modify existing sketches, such as "add a hat to the robot." The agent's semantic understanding of the drawing allows it to execute these spatial commands with high accuracy (92% in tests).
Key Insights and Results
The researchers found that LLMs possess significant "latent" knowledge of object structures. When provided with a "brush" (the sketching language), they can externalize this knowledge effectively.
- Recognition: Using Claude 3.5 Sonnet, SketchAgent achieved a recognition accuracy (0.23) nearly matching the human baseline (0.27) on CLIP-based metrics.
- Human-Like Quality: In a user study, 74.9% of participants identified SketchAgent's drawings as "human-drawn" compared to those generated via direct SVG prompting.
- Collaboration Value: Collaborative sketches were found to be more recognizable than those produced by the agent alone, indicating that the agent provides a constructive contribution to the creative process.
Limitations and Future Work
While successful, SketchAgent faces challenges with highly complex concepts or fine motor tasks like drawing legible text. The agent's output is also constrained by the LLM's internal biases and prior knowledge. Future work may involve "closing the loop" by allowing the agent to visually inspect its own rendered output and perform real-time corrections.
Summary updated