Lune

ICDE2026Top-tier venue

MM2SQL: A Benchmark and Method for Visually-Grounded SQL Generation

Shengze Shi, Tao Ren, Li Qi, Tingrui Yang, Wei Xiong, Jun Hu

Abstract

Text-to-SQL methods enable users to query databases using natural language, but they are limited to purely textual inputs and cannot handle queries involving visual evidence. While recent advances in Vision-Language Models (VLMs) have shown promise for multimodal reasoning tasks, these models struggle with queries that require grounding visual content to database schemas. Hence, we introduce MM2SQL, a comprehensive benchmark and method for multimodal-to-SQL generation that bridges visual perception with structured database querying. To address the fundamental challenge of visual-schema alignment, we develop a systematic benchmark construction pipeline that captures varying levels of visual-schema complexity, from direct entity grounding to sophisticated contextual associations, ensuring that genuine multimodal reasoning is required rather than relying on unimodal shortcuts. Our training methodology employs a progressive framework with specially designed reward metrics that prioritize visual-schema alignment capabilities, moving beyond traditional SQL generation metrics to optimize for the unique challenges of visually-grounded database reasoning. Experimental results demonstrate significant improvements in execution accuracy across diverse visual reasoning scenarios.

Ask Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

its abstract · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. Can MLLMs Reason Beyond Language? VisReason: A Comprehensive Benchmark for Vision-Centric ReasoningLongteng Guo, Yifan Wang, Pengkang Huo, Tailai Chen et al.ACL Findings 2026
  2. MMTabReal: Real-World Benchmark for Multimodal Table UnderstandingPrasham Yatinkumar Titiya, Jainil Trivedi, Chitta Baral, Vivek GuptaACL Findings 2026
  3. VKG-QA: Visual Knowledge Graph-based Question Answer for Large Multimodal ModelsYuntao Du, Yiming Wang, Renshuo Yuan, Jincheng Yue et al.CVPR 2026
  4. CRIT: Graph-Based Automatic Data Synthesis to Enhance Cross-Modal Multi-Hop ReasoningJunyoung Sung, Seungwoo Lyu, Minjun Kim, Sumin An et al.CVPR 2026 · 2 citations
  5. MET-Bench: Multimodal Entity Tracking for Evaluating the Limitations of Vision-Language and Reasoning ModelsVanya Cohen, Ray MooneyICML 2026 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines