Skip to main content

Trabalho em anais de evento

A Large Language Model approach to SQL-to-Text Generation

CÂMARA, VANESSA; MENDONCA-NETO, RAYOL; SILVA, ANDRÉ; CORDOVIL, LUIZ

2024 • 2024 IEEE International Conference on Consumer Electronics (ICCE) • 13 citações

Resumo

Resumo

Generating relevant explanations given an structured code representation, such as SQL, is a challenging task. Tackling the SQL-to-text, more specifically the SQL-explanation problem, benefits both non-technical and technical users. Automatic explanations written in human language can facilitate the understanding of the query’s logical structure and it also helps developers to better document and learn SQL code. The approaches for this niche are diverse. Some of them involve sequence-to-sequence models and others utilize graph-to-sequence models to generate explanations. However, considering the latest advances in Large Language Models (LLMs) and the relatively little attention in SQL-to-text problem, we investigate a new generative approach based on LLMs to infer the logical structure about the query, including columns, tables and relations. We categorize our research on SQL-explanation as a subtask of SQL-to-text to differ from the translation of SQL code into natural language questions. Experiments were conducted with the open-source Falcon LLM and compared with T5 LLM and Graph2Seq models. The results show that Falcon outperforms previous models achieving 70% of accuracy with human evaluation on Spider dataset and it achieves competitive 75% accuracy with human evaluation on WikiSQL dataset.

Autoria

Autores do grupo (1)

A lista completa de autores está no topo da página. Abaixo, apenas os pesquisadores do e-Controls vinculados a esta publicação.

palavras-chave

Palavras-chave

large language modelsT5Spider dataset

Status

Published

links

Trabalho em anais de evento