CharTide: 数据中心的图表到代码生成通过三视角微调和查询驱动进化
CharTide: Data-Centric Chart-to-Code Generation via Tri-Perspective Tuning and Inquiry-Driven Evolution
AI总结:
提出CharTide框架,通过三视角微调解耦视觉感知与代码逻辑,并引入基于信息不变性的查询驱动强化学习进行数据验证,在多个基准上超越GPT-4o。
摘要:
图表到代码生成要求视觉语言模型(VLM)具有严格的视觉精度和语法正确性。然而,现有方法从根本上受到数据中心限制:尽管可用的图表到代码数据集不断增长,但简单地扩展同质图表-代码对会将视觉感知与程序逻辑混淆,阻止模型充分利用多模态监督的丰富性。我们提出CharTide,一种新颖的数据中心框架,系统性地重新设计图表到代码生成的训练和对齐数据。首先,我们通过三视角微调策略构建一个200万样本的数据集,明确将训练解耦为视觉感知、纯文本代码逻辑和模态融合流,使7B模型仅使用监督数据就能超越专门的基线。其次,我们将对齐重新表述为一个数据验证问题,而不是启发式评分任务。为此,我们引入了一种基于信息不变性原理的查询驱动强化学习框架:下游模型应对原始图表和生成图表上的相同视觉查询产生一致的答案。超越刚性规则匹配或VLM评分,我们使用冻结的检查器通过原子QA任务客观验证生成的图表,基于答案准确性提供可验证的奖励信号。在ChartMimic、Plot2Code和ChartX上的实验表明,CharTide-7B/8B显著优于开源基线,超越GPT-4o,并与GPT-5竞争。
英文摘要:
Chart-to-code generation demands strict visual precision and syntactic correctness from Vision-Language Models (VLMs). However, existing approaches are fundamentally constrained by data-centric limitations: despite the availability of growing chart-to-code datasets, simply scaling homogeneous chart-code pairs conflates visual perception with program logic, preventing models from fully leveraging the richness of multimodal supervision. We present CharTide, a novel data-centric framework that systematically redesigns both training and alignment data for chart-to-code generation. First, we construct a 2M-sample dataset via a Tri-Perspective Tuning strategy, explicitly decoupling training into visual perception, pure-text code logic, and modality fusion streams, enabling a 7B model to surpass specialized baselines using only supervised data. Second, we reformulate alignment as a data verification problem rather than a heuristic scoring task. To this end, we introduce an Inquiry-Driven RL framework grounded in the principle of information invariance: a downstream model should yield consistent answers to identical visual queries across both original and generated charts. Moving beyond rigid rule matching or VLM scoring, we employ a frozen Inspector to objectively verify generated charts through atomic QA tasks, providing verifiable reward signals based on answer accuracy. Experiments on ChartMimic, Plot2Code, and ChartX show that CharTide-7B/8B significantly outperforms open-source baselines, surpasses GPT-4o, and is competitive with GPT-5.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。