Sketch2TikZ: Multi-Reward Reinforcement Learning for Converting Hand-Drawn Sketches to Executable TikZ
Shubham Paliwal, Arushi Jain, Monika Sharma, Manasi Patwardhan
Key points
From the paper's conclusion- Overall, our results highlight the effectiveness of reference-aware, multi-objective reinforcement learning for structured diagram generation from noisy sketches.
Abstract
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 ($\mathcal{R}_{cs}$), OCR ($\mathcal{R}_{ocr}$), CleanDIFT ($\mathcal{R}_{cd}$), and Self-Similarity ($\mathcal{R}_{ss}$) 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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Back2Struct: Making Structured Images Editable AgainarXiv · 2026
- Edit2TikZ: A Comprehensive and Challenging Benchmark for Scientific Figure Editing with TikZarXiv · 2026
- EdiTikZ: Scientific Figure Editing from Revision TrajectoriesarXiv · 2026
- SIVIA-RSI: Source-Grounded Adaptation of Diagramming SkillsarXiv · 2026
- Counting Symbols on Technical Drawings: A Benchmark and Verified Rewards for MLLMsarXiv · 2026
- PaperBanana-Interact: Scientific Diagram Refinement with Multi-Turn Human FeedbackarXiv · 2026