Improving Demonstration Diversity by Human-Free Fusing for Text-to-SQL

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wang, Dingzirui, Dou, Longxu, Zhang, Xuanliang, Zhu, Qingfu, Che, Wanxiang
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911933163110400
author Wang, Dingzirui
Dou, Longxu
Zhang, Xuanliang
Zhu, Qingfu
Che, Wanxiang
author_facet Wang, Dingzirui
Dou, Longxu
Zhang, Xuanliang
Zhu, Qingfu
Che, Wanxiang
contents Currently, the in-context learning method based on large language models (LLMs) has become the mainstream of text-to-SQL research. Previous works have discussed how to select demonstrations related to the user question from a human-labeled demonstration pool. However, human labeling suffers from the limitations of insufficient diversity and high labeling overhead. Therefore, in this paper, we discuss how to measure and improve the diversity of the demonstrations for text-to-SQL. We present a metric to measure the diversity of the demonstrations and analyze the insufficient of the existing labeled data by experiments. Based on the above discovery, we propose fusing iteratively for demonstrations (Fused) to build a high-diversity demonstration pool through human-free multiple-iteration synthesis, improving diversity and lowering label cost. Our method achieves an average improvement of 3.2% and 5.0% with and without human labeling on several mainstream datasets, which proves the effectiveness of Fused.
format Preprint
id arxiv_https___arxiv_org_abs_2402_10663
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Improving Demonstration Diversity by Human-Free Fusing for Text-to-SQL
Wang, Dingzirui
Dou, Longxu
Zhang, Xuanliang
Zhu, Qingfu
Che, Wanxiang
Computation and Language
Currently, the in-context learning method based on large language models (LLMs) has become the mainstream of text-to-SQL research. Previous works have discussed how to select demonstrations related to the user question from a human-labeled demonstration pool. However, human labeling suffers from the limitations of insufficient diversity and high labeling overhead. Therefore, in this paper, we discuss how to measure and improve the diversity of the demonstrations for text-to-SQL. We present a metric to measure the diversity of the demonstrations and analyze the insufficient of the existing labeled data by experiments. Based on the above discovery, we propose fusing iteratively for demonstrations (Fused) to build a high-diversity demonstration pool through human-free multiple-iteration synthesis, improving diversity and lowering label cost. Our method achieves an average improvement of 3.2% and 5.0% with and without human labeling on several mainstream datasets, which proves the effectiveness of Fused.
title Improving Demonstration Diversity by Human-Free Fusing for Text-to-SQL
topic Computation and Language
url https://arxiv.org/abs/2402.10663