JOURNAL ARTICLE

SQLFixAgent: Towards Semantic-Accurate Text-to-SQL Parsing via Consistency-Enhanced Multi-Agent Collaboration

Jipeng CenJiaxin LiuZhixu LiJingjing Wang

Year: 2025 Journal:   Proceedings of the AAAI Conference on Artificial Intelligence Vol: 39 (1)Pages: 49-57   Publisher: Association for the Advancement of Artificial Intelligence

Abstract

While fine-tuned large language models (LLMs) excel in generating grammatically valid SQL in Text-to-SQL parsing, they often struggle to ensure semantic accuracy in queries, leading to user confusion and diminished system usability. To tackle this challenge, we introduce SQLFixAgent, a new consistency-enhanced multi-agent collaborative framework designed for detecting and repairing erroneous SQL. Our framework comprises a core agent, SQLRefiner, alongside two auxiliary agents: SQLReviewer and QueryCrafter. The SQLReviewer agent employs the rubber duck debugging method to identify potential semantic mismatches between SQL and user query. If the error is detected, the QueryCrafter agent generates multiple SQL as candidate repairs using a fine-tuned SQLTool. Subsequently, leveraging similar repair retrieval and failure memory reflection, the SQLRefiner agent selects the most fitting SQL statement from the candidates as the final repair. We evaluated our proposed framework on five Text-to-SQL benchmarks. The experimental results show that our method consistently enhances the performance of the baseline model, specifically achieving an execution accuracy improvement of over 3% on the Bird benchmark. Our framework also has a higher token efficiency compared to other advanced methods, making it more competitive.

Keywords:
Computer science Parsing SQL Consistency (knowledge bases) Programming language Natural language processing Information retrieval Artificial intelligence

Metrics

3
Cited By
9.65
FWCI (Field Weighted Citation Impact)
0
Refs
0.92
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Semantic Web and Ontologies
Physical Sciences →  Computer Science →  Artificial Intelligence
Service-Oriented Architecture and Web Services
Physical Sciences →  Computer Science →  Information Systems
Advanced Database Systems and Queries
Physical Sciences →  Computer Science →  Computer Networks and Communications

Related Documents

JOURNAL ARTICLE

MultiSpider: Towards Benchmarking Multilingual Text-to-SQL Semantic Parsing

Longxu DouYan GaoMingyang PanDingzirui WangWanxiang CheDechen ZhanJian–Guang Lou

Journal:   Proceedings of the AAAI Conference on Artificial Intelligence Year: 2023 Vol: 37 (11)Pages: 12745-12753
JOURNAL ARTICLE

HIE-SQL: History Information Enhanced Network for Context-Dependent Text-to-SQL Semantic Parsing

Yanzhao ZhengHaibin WangBaohua DongXingjun WangChangshan Li

Journal:   Findings of the Association for Computational Linguistics: ACL 2022 Year: 2022 Pages: 2997-3007
JOURNAL ARTICLE

Tracking Interaction States for Multi-Turn Text-to-SQL Semantic Parsing

Runze WangZhen-Hua LingJingbo ZhouYu Hen Hu

Journal:   Proceedings of the AAAI Conference on Artificial Intelligence Year: 2021 Vol: 35 (16)Pages: 13979-13987
© 2026 ScienceGate Book Chapters — All rights reserved.