2025-09-12 · 专家 · 机器学习 · 计算机视觉 · 自然语言处理

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

该论文提出了一种名为“视觉可编程性”的概念,通过自适应框架帮助视觉语言模型(VLM)动态选择最佳推理路径,从而提高图表理解的准确性和泛化能力。

更新于 2025-09-18。作者:Bohao Tang、Yan Ma、Fei Zhang、Jiadi Su、Ethan Chern、Zhulin Hu、Zhixin Wang、Pengfei Liu、Ya Zhang。

中文摘要

图表理解对视觉-语言模型(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.

解读

一句话总结

该论文提出了一种名为“视觉可编程性”的概念,通过自适应框架帮助视觉语言模型(VLM)动态选择最佳推理路径,从而提高图表理解的准确性和泛化能力。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源