Can Language Models Enable In-Context Database?
Yu Pan, Hongfeng Yu, Tianjiao Zhao, Jianxin Sun

TL;DR
This paper investigates using large language models as dynamic in-context databases capable of CRUD operations, proposing delta encoding for updates and evaluating performance with a new benchmark.
Contribution
It introduces delta encoding for dynamic in-context databases and evaluates LLMs' ability to perform CRUD operations on encoded data.
Findings
LLMs can perform CRUD operations on in-context databases.
Delta encoding enables dynamic updates in in-context data.
Performance varies with encoding, prompting, and data distribution.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Attention Is All You Need · Linear Layer · Softmax · Dropout · Dense Connections · Layer Normalization · Linear Warmup With Linear Decay · WordPiece · Adam
