arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.09286cs.CV
收藏

可视化可编程性:图表理解中代码即思维的指南

Visual Programmability: A Guide for Code-as-Thought in Chart Understanding

Shanghai Jiao Tong University(上海交通大学);Shanghai Innovation Institute(上海创新研究院);Fudan University(复旦大学)

Bohao Tang, Yan Ma, Fei Zhang, Jiadi Su, Ethan Chern, Zhulin Hu, Zhixin Wang, Pengfei Liu, Ya Zhang

AI总结:

本文提出可视化可编程性概念,通过自适应框架让VLM在代码即思维与直接视觉分析间动态选择,利用双重奖励强化学习训练,提升图表理解性能。

摘要:

图表理解对视觉语言模型(VLMs)的推理能力提出了关键性考验。以往的方法面临关键限制:一些方法依赖外部工具,导致其脆弱且受限于预定义的工具集;另一些方法则微调专用模型,这些模型往往采用单一推理策略,如基于文本的思维链(CoT)。基于文本推理的中间步骤难以验证,这使得到奖励事实准确性的强化学习信号变得复杂。为解决这一问题,我们提出了一种代码即思维(CaT)方法,以可验证的符号格式表示图表的视觉信息。我们的关键洞察是,这一策略必须具有适应性:固定的、仅代码的实现方式在符号表示不适用的复杂图表上持续失败。这一发现引导我们引入可视化可编程性:一种可学习的属性,用于判断一个图表-问题对是更适合通过代码解决还是直接视觉分析。我们将这一概念实现在一个自适应框架中,其中VLM学习在CaT路径和直接视觉推理路径之间进行选择。模型的选择策略通过强化学习训练,使用一种新颖的双重奖励系统。该系统结合了数据准确性奖励,以将模型锚定在事实上并防止数值幻觉,以及决策奖励,教会模型何时使用每种策略,防止其默认为单一推理模式。实验在多样化的图表理解基准上展示了强大且稳健的性能。我们的工作表明,VLM不仅能被教会推理,还能被教会如何推理,即为每个任务动态选择最优推理路径。

英文摘要:

Chart understanding presents a critical test to the reasoning capabilities of Vision-Language Models (VLMs). Prior approaches face critical limitations: some rely on external tools, making them brittle and constrained by a predefined toolkit, while others fine-tune specialist models that often adopt a single reasoning strategy, such as text-based chain-of-thought (CoT). The intermediate steps of text-based reasoning are difficult to verify, which complicates the use of reinforcement-learning signals that reward factual accuracy. To address this, we propose a Code-as-Thought (CaT) approach to represent the visual information of a chart in a verifiable, symbolic format. Our key insight is that this strategy must be adaptive: a fixed, code-only implementation consistently fails on complex charts where symbolic representation is unsuitable. This finding leads us to introduce Visual Programmability: a learnable property that determines if a chart-question pair is better solved with code or direct visual analysis. We implement this concept in an adaptive framework where a VLM learns to choose between the CaT pathway and a direct visual reasoning pathway. The selection policy of the model is trained with reinforcement learning using a novel dual-reward system. This system combines a data-accuracy reward to ground the model in facts and prevent numerical hallucination, with a decision reward that teaches the model when to use each strategy, preventing it from defaulting to a single reasoning mode. Experiments demonstrate strong and robust performance across diverse chart-understanding benchmarks. Our work shows that VLMs can be taught not only to reason but also how to reason, dynamically selecting the optimal reasoning pathway for each task.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑