paper-with-me

홈 › Papers

Is Long Context All You Need? Leveraging LLM's Extended Context for NL2SQL

2025-01-21 · Yeounoh Chung, Gaurav T. Kakkar, Yu Gan, Brenton Milne, Fatma Ozcan

Large Language Models (LLMs) have demonstrated impressive capabilities across a range of natural language processing tasks. In particular, improvements in reasoning abilities and the expansion of context windows have opened new avenues for leveraging these powerful models. NL2SQL is challenging in that the natural language question is inherently ambiguous, while the SQL generation requires a precise understanding of complex data schema and semantics. One approach to this semantic ambiguous problem is to provide more and sufficient contextual information. In this work, we explore the performance and the latency trade-offs of the extended context window (a.k.a., long context) offered by Google's state-of-the-art LLM (\textit{gemini-1.5-pro}). We study the impact of various contextual information, including column example values, question and SQL query pairs, user-provided hints, SQL documentation, and schema. To the best of our knowledge, this is the first work to study how the extended context window and extra contextual information can help NL2SQL generation with respect to both accuracy and latency cost. We show that long context LLMs are robust and do not get lost in the extended contextual information. Additionally, our long-context NL2SQL pipeline based on Google's \textit{gemini-pro-1.5} achieve strong performances on various benchmark datasets without finetuning and expensive self-consistency based techniques.

📄 PDF Abstract BibTeX arXiv:2501.12372

Code (1)

yeounoh/lc_nl2sql 공식 구현

Tasks

All

Similar Papers 제목 키워드 기반

Beyond Length: Quantifying Long-Range Information for Long-Context LLM Pretraining Data

2025-10-29 · Haoran Deng, Yingyu Lin, Zhenghao Lin, Xiao Liu 외 arxiv

Long-context language models unlock advanced capabilities in reasoning, code generation, and document summarization by leveraging dependencies across extended spans of text. However, a significant portion of readily avai…

Document SummarizationCode Generation

EgoEverything: A Benchmark for Human Behavior Inspired Long Context Egocentric Video Understanding in AR Environment

2026-04-09 · Qiance Tang, Ziqi Wang, Jieyu Lin, Ziyun Li 외 arxiv

Long context egocentric video understanding has recently attracted significant research attention, with augmented reality (AR) highlighted as one of its most important application domains. Nevertheless, the task remains …

Question Generation

MTraining: Distributed Dynamic Sparse Attention for Efficient Ultra-Long Context Training

2025-10-21 · Wenxuan Li, Chengruidong Zhang, Huiqiang Jiang, Yucheng Li 외 arxiv

The adoption of long context windows has become a standard feature in Large Language Models (LLMs), as extended contexts significantly enhance their capacity for complex reasoning and broaden their applicability across d…

Beyond Isolated Capabilities: Bridging Long CoT Reasoning and Long-Context Understanding

2025-07-20 · Yifei Wang arxiv

Reasoning distillation has emerged as an effective approach to enhance the reasoning capabilities of smaller language models. However, the impact of large-scale reasoning distillation on other critical abilities, particu…

Long-Context Understanding

LongReD: Mitigating Short-Text Degradation of Long-Context Large Language Models via Restoration Distillation

2025-02-11 · Zican Dong, Junyi Li, Jinhao Jiang, Mingyu Xu 외

Large language models (LLMs) have gained extended context windows through scaling positional encodings and lightweight continual pre-training. However, this often leads to degraded performance on short-text tasks, while …