Uncovering the Impact of Chain-of-Thought Reasoning for Direct Preference Optimization: Lessons from Text-to-SQL
On the map: LLM reasoning → Mathematical reasoning
Abstract (arXiv)
Direct Preference Optimization (DPO) has proven effective in complex reasoning tasks like math word problems and code generation. However, when applied to Text-to-SQL datasets, it often fails to improve performance and can even degrade it. Our investigation reveals the root cause: unlike math and code tasks, which naturally integrate Chain-of-Thought (CoT) reasoning with DPO, Text-to-SQL datasets typically include only final answers (gold SQL queries) without detailed CoT solutions. By augmenting Text-to-SQL datasets with synthetic CoT solutions, we achieve, for the first time, consistent and significant performance improvements using DPO. Our analysis shows that CoT reasoning is crucial for unlocking DPO's potential, as it mitigates reward hacking, strengthens discriminative capabilities, and improves scalability. These findings offer valuable insights for building more robust Text-to-SQL models. To support further research, we publicly release the code and CoT-enhanced datasets.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 36 of its 66 references that are in the map. First posted on arXiv 17 Feb 2025.
Builds on
36 of 66 references.
Closest ancestors · 2
Same direction, newest first
- 2024Preference Optimization for Reasoning with Pseudo Feedback25 Nov
- 2024Orca-Math: Unlocking the potential of SLMs in Grade School Math16 Feb
Other references · 34
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2024Qwen2 Technical Reportcited by 2,076
- 2024Mixtral of Expertscited by 1,785
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,442
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2017Mixed Precision Trainingcited by 1,135
22 more
- 2024SimPO: Simple Preference Optimization with a Reference-Free Rewardcited by 951
- 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 810
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
- 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 621
- 2024RewardBench: Evaluating Reward Models for Language Modelingcited by 480
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 325
- 2024To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoningcited by 257
- 2024KTO: Model Alignment as Prospect Theoretic Optimizationcited by 256
- 2024From r to Q^*: Your Language Model is Secretly a Q-Functioncited by 242
- 2024V-STaR: Training Verifiers for Self-Taught Reasonerscited by 214
- 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
- 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 159
- 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 158
- 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLcited by 132
- 2024DPO Meets PPO: Reinforced Token Optimization for RLHFcited by 126
- 2024CodeUltraFeedback: An LLM-as-a-Judge Dataset for Aligning Large Language Models to Coding Preferencescited by 56
- 2024Bootstrapping Language Models with DPO Implicit Rewardscited by 53
- 2024DTS-SQL: Decomposed Text-to-SQL with Small Large Language Modelscited by 45
- 2024E-SQL: Direct Schema Linking via Question Enrichment in Text-to-SQLcited by 35
- 2024MAGIC: Generating Self-Correction Guideline for In-Context Text-to-SQLcited by 34
- 2024PLUM: Improving Code LMs with Execution-Guided On-Policy Preference Learning Driven By Synthetic Test Casescited by 8
- 2024DAC: Decomposed Automation Correction for Text-to-SQLcited by 6
Built on by
Citing papers per year: 2025: 5; 2026: 4.
9 papers.
- 2025ReEx-SQL: Reasoning with Execution-Aware Reinforcement Learning for Text-to-SQLcited by 8
- 2025LearNAT: Learning NL2SQL with AST-guided Task Decomposition for Large Language Modelscited by 7
- 2025SAFENLIDB: A Privacy-Preserving Safety Alignment Framework for LLM-based Natural Language Database Interfacescited by 4
- 2025See or Say Graphs: Agent-Driven Scalable Graph Structure Understanding with Vision-Language Modelscited by 2
- 2026EvolSQL: Structure-Aware Evolution for Scalable Text-to-SQL Data Synthesiscited by 1
- 2026EXPO-SQL: Execution-based Clause-level Policy Optimization for Text-to-SQLcited by 1
- 2025Knowledge Distillation with Structured Chain-of-Thought for Text-to-SQLcited by 0
- 2026Learning When to Reason for Text-to-SQL via SFT and DPOcited by 0
- 2026BIRD-History: A Benchmark for History-Driven Text-to-SQL with Fine-Grained Knowledge Annotationscited by 0
- 2026BIRD-History: A Benchmark for History-Driven Text-to-SQL with Fine-Grained Knowledge Annotations29 Aug 2026
- 2026Learning When to Reason for Text-to-SQL via SFT and DPO17 Jun 2026
- 2026EXPO-SQL: Execution-based Clause-level Policy Optimization for Text-to-SQL29 Apr 2026
- 2026EvolSQL: Structure-Aware Evolution for Scalable Text-to-SQL Data Synthesis8 Jan 2026
- 2025Knowledge Distillation with Structured Chain-of-Thought for Text-to-SQL18 Dec 2025
- 2025SAFENLIDB: A Privacy-Preserving Safety Alignment Framework for LLM-based Natural Language Database Interfaces10 Nov 2025
- 2025See or Say Graphs: Agent-Driven Scalable Graph Structure Understanding with Vision-Language Models19 Oct 2025
- 2025ReEx-SQL: Reasoning with Execution-Aware Reinforcement Learning for Text-to-SQL19 May 2025
- 2025LearNAT: Learning NL2SQL with AST-guided Task Decomposition for Large Language Models3 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2025ExCoT: Optimizing Reasoning for Text-to-SQL with Execution Feedback
- 2024Step-DPO: Step-wise Preference Optimization for Long-chain Reasoning of LLMs
- 2024Chain of Preference Optimization: Improving Chain-of-Thought Reasoning in LLMs
- 2025Evaluating GRPO and DPO for Faithful Chain-of-Thought Reasoning in LLMs
- 2025Full-Step-DPO: Self-Supervised Preference Optimization with Step-wise Rewards for Mathematical Reasoning
- 2026SPOC-SQL: Stage-wise Preference Optimization for Controllable Text-to-SQL
- 2026Continuous-Utility Direct Preference Optimization
- 2025Sparks of Tabular Reasoning via Text2SQL Reinforcement Learning