mlsanityData to 7 Oct 2026

Uncovering the Impact of Chain-of-Thought Reasoning for Direct Preference Optimization: Lessons from Text-to-SQL

arXiv 2502.11656 ↗First posted 17 Feb 2025cs.CL cs.DBcited by 9

On the map: LLM reasoning → Mathematical reasoning

also in 1 more
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

  1. 2024Preference Optimization for Reasoning with Pseudo Feedback25 Nov
  2. 2024Orca-Math: Unlocking the potential of SLMs in Grade School Math16 Feb

Other references · 34

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  3. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  4. 2024Qwen2.5 Technical Reportcited by 4,713
  5. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  6. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  7. 2024Qwen2 Technical Reportcited by 2,076
  8. 2024Mixtral of Expertscited by 1,785
  9. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,442
  10. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  11. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  12. 2017Mixed Precision Trainingcited by 1,135
22 more
  1. 2024SimPO: Simple Preference Optimization with a Reference-Free Rewardcited by 951
  2. 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 810
  3. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
  4. 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 621
  5. 2024RewardBench: Evaluating Reward Models for Language Modelingcited by 480
  6. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 325
  7. 2024To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoningcited by 257
  8. 2024KTO: Model Alignment as Prospect Theoretic Optimizationcited by 256
  9. 2024From r to Q^*: Your Language Model is Secretly a Q-Functioncited by 242
  10. 2024V-STaR: Training Verifiers for Self-Taught Reasonerscited by 214
  11. 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
  12. 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 159
  13. 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 158
  14. 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLcited by 132
  15. 2024DPO Meets PPO: Reinforced Token Optimization for RLHFcited by 126
  16. 2024CodeUltraFeedback: An LLM-as-a-Judge Dataset for Aligning Large Language Models to Coding Preferencescited by 56
  17. 2024Bootstrapping Language Models with DPO Implicit Rewardscited by 53
  18. 2024DTS-SQL: Decomposed Text-to-SQL with Small Large Language Modelscited by 45
  19. 2024E-SQL: Direct Schema Linking via Question Enrichment in Text-to-SQLcited by 35
  20. 2024MAGIC: Generating Self-Correction Guideline for In-Context Text-to-SQLcited by 34
  21. 2024PLUM: Improving Code LMs with Execution-Guided On-Policy Preference Learning Driven By Synthetic Test Casescited by 8
  22. 2024DAC: Decomposed Automation Correction for Text-to-SQLcited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 5; 2026: 4.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025ExCoT: Optimizing Reasoning for Text-to-SQL with Execution Feedback
  2. 2024Step-DPO: Step-wise Preference Optimization for Long-chain Reasoning of LLMs
  3. 2024Chain of Preference Optimization: Improving Chain-of-Thought Reasoning in LLMs
  4. 2025Evaluating GRPO and DPO for Faithful Chain-of-Thought Reasoning in LLMs
  5. 2025Full-Step-DPO: Self-Supervised Preference Optimization with Step-wise Rewards for Mathematical Reasoning
  6. 2026SPOC-SQL: Stage-wise Preference Optimization for Controllable Text-to-SQL
  7. 2026Continuous-Utility Direct Preference Optimization
  8. 2025Sparks of Tabular Reasoning via Text2SQL Reinforcement Learning