arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.04404cs.DBcs.AI
收藏

学习型数据库操作的概念漂移上下文自适应

In-Context Adaptation to Concept Drift for Learned Database Operations

Beijing Institute of Technology(北京理工大学);National University of Singapore(新加坡国立大学);Shanghai Jiao Tong University(上海交通大学);Zhejiang University(浙江大学)

Jiaqi Zhu, Shaofeng Cai, Yanyan Shen, Gang Chen, Fang Deng, Beng Chin Ooi

AI总结:

针对数据库学习模型面临概念漂移导致性能下降的问题,提出在线自适应框架FLAIR,通过上下文自适应新范式利用即时结果构建动态上下文,实现快速适应,实验表明适应速度提升5.2倍,误差降低22.5%。

摘要:

机器学习已展现出对数据库操作(如查询优化和数据库内数据分析)的变革性潜力。然而,动态数据库环境以频繁更新和不断演变的数据分布为特征,引入了概念漂移,这导致学习模型的性能下降,并限制了其实际应用性。应对这一挑战需要高效的框架,能够适应不断变化的概念,同时最小化重训练或微调的开销。\n在本文中,我们提出了FLAIR,一个在线自适应框架,为学习型数据库操作引入了一种称为“上下文自适应”的新范式。FLAIR利用数据系统的固有属性,即预测结果可即时获取,以实现动态上下文构建。通过将自适应形式化为$f:(\mathbf{x} \\,| \\,C_t) \to \mathbf{y}$,其中$C_t$表示动态上下文记忆,FLAIR提供与当前概念一致的预测,无需运行时参数优化。为实现这一目标,FLAIR集成了两个关键模块:一个任务特征化模块,用于将任务特定特征编码为标准化表示;以及一个动态决策引擎,通过贝叶斯元训练进行预训练,以在运行时利用上下文信息无缝适应。跨关键数据库任务的大量实验表明,FLAIR优于最先进的基线,在基数估计方面实现了高达5.2倍更快的适应速度,并将误差降低了22.5%。

英文摘要:

Machine learning has demonstrated transformative potential for database operations, such as query optimization and in-database data analytics. However, dynamic database environments, characterized by frequent updates and evolving data distributions, introduce concept drift, which leads to performance degradation for learned models and limits their practical applicability. Addressing this challenge requires efficient frameworks capable of adapting to shifting concepts while minimizing the overhead of retraining or fine-tuning. In this paper, we propose FLAIR, an online adaptation framework that introduces a new paradigm called \textit{in-context adaptation} for learned database operations. FLAIR leverages the inherent property of data systems, i.e., immediate availability of execution results for predictions, to enable dynamic context construction. By formalizing adaptation as $f:(\mathbf{x} \,| \,C_t) \to \mathbf{y}$, with $C_t$ representing a dynamic context memory, FLAIR delivers predictions aligned with the current concept, eliminating the need for runtime parameter optimization. To achieve this, FLAIR integrates two key modules: a Task Featurization Module for encoding task-specific features into standardized representations, and a Dynamic Decision Engine, pre-trained via Bayesian meta-training, to adapt seamlessly using contextual information at runtime. Extensive experiments across key database tasks demonstrate that FLAIR outperforms state-of-the-art baselines, achieving up to 5.2x faster adaptation and reducing error by 22.5% for cardinality estimation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑