Sketch2TikZ: Multi-Reward Reinforcement Learning for Converting Hand-Drawn Sketches to Executable TikZ
On the map: Deep reinforcement learning methods → RL with diffusion and flow models
Abstract (arXiv)
Automatic digitization of hand-drawn sketches into editable formats is crucial for modern document workflows and LaTeX integration. Converting sketches into executable TikZ code provides a structured representation of diagrams, but remains challenging due to noisy and ambiguous inputs, which hinder reliable interpretation and limit the effectiveness of token-level supervision for ensuring global diagram validity. To address these challenges, we propose Sketch2TikZ, a reinforcement learning framework that optimizes sketch-to-code generation via a sequential multi-reward strategy, combining Code-Structure (Rcs), OCR (Rocr), CleanDIFT (Rcd), and Self-Similarity (Rss) rewards to enforce textual, visual and structural correctness. We evaluate Sketch2TikZ on the SkeTikZ and FlowChart-3B benchmarks using metrics including compilation success rate (CSR), image similarity, code similarity, and character similarity. Our method achieves near-perfect compilation success and improves visual and textual alignment over strong open-source baselines, while remaining competitive with proprietary GPT-based vision-language models. Extensive ablations demonstrate that curriculum-based reward scheduling is critical for reducing reward interference, stabilizing training and mitigating proxy over-optimization. Overall, our results highlight the effectiveness of reference-aware, multi-objective reinforcement learning for structured diagram generation from noisy sketches.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in RL with diffusion and flow models, one of 15 directions in Deep reinforcement learning methods. Builds on 25 of its 43 references that are in the map. Submitted 20 Nov 2026, announced 23 Nov 2026.
Builds on
25 of 43 references.
References · 25
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 34,995
- 2017Proximal Policy Optimization Algorithmscited by 16,156
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2025Qwen3 Technical Reportcited by 9,994
- 2023Visual Instruction Tuningcited by 8,191
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 7,264
- 2016Gaussian Error Linear Units (GELUs)cited by 3,745
- 2013Playing Atari with Deep Reinforcement Learningcited by 3,364
- 2023Sigmoid Loss for Language Image Pre-Trainingcited by 3,321
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,241
- 2022Reproducible scaling laws for contrastive language-image learningcited by 1,237
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 926
13 more
- 2015Scheduled Sampling for Sequence Prediction with Recurrent Neural Networkscited by 876
- 2024TinyLlama: An Open-Source Small Language Modelcited by 673
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 377
- 2017A Neural Representation of Sketch Drawingscited by 325
- 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 105
- 2017Deep Sketch Hashing: Fast Free-hand Sketch-Based Image Retrievalcited by 69
- 2024CleanDIFT: Diffusion Features without Noisecited by 51
- 2020B'ezierSketch: A generative model for scalable vector sketchescited by 44
- 2024From Words to Structured Visuals: A Benchmark and Framework for Text-to-Diagram Generation and Editingcited by 34
- 2023DiagrammerGPT: Generating Open-Domain, Open-Platform Diagrams via LLM Planningcited by 31
- 2023Learning Geometry-aware Representations by Sketchingcited by 6
- 2025SketchAgent: Generating Structured Diagrams from Hand-Drawn Sketchescited by 4
- 2026An Online Reference-Free Evaluation Framework for Flowchart Image-to-Code Generationcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026GDB-Reward: From Evaluation Metrics to Training Rewards for Graphic Design
- 2026OmniDiagram: Advancing Unified Diagram Code Generation via Visual Interrogation Reward
- 2026Scientific Graphics Program Synthesis via Dual Self-Consistency Reinforcement Learning
- 2024KnobGen: Controlling the Sophistication of Artwork in Sketch-Based Diffusion Models
- 2025StableSketcher: Enhancing Diffusion Model for Pixel-based Sketch Generation via Visual Question Answering Feedback
- 2026ArtChart: Faithful Artistic Chart Generation with Integrated Text Rendering
- 2025VinciCoder: Unifying Multimodal Code Generation via Coarse-to-fine Visual Reinforcement Learning
- 20263DrawAgent: Teaching LLM to Draw in 3D with Early Contrastive Experience