Skip to main content
QUICK REVIEW

[论文解读] ChartMimic: Evaluating LMM's Cross-Modal Reasoning Capability via Chart-to-Code Generation

Cheng Yang, Chufan Shi|arXiv (Cornell University)|Jun 14, 2024
Natural Language Processing TechniquesComputer Science被引用 3
一句话总结

ChartMimic 提出了一项新的基准,用于评估大型多模态模型(LMMs)在图表到代码生成任务上的表现,采用1,000组由人工精心筛选的(图表,指令,代码)三元组,涵盖191种子图表类别。该基准揭示了显著的性能差距,即使GPT-4V的平均得分也仅为73.2/100,凸显了在跨模态推理、视觉理解与代码生成方面面临的挑战。

ABSTRACT

We introduce a new benchmark, ChartMimic, aimed at assessing the visually-grounded code generation capabilities of large multimodal models (LMMs). ChartMimic utilizes information-intensive visual charts and textual instructions as inputs, requiring LMMs to generate the corresponding code for chart rendering. ChartMimic includes 4,800 human-curated (figure, instruction, code) triplets, which represent the authentic chart use cases found in scientific papers across various domains (e.g., Physics, Computer Science, Economics, etc). These charts span 18 regular types and 4 advanced types, diversifying into 201 subcategories. Furthermore, we propose multi-level evaluation metrics to provide an automatic and thorough assessment of the output code and the rendered charts. Unlike existing code generation benchmarks, ChartMimic places emphasis on evaluating LMMs' capacity to harmonize a blend of cognitive capabilities, encompassing visual understanding, code generation, and cross-modal reasoning. The evaluation of $3$ proprietary models and 14 open-weight models highlights the substantial challenges posed by ChartMimic. Even the advanced GPT-4o, InternVL2-Llama3-76B only achieved an average score across Direct Mimic and Customized Mimic tasks of 82.2 and 61.6, respectively, indicating significant room for improvement. We anticipate that ChartMimic will inspire the development of LMMs, advancing the pursuit of artificial general intelligence.

研究动机与目标

  • 为解决当前缺乏针对科学图表视觉化代码生成任务的LMM评估基准的问题。
  • 评估LMM在真实科学场景中,整合视觉理解、代码生成与跨模态推理能力的表现。
  • 提供一个全面的评估框架,涵盖代码与渲染图表保真度的高层与低层特征。
  • 识别当前LMM的持续性局限,特别是幻觉现象以及图表类型与文本元素的误分类问题。
  • 通过提供一个与真实学术应用场景对齐、经过人工标注的严格基准,为未来基础模型的发展提供指导。

提出的方法

  • 提出两项任务:直接模仿(Direct Mimic,重现给定图表)与定制化模仿(Customized Mimic,根据指令适应新数据),使用视觉与文本输入。
  • 从涵盖18种常规与4种高级图表类型的科学论文中,筛选出1,000组(图表,指令,代码)三元组,覆盖191种子类别。
  • 设计多层级评估指标:高层级(图表类型、布局、清晰度)与低层级(数据、文本、样式、颜色),用于评估代码与渲染输出的质量。
  • 引入三种提示策略——提示增强(HintEnhanced)、自我修正(SelfRevision)与脚手架提示(Scaffold Prompting),以提升LMM在该基准上的表现。
  • 采用人工评估,包含300个测试样本,每个样本由3名评估者打分,使用0–100分的相似度量表,与自动指标对齐。
  • 计算自动指标与人工判断之间的皮尔逊相关系数,以验证指标的可靠性。
Figure 1 : The real-world example. LMMs assist scientists and researchers in understanding, interpreting and creating charts during the reading and writing of academic papers. These models serve as assistants that enhance the comprehension and presentation of data in scholarly communications.
Figure 1 : The real-world example. LMMs assist scientists and researchers in understanding, interpreting and creating charts during the reading and writing of academic papers. These models serve as assistants that enhance the comprehension and presentation of data in scholarly communications.

实验结果

研究问题

  • RQ1LMM在从视觉与文本输入中准确生成复杂、信息密集的科学图表对应代码方面,能力达到何种程度?
  • RQ2不同提示策略(HintEnhanced、SelfRevision、Scaffold)如何影响LMM在图表到代码生成任务上的表现?
  • RQ3自动评估指标在评估图表保真度与代码正确性方面,与人工判断的相关性如何?
  • RQ4LMM在图表到代码生成中的主要失败模式是什么,特别是幻觉与误分类问题?
  • RQ5专有模型与开源权重LMM在应对科学图表生成的多模态推理需求方面,表现如何比较?

主要发现

  • GPT-4V在Direct Mimic任务上的平均得分为73.2,尽管其处于最先进水平,但仍表明存在显著的改进空间。
  • Claude-3-opus得分为53.7,表明即使最先进的专有模型在处理图表到代码生成的复杂性时也面临挑战。
  • 表现最佳的开源模型Phi-3-Vision的性能仅达到GPT-4V的一半左右,揭示了能力上的显著差距。
  • 自动评估指标与人工判断之间表现出高度皮尔逊相关性(p < 0.01),验证了其在基准测试中的可靠性。
  • 错误分析显示,幻觉现象(如生成不存在的文本或错误分类图表类型)是主要的失败模式。
  • 该基准涵盖了多样化的图表类型与子类别,包含来自多个学科领域的真实科学论文中的人工筛选三元组共1,000组。
Figure 2 : The pipeline of ChartMimic. We provide $1,000$ human-curated (figure, instruction, code) triplets. We use ChartMimic to evaluate LMMs’ proficiency in the multimodal chart-to-code generation, resulting in both high-level and low-level evaluation results.
Figure 2 : The pipeline of ChartMimic. We provide $1,000$ human-curated (figure, instruction, code) triplets. We use ChartMimic to evaluate LMMs’ proficiency in the multimodal chart-to-code generation, resulting in both high-level and low-level evaluation results.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。