paper-with-me

홈 › Papers

SAFE-SQL: Self-Augmented In-Context Learning with Fine-grained Example Selection for Text-to-SQL

2025-02-17 · JiMin Lee, Ingeol Baek, Byeongjeong Kim, Hwanhee Lee

Text-to-SQL aims to convert natural language questions into executable SQL queries. While previous approaches, such as skeleton-masked selection, have demonstrated strong performance by retrieving similar training examples to guide large language models (LLMs), they struggle in real-world scenarios where such examples are unavailable. To overcome this limitation, we propose Self-Augmentation in-context learning with Fine-grained Example selection for Text-to-SQL (SAFE-SQL), a novel framework that improves SQL generation by generating and filtering self-augmented examples. SAFE-SQL first prompts an LLM to generate multiple Text-to-SQL examples relevant to the test input. Then SAFE-SQL filters these examples through three relevance assessments, constructing high-quality in-context learning examples. Using self-generated examples, SAFE-SQL surpasses the previous zero-shot, and few-shot Text-to-SQL frameworks, achieving higher execution accuracy. Notably, our approach provides additional performance gains in extra hard and unseen scenarios, where conventional methods often fail.

📄 PDF Abstract BibTeX arXiv:2502.11438

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context LearningText to SQLText-To-SQL

Similar Papers 제목 키워드 기반

Deep Learning-Based Rock Particulate Classification Using Attention-Enhanced ConvNeXt

2025-09-01 · Anthony Amankwah, Chris Aldrich arxiv

Accurate classification of rock sizes is a vital component in geotechnical engineering, mining, and resource management, where precise estimation influences operational efficiency and safety. In this paper, we propose an…

An Asymmetric Augmented Self-Supervised Learning Method for Unsupervised Fine-Grained Image Hashing

2024-01-01 · CVPR 2024 1 · Feiran Hu, Chenlin Zhang, Jiangliang Guo, Xiu-Shen Wei 외

Unsupervised fine-grained image hashing aims to learn compact binary hash codes in unsupervised settings addressing challenges posed by large-scale datasets and dependence on supervision. In this paper we first ident…

Contrastive LearningSelf-Supervised Learning

CHILLGuard: Towards Fine-Grained Chinese LLM Safety Guardrail with Scalable Data Construction and Model-aware Preference Alignment

2026-06-13 · Wenbo Yu, Bohua Wang, Hao Fang, Kuofeng Gao 외 arxiv

Malicious content generated from large language models (LLMs) could pose severe safety risks and ethical concerns. While existing LLM safety guardrails excel in English or multilingual settings, they lack adaptation to C…

Prompt Engineering

Generate, Discriminate, Evolve: Enhancing Context Faithfulness via Fine-Grained Sentence-Level Self-Evolution

2025-03-03 · Kun Li, Tianhua Zhang, Yunxiang Li, Hongyin Luo 외

Improving context faithfulness in large language models is essential for developing trustworthy retrieval augmented generation systems and mitigating hallucinations, especially in long-form question answering (LFQA) task…

counterfactualDomain AdaptationLong Form Question AnsweringQuestion Answering+2

Boosting Conversational Question Answering with Fine-Grained Retrieval-Augmentation and Self-Check

2024-03-27 · Linhao Ye, Zhikai Lei, Jianghao Yin, Qin Chen 외

Retrieval-Augmented Generation (RAG) aims to generate more reliable and accurate responses, by augmenting large language models (LLMs) with the external vast and dynamic knowledge. Most previous work focuses on using RAG…

Conversational Question AnsweringQuestion AnsweringRAGRetrieval+1