Skip to main content
QUICK REVIEW

[论文解读] Chart Specification: Structural Representations for Incentivizing VLM Reasoning in Chart-to-Code Generation

Minggui He, Mingchen Dai|arXiv (Cornell University)|Feb 11, 2026
Handwritten Text Recognition TechniquesComputer Science被引用 0
一句话总结

论文引入 Chart Specification,一种以结构为中心的中间表示,通过将可视结构与代码对齐来提升图表到代码的生成效率,使数据高效训练和通过细粒度结构化奖励进行强化学习成为可能。

ABSTRACT

Vision-Language Models (VLMs) have shown promise in generating plotting code from chart images, yet achieving structural fidelity remains challenging. Existing approaches largely rely on supervised fine-tuning, encouraging surface-level token imitation rather than faithful modeling of underlying chart structure, which often leads to hallucinated or semantically inconsistent outputs. We propose Chart Specification, a structured intermediate representation that shifts training from text imitation to semantically grounded supervision. Chart Specification filters syntactic noise to construct a structurally balanced training set and supports a Spec-Align Reward that provides fine-grained, verifiable feedback on structural correctness, enabling reinforcement learning to enforce consistent plotting logic. Experiments on three public benchmarks show that our method consistently outperforms prior approaches. With only 3K training samples, we achieve strong data efficiency, surpassing leading baselines by up to 61.7% on complex benchmarks, and scaling to 4K samples establishes new state-of-the-art results across all evaluated metrics. Overall, our results demonstrate that precise structural supervision offers an efficient pathway to high-fidelity chart-to-code generation. Code and dataset are available at: https://github.com/Mighten/chart-specification-paper

研究动机与目标

  • 识别表层 token 模仿在图表到代码合成中的局限性。
  • 提出 Chart Specification 作为桥接可视意图与代码执行的最小充分结构化表示。
  • 构建结构平衡的 ChartStruct 数据集,覆盖多样的图表拓扑。
  • 开发 Spec-Align Reward,提供细粒度、可验证的强化学习反馈。
  • 在三个公开基准上展示数据高效、最先进的性能。

提出的方法

  • 将 Chart Specification 定义为两部分结构 S = <S_sem, S_code>,其中 S_sem 编码全局拓扑、坐标系、数据域和分析表示,S_code 通过运行时拦截来固化数值事实。
  • 构建 ChartStruct,一个结构平衡的训练语料库,分为 55 个结构类别(S_struct),覆盖 20 种图表家族,采用难度感知采样(ρ 层级 90/72/54)。
  • 在 GRPO(Group Relative Policy Optimization)框架内引入 Spec-Align Reward,采用分阶段的奖励树,阶段为:完整性(格式、执行)与语义/代码保真度(R_sem、R_code)。
  • R_sem 结合拓扑门控、坐标、数据域、系列以及数据/函数等组件;R_code 增添按图表家族特定的指标(统计、关系、向量、辅助)并以运行时代码对比为基础。
  • 使用 4K 的 ChartStruct 实例化,采用 Qwen2.5-VL-7B 主干,在 GRPO 下微调 3 个纪元、批量大小 32 的条件下训练,并在 ChartMimic、Plot2Code、ChartX 基准上进行评估。
Figure 1: Motivation for structure-aware chart reasoning. (Top) Direct chart-to-code models rely on surface-level imitation and often hallucinate structural dependencies. (Bottom) By explicitly modeling chart structure via Chart Specification, our approach enforces constraint-consistent plotting log
Figure 1: Motivation for structure-aware chart reasoning. (Top) Direct chart-to-code models rely on surface-level imitation and often hallucinate structural dependencies. (Bottom) By explicitly modeling chart structure via Chart Specification, our approach enforces constraint-consistent plotting log

实验结果

研究问题

  • RQ1结构聚焦的中间表示对图表到代码生成的结构保真度有何影响?
  • RQ2结构平衡的数据集是否能提升图表推理任务的数据效率和泛化能力?
  • RQ3Spec-Align 是否提供有意义、可验证的奖励,从而提升对图表代码生成的强化学习效果?
  • RQ4Chart Specification 相对于基线在基准数据集上表现如何?
  • RQ5结构感知监督在减少幻觉和提升代码执行方面有哪些收益与局限?

主要发现

  • ChartSpec 在 ChartMimic 上以 3k 数据达到领先的开源多模态大语言模型表现(Overall Score 79.9),4k 数据为 82.4。
  • 在 4k 数据下,ChartSpec 超越部分商用模型(如 GPT-4o 的 81.2),接近顶尖系统。
  • 在排行榜上实现最高的执行率(93.5%),表明代码有效性强、运行时失败较少。
  • ChartStruct 通过优先处理结构上复杂的图表实现强数据效率,在 4K 下达到最先进的结果,同时使用的样本远少于大规模基线。
  • Spec-Align Reward 通过多阶段奖励树提供密集、可验证的反馈,相较纯监督基线提升了结构保真度和逻辑连贯性。
  • 在三个基准(ChartMimic、Plot2Code、ChartX)上的实验显示出显著收益与数据高效的图表到代码生成。
Figure 2: The Overview of Our Framework. (A) Specification-Driven Data Curation: Adopting Chart Specification ( $\mathcal{S}$ ) to extract semantic intent ( $\mathcal{S}_{sem}$ ) and physical execution data ( $\mathcal{S}_{code}$ ) from raw scripts, and guiding the curation of the ChartStruct corpus
Figure 2: The Overview of Our Framework. (A) Specification-Driven Data Curation: Adopting Chart Specification ( $\mathcal{S}$ ) to extract semantic intent ( $\mathcal{S}_{sem}$ ) and physical execution data ( $\mathcal{S}_{code}$ ) from raw scripts, and guiding the curation of the ChartStruct corpus

阅读本论文

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

在 Nubint 中阅读本论文

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