Skip to content
AI News HubLIVE
Original source2 min read

Learning When to Reason for Text-to-SQL via SFT and DPO

Summary

Proposes AutoThinkSQL framework that integrates an auto-thinking mechanism into SFT and DPO for Text-to-SQL, dynamically bypassing reasoning for simple queries and invoking deep CoT for complex ones, achieving gains on Spider and BIRD benchmarks while reducing output tokens and latency.

SourcearXiv Computational LinguisticsAuthor: Soohyuk Jang, Jiheum Yeom, Nohil Park, Sang Hun Kim, Yoonyoung Choi, Kiwook Bae, Sungroh Yoon
Learning When to Reason for Text-to-SQL via SFT and DPO
Report an error

The correction channel is not available yet. You can copy the article reference below for later.

Correction instructions
Read article

[Submitted on 17 Jun 2026]

Title:Learning When to Reason for Text-to-SQL via SFT and DPO

View a PDF of the paper titled Learning When to Reason for Text-to-SQL via SFT and DPO, by Soohyuk Jang and 6 other authors

View PDF HTML (experimental)

Abstract:Recent Text-to-SQL methods rely heavily on reasoning-centric paradigms such as Chain-of-Thought (CoT), achieving substantial gains on complex benchmarks at the cost of high inference-time overhead. However, a large fraction of real-world queries are simple lookups or aggregations that can be resolved without multi-step deduction, making forced reasoning wasteful. Thus, we propose AutoThinkSQL, a framework that integrates an auto-thinking mechanism into both Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO) on Text-to-SQL. Our approach enables the model to dynamically bypass reasoning for simple queries while invoking deep CoT for complex queries. On Qwen3-Coder-30B-A3B, our method achieves consistent gains compared to the best counterpart baseline on both Spider and BIRD benchmarks while simultaneously reducing average output tokens by 24.6% and 18.3%, and average latency by 17.1% and 11.5% compared to CoT-only generation. Further analysis indicates that the model learns to align its reasoning decisions with query difficulty.

Comments: 8 pages, 5 figures. Model checkpoints are available at this https URL

Subjects:

Computation and Language (cs.CL); Artificial Intelligence (cs.AI)

Cite as: arXiv:2607.22622 [cs.CL]

(or arXiv:2607.22622v1 [cs.CL] for this version)

https://doi.org/10.48550/arXiv.2607.22622

arXiv-issued DOI via DataCite

Submission history

From: Soohyuk Jang [view email] [v1] Wed, 17 Jun 2026 06:31:28 UTC (51 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled Learning When to Reason for Text-to-SQL via SFT and DPO, by Soohyuk Jang and 6 other authors

View PDF

HTML (experimental)

TeX Source

view license

Current browse context:

cs.CL

new | recent | 2026-07

Change to browse by:

cs cs.AI

References & Citations

NASA ADS

Google Scholar

Semantic Scholar

Loading...

Data provided by:

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)

Key points and analysis

Article intelligence

EngineersAdvanced

Key points

  • AutoThinkSQL dynamically decides whether to use reasoning, avoiding overhead for simple queries.
  • On Qwen3-Coder-30B-A3B, it reduces output tokens by ~24.6% and 18.3% and latency by 17.1% and 11.5% compared to CoT-only.
  • The model learns to align its reasoning strategy with query difficulty.

Highlights and analysis are generated automatically and may contain errors. Check the original source.