Papers › MSc-SQL: Multi-Sample Critiquing Small Language Models For Text-To-SQL Translation

MSc-SQL: Multi-Sample Critiquing Small Language Models For Text-To-SQL Translation

16 Oct 2024arXiv:2410.12916archive 2025-07-28

Satya Krishna Gorti, Ilan Gofman, Zhaoyan Liu, Jiapeng Wu, Noël Vouitsis, Guangwei Yu, Jesse C. Cresswell, Rasa Hosseinzadeh

Text-to-SQL generation enables non-experts to interact with databases via natural language. Recent advances rely on large closed-source models like GPT-4 that present challenges in accessibility, privacy, and latency. To address these issues, we focus on developing small, efficient, and open-source text-to-SQL models. We demonstrate the benefits of sampling multiple candidate SQL generations and propose our method, MSc-SQL, to critique them using associated metadata. Our sample critiquing model evaluates multiple outputs simultaneously, achieving state-of-the-art performance compared to other open-source models while remaining competitive with larger models at a much lower cost. Full code can be found at github.com/layer6ai-labs/msc-sql.

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="2410.12916")

Code

Syntology Ran 9 of 9 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 9 ran with no contract checked.

By repository: official repository: 9 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

layer6ai-labs/msc-sql officialmentioned in papermentioned on GitHubpytorchMIT 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

9 samples harvested; 9 ran; 0 honoured the contract we drafted; 0 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.

9ran

Licence: 0 of the 9 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 layer6ai-labs/msc-sql. “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.

construct_db_table_names_dict layer6ai-labs/msc-sql/dataset_preprocess.py official repository ran MIT (permissive) · 4d77bf10ae07767a · report
construct_foreign_keys_from_metadata layer6ai-labs/msc-sql/dataset_preprocess.py official repository ran MIT (permissive) · d519fc62c6ec4345 · report
conversations_formatting_function layer6ai-labs/msc-sql/models/model_base.py official repository ran MIT (permissive) · 723ec472cbc778d8 · report
format_results_html layer6ai-labs/msc-sql/datautils/sql_results.py official repository ran MIT (permissive) · b98c2d1d6cd9e90c · report
format_results_markdown layer6ai-labs/msc-sql/datautils/sql_results.py official repository ran MIT (permissive) · ed58f6158c045eda · report
get_col_description layer6ai-labs/msc-sql/dataset_preprocess.py official repository ran MIT (permissive) · 7739a5427ea96e9d · report
init_bird_message layer6ai-labs/msc-sql/dataset_gen.py official repository ran MIT (permissive) · 39d1b7e2bc57a6fa · report
init_spider_message layer6ai-labs/msc-sql/dataset_gen.py official repository ran MIT (permissive) · af91033b3006347a · report
str2bool layer6ai-labs/msc-sql/inference.py official repository ran MIT (permissive) · 64b000099b946d2c · report

Tasks

Text to SQLText-To-SQL

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Text-To-SQL BIRD (BIg Bench for LaRge-scale Database Grounded Text-to-SQL Evaluation) MSc-SQL Execution Accuracy % (Dev) 65.6 #38 of 41 Archive leaderboard report
Text-To-SQL spider MSc-SQL Execution Accuracy (Test) 84.7 #5 of 20 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutFocusGPT-4Label SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

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