atlas

Research map / Multi-agent systems and games / LLM agents

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

AAAI 2025 · Multi-agent systems and games › LLM agents · approach: Self-evolving language agent learning · 14 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SQLFixAgent, a multi-agent framework (SQLReviewer, QueryCrafter, SQLRefiner) that detects and repairs semantic and syntax errors in SQL produced by fine-tuned CodeS models, using GPT-3.5-turbo agents.

Problem

Fine-tuned LLMs for Text-to-SQL generate grammatically valid SQL that often has semantic mismatches with the user question, which silently execute and mislead users.

Approach

A multi-agent repair loop in which a rubber-duck-style reviewer flags semantic mismatches, a query-variant generator produces multiple candidate SQLs from a fine-tuned SQL model, and a refiner selects and repairs the final SQL using similar-repair retrieval and failure-memory reflection, with a general LLM used as agents rather than as the SQL generator.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add SQLFixAgent to CodeS-3BCodeS-3B · BIRD devEX: +3.65Helped
add SQLFixAgent to CodeS-7BCodeS-7B · BIRD devEX: +3.00Helped
add SQLFixAgent to CodeS-3BCodeS-3B · BIRD devVES: +5.65Helped
add SQLFixAgent to CodeS-7BCodeS-7B · BIRD devVES: +4.35Helped
add SQLFixAgent to CodeS-3BCodeS-3B · Spider devEX: +1.4%Helped
add SQLFixAgent to CodeS-7BCodeS-7B · Spider devEX: +0.8%Helped
add SQLFixAgent to CodeS-7BCodeS-7B · Spider testEX: +0.6%Helped
add SQLFixAgent to CodeS-7BCodeS-7B · Spider-SynEX: +0.8%Helped
add SQLFixAgent to CodeS-7BCodeS-7B · Spider-RealisticEX: +0.4%Helped
add SQLFixAgent to CodeS-7BCodeS-7B · Spider-DKEX: +2.2%Helped
remove rubber duck debugging (COT) from SQLReviewer (ablation)CodeS-3B + SQLFixAgent · BIRD devEX: 58.67 -> 58.15Hurt
remove failure memory reflection (Reflexion) (ablation)CodeS-3B + SQLFixAgent · BIRD devEX: 58.67 -> 57.56Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Spider BIRD Spider-DK Spider-Syn Spider-Realistic

Benchmarks: BIRD Spider Spider-DK Spider-Syn Spider-Realistic

Metrics: execution accuracy exact match accuracy valid efficiency score token consumption

Baselines: MAC-SQL + GPT-3.5 Turbo CodeS-3B CodeS-7B DAIL-SQL + GPT-4 DIN-SQL + GPT-4 RESDSQL-3B + NatSQL SQL-PaLM STRIKE

Builds on: CodeS MAC-SQL Reflexion DAIL-SQL

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy