Graph-of-Mark: Promote Spatial Reasoning in Multimodal Language Models with Graph-Based Visual Prompting

Authors

  • Giacomo Frisoni University of Bologna
  • Lorenzo Molfetta University of Bologna
  • Mattia Buzzoni University of Bologna
  • Gianluca Moro University of Bologna

DOI:

https://doi.org/10.1609/aaai.v40i36.40329

Abstract

Recent advances in training-free visual prompting, such as Set-of-Mark, have emerged as a promising direction for enhancing the grounding capabilities of multimodal language models (MLMs). These techniques operate by partitioning the input image into object regions and annotating them with marks–predominantly boxes with numeric identifiers–before feeding the augmented image to the MLM. However, these approaches treat marked objects as isolated entities, failing to capture the relationships between them. On these premises, we propose Graph-of-Mark (GoM), the first pixel-level visual prompting technique that overlays scene graphs onto the input image for spatial reasoning tasks. We evaluate GoM across 3 open-source MLMs and 4 different datasets, conducting extensive ablations on drawn components and investigating the impact of auxiliary graph descriptions in the text prompt. Our results demonstrate that GoM consistently improves the zero-shot capability of MLMs in interpreting object positions and relative directions, improving base accuracy in visual question answering and localization up to 11 percentage points.

Published

2026-03-14

How to Cite

Frisoni, G., Molfetta, L., Buzzoni, M., & Moro, G. (2026). Graph-of-Mark: Promote Spatial Reasoning in Multimodal Language Models with Graph-Based Visual Prompting. Proceedings of the AAAI Conference on Artificial Intelligence, 40(36), 30726–30734. https://doi.org/10.1609/aaai.v40i36.40329

Issue

Section

AAAI Technical Track on Natural Language Processing I