mlsanityData to 7 Oct 2026

Piece of CAKE: Adaptive Execution Engines via Microsecond-Scale Learning

arXiv 2602.04181 ↗First posted 4 Feb 2026cs.DB cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Low-level database operators often admit multiple physical implementations ("kernels") that are semantically equivalent but have vastly different performance characteristics depending on the input data distribution. Existing database systems typically rely on static heuristics or worst-case optimal defaults to select these kernels, often missing significant performance opportunities. In this work, we propose CAKE (Counterfactual Adaptive Kernel Execution), a system that learns to select the optimal kernel for each data "morsel" using a microsecond-scale contextual multi-armed bandit. CAKE circumvents the high latency of traditional reinforcement learning by exploiting the cheapness of counterfactuals -- selectively running multiple kernels to obtain full feedback -- and compiling policies into low-latency regret trees. Experimentally, we show that CAKE can reduce end-to-end workload latency by up to 2x compared to state-of-the-art static heuristics.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 21 of its 74 references that are in the map. First posted on arXiv 4 Feb 2026.

Builds on

21 of 74 references.

References · 21

  1. 2017Proximal Policy Optimization Algorithmscited by 14,441
  2. 2017The Case for Learned Index Structurescited by 188
  3. 2019Neo: A Learned Query Optimizercited by 80
  4. 2020Evaluating the Performance of Reinforcement Learning Algorithmscited by 35
  5. 2015A Survey on Contextual Multi-armed Banditscited by 34
  6. 2023Lero: A Learning-to-Rank Query Optimizercited by 26
  7. 2020Tsunami: A Learned Multi-dimensional Index for Correlated Data and Skewed Workloadscited by 25
  8. 2019SkinnerDB: Regret-Bounded Query Evaluation via Reinforcement Learningcited by 17
  9. 2018Deep Contextual Multi-armed Banditscited by 16
  10. 2018The Three Pillars of Machine Programmingcited by 12
  11. 2023Revisiting Bellman Errors for Offline Model Selectioncited by 5
  12. 2016WiSeDB: A Learning-based Workload Management Advisor for Cloud Databasescited by 4
9 more
  1. 2018Cuttlefish: A Lightweight Primitive for Adaptive Query Processingcited by 4
  2. 2025SEFRQO: A Self-Evolving Fine-Tuned RAG-Based Query Optimizercited by 4
  3. 2020Buffer Pool Aware Query Scheduling via Deep Reinforcement Learningcited by 3
  4. 2024HERO: Hint-Based Efficient and Reliable Query Optimizercited by 3
  5. 2017Generating Custom Code for Efficient Query Execution on Heterogeneous Processorscited by 2
  6. 2018Database-Agnostic Workload Managementcited by 2
  7. 2019How I Learned to Stop Worrying and Love Re-optimizationcited by 2
  8. 2025Debunking the Myth of Join Ordering: Toward Robust SQL Analyticscited by 2
  9. 2014Enabling Incremental Query Re-Optimizationcited by 1

Built on by

Not cited yet.