paper-with-me

홈 › Papers

PET-SQL: A Prompt-Enhanced Two-Round Refinement of Text-to-SQL with Cross-consistency

2024-03-13 · Zhishuai Li, Xiang Wang, Jingjing Zhao, Sun Yang, Guoqing Du, Xiaoru Hu, Bin Zhang, Yuxiao Ye, Ziyue Li, Rui Zhao, Hangyu Mao

Recent advancements in Text-to-SQL (Text2SQL) emphasize stimulating the large language models (LLM) on in-context learning, achieving significant results. Nevertheless, they face challenges when dealing with verbose database information and complex user intentions. This paper presents a two-stage framework to enhance the performance of current LLM-based natural language to SQL systems. We first introduce a novel prompt representation, called reference-enhanced representation, which includes schema information and randomly sampled cell values from tables to instruct LLMs in generating SQL queries. Then, in the first stage, question-SQL pairs are retrieved as few-shot demonstrations, prompting the LLM to generate a preliminary SQL (PreSQL). After that, the mentioned entities in PreSQL are parsed to conduct schema linking, which can significantly compact the useful information. In the second stage, with the linked schema, we simplify the prompt's schema information and instruct the LLM to produce the final SQL. Finally, as the post-refinement module, we propose using cross-consistency across different LLMs rather than self-consistency within a particular LLM. Our methods achieve new SOTA results on the Spider benchmark, with an execution accuracy of 87.6%.

📄 PDF Abstract BibTeX arXiv:2403.09732

Code (1)

zhshlii/petsql 공식 구현

Tasks

In-Context LearningText to SQLText-To-SQL

Similar Papers 제목 키워드 기반

Test-time Prompt Refinement for Text-to-Image Models

2025-07-22 · Mohammad Abdul Hafeez Khan, Yash Jain, Siddhartha Bhattacharyya, Vibhav Vineet arxiv

Text-to-image (T2I) generation models have made significant strides but still struggle with prompt sensitivity: even minor changes in prompt wording can yield inconsistent or inaccurate outputs. To address this challenge…

Image Generation

Global Prompt Refinement with Non-Interfering Attention Masking for One-Shot Federated Learning

2025-09-21 · Zhuang Qi, Pan Yu, Lei Meng, Sijin Zhou 외 arxiv

Federated Prompt Learning (FPL) enables communication-efficient adaptation by tuning lightweight prompts on top of frozen pre-trained models. Existing FPL methods typically rely on global information, which is only avail…

Federated Learning

VideoRepair: Improving Text-to-Video Generation via Misalignment Evaluation and Localized Refinement

2024-11-22 · Daeun Lee, Jaehong Yoon, Jaemin Cho, Mohit Bansal

Recent text-to-video (T2V) diffusion models have demonstrated impressive generation capabilities across various domains. However, these models often generate videos that have misalignments with text prompts, especially w…

Text-to-Video GenerationVideo AlignmentVideo Generation

Text-guided Controllable Diffusion for Realistic Camouflage Images Generation

2025-11-25 · Yuhang Qian, Haiyan Chen, Wentong Li, Ningzhong Liu 외 arxiv

Camouflage Images Generation (CIG) is an emerging research area that focuses on synthesizing images in which objects are harmoniously blended and exhibit high visual consistency with their surroundings. Existing methods …

PR-MaGIC: Prompt Refinement Via Mask Decoder Gradient Flow For In-Context Segmentation

2026-04-13 · Minjae Lee, Sungwoo Hur, Soojin Hwang, Won Hwa Kim arxiv

Visual Foundation Models (VFMs) such as the Segment Anything Model (SAM) have significantly advanced broad use of image segmentation. However, SAM and its variants necessitate substantial manual effort for prompt generat…

Image Segmentation