paper-with-me

홈 › Papers

Enhancing Few-shot Text-to-SQL Capabilities of Large Language Models: A Study on Prompt Design Strategies

2023-05-21 · Linyong Nan, Yilun Zhao, Weijin Zou, Narutatsu Ri, Jaesung Tae, Ellen Zhang, Arman Cohan, Dragomir Radev

In-context learning (ICL) has emerged as a new approach to various natural language processing tasks, utilizing large language models (LLMs) to make predictions based on context that has been supplemented with a few examples or task-specific instructions. In this paper, we aim to extend this method to question answering tasks that utilize structured knowledge sources, and improve Text-to-SQL systems by exploring various prompt design strategies for employing LLMs. We conduct a systematic investigation into different demonstration selection methods and optimal instruction formats for prompting LLMs in the Text-to-SQL task. Our approach involves leveraging the syntactic structure of an example's SQL query to retrieve demonstrations, and we demonstrate that pursuing both diversity and similarity in demonstration selection leads to enhanced performance. Furthermore, we show that LLMs benefit from database-related knowledge augmentations. Our most effective strategy outperforms the state-of-the-art system by 2.5 points (Execution Accuracy) and the best fine-tuned system by 5.1 points on the Spider dataset. These results highlight the effectiveness of our approach in adapting LLMs to the Text-to-SQL task, and we present an analysis of the factors contributing to the success of our strategy.

📄 PDF Abstract BibTeX arXiv:2305.12586

Code (0)

등록된 구현이 없습니다.

Tasks

DiversityIn-Context LearningQuestion AnsweringText to SQLText-To-SQL

Similar Papers 제목 키워드 기반

Context-Alignment: Activating and Enhancing LLM Capabilities in Time Series

2025-01-07 · Yuxiao Hu, Qian Li, Dongxiao Zhang, Jinyue Yan 외

Recently, leveraging pre-trained Large Language Models (LLMs) for time series (TS) tasks has gained increasing attention, which involves activating and enhancing LLMs' capabilities. Many methods aim to activate LLMs' cap…

Time Series

Grimoire is All You Need for Enhancing Large Language Models

2024-01-07 · Ding Chen, Shichao Song, Qingchen Yu, Zhiyu Li 외

In-context Learning (ICL) is one of the key methods for enhancing the performance of large language models on specific tasks by providing a set of few-shot examples. However, the ICL capability of different types of mode…

AllIn-Context Learning

Bridging Modalities: Enhancing Cross-Modality Hate Speech Detection with Few-Shot In-Context Learning

2024-10-08 · Ming Shan Hee, Aditi Kumaresan, Roy Ka-Wei Lee

The widespread presence of hate speech on the internet, including formats such as text-based tweets and vision-language memes, poses a significant challenge to digital platform safety. Recent research has developed detec…

Few-Shot LearningHate Speech DetectionIn-Context LearningTransfer Learning

Enhancing Remote Sensing Vision-Language Models for Zero-Shot Scene Classification

2024-09-01 · Karim El Khoury, Maxime Zanella, Benoît Gérin, Tiffanie Godelaine 외

Vision-Language Models for remote sensing have shown promising uses thanks to their extensive pretraining. However, their conventional usage in zero-shot scene classification methods still involves dividing large images …

Scene ClassificationTransductive Zero-Shot Classificationzero-shot-classificationZero-Shot Learning

Failures Are the Stepping Stones to Success: Enhancing Few-Shot In-Context Learning by Leveraging Negative Samples

2025-07-31 · Yunhao Liang, Ruixuan Ying, Takuya Taniguchi, Zhe Cui arxiv

Large Language Models exhibit powerful few-shot in-context learning (ICL) capabilities, but the performance is highly sensitive to provided examples. Recent research has focused on retrieving corresponding examples for e…

Semantic Similarity