SteinerSQL: Graph-Guided Mathematical Reasoning for Text-to-SQL Generation

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Mao, Xutao, Liu, Tao, Zan, Hongying
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912602338099200
author Mao, Xutao
Liu, Tao
Zan, Hongying
author_facet Mao, Xutao
Liu, Tao
Zan, Hongying
contents Large Language Models (LLMs) struggle with complex Text-to-SQL queries that demand both sophisticated mathematical reasoning and intricate schema navigation. Existing methods often tackle these challenges in isolation, creating a fractured reasoning process that compromises logical and structural correctness. To resolve this, we introduce SteinerSQL, a framework that unifies these dual challenges into a single, graph-centric optimization problem. SteinerSQL operates in three stages: mathematical decomposition to identify required tables (terminals), optimal reasoning scaffold construction via a Steiner tree problem, and multi-level validation to ensure correctness. On the challenging LogicCat and Spider2.0-Lite benchmarks, SteinerSQL establishes a new state-of-the-art with 36.10% and 40.04% execution accuracy, respectively, using Gemini-2.5-Pro. Beyond accuracy, SteinerSQL presents a new, unified paradigm for Text-to-SQL, paving the way for more robust and principled solutions to complex reasoning tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2509_19623
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SteinerSQL: Graph-Guided Mathematical Reasoning for Text-to-SQL Generation
Mao, Xutao
Liu, Tao
Zan, Hongying
Artificial Intelligence
Large Language Models (LLMs) struggle with complex Text-to-SQL queries that demand both sophisticated mathematical reasoning and intricate schema navigation. Existing methods often tackle these challenges in isolation, creating a fractured reasoning process that compromises logical and structural correctness. To resolve this, we introduce SteinerSQL, a framework that unifies these dual challenges into a single, graph-centric optimization problem. SteinerSQL operates in three stages: mathematical decomposition to identify required tables (terminals), optimal reasoning scaffold construction via a Steiner tree problem, and multi-level validation to ensure correctness. On the challenging LogicCat and Spider2.0-Lite benchmarks, SteinerSQL establishes a new state-of-the-art with 36.10% and 40.04% execution accuracy, respectively, using Gemini-2.5-Pro. Beyond accuracy, SteinerSQL presents a new, unified paradigm for Text-to-SQL, paving the way for more robust and principled solutions to complex reasoning tasks.
title SteinerSQL: Graph-Guided Mathematical Reasoning for Text-to-SQL Generation
topic Artificial Intelligence
url https://arxiv.org/abs/2509.19623