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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Liu, Hanbing, Li, Haoyang, Zhang, Xiaokang, Chen, Ruotong, Xu, Haiyong, Tian, Tian, Qi, Qi, Zhang, Jing
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917925426823168
author Liu, Hanbing
Li, Haoyang
Zhang, Xiaokang
Chen, Ruotong
Xu, Haiyong
Tian, Tian
Qi, Qi
Zhang, Jing
author_facet Liu, Hanbing
Li, Haoyang
Zhang, Xiaokang
Chen, Ruotong
Xu, Haiyong
Tian, Tian
Qi, Qi
Zhang, Jing
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_11656
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Uncovering the Impact of Chain-of-Thought Reasoning for Direct Preference Optimization: Lessons from Text-to-SQL
Liu, Hanbing
Li, Haoyang
Zhang, Xiaokang
Chen, Ruotong
Xu, Haiyong
Tian, Tian
Qi, Qi
Zhang, Jing
Computation and Language
Databases
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.
title Uncovering the Impact of Chain-of-Thought Reasoning for Direct Preference Optimization: Lessons from Text-to-SQL
topic Computation and Language
Databases
url https://arxiv.org/abs/2502.11656