Reproduce “Learning State Representations for Query Optimization with Deep Reinforcement 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

Jennifer Ortiz, Magdalena Balazinska, Johannes Gehrke, S. Sathiya Keerthi

Researchers developed a methodology that applies deep reinforcement learning to query optimization, focusing on learning effective state representations for subqueries. Their deep learning component, tested on the IMDB dataset, generated compact subquery representations that consistently outperformed a commercial DBMS in cardinality estimation for selection queries, validating the approach for subsequent reinforcement learning in plan enumeration.

Key insights

  • Deep neural networks can learn highly informative and compact latent vector representations for subqueries, capturing complex data distributions and correlations that traditional optimizers miss.
  • These learned subquery representations are propagatable, meaning the state from an earlier operation (e.g., selection) retains sufficient information to inform predictions for subsequent, more complex operations (e.g., joins).
  • Modeling incremental query plan construction as a Markov Decision Process with states defined by learned representations enables a reinforcement learning agent to learn optimal sequences of operations.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.