Reproduce “Piece of CAKE: Adaptive Execution Engines via Microsecond-Scale Learning” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Zijie Zhao, Ryan Marcus
CAKE, a system developed at the University of Pennsylvania, dynamically selects optimal low-level database operator implementations at a microsecond scale using contextual multi-armed bandits and cheap counterfactual evaluations. This approach reduces end-to-end query latency by up to 50.7% on the IMDb dataset while incurring only ~5% total overhead during online learning.
Key insights
- Significant performance improvements are attainable by dynamically adapting low-level database kernel choices at morsel granularity based on immediate data characteristics.
- The ability to obtain cheap counterfactuals in database execution (running alternative kernel implementations) dramatically improves the sample efficiency of online learning, making ML-driven adaptation practical for performance-critical components.
- Cost-aware decision trees (regret trees) can effectively compile complex learned policies into extremely low-latency, performant code suitable for microsecond-scale runtime decisions, overcoming traditional ML inference overheads.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.