atlas

Research map / Large language models / Language, safety and interpretability

CogSQL: A Cognitive Framework for Enhancing Large Language Models in Text-to-SQL Translation

AAAI 2025 · Large language models › Language, safety and interpretability · approach: LLM unlearning and benchmarks · 7 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 COGSQL, a training-light text-to-SQL framework that mimics human cognition via schema/keyword recall, concept-enhanced chain-of-thought prompting, and NLQ/result consistency correction on top of LLM prompting.

Problem

LLM-based text-to-SQL methods typically target isolated aspects (NLQ understanding or SQL quality), missing a holistic reasoning process; the paper asks whether mimicking human cognitive steps improves accuracy on cross-domain text-to-SQL benchmarks.

Approach

A three-module pipeline: coarse-to-fine schema linking (cross-encoder plus LLM table selection) and syntax keyword prediction (classifiers trained with LLM-based sample-centric augmentation), followed by two-stage concept-enhanced CoT (NLQ interpretation then SQL composition) and consistency-based correction (NLQ consistency via reverse question generation and result consistency via grammar rules

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add coarse-to-fine schema linking (ablation)COGSQL + GPT-4o-mini · SpiderEX: 82.40 -> 84.20Helped
add coarse-to-fine schema linking (ablation)COGSQL + GPT-4o-mini · BIRDEX: 55.74 -> 56.26Helped
add syntax keyword prediction (ablation)COGSQL + GPT-4o-mini · SpiderEX: 83.50 -> 84.20Helped
add syntax keyword prediction (ablation)COGSQL + GPT-4o-mini · BIRDEX: 55.02 -> 56.26Helped
add concept-enhanced CoT prompting (ablation)COGSQL + GPT-4o-mini · SpiderEX: 83.50 -> 84.20Helped
add concept-enhanced CoT prompting (ablation)COGSQL + GPT-4o-mini · BIRDEX: 52.41 -> 56.26Helped
add NLQ consistency correction (ablation)COGSQL + GPT-4o-mini · SpiderEX: 83.70 -> 84.20Helped
add NLQ consistency correction (ablation)COGSQL + GPT-4o-mini · BIRDEX: 55.93 -> 56.26Helped
add result consistency correction (ablation)COGSQL + GPT-4o-mini · SpiderEX: 83.60 -> 84.20Helped
add result consistency correction (ablation)COGSQL + GPT-4o-mini · BIRDEX: 53.85 -> 56.26Helped
use COGSQLGPT-4o-mini · BIRD dev, totalEX: +6.65Helped
use COGSQLDEEPSEEK · BIRD dev, challengingEX: 29.17 -> 39.58Helped

Surprising findings

Limitations

Experimental setup

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

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

Metrics: Execution Accuracy Valid Efficiency Score

Baselines: RESDSQL CODES DIN-SQL MAC-SQL TA-SQL DAIL-SQL DEA-SQL SUPER-SQL GPT4

Builds on: RESDSQL CODES DIN-SQL MAC-SQL 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