Visual Graph Reasoning via Knowledge Compilation
Rongzheng Wang, Zhe Wang, Ke Qin, Rongwei Wang, Muquan Li, Yizhuo Ma, Yihong Huang, Jielei Wang, Shuang Liang
Abstract
Visual graph reasoning requires answering graph-theoretic questions directly from graph images, where graph topology and state are conveyed visually rather than given in symbolic form. Despite recent progress of vision-language models (VLMs), current approaches to visual graph reasoning still fail on simple visual graph problems. This reveals a fundamental limitation of existing approaches: they prioritize final-answer supervision over the intermediate recovery of an explicit graph representation that preserves graph topology and state from visual input. To address this limitation, we propose VGCompiler, a compilation-centric paradigm for visual graph reasoning via knowledge compilation. VGCompiler organizes reasoning around two compilers: a representation compiler that recovers a structure-preserving intermediate graph representation from visual input, and an operation compiler that compiles query intent under the recovered graph state into an executable graph operation. Specifically, we build VGCompiler on Qwen3-VL-8B and train it with reinforcement learning guided by a layered reward over executability, compiled graph validity, representation quality, and operation quality. VGCompiler uses a frozen observer to summarize graph and question conditions into lightweight signatures, enabling archive retrieval and code reuse across similar regimes. Experiments on three benchmarks GVLQA, VisionGraph, and VGCURE, show that Qwen-VGCompiler, built on an 8B backbone, surpasses the strongest closed-source VLM baseline by 28.9% and the strongest code-based baseline by 23.7%, while maintaining high efficiency. We further evaluate VGCompiler on three real-world domains, including metro routing, logistics delivery, and network fault assessment, where it generalizes across heterogeneous visual graphs and domain-grounded tasks.
Create a lesson
Metadata
- Categories
- cs.MM, cs.AI, cs.CV
- Comments
- Accepted at the 34th ACM International Conference on Multimedia (MM '26)
Related papers
To Think or Not to Think: Pre-Decisional Reasoning Budgets for Referring Audio-Visual Segmentation
Shared title terminologycs.MMHaojie Hu, Senda Chen, Ying Shen et al.
From Expression to Reaction: Role-aware Visual Transfer and Stimulus-guided Reasoning for Interlocutor Emotion Recognition
Shared title terminologycs.MMWei Wang, Zhaowu Li, Jianjie Luo et al.
If You Hear It, Help Find It: Orthogonal Knowledge Distillation for Open-Vocabulary Audio-Visual Event Localization
Shared title terminologycs.MMYi Xu, Cheng Chen, Wenzhuo Lei
Multimodal Emergency Vehicle Classification via Audio-Visual Transformers and Knowledge Distillation
Shared title terminologycs.MMVijay John, Amar Dabaja
GRACE: Grounded Reasoning via Adapter Composition and Evidence-Aware Calibration for Educational Visual Question Answering
Shared title terminologycs.MMXinjin Li, Yudi Xia, Xi Zhao et al.
MAR3: Multi-Agent Recognition, Reasoning, and Reflection for Reference Audio-Visual Segmentation
Shared title terminologycs.MMYuan Zhao, Zhenqi Jia, Yongqiang Zhang