本文提出 Probe and Learn(PoLe)框架,将下一令牌预测范式与决策Transformer及硬件生成令牌结合,用于数据库优化,并在 NUMA 服务器索引调度任务中验证其可提升性能与泛化能力。
摘要:
下一令牌预测范式(Next Token Prediction,简称 NTP)处于现代大型基础模型的前沿,这些模型在多样且大规模的数据集上进行预训练。这些模型能够有效泛化,并已在自然语言处理(Natural Language Processing,NLP)中取得极大成功。受大型语言模型(Large Language Models,LLMs)泛化能力的启发,我们研究同一 NTP 范式是否能够应用于数据库管理系统(DBMS)的设计与优化任务。由于两个领域之间存在根本差异,直接将 NTP 用于数据库优化并非易事。在本文中,我们提出了一个名为 Probe and Learn(PoLe)的框架,用于将 NTP 应用于优化数据库系统。PoLe 利用决策Transformer(Decision Transformers)和硬件生成的令牌,将 NTP 有效融入数据库系统。作为概念验证,我们在内存数据库系统中 NUMA 服务器上的索引调度任务场景下展示了 PoLe。该调度任务的初步结果表明,采用 NTP 和 PoLe 可以同时提升性能和泛化能力。
英文摘要:
The Next Token Prediction paradigm (NTP, for short) lies at the forefront of modern large foundational models that are pre-trained on diverse and large datasets. These models generalize effectively, and have proven to be very successful in Natural Language Processing (NLP). Inspired by the generalization capabilities of Large Language Models (LLMs), we investigate whether the same NTP paradigm can be applied to DBMS design and optimization tasks. Adopting NTP directly for database optimization is non-trivial due to the fundamental differences between the domains. In this paper, we present a framework, termed Probe and Learn (PoLe), for applying NTP to optimize database systems. PoLe leverages Decision Transformers and hardware-generated tokens to effectively incorporate NTP into database systems. As a proof of concept, we demonstrate PoLe in the context of the index scheduling task over NUMA servers in main-memory database systems. Preliminary results for this scheduling task demonstrate that adopting NTP and PoLe can improve both performance and generalizability.
When Large Language Models Meet Vector Databases: A Survey
Carnegie Mellon University(卡内基梅隆大学);Purdue University(普渡大学);University of Michigan(密歇根大学);Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳));National Science Library (Chengdu), Chinese Academy of Sciences(中国科学院成都科学图书馆);Shandong University of Technology(山东科技大学)