paper-with-me

홈 › Papers

MCS-SQL: Leveraging Multiple Prompts and Multiple-Choice Selection For Text-to-SQL Generation

2024-05-13 · Dongjun Lee, Choongwon Park, Jaehyuk Kim, Heesoo Park

Recent advancements in large language models (LLMs) have enabled in-context learning (ICL)-based methods that significantly outperform fine-tuning approaches for text-to-SQL tasks. However, their performance is still considerably lower than that of human experts on benchmarks that include complex schemas and queries, such as BIRD. This study considers the sensitivity of LLMs to the prompts and introduces a novel approach that leverages multiple prompts to explore a broader search space for possible answers and effectively aggregate them. Specifically, we robustly refine the database schema through schema linking using multiple prompts. Thereafter, we generate various candidate SQL queries based on the refined schema and diverse prompts. Finally, the candidate queries are filtered based on their confidence scores, and the optimal query is obtained through a multiple-choice selection that is presented to the LLM. When evaluated on the BIRD and Spider benchmarks, the proposed method achieved execution accuracies of 65.5\% and 89.6\%, respectively, significantly outperforming previous ICL-based methods. Moreover, we established a new SOTA performance on the BIRD in terms of both the accuracy and efficiency of the generated queries.

📄 PDF Abstract BibTeX arXiv:2405.07467

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context LearningMultiple-choiceText to SQLText-To-SQL

Similar Papers 제목 키워드 기반

Exploring the Comprehension of ChatGPT in Traditional Chinese Medicine Knowledge

2024-03-14 · Li Yizhen, Huang Shaohan, Qi Jiaxing, Quan Lei 외

No previous work has studied the performance of Large Language Models (LLMs) in the context of Traditional Chinese Medicine (TCM), an essential and distinct branch of medical knowledge with a rich history. To bridge this…

Multiple-choice

Embracing Collaboration Over Competition: Condensing Multiple Prompts for Visual In-Context Learning

2025-04-30 · CVPR 2025 1 · Jinpeng Wang, Tianci Luo, Yaohua Zha, Yan Feng 외

Visual In-Context Learning (VICL) enables adaptively solving vision tasks by leveraging pixel demonstrations, mimicking human-like task completion through analogy. Prompt selection is critical in VICL, but current method…

Computational EfficiencyIn-Context Learning

Evaluating Prompts Across Multiple Choice Tasks In a Zero-Shot Setting

2022-03-29 · Gabriel Orlanski

Large language models have shown that impressive zero-shot performance can be achieved through natural language prompts (Radford et al., 2019; Brown et al., 2020; Sanh et al., 2021). Creating an effective prompt, however…

Multiple-choice

Crowdsourcing Multiple Choice Science Questions

2017-07-19 · WS 2017 9 · Johannes Welbl, Nelson F. Liu, Matt Gardner

We present a novel method for obtaining high-quality, domain-targeted multiple choice questions from crowd workers. Generating these questions can be difficult without trading away originality, relevance or diversity in …

DiversityMultiple-choiceQuestion GenerationQuestion-Generation

Escaping the Mode Lottery: Multi-Response Training Improves Language Model Generalization

2026-05-30 · Hasan Amin, Kian Ahrabian, Ming Yin, Rajiv Khanna arxiv

Modern language-model fine-tuning typically pairs each prompt with a single response, even though many prompts admit multiple valid completions. This effectively reduces a multi-modal conditional distribution to a one-sa…