paper-with-me

Papers

Enhancing Chart-to-Code Generation in Multimodal Large Language Models via Iterative Dual Preference Learning

2025-04-03 · Zhihan Zhang, Yixin Cao, Lizi Liao

Chart-to-code generation, the process of converting chart images into executable plotting scripts, provides a lossless representation of chart information, requiring models to accurately capture and summarize all visual and structural elements. However, this remains a significant challenge for multimodal large language models (MLLMs), which are not inherently well-aligned with code generation tasks. To bridge this gap, we introduce Chart2Code, a novel iterative dual preference learning framework designed to enhance MLLMs' chart-to-code generation capabilities through structured code variant generation and fine-grained dual reward signals. We validate Chart2Code across three MLLMs and find that iterative preference learning consistently improves out-of-distribution chart-to-code generation quality. Throughout this process, our dual scoring method, which evaluates both the textual code structure and its visual representation, leads to greater performance improvements, even with a reduced preference dataset size. Further analysis explores the key components of our framework and highlights the interplay between chart-to-code generation and broader chart reasoning, paving the way for future advancements in chart comprehension.

📄 PDF Abstract BibTeX arXiv:2504.02906

Code (1)

zhihan72/chart2code 공식 구현

Tasks

Code Generation

Similar Papers 제목 키워드 기반

ChartGalaxy: A Dataset for Infographic Chart Understanding and Generation

2025-05-24 · Zhen Li, Yukai Guo, Duan Li, Xinyuan Guo 외

Infographic charts are a powerful medium for communicating abstract data by combining visual elements (e.g., charts, images) with textual information. However, their visual and structural richness poses challenges for la…

BenchmarkingChart UnderstandingCode GenerationMultimodal Reasoning

ChartCoder: Advancing Multimodal Large Language Model for Chart-to-Code Generation

2025-01-11 · Xuanle Zhao, Xianzhen Luo, Qi Shi, Chi Chen 외

Multimodal Large Language Models (MLLMs) have demonstrated remarkable capabilities in chart understanding tasks. However, interpreting charts with textual descriptions often leads to information loss, as it fails to full…

Chart UnderstandingCode GenerationLanguage ModelingLanguage Modelling+2

ChartMaster: Advancing Chart-to-Code Generation with Real-World Charts and Chart Similarity Reinforcement Learning

2025-08-25 · Wentao Tan, Qiong Cao, Chao Xue, Yibing Zhan 외 arxiv

The chart-to-code generation task requires MLLMs to convert chart images into executable code. This task faces two main challenges: limited data diversity and the difficulty of maintaining visual consistency between gene…

Reinforcement LearningCode Generation

Flow2Code: Evaluating Large Language Models for Flowchart-based Code Generation Capability

2025-06-02 · Mengliang He, Jiayi Zeng, Yankai Jiang, Wei zhang 외

While large language models (LLMs) show promise in code generation, existing benchmarks neglect the flowchart-based code generation. To promote further research on flowchart-based code generation, this work presents Flow…

Code Generation

From Charts to Code: A Hierarchical Benchmark for Multimodal Models

2025-10-20 · Jiahao Tang, Henry Hengyuan Zhao, Lijian Wu, Zijian Zhang 외 arxiv

We introduce Chart2Code, a new benchmark for evaluating the chart understanding and code generation capabilities of large multimodal models (LMMs). Chart2Code is explicitly designed from a user-driven perspective, captur…

Multimodal ReasoningCode Generation