Leveraging Prior Experience: An Expandable Auxiliary Knowledge Base for Text-to-SQL
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) exhibit impressive problem-solving skills across many tasks, but they still underperform compared to humans in various downstream applications, such as text-to-SQL. On the BIRD benchmark leaderboard, human performance achieves an accuracy of 92.96%, whereas the top-performing method reaches only 72.39%. Notably, these state-of-the-art (SoTA) methods predominantly rely on in-context learning to simulate human-like reasoning. However, they overlook a critical human skill: continual learning. Inspired by the educational practice of maintaining mistake notebooks during our formative years, we propose LPE-SQL (Leveraging Prior Experience: An Expandable Auxiliary Knowledge Base for Text-to-SQL), a novel framework designed to augment LLMs by enabling continual learning without requiring parameter fine-tuning. LPE-SQL consists of four modules that i) retrieve relevant entries, ii) efficient sql generation, iii) generate the final result through a cross-consistency mechanism and iv) log successful and failed tasks along with their reasoning processes or reflection-generated tips. Importantly, the core module of LPE-SQL is the fourth one, while the other modules employ foundational methods, allowing LPE-SQL to be easily integrated with SoTA technologies to further enhance performance. Our experimental results demonstrate that this continual learning approach yields substantial performance gains, with the smaller Llama-3.1-70B model with surpassing the performance of the larger Llama-3.1-405B model using SoTA methods.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 26 of its 30 references that are in the map. First posted on arXiv 20 Nov 2024.
Builds on
26 of 30 references.
References · 26
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2024The Faiss librarycited by 370
- 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 168
14 more
- 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
- 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
- 2024MCS-SQL: Leveraging Multiple Prompts and Multiple-Choice Selection For Text-to-SQL Generationcited by 103
- 2022Evaluating the Text-to-SQL Capabilities of Large Language Modelscited by 101
- 2024What Did I Do Wrong? Quantifying LLMs' Sensitivity and Consistency to Prompt Engineeringcited by 88
- 2024The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Modelscited by 67
- 2023ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-Thoughtcited by 65
- 2023How to Prompt LLMs for Text-to-SQL: A Study in Zero-shot, Single-domain, and Cross-domain Settingscited by 57
- 2018Robust Text-to-SQL Generation with Execution-Guided Decodingcited by 51
- 2024MAGIC: Generating Self-Correction Guideline for In-Context Text-to-SQLcited by 34
- 2023Selective Demonstrations for Cross-domain Text-to-SQLcited by 21
- 2024End-to-end Text-to-SQL Generation within an Analytics Insight Enginecited by 7
- 2024TCSR-SQL: Towards Table Content-aware Text-to-SQL with Self-retrievalcited by 3
- 2024RB-SQL: A Retrieval-based LLM Framework for Text-to-SQLcited by 3
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2026Code as Agent Harnesscited by 40
- 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQLcited by 1
- 2025Continual Learning of Domain Knowledge from Human Feedback in Text-to-SQLcited by 1
- 2026Data Intelligence Agents: Interpreting, Modeling, and Querying Enterprise Data via Autonomous Coding Agentscited by 0
- 2026From Test-Time Scaling to Reusable Memory: Measuring Crystallization in Text-to-SQLcited by 0
- 2026From Test-Time Scaling to Reusable Memory: Measuring Crystallization in Text-to-SQL7 Aug 2026
- 2026Data Intelligence Agents: Interpreting, Modeling, and Querying Enterprise Data via Autonomous Coding Agents17 Jun 2026
- 2026Code as Agent Harness18 May 2026
- 2025Continual Learning of Domain Knowledge from Human Feedback in Text-to-SQL10 Nov 2025
- 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQL2 Nov 2025
Similar, not cited
Close in wording, no citation either way
- 2026LIMIT: Less Is More for Instruction Tuning in Text-to-SQL
- 2026Integrating Reasoning and Generalization in Text-to-SQL via Self-Enhanced Fine-Tuning
- 2024PET-SQL: A Prompt-Enhanced Two-Round Refinement of Text-to-SQL with Cross-consistency
- 2025Meta-aware Learning in text-to-SQL Large Language Model
- 2025GradeSQL: Test-Time Inference with Outcome Reward Models for Text-to-SQL Generation from Large Language Models
- 2024PTD-SQL: Partitioning and Targeted Drilling with LLMs in Text-to-SQL
- 2025Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQL
- 2025PaVeRL-SQL: Text-to-SQL via Partial-Match Rewards and Verbal Reinforcement Learning