ACL 2024findings12 citations

Investigating the Impact of Data Contamination of Large Language Models in Text-to-SQL translation

Federico Ranaldi, Elena Sofia Ruzzetti, Dario Onorati, Leonardo Ranaldi, Cristina Giannone, Andrea Favalli, Raniero Romagnoli, Fabio Massimo Zanzotto

Abstract

Understanding textual description to generate code seems to be an achieved capability of instruction-following Large Language Models (LLMs) in zero-shot scenario. However, there is a severe possibility that this translation ability may be influenced by having seen target textual descriptions and the related code. This effect is known as Data Contamination.In this study, we investigate the impact of Data Contamination on the performance of GPT-3.5 in the Text-to-SQL code-generating tasks. Hence, we introduce a novel method to detect Data Contamination in GPTs and examine GPT-3.5’s Text-to-SQL performances using the known Spider Dataset and our new unfamiliar dataset Termite. Furthermore, we analyze GPT-3.5’s efficacy on databases with modified information via an adversarial table disconnection (ATD) approach, complicating Text-to-SQL tasks by removing structural pieces of information from the database. Our results indicate a significant performance drop in GPT-3.5 on the unfamiliar Termite dataset, even with ATD modifications, highlighting the effect of Data Contamination on LLMs in Text-to-SQL translation tasks.

BibTeX
@inproceedings{ranaldi-etal-2024-investigating,
    title = "Investigating the Impact of Data Contamination of Large Language Models in Text-to-{SQL} translation",
    author = "Ranaldi, Federico  and
      Ruzzetti, Elena Sofia  and
      Onorati, Dario  and
      Ranaldi, Leonardo  and
      Giannone, Cristina  and
      Favalli, Andrea  and
      Romagnoli, Raniero  and
      Zanzotto, Fabio Massimo",
    editor = "Ku, Lun-Wei  and
      Martins, Andre  and
      Srikumar, Vivek",
    booktitle = "Findings of the Association for Computational Linguistics: ACL 2024",
    month = aug,
    year = "2024",
    address = "Bangkok, Thailand",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.findings-acl.827/",
    doi = "10.18653/v1/2024.findings-acl.827",
    pages = "13909--13920"
}