mlsanityData to 7 Oct 2026

JoinGym: An Efficient Query Optimization Environment for Reinforcement Learning

arXiv 2307.11704 ↗First posted 21 Jul 2023cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Join order selection (JOS) is the problem of ordering join operations to minimize total query execution cost and it is the core NP-hard combinatorial optimization problem of query optimization. In this paper, we present JoinGym, a lightweight and easy-to-use query optimization environment for reinforcement learning (RL) that captures both the left-deep and bushy variants of the JOS problem. Compared to existing query optimization environments, the key advantages of JoinGym are usability and significantly higher throughput which we accomplish by simulating query executions entirely offline. Under the hood, JoinGym simulates a query plan's cost by looking up intermediate result cardinalities from a pre-computed dataset. We release a novel cardinality dataset for 3300 SQL queries based on real IMDb workloads which may be of independent interest, e.g., for cardinality estimation. Finally, we extensively benchmark four RL algorithms and find that their cost distributions are heavy-tailed, which motivates future work in risk-sensitive RL. In sum, JoinGym enables users to rapidly prototype RL algorithms on realistic database problems without needing to setup and run live systems.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 38 of its 65 references that are in the map. First posted on arXiv 21 Jul 2023.

Builds on

38 of 65 references.

References · 38

  1. 2017Proximal Policy Optimization Algorithmscited by 14,441
  2. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
  3. 2018Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actorcited by 4,635
  4. 2018Addressing Function Approximation Error in Actor-Critic Methodscited by 2,302
  5. 2015Deep Reinforcement Learning with Double Q-learningcited by 1,704
  6. 2019Mastering Atari, Go, Chess and Shogi by Planning with a Learned Modelcited by 1,327
  7. 2019Meta-World: A Benchmark and Evaluation for Multi-Task and Meta Reinforcement Learningcited by 1,168
  8. 2015Prioritized Experience Replaycited by 1,070
  9. 2018DeepMind Control Suitecited by 935
  10. 2019Leveraging Procedural Generation to Benchmark Reinforcement Learningcited by 478
  11. 2021Brax -- A Differentiable Physics Engine for Large Scale Rigid Body Simulationcited by 375
  12. 2018Quantifying Generalization in Reinforcement Learningcited by 345
26 more
  1. 2015Risk-Sensitive and Robust Decision-Making: a CVaR Optimization Approachcited by 162
  2. 2020A Closer Look at Invalid Action Masking in Policy Gradient Algorithmscited by 160
  3. 2022Robust Reinforcement Learning using Offline Datacited by 95
  4. 2019Neo: A Learned Query Optimizercited by 80
  5. 2021Conservative Offline Distributional Reinforcement Learningcited by 78
  6. 2021RL for Latent MDPs: Regret Guarantees and a Lower Boundcited by 69
  7. 2021DR3: Value-Based Deep Reinforcement Learning Requires Explicit Regularizationcited by 66
  8. 2021Risk-Averse Offline Reinforcement Learningcited by 65
  9. 2018Learned Cardinalities: Estimating Correlated Joins with Deep Learningcited by 64
  10. 2020Bao: Learning to Steer Query Optimizerscited by 62
  11. 2023POPGym: Benchmarking Partially Observable Reinforcement Learningcited by 59
  12. 2017Markov Decision Processes with Continuous Side Informationcited by 54
  13. 2022Provable Benefits of Representational Transfer in Reinforcement Learningcited by 38
  14. 2022Doubly Robust Distributionally Robust Off-Policy Evaluation and Learningcited by 34
  15. 2018Learning to Optimize Join Queries With Deep Reinforcement Learningcited by 32
  16. 2023Near-Minimax-Optimal Risk-Sensitive Reinforcement Learning with CVaRcited by 32
  17. 2021Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluationcited by 30
  18. 2018Deep Reinforcement Learning for Join Order Enumerationcited by 25
  19. 2022Balsa: Learning a Query Optimizer Without Expert Demonstrationscited by 18
  20. 2019SkinnerDB: Regret-Bounded Query Evaluation via Reinforcement Learningcited by 17
  21. 2018Learning State Representations for Query Optimization with Deep Reinforcement Learningcited by 14
  22. 2021Reinforcement Learning for Datacenter Congestion Controlcited by 11
  23. 2017Size bounds and query plans for relational joinscited by 10
  24. 2022AutoCAT: Reinforcement Learning for Automated Exploration of Cache-Timing Attackscited by 9
  25. 2019Estimating Cardinalities with Deep Sketchescited by 4
  26. 2023Deep learning based Auto Tuning for Database Management Systemcited by 1

Built on by

Cited by year

Citing papers per year: 2024: 1.

1 paper.