mlsanityData to 7 Oct 2026

Can Language Models Enable In-Context Database?

arXiv 2411.01807 ↗First posted 4 Nov 2024cs.DB cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) are emerging as few-shot learners capable of handling a variety of tasks, including comprehension, planning, reasoning, question answering, arithmetic calculations, and more. At the core of these capabilities is LLMs' proficiency in representing and understanding structural or semi-structural data, such as tables and graphs. Numerous studies have demonstrated that reasoning on tabular data or graphs is not only feasible for LLMs but also gives a promising research direction which treats these data as in-context data. The lightweight and human readable characteristics of in-context database can potentially make it an alternative for the traditional database in typical RAG (Retrieval Augmented Generation) settings. However, almost all current work focuses on static in-context data, which does not allow dynamic update. In this paper, to enable dynamic database update, delta encoding of database is proposed. We explore how data stored in traditional RDBMS can be encoded as in-context text and evaluate LLMs' proficiency for CRUD (Create, Read, Update and Delete) operations on in-context databases. A benchmark named InConDB is presented and extensive experiments are conducted to show the performance of different language models in enabling in-context database by varying the database encoding method, prompting method, operation type and input data distribution, revealing both the proficiency and limitations.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 37 of its 47 references that are in the map. First posted on arXiv 4 Nov 2024.

Builds on

37 of 47 references.

References · 37

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2022Training language models to follow instructions with human feedbackcited by 15,712
  6. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  8. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  9. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  10. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  11. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  12. 2023A Survey of Large Language Modelscited by 2,537
25 more
  1. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
  2. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  3. 2021ViViT: A Video Vision Transformercited by 1,610
  4. 2022Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agentscited by 1,029
  5. 2023Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debatecited by 995
  6. 2022PaLI: A Jointly-Scaled Multilingual Language-Image Modelcited by 762
  7. 2024Large Language Model based Multi-Agents: A Survey of Progress and Challengescited by 752
  8. 2022A Survey on In-context Learningcited by 717
  9. 2023Augmented Language Models: a Surveycited by 398
  10. 2023StructGPT: A General Framework for Large Language Model to Reason over Structured Datacited by 339
  11. 2022Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoningcited by 331
  12. 2023Can Language Models Solve Graph Problems in Natural Language?cited by 249
  13. 2023Language is All a Graph Needscited by 219
  14. 2023GPT4Graph: Can Large Language Models Understand Graph Structured Data ? An Empirical Evaluation and Benchmarkingcited by 209
  15. 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
  16. 2023Talk like a Graph: Encoding Graphs for Large Language Modelscited by 175
  17. 2022Language Models of Code are Few-Shot Commonsense Learnerscited by 160
  18. 2022Language Models as Agent Modelscited by 131
  19. 2023Table Meets LLM: Can Large Language Models Understand Structured Table Data? A Benchmark and Empirical Studycited by 116
  20. 2024Let Your Graph Do the Talking: Encoding Structured Data for LLMscited by 112
  21. 2019WIQA: A dataset for "What if..." reasoning over procedural textcited by 71
  22. 2020Learning Dynamic Belief Graphs to Generalize on Text-Based Gamescited by 49
  23. 2021Learning Knowledge Graph-based World Models of Textual Environmentscited by 31
  24. 2024A Survey of Table Reasoning with Large Language Modelscited by 29
  25. 2022PLOG: Table-to-Logic Pretraining for Logical Table-to-Text Generationcited by 16

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Is Long Context All You Need? Leveraging LLM's Extended Context for NL2SQL
  2. 2024RB-SQL: A Retrieval-based LLM Framework for Text-to-SQL
  3. 2025Tabular Data Understanding with LLMs: A Survey of Recent Advances and Challenges
  4. 2023TAP4LLM: Table Provider on Sampling, Augmenting, and Packing Semi-structured Data for Large Language Model Reasoning
  5. 2024Open-SQL Framework: Enhancing Text-to-SQL on Open-source Large Language Models
  6. 2024Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?
  7. 2025Scalable In-Context Learning on Tabular Data via Retrieval-Augmented Large Language Models
  8. 2024OpenTab: Advancing Large Language Models as Open-domain Table Reasoners