SQL-PaLM: Improved Large Language Model Adaptation for Text-to-SQL (extended)

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Sun, Ruoxi, Arik, Sercan Ö., Muzio, Alex, Miculicich, Lesly, Gundabathula, Satya, Yin, Pengcheng, Dai, Hanjun, Nakhost, Hootan, Sinha, Rajarishi, Wang, Zifeng, Pfister, Tomas
Format: Preprint
Publié: 2023
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913291252531200
author Sun, Ruoxi
Arik, Sercan Ö.
Muzio, Alex
Miculicich, Lesly
Gundabathula, Satya
Yin, Pengcheng
Dai, Hanjun
Nakhost, Hootan
Sinha, Rajarishi
Wang, Zifeng
Pfister, Tomas
author_facet Sun, Ruoxi
Arik, Sercan Ö.
Muzio, Alex
Miculicich, Lesly
Gundabathula, Satya
Yin, Pengcheng
Dai, Hanjun
Nakhost, Hootan
Sinha, Rajarishi
Wang, Zifeng
Pfister, Tomas
contents Text-to-SQL, the process of translating natural language into Structured Query Language (SQL), represents a transformative application of large language models (LLMs), potentially revolutionizing how humans interact with data. This paper introduces the SQL-PaLM framework, a comprehensive solution for understanding and enhancing Text-to-SQL using LLMs, using in the learning regimes of few-shot prompting and instruction fine-tuning. With few-shot prompting, we explore the effectiveness of consistency decoding with execution-based error filtering. With instruction fine-tuning, we delve deep in understanding the critical paradigms that influence the performance of tuned LLMs. In particular, we investigate how performance can be improved through expanded training data coverage and diversity, synthetic data augmentation, and integrating query-specific database content. We propose a test-time selection method to further refine accuracy by integrating SQL outputs from multiple paradigms with execution feedback as guidance. Additionally, we tackle the practical challenge of navigating intricate databases with a significant number of tables and columns, proposing efficient techniques for accurately selecting relevant database elements to enhance Text-to-SQL performance. Our holistic approach yields substantial advancements in Text-to-SQL, as demonstrated on two key public benchmarks, Spider and BIRD. Through comprehensive ablations and error analyses, we shed light on the strengths and weaknesses of our framework, offering valuable insights into Text-to-SQL's future work.
format Preprint
id arxiv_https___arxiv_org_abs_2306_00739
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle SQL-PaLM: Improved Large Language Model Adaptation for Text-to-SQL (extended)
Sun, Ruoxi
Arik, Sercan Ö.
Muzio, Alex
Miculicich, Lesly
Gundabathula, Satya
Yin, Pengcheng
Dai, Hanjun
Nakhost, Hootan
Sinha, Rajarishi
Wang, Zifeng
Pfister, Tomas
Computation and Language
Artificial Intelligence
Databases
Text-to-SQL, the process of translating natural language into Structured Query Language (SQL), represents a transformative application of large language models (LLMs), potentially revolutionizing how humans interact with data. This paper introduces the SQL-PaLM framework, a comprehensive solution for understanding and enhancing Text-to-SQL using LLMs, using in the learning regimes of few-shot prompting and instruction fine-tuning. With few-shot prompting, we explore the effectiveness of consistency decoding with execution-based error filtering. With instruction fine-tuning, we delve deep in understanding the critical paradigms that influence the performance of tuned LLMs. In particular, we investigate how performance can be improved through expanded training data coverage and diversity, synthetic data augmentation, and integrating query-specific database content. We propose a test-time selection method to further refine accuracy by integrating SQL outputs from multiple paradigms with execution feedback as guidance. Additionally, we tackle the practical challenge of navigating intricate databases with a significant number of tables and columns, proposing efficient techniques for accurately selecting relevant database elements to enhance Text-to-SQL performance. Our holistic approach yields substantial advancements in Text-to-SQL, as demonstrated on two key public benchmarks, Spider and BIRD. Through comprehensive ablations and error analyses, we shed light on the strengths and weaknesses of our framework, offering valuable insights into Text-to-SQL's future work.
title SQL-PaLM: Improved Large Language Model Adaptation for Text-to-SQL (extended)
topic Computation and Language
Artificial Intelligence
Databases
url https://arxiv.org/abs/2306.00739