paper-with-me

홈 › Papers

SQLens: An End-to-End Framework for Error Detection and Correction in Text-to-SQL

2025-06-04 · Yue Gong, Chuan Lei, Xiao Qin, Kapil Vaidya, Balakrishnan Narayanaswamy, Tim Kraska

Text-to-SQL systems translate natural language (NL) questions into SQL queries, enabling non-technical users to interact with structured data. While large language models (LLMs) have shown promising results on the text-to-SQL task, they often produce semantically incorrect yet syntactically valid queries, with limited insight into their reliability. We propose SQLens, an end-to-end framework for fine-grained detection and correction of semantic errors in LLM-generated SQL. SQLens integrates error signals from both the underlying database and the LLM to identify potential semantic errors within SQL clauses. It further leverages these signals to guide query correction. Empirical results on two public benchmarks show that SQLens outperforms the best LLM-based self-evaluation method by 25.78% in F1 for error detection, and improves execution accuracy of out-of-the-box text-to-SQL systems by up to 20%.

📄 PDF Abstract BibTeX arXiv:2506.04494

Code (0)

등록된 구현이 없습니다.

Tasks

Text to SQLText-To-SQLvalid

Similar Papers 제목 키워드 기반

A Coin Has Two Sides: A Novel Detector-Corrector Framework for Chinese Spelling Correction

2024-09-06 · Xiangke Zeng, Zuchao Li, Lefei Zhang, Ping Wang 외

Chinese Spelling Correction (CSC) stands as a foundational Natural Language Processing (NLP) task, which primarily focuses on the correction of erroneous characters in Chinese texts. Certain existing methodologies opt to…

Spelling Correction

CorBenchX: Large-Scale Chest X-Ray Error Dataset and Vision-Language Model Benchmark for Report Error Correction

2025-05-17 · Jing Zou, Qingqiu Li, Chenyu Lian, Lihao Liu 외

AI-driven models have shown great promise in detecting errors in radiology reports, yet the field lacks a unified benchmark for rigorous evaluation of error detection and further correction. To address this gap, we intro…

Language ModelingLanguage Modelling

MedGuards: Multi-Agent System for Reliable Medical Error Detection and Correction

2026-06-24 · Congbo Ma, Hu Wang, Yichun Zhang, Farah E. Shamout arxiv

As Large Language Models (LLMs) are increasingly deployed in healthcare settings, accurate error detection and correction in generated or existing text becomes critical, as even minor mistakes can pose risks to patient s…

Correcting Errors in a New Gold Standard for Tagging Icelandic Text

2014-05-01 · LREC 2014 5 · Sigr{\'u}n Helgad{\'o}ttir, Hrafn Loftsson, Eir{\'\i}kur R{\"o}gnvaldsson

In this paper, we describe the correction of PoS tags in a new Icelandic corpus, MIM-GOLD, consisting of about 1 million tokens sampled from the Tagged Icelandic Corpus, M{\'I}M, released in 2013. The goal is to use the …

Part-Of-Speech TaggingPOS

Fewer Hallucinations, More Verification: A Three-Stage LLM-Based Framework for ASR Error Correction

2025-05-30 · Yangui Fang, Baixu Cheng, Jing Peng, Xu Li 외

Automatic Speech Recognition (ASR) error correction aims to correct recognition errors while preserving accurate text. Although traditional approaches demonstrate moderate effectiveness, LLMs offer a paradigm that elimin…

Automatic Speech RecognitionAutomatic Speech Recognition (ASR)speech-recognitionSpeech Recognition