Graph Visualizations in Prompts for Knowledge Graph Question Answering

Computer Science > Artificial Intelligence arXiv:2611.12938 (cs) [Submitted on 6 Nov 2026] Title: Graph Visualizations in Prompts for Knowledge Graph Question Answering Authors: Luiz do Valle Miranda, Andreas L. Opdahl, Grzegorz J. Nalepa.

计算机科学 > 人工智能 arXiv:2611.12938 (cs) [提交于 2026 年 11 月 6 日] 标题:知识图谱问答提示中的图可视化 作者:Luiz do Valle Miranda, Andreas L. Opdahl, Grzegorz J. Nalepa。

Abstract: We study when and how multimodal input improves knowledge graph question answering (KGQA) in large vision—language models. Using a controlled evaluation over 1,500 WebQSP and CWQ questions and six VLMs within a fixed KGQA pipeline, we compare text-only prompting against text-plus-graph visualization at the per-question level and analyze performance changes as a function of reasoning complexity, model size, and image layout.

摘要:我们研究了多模态输入在何时以及如何改善大型视觉语言模型(VLM)中的知识图谱问答(KGQA)。通过在固定的 KGQA 流水线内对 1,500 个 WebQSP 和 CWQ 问题以及六个 VLM 进行受控评估,我们在每个问题的层面上比较了纯文本提示与文本加图可视化,并分析了性能随推理复杂度、模型规模和图像布局的变化。

Adding a graph image yields an average gain of 1.85 F1 points, driven by strong precision improvements on low-complexity questions (+4.65 F1). Mixed-effects and regression analyses show that these multimodal gains do not depend strongly on model scale, but are highly sensitive to graph layout: image-only settings sharply degrade performance, hierarchical Graphviz layouts outperform less organized renderings, and decomposing large subgraphs into separated paths yields the largest improvements.

添加图表图像平均带来了 1.85 个 F1 点的提升,这主要得益于低复杂度问题上精确度的显著提高(+4.65 F1)。混合效应和回归分析表明,这些多模态收益并不强烈依赖于模型规模,但对图布局高度敏感:仅有图像的设置会严重降低性能,分层 Graphviz 布局优于组织较差的渲染,而将大型子图分解为独立路径则能带来最大的改进。

Taken together, the results indicate that visual prompting primarily aids KGQA by enhancing prediction precision in low-complexity contexts, provided that visual design respects cognitive and perceptual constraints. To optimize both accuracy and inference efficiency, we argue for adaptive visual prompting policies that selectively append diagrams to small, visually sparse subgraphs with well-structured layouts, avoiding unnecessary visual clutter and token overhead on complex queries.

综上所述,结果表明,只要视觉设计遵循认知和感知约束,视觉提示主要通过提高低复杂度环境下的预测精度来辅助 KGQA。为了优化准确性和推理效率,我们主张采用自适应视觉提示策略,即有选择地将图表附加到具有结构良好布局的小型、视觉稀疏的子图上,从而避免在复杂查询中产生不必要的视觉混乱和标记开销。