MorphingDB: 一种以任务为中心的AI原生数据库管理系统用于模型管理和推理
MorphingDB: A Task-Centric AI-Native DBMS for Model Management and Inference
AI总结:
MorphingDB是一种以任务为中心的AI原生数据库管理系统,通过自动化模型存储、选择和推理,提升模型管理和推理效率。
摘要:
随着数据库环境中对深度神经推理需求的增加,AI原生数据库管理系统(DBMS)逐渐出现。然而,现有解决方案要么依赖于以模型为中心的设计,要求开发者手动选择、配置和维护模型,导致开发开销大,要么采用以任务为中心的AutoML方法,具有较高的计算成本和较差的DBMS集成性。我们提出了MorphingDB,一种以任务为中心的AI原生数据库管理系统,能够在PostgreSQL中自动化模型存储、选择和推理。为了实现灵活且I/O高效的深度学习模型存储,我们首先引入了专门的模式和多维张量数据类型,以支持基于BLOB的“一站式”和解耦模型存储。然后我们设计了一个迁移学习框架,用于模型选择的两个阶段,通过离线嵌入历史任务构建迁移子空间,并通过特征感知映射进行在线投影以处理实时任务。为进一步优化推理吞吐量,我们提出了预嵌入与向量共享以消除冗余计算,以及基于有向无环图(DAG)的批量流水线与成本感知调度以最小化推理时间。MorphingDB作为PostgreSQL扩展与LibTorch实现,在九个公开数据集上优于AI原生DBMS(EvaDB、Madlib、GaussML)和AutoML平台(AutoGluon、AutoKeras、AutoSklearn),涵盖序列、NLP和图像任务。我们的评估显示,在模型选择中实现了准确率、资源消耗和时间成本之间的稳健平衡,并在吞吐量和资源效率方面取得了显著提升。
英文摘要:
The increasing demand for deep neural inference within database environments has driven the emergence of AI-native DBMSs. However, existing solutions either rely on model-centric designs requiring developers to manually select, configure, and maintain models, resulting in high development overhead, or adopt task-centric AutoML approaches with high computational costs and poor DBMS integration. We present MorphingDB, a task-centric AI-native DBMS that automates model storage, selection, and inference within PostgreSQL. To enable flexible, I/O-efficient storage of deep learning models, we first introduce specialized schemas and multi-dimensional tensor data types to support BLOB-based all-in-one and decoupled model storage. Then we design a transfer learning framework for model selection in two phases, which builds a transferability subspace via offline embedding of historical tasks and employs online projection through feature-aware mapping for real-time tasks. To further optimize inference throughput, we propose pre-embedding with vectoring sharing to eliminate redundant computations and DAG-based batch pipelines with cost-aware scheduling to minimize the inference time. Implemented as a PostgreSQL extension with LibTorch, MorphingDB outperforms AI-native DBMSs (EvaDB, Madlib, GaussML) and AutoML platforms (AutoGluon, AutoKeras, AutoSklearn) across nine public datasets, encompassing series, NLP, and image tasks. Our evaluation demonstrates a robust balance among accuracy, resource consumption, and time cost in model selection and significant gains in throughput and resource efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。