Papers › XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQL

XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQL

7 Jul 2025arXiv:2507.04701archive 2025-07-28

Yifu Liu, Yin Zhu, Yingqi Gao, Zhiling Luo, Xiaoxia Li, Xiaorong Shi, Yuntao Hong, Jinyang Gao, Yu Li, Bolin Ding, Jingren Zhou

To leverage the advantages of LLM in addressing challenges in the Text-to-SQL task, we present XiYan-SQL, an innovative framework effectively generating and utilizing multiple SQL candidates. It consists of three components: 1) a Schema Filter module filtering and obtaining multiple relevant schemas; 2) a multi-generator ensemble approach generating multiple highquality and diverse SQL queries; 3) a selection model with a candidate reorganization strategy implemented to obtain the optimal SQL query. Specifically, for the multi-generator ensemble, we employ a multi-task fine-tuning strategy to enhance the capabilities of SQL generation models for the intrinsic alignment between SQL and text, and construct multiple generation models with distinct generation styles by fine-tuning across different SQL formats. The experimental results and comprehensive analysis demonstrate the effectiveness and robustness of our framework. Overall, XiYan-SQL achieves a new SOTA performance of 75.63% on the notable BIRD benchmark, surpassing all previous methods. It also attains SOTA performance on the Spider test set with an accuracy of 89.65%.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2507.04701")

Code

Syntology Ran 0 of 10 code samples harvested from 3 repositories linked to this paper; 10 have no recorded run.

By repository: community (archive-listed): 10 samples from 3 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

XGenerationLab/XiYan-SQL officialmentioned in papermentioned on GitHubApache-2.0 report
XGenerationLab/M-Schema mentioned on GitHubApache-2.0 report
xgenerationlab/xiyan-dbdescgen mentioned on GitHubApache-2.0 report
xgenerationlab/xiyan_mcp_server mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 0 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

10unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

connect_to_mysql xgenerationlab/xiyan_mcp_server/src/xiyan_mcp_server/utils/db_util.py community (archive-listed) unverified Apache-2.0 (permissive) · 710600f1e1c9a9de · report
connect_to_sqlite xgenerationlab/xiyan_mcp_server/src/xiyan_mcp_server/utils/db_util.py community (archive-listed) unverified Apache-2.0 (permissive) · 413d34955ac38f7b · report
extract_llm_messages xgenerationlab/xiyan_mcp_server/src/xiyan_mcp_server/utils/common_util.py community (archive-listed) unverified Apache-2.0 (permissive) · baec0738bb81755c · report
extract_sql_from_qwen xgenerationlab/xiyan_mcp_server/src/xiyan_mcp_server/utils/file_util.py community (archive-listed) unverified Apache-2.0 (permissive) · d40d1bcb2bcbb9b7 · report
is_email xgenerationlab/xiyan-dbdescgen/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 6c18215e45c587c3 · report
read_json XGenerationLab/M-Schema/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · aca120d846c7a603 · report
read_json_file xgenerationlab/xiyan_mcp_server/src/xiyan_mcp_server/utils/file_util.py community (archive-listed) unverified Apache-2.0 (permissive) · eb4b54f7f4ad75d8 · report
read_map_file XGenerationLab/M-Schema/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · a89e25a61bb62fdf · report
read_text XGenerationLab/M-Schema/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · fe5a7de21a351e05 · report
read_text xgenerationlab/xiyan_mcp_server/src/xiyan_mcp_server/utils/file_util.py community (archive-listed) unverified Apache-2.0 (permissive) · 83f493000b654a46 · report

Tasks

Text to SQLText-To-SQL

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections