In-Context Adaptation to Concept Drift for Learned Database Operations
Not on the map. Why?
Abstract (arXiv)
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 textitin-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:(x ,| ,Ct) → y, with Ct 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.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 25 of its 73 references that are in the map. First posted on arXiv 7 May 2025.
Builds on
25 of 73 references.
References · 25
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,166
- 2022A Survey on In-context Learningcited by 721
- 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 674
- 2020AutoGluon-Tabular: Robust and Accurate AutoML for Structured Datacited by 383
- 2022Black-Box Tuning for Language-Model-as-a-Servicecited by 256
- 2020Preventing Repeated Real World AI Failures by Cataloging Incidents: The AI Incident Databasecited by 96
- 2020Bao: Learning to Steer Query Optimizerscited by 62
- 2024Distribution Matching for Multi-Task Learning of Classification Tasks: a Large-Scale Study on Faces & Beyondcited by 60
13 more
- 2023Revisiting Scalarization in Multi-Task Learning: A Theoretical Perspectivecited by 51
- 2022A Data-Based Perspective on Transfer Learningcited by 32
- 2023GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimizationcited by 29
- 2024Drift-Resilient TabPFN: In-Context Learning Temporal Distribution Shifts on Tabular Datacited by 25
- 2021Flow-Loss: Learning Cardinality Estimates That Mattercited by 22
- 2021DB-BERT: a Database Tuning Tool that "Reads the Manual"cited by 19
- 2023Machine Unlearning in Learned Databases: An Experimental Analysiscited by 18
- 2023ALECE: An Attention-based Learned Cardinality Estimator for SPJ Queries on Dynamic Workloads (Extended)cited by 13
- 2021A Unified Transferable Model for ML-Enhanced DBMScited by 10
- 2021One Model to Rule them All: Towards Zero-Shot Learning for Databasescited by 9
- 2022Detect, Distill and Update: Learned DB Systems Facing Out of Distribution Datacited by 6
- 2024NeurDB: An AI-powered Autonomous Data Systemcited by 5
- 2024Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnabilitycited by 4
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.