paper-with-me

홈 › Papers

DCG-SQL: Enhancing In-Context Learning for Text-to-SQL with Deep Contextual Schema Link Graph

2025-05-26 · Jihyung Lee, Jin-Seop Lee, Jaehoon Lee, YunSeok Choi, Jee-Hyong Lee

Text-to-SQL, which translates a natural language question into an SQL query, has advanced with in-context learning of Large Language Models (LLMs). However, existing methods show little improvement in performance compared to randomly chosen demonstrations, and significant performance drops when smaller LLMs (e.g., Llama 3.1-8B) are used. This indicates that these methods heavily rely on the intrinsic capabilities of hyper-scaled LLMs, rather than effectively retrieving useful demonstrations. In this paper, we propose a novel approach for effectively retrieving demonstrations and generating SQL queries. We construct a Deep Contextual Schema Link Graph, which contains key information and semantic relationship between a question and its database schema items. This graph-based structure enables effective representation of Text-to-SQL samples and retrieval of useful demonstrations for in-context learning. Experimental results on the Spider benchmark demonstrate the effectiveness of our approach, showing consistent improvements in SQL generation performance and efficiency across both hyper-scaled LLMs and small LLMs. Our code will be released.

📄 PDF Abstract BibTeX arXiv:2505.19956

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context LearningText to SQLText-To-SQL

Methods 이 논문이 사용한 방법론

LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

SMiLE: Schema-augmented Multi-level Contrastive Learning for Knowledge Graph Link Prediction

2022-10-10 · Miao Peng, Ben Liu, Qianqian Xie, Wenjie Xu 외

Link prediction is the task of inferring missing links between entities in knowledge graphs. Embedding-based methods have shown effectiveness in addressing this problem by modeling relational patterns in triples. However…

Contrastive LearningKnowledge GraphsLink PredictionPrediction

Track-SQL: Enhancing Generative Language Models with Dual-Extractive Modules for Schema and Context Tracking in Multi-turn Text-to-SQL

2026-03-06 · Bingfeng Chen, Shaobin Shi, Yongqi Luo, Boyan Xu 외 arxiv

Generative language models have shown significant potential in single-turn Text-to-SQL. However, their performance does not extend equivalently to multi-turn Text-to-SQL. This is primarily due to generative language mode…

The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Models

2024-08-14 · Karime Maamari, Fadhil Abubaker, Daniel Jaroslawicz, Amine Mhedhbi

Schema linking is a crucial step in Text-to-SQL pipelines. Its goal is to retrieve the relevant tables and columns of a target database for a user's query while disregarding irrelevant ones. However, imperfect schema lin…

Natural Language QueriesText to SQLText-To-SQL

ArcaneQA: Dynamic Program Induction and Contextualized Encoding for Knowledge Base Question Answering

2022-04-17 · COLING 2022 10 · Yu Gu, Yu Su

Question answering on knowledge bases (KBQA) poses a unique challenge for semantic parsing research due to two intertwined challenges: large search space and ambiguities in schema linking. Conventional ranking-based KBQA…

Knowledge Base Question AnsweringProgram inductionQuestion AnsweringSemantic Parsing

RSL-SQL: Robust Schema Linking in Text-to-SQL Generation

2024-10-31 · Zhenbiao Cao, Yuanlei Zheng, Zhihao Fan, Xiaojin Zhang 외

Text-to-SQL generation aims to translate natural language questions into SQL statements. In Text-to-SQL based on large language models, schema linking is a widely adopted strategy to streamline the input for LLMs by sele…

Text to SQLText-To-SQL