mlsanityData to 14 Oct 2026

Knowledge Distillation with Structured Chain-of-Thought for Text-to-SQL

arXiv 2512.17053 ↗First posted 18 Dec 2025cs.CL cs.AI cs.DBcited by 1

On the map: LLM reasoning → Knowledge- and tool-augmented reasoning

also in 1 more
Abstract (arXiv)

Deploying accurate Text-to-SQL systems at the enterprise level faces a difficult trilemma involving cost, security and performance. Current solutions force enterprises to choose between expensive, proprietary Large Language Models (LLMs) and low-performing Small Language Models (SLMs). Efforts to improve SLMs often rely on distilling reasoning from large LLMs using unstructured Chain-of-Thought (CoT) traces, a process that remains inherently ambiguous. Instead, we hypothesize that a formal, structured reasoning representation provides a clearer, more reliable teaching signal, as the Text-to-SQL task requires explicit and precise logical steps. To evaluate this hypothesis, we propose Struct-SQL, a novel Knowledge Distillation (KD) framework that trains an SLM to emulate a powerful large LLM. Consequently, we adopt a query execution plan as a formal blueprint to derive this structured reasoning. Our SLM, distilled with structured CoT, achieves an absolute improvement of 8.1% over an unstructured CoT distillation baseline. A detailed error analysis reveals that a key factor in this gain is a marked reduction in syntactic errors. This demonstrates that teaching a model to reason using a structured logical blueprint is beneficial for reliable SQL generation in SLMs.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 11 of its 38 references that are in the map. First posted on arXiv 18 Dec 2025.

Builds on

11 of 38 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQL22 May
  2. 2025ExCoT: Optimizing Reasoning for Text-to-SQL with Execution Feedback25 Mar

Other references · 9

  1. 2025Qwen3 Technical Reportcited by 8,820
  2. 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 164
  3. 2022Learning by Distilling Contextcited by 138
  4. 2023A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capabilitycited by 119
  5. 2022Evaluating the Text-to-SQL Capabilities of Large Language Modelscited by 101
  6. 2024PET-SQL: A Prompt-Enhanced Two-Round Refinement of Text-to-SQL with Cross-consistencycited by 27
  7. 2023Divide and Prompt: Chain of Thought Prompting for Text-to-SQLcited by 20
  8. 2023Mixed Distillation Helps Smaller Language Model Better Reasoningcited by 19
  9. 2025Uncovering the Impact of Chain-of-Thought Reasoning for Direct Preference Optimization: Lessons from Text-to-SQLcited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Knowledge Distillation for Low-Resource Open-source Text-to-SQL Model
  2. 2025Rationalization Models for Text-to-SQL
  3. 2025Deconstructing Long Chain-of-Thought: A Structured Reasoning Optimization Framework for Long CoT Distillation
  4. 2025Effectiveness of Chain-of-Thought in Distilling Reasoning Capability from Large Language Models
  5. 2026IESR:Efficient MCTS-Based Modular Reasoning for Text-to-SQL with Large Language Models
  6. 2025Meta-aware Learning in text-to-SQL Large Language Model
  7. 2026SQuaD-SQL: Efficient Text-to-SQL with Small Language Models via LLM-Guided Knowledge Distillation
  8. 2023Effective Distillation of Table-based Reasoning Ability from LLMs