PTD-SQL: Partitioning and Targeted Drilling with LLMs in Text-to-SQL

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Luo, Ruilin, Wang, Liyuan, Lin, Binghuai, Lin, Zicheng, Yang, Yujiu
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866912039594622976
author Luo, Ruilin
Wang, Liyuan
Lin, Binghuai
Lin, Zicheng
Yang, Yujiu
author_facet Luo, Ruilin
Wang, Liyuan
Lin, Binghuai
Lin, Zicheng
Yang, Yujiu
contents Large Language Models (LLMs) have emerged as powerful tools for Text-to-SQL tasks, exhibiting remarkable reasoning capabilities. Different from tasks such as math word problems and commonsense reasoning, SQL solutions have a relatively fixed pattern. This facilitates the investigation of whether LLMs can benefit from categorical thinking, mirroring how humans acquire knowledge through inductive reasoning based on comparable examples. In this study, we propose that employing query group partitioning allows LLMs to focus on learning the thought processes specific to a single problem type, consequently enhancing their reasoning abilities across diverse difficulty levels and problem categories. Our experiments reveal that multiple advanced LLMs, when equipped with PTD-SQL, can either surpass or match previous state-of-the-art (SOTA) methods on the Spider and BIRD datasets. Intriguingly, models with varying initial performances have exhibited significant improvements, mainly at the boundary of their capabilities after targeted drilling, suggesting a parallel with human progress. Code is available at https://github.com/lrlbbzl/PTD-SQL.
format Preprint
id arxiv_https___arxiv_org_abs_2409_14082
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle PTD-SQL: Partitioning and Targeted Drilling with LLMs in Text-to-SQL
Luo, Ruilin
Wang, Liyuan
Lin, Binghuai
Lin, Zicheng
Yang, Yujiu
Computation and Language
Artificial Intelligence
Large Language Models (LLMs) have emerged as powerful tools for Text-to-SQL tasks, exhibiting remarkable reasoning capabilities. Different from tasks such as math word problems and commonsense reasoning, SQL solutions have a relatively fixed pattern. This facilitates the investigation of whether LLMs can benefit from categorical thinking, mirroring how humans acquire knowledge through inductive reasoning based on comparable examples. In this study, we propose that employing query group partitioning allows LLMs to focus on learning the thought processes specific to a single problem type, consequently enhancing their reasoning abilities across diverse difficulty levels and problem categories. Our experiments reveal that multiple advanced LLMs, when equipped with PTD-SQL, can either surpass or match previous state-of-the-art (SOTA) methods on the Spider and BIRD datasets. Intriguingly, models with varying initial performances have exhibited significant improvements, mainly at the boundary of their capabilities after targeted drilling, suggesting a parallel with human progress. Code is available at https://github.com/lrlbbzl/PTD-SQL.
title PTD-SQL: Partitioning and Targeted Drilling with LLMs in Text-to-SQL
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2409.14082