Enhancing Text-to-SQL Translation for Financial System Design

  • Yewei Song*
  • , Saad Ezzini
  • , Xunzhu Tang
  • , Cedric Lothritz
  • , Jacques Klein
  • , Tegawende Bissyande
  • , Andrey Boytsov
  • , Ulrick Ble
  • , Anne Goujon
  • *Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

8 Scopus citations

Abstract

Text-to-SQL, the task of translating natural language questions into SQL queries, is part of various business processes. Its automation, which is an emerging challenge, will empower software practitioners to seamlessly interact with relational databases using natural language, thereby bridging the gap between business needs and software capabilities. In this paper, we consider Large Language Models (LLMs), which have achieved state of the art for various NLP tasks. Specifically, we benchmark Text-to-SQL performance, the evaluation methodologies, as well as input optimization (e.g., prompting). In light of the empirical observations that we have made, we propose two novel metrics that were designed to adequately measure the similarity between SQL queries. Overall, we share with the community various findings, notably on how to select the right LLM on Text-to-SQL tasks. We further demonstrate that a tree-based edit distance constitutes a reliable metric for assessing the similarity between generated SQL queries and the oracle for benchmarking Text2SQL approaches. This metric is important as it relieves researchers from the need to perform computationally expensive experiments such as executing generated queries as done in prior works. Our work implements financial domain use cases and, therefore contributes to the advancement of Text2SQL systems and their practical adoption in this domain.

Original languageEnglish
Title of host publicationProceedings - 2024 ACM/IEEE 46th International Conference on Software Engineering
Subtitle of host publicationSoftware Engineering in Practice, ICSE-SEIP 2024
PublisherAssociation for Computing Machinery
Pages252-262
Number of pages11
ISBN (Electronic)9798400705007
DOIs
StatePublished - 31 May 2024
Externally publishedYes
Event46th ACM/IEEE International Conference on Software Engineering: Software Engineering in Practice, ICSE-SEIP 2024 - Lisbon, Portugal
Duration: 14 Apr 202420 Apr 2024

Publication series

NameACM International Conference Proceeding Series

Conference

Conference46th ACM/IEEE International Conference on Software Engineering: Software Engineering in Practice, ICSE-SEIP 2024
Country/TerritoryPortugal
CityLisbon
Period14/04/2420/04/24

Bibliographical note

Publisher Copyright:
Copyright © 2024 held by the owner/author(s).

ASJC Scopus subject areas

  • Human-Computer Interaction
  • Computer Networks and Communications
  • Computer Vision and Pattern Recognition
  • Software

Fingerprint

Dive into the research topics of 'Enhancing Text-to-SQL Translation for Financial System Design'. Together they form a unique fingerprint.

Cite this