Papers
arxiv:2603.16448

TRUST-SQL: Tool-Integrated Multi-Turn Reinforcement Learning for Text-to-SQL over Unknown Schemas

Published on Mar 17
· Submitted by
ZhangXiaoyun
on Mar 18
Authors:
,
,
,
,

Abstract

TRUST-SQL addresses unknown schema text-to-SQL parsing through a four-phase protocol and dual-track GRPO strategy that improves credit assignment and outperforms baselines without pre-loaded metadata.

AI-generated summary

Text-to-SQL parsing has achieved remarkable progress under the Full Schema Assumption. However, this premise fails in real-world enterprise environments where databases contain hundreds of tables with massive noisy metadata. Rather than injecting the full schema upfront, an agent must actively identify and verify only the relevant subset, giving rise to the Unknown Schema scenario we study in this work. To address this, we propose TRUST-SQL (Truthful Reasoning with Unknown Schema via Tools). We formulate the task as a Partially Observable Markov Decision Process where our autonomous agent employs a structured four-phase protocol to ground reasoning in verified metadata. Crucially, this protocol provides a structural boundary for our novel Dual-Track GRPO strategy. By applying token-level masked advantages, this strategy isolates exploration rewards from execution outcomes to resolve credit assignment, yielding a 9.9% relative improvement over standard GRPO. Extensive experiments across five benchmarks demonstrate that TRUST-SQL achieves an average absolute improvement of 30.6% and 16.6% for the 4B and 8B variants respectively over their base models. Remarkably, despite operating entirely without pre-loaded metadata, our framework consistently matches or surpasses strong baselines that rely on schema prefilling.

Community

Paper author Paper submitter

No full schema. No pre-loaded metadata. Still stronger Text-to-SQL. We present TRUST-SQL, an autonomous agent for the Unknown Schema setting that learns to discover, verify, and reason over only the relevant schema subset. With a four-phase protocol and Dual-Track GRPO for precise credit assignment, TRUST-SQL outperforms standard GRPO by 9.9% and achieves substantial gains across five benchmarks, often rivaling or surpassing methods that rely on schema prefilling.

Sign up or log in to comment

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2603.16448 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2603.16448 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2603.16448 in a Space README.md to link it from this page.

Collections including this paper 1