SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.03465 · 2026

FINER-SQL: Boosting Small Language Models for Text-to-SQL

Tong Chen, Thanh Nguyen, Quoc Viet, Hung Nguyen, Hongzhi Yin, Thanh Huynh, Thanh Hoang, Matthias Weidlich

arXiv · PDF

Code that ran

14 of 17 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 4 violated it and 0 have no contract verdict; 10 failures of our instrument; 3 no recorded run), measured 2026-11-21; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.03465.json · badge: /api/ran/2605.03465.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
thanhdath/finer-sql canonical (classifier label)
classifier basis: census
14 ran · 3 no recorded run
FunctionStatusWhere it lives
analyze_sql_errors Ran
ran; our contract draft was wrong, not the code
thanhdath/finer-sql/evaluation/analyze_sql_errors.py
pointer only (licence: NONE) · get_code("d15b3cb7837805e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

call_sql_api Ran
ran; our contract draft was wrong, not the code
thanhdath/finer-sql/reasoning_distilation/check_sql_correctness.py
pointer only (licence: NONE) · get_code("4bc0bd6df4621bba")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

call_sql_api Ran
ran; our contract draft was wrong, not the code
thanhdath/finer-sql/build_gt_cache.py
pointer only (licence: NONE) · get_code("551b409c91a3e967")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

canonicalize_for_storage Ran
ran; our contract draft was wrong, not the code
thanhdath/finer-sql/evaluation/add_correct_sqls_from_eval.py
pointer only (licence: NONE) · get_code("d9968f252ea800b1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

check_api_health Ran
ran, violated the contract we drafted
thanhdath/finer-sql/grpo_writer.py
pointer only (licence: NONE) · get_code("cc8d0081963d422c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

classify Ran
ran; our contract draft was wrong, not the code
thanhdath/finer-sql/db_execution/api.py
pointer only (licence: NONE) · get_code("dc377d73d6870e1a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dataframes_equal Ran
ran, violated the contract we drafted
thanhdath/finer-sql/evaluation/add_correct_sqls_from_eval.py
pointer only (licence: NONE) · get_code("536c0bf7ea8655b5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_sql_from_response Ran
ran; our contract draft was wrong, not the code
thanhdath/finer-sql/reasoning_distilation/check_sql_correctness.py
pointer only (licence: NONE) · get_code("97a38a7e4a12d0ec")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_api_dead_error Ran
ran, violated the contract we drafted
thanhdath/finer-sql/grpo_writer.py
pointer only (licence: NONE) · get_code("6a0f8c4a557d4229")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_select_like Ran
ran, violated the contract we drafted
thanhdath/finer-sql/reasoning_distilation/check_sql_correctness.py
pointer only (licence: NONE) · get_code("28752b860753c789")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

norm Ran
ran; our contract draft was wrong, not the code
thanhdath/finer-sql/evaluation/_tmp_compare_mismatch.py
pointer only (licence: NONE) · get_code("7c3da8c0817eae00")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_for_compare Ran
ran; our contract draft was wrong, not the code
thanhdath/finer-sql/evaluation/add_correct_sqls_from_eval.py
pointer only (licence: NONE) · get_code("2693b93ef9e03214")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

process_single_sample Ran
ran; our contract draft was wrong, not the code
thanhdath/finer-sql/build_gt_cache.py
pointer only (licence: NONE) · get_code("80a58884b0c0aded")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

reverse_map_db_name Ran
ran; our contract draft was wrong, not the code
thanhdath/finer-sql/db_execution/api.py
pointer only (licence: NONE) · get_code("42d2b6d581486984")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

call_deepseek_chat Not yet run
unverified (harvested, no recorded run)
thanhdath/finer-sql/reasoning_distilation/model_pool_generate.py
pointer only (licence: NONE) · get_code("f3cfb6c64f7296f1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

call_together_chat Not yet run
unverified (harvested, no recorded run)
thanhdath/finer-sql/reasoning_distilation/model_pool_generate.py
pointer only (licence: NONE) · get_code("d854a01aef1a8c2b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

wait_for_api_recovery Not yet run
unverified (harvested, no recorded run)
thanhdath/finer-sql/grpo_writer.py
pointer only (licence: NONE) · get_code("f3df66b5e5ef7942")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thanhdath/finer-sql when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 17 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-21.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large language models have driven major advances in Text-to-SQL generation. However, they suffer from high computational cost, long latency, and data privacy concerns, which make them impractical for many real-world applications. A natural alternative is to use small language models (SLMs), which enable efficient and private on-premise deployment. Yet, SLMs often struggle with weak reasoning and poor instruction following. Conventional reinforcement learning methods based on sparse binary rewards (0/1) provide little learning signal when the generated SQLs are incorrect, leading to unstable or collapsed training. To overcome these issues, we propose FINER-SQL, a scalable and reusable reinforcement learning framework that enhances SLMs through fine-grained execution feedback. Built on group relative policy optimization, FINER-SQL replaces sparse supervision with dense and interpretable rewards that offer continuous feedback even for incorrect SQLs. It introduces two key reward functions: a memory reward, which aligns reasoning with verified traces for semantic stability, and an atomic reward, which measures operation-level overlap to grant partial credit for structurally correct but incomplete SQLs. This approach transforms discrete correctness into continuous learning, enabling stable, critic-free optimization. Experiments on the BIRD and Spider benchmarks show that FINER-SQL achieves up to 67.73% and 85% execution accuracy with a 3B model -matching much larger LLMs while reducing inference latency to 5.57 s/sample. These results highlight a cost-efficient and privacy-preserving path toward high-performance Text-to-SQL generation. Our code is available at https://github.com/thanhdath/finer-sql.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.03465")
get_code_for_paper("2605.03465")
have("2605.03465")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.03465.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.03465.svg)](https://syntology.ai/paper/2605.03465)

Connect an agent — have() is free.