DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction

By M. Pourreza, Davood Rafiei. Neural Information Processing Systems, 2023

761 citations recorded by the source corpus.

We study the problem of decomposing a complex text-to-sql task into smaller sub-tasks and how such a decomposition can significantly improve the performance of Large Language Models (LLMs) in the reasoning process. There is currently a significant gap between the performance of fine-tuned models and prompting approaches using LLMs on challenging text-to-sql datasets such as Spider. We show that SQL queries, despite their declarative structure, can be broken down into sub-problems and the solutions of those sub-problems can be fed into LLMs to significantly improve their performance. Our experiments with three LLMs show that this approach consistently improves their performance by roughly 10%, pushing the accuracy of LLMs towards state-of-the-art, and even beating large fine-tuned models on the holdout Spider dataset.

Subfields: Artificial Intelligence, Management Science and Operations Research

View Paper: https://www.semanticscholar.org/paper/cc0f0cb09a73f82ed44d900f5ca710bec784acc1

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Christopher Potts
  2. Omar Khattab
  3. Matei A. Zaharia
  4. Keshav Santhanam
  5. Tomas Pfister
  6. Pengcheng Yin
  7. Jingren Zhou
  8. Sercan Ö. Arik

In Management Science and Operations Research

  1. Matei A. Zaharia
  2. Fei Huang
  3. Omar Khattab
  4. Christopher Potts
  5. Bolin Ding
  6. Jingren Zhou
  7. Tomas Pfister
  8. Yaliang Li

Citations in the corpus