Lune

ACL Findings2026

OmniDiagram: Advancing Unified Diagram Code Generation via Visual Interrogation Reward

Haoyue Yang, Xuanle Zhao, Xuexin Liu, Feibang Jiang, Yao Zhu

Abstract

The paradigm of programmable diagram generation is evolving rapidly, playing a crucial role in structured visualization. However, most existing studies are confined to a narrow range of task formulations and language support, constraining their applicability to diverse diagram types. In this work, we propose OmniDiagram, a unified framework that incorporates diverse diagram code languages and task definitions. To address the challenge of aligning code logic with visual fidelity in Reinforcement Learning (RL), we introduce a novel visual feedback strategy named Visual Interrogation Verifies All (VIVA). Unlike brittle syntax-based rules or pixel-level matching, VIVA rewards the visual structure of rendered diagrams through a generative approach. Specifically, VIVA actively generates targeted visual inquiries to scrutinize diagram visual fidelity and provides fine-grained feedback for optimization. This mechanism facilitates a self-evolving training process, effectively obviating the need for manually annotated ground truth code. Furthermore, we construct M3 2 Diagram, the first large-scale diagram code generation dataset, containing over 196k high-quality instances. Experimental results confirm that the combination of SFT and our VIVA-based RL allows OmniDiagram to establish a new state-of-the-art (SOTA) across diagram code generation benchmarks. Code, datasets, and models are available at https: //github.com/Haoyue-Yang/OmniDiagram.

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.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Rendering-Aware Reinforcement Learning for Vector Graphics Generation cites OmniSVG: A Unified Scalable Vector Graphics Generation Model
  • Rendering-Aware Reinforcement Learning for Vector Graphics Generation cites HybridFlow: A Flexible and Efficient RLHF Framework
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on16

  1. OmniSVG: A Unified Scalable Vector Graphics Generation ModelYiying Yang, Wei Cheng, Sijin Chen, Xianfang Zeng et al.NeurIPS 2025 · 90 citations
  2. ChartCoder: Advancing Multimodal Large Language Model for Chart-to-Code GenerationXuanle Zhao, Xianzhen Luo, Qi Shi, Chi Chen et al.ACL 2025 · 62 citations
  3. HybridFlow: A Flexible and Efficient RLHF FrameworkGuangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu et al.EuroSys 2025 · 61 citations
  4. Rendering-Aware Reinforcement Learning for Vector Graphics GenerationJuan A. Rodríguez, Haotian Zhang, Abhay Puri, Rishav Pramanik et al.NeurIPS 2025 · 42 citations
  5. CrystalBLEU: Precisely and Efficiently Measuring the Similarity of CodeAryaz Eghbali, Michael PradelASE 2022 · 33 citations

Related papers

  1. Breaking the SFT Plateau: Multimodal Structured Reinforcement Learning for Chart-to-Code GenerationLei Chen, Xuanle Zhao, Zhixiong Zeng, Jing Huang et al.ICLR 2026 · 16 citations
  2. VerIF: Verification Engineering for Reinforcement Learning in Instruction FollowingHao Peng, Yunjia Qi, Xiaozhi Wang, Bin Xu et al.EMNLP 2025 · 24 citations
  3. DaVinci: Reinforcing Visual-Structural Syntax in MLLMs for Generalized Scientific Diagram ParsingXingchen Zeng, Zhewei Su, Hengming Zhang, Juyong Jiang et al.ICLR 2026
  4. CharTide: Data-Centric Chart-to-Code Generation via Tri-Perspective Tuning and Inquiry-Driven EvolutionXiangxi Zheng, Kuang He, Jiayi Hu, Ping Yu et al.ACL 2026 · 1 citation
  5. From Diagrams to Code: Multilingual Programming with Visual DesignLinzheng Chai, Jian Yang, Shukai Liu, Wei Zhang et al.ICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines