mlsanityData to 13 Oct 2026

Relational Database Augmented Large Language Model

arXiv 2407.15071 ↗First posted 21 Jul 2024cs.DB cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) excel in many natural language processing (NLP) tasks. However, since LLMs can only incorporate new knowledge through training or supervised fine-tuning processes, they are unsuitable for applications that demand precise, up-to-date, and private information not available in the training corpora. This precise, up-to-date, and private information is typically stored in relational databases. Thus, a promising solution is to augment LLMs with the inclusion of relational databases as external memory. This can ensure the timeliness, correctness, and consistency of data, and assist LLMs in performing complex arithmetic operations beyond their inherent capabilities. However, bridging the gap between LLMs and relational databases is challenging. It requires the awareness of databases and data values stored in databases to select correct databases and issue correct SQL queries. Besides, it is necessary for the external memory to be independent of the LLM to meet the needs of real-world applications. We introduce a novel LLM-agnostic memory architecture comprising a database selection memory, a data value memory, and relational databases. And we design an elegant pipeline to retrieve information from it. Besides, we carefully design the prompts to instruct the LLM to maximize the framework's potential. To evaluate our method, we compose a new dataset with various types of questions. Experimental results show that our framework enables LLMs to effectively answer database-related questions, which is beyond their direct ability.

Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Builds on 20 of its 23 references that are in the map. First posted on arXiv 21 Jul 2024.

Builds on

20 of 23 references.

References · 20

  1. 2020Language Models are Few-Shot Learnerscited by 32,320
  2. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,107
  3. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,117
  4. 2017Billion-scale similarity search with GPUscited by 2,490
  5. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,131
  6. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,805
  7. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,546
  8. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,133
  9. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 947
  10. 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 857
  11. 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 790
  12. 2023In-Context Retrieval-Augmented Language Modelscited by 699
8 more
  1. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 472
  2. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 408
  3. 2023ChatGPT: Jack of all trades, master of nonecited by 204
  4. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 194
  5. 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 163
  6. 2023ChatDB: Augmenting LLMs with Databases as Their Symbolic Memorycited by 138
  7. 2023Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL Robustnesscited by 52
  8. 2022Importance of Synthesizing High-quality Data for Text-to-SQL Parsingcited by 28

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.