mlsanityData to 7 Oct 2026

Bao: Learning to Steer Query Optimizers

arXiv 2004.03814 ↗First posted 8 Apr 2020cs.DBcited by 62

Not on the map. Why?

Abstract (arXiv)

Query optimization remains one of the most challenging problems in data management systems. Recent efforts to apply machine learning techniques to query optimization challenges have been promising, but have shown few practical gains due to substantive training overhead, inability to adapt to changes, and poor tail performance. Motivated by these difficulties and drawing upon a long history of research in multi-armed bandits, we introduce Bao (the BAndit Optimizer). Bao takes advantage of the wisdom built into existing query optimizers by providing per-query optimization hints. Bao combines modern tree convolutional neural networks with Thompson sampling, a decades-old and well-studied reinforcement learning algorithm. As a result, Bao automatically learns from its mistakes and adapts to changes in query workloads, data, and schema. Experimentally, we demonstrate that Bao can quickly (an order of magnitude faster than previous approaches) learn strategies that improve end-to-end query execution performance, including tail latency. In cloud environments, we show that Bao can offer both reduced costs and better performance compared with a sophisticated commercial system.

Key facts. Cited by 62 papers in the map (data through 7 Oct 2026). First posted on arXiv 8 Apr 2020.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 3; 2022: 8; 2023: 8; 2024: 12; 2025: 18; 2026: 13.

62 papers.

Sort:

By area:

  1. 2022Zeus: Understanding and Optimizing GPU Energy Consumption of DNN Trainingcited by 78
  2. 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
  3. 2023Lero: A Learning-to-Rank Query Optimizercited by 26
  4. 2022Balsa: Learning a Query Optimizer Without Expert Demonstrationscited by 18
  5. 2022Zero-Shot Cost Models for Out-of-the-box Learned Cost Predictioncited by 16
  6. 2025Glia: A Human-Inspired AI for Automated Systems Design and Optimizationcited by 14
  7. 2025Cortex AISQL: A Production SQL Engine for Unstructured Datacited by 11
  8. 2021A Survey on Deep Reinforcement Learning for Data Processing and Analyticscited by 10
  9. 2024E2ETune: End-to-End Knob Tuning via Fine-tuned Generative Language Modelcited by 9
  10. 2022Detect, Distill and Update: Learned DB Systems Facing Out of Distribution Datacited by 6
  11. 2025Graph Neural Networks for Databases: A Surveycited by 6
  12. 2025QUITE: A Query Rewrite System Beyond Rules with LLM Agentscited by 6
38 more
  1. 2024NeurDB: An AI-powered Autonomous Data Systemcited by 5
  2. 2021No DBA? No regret! Multi-armed bandits for index tuning of analytical and HTAP workloads with provable guaranteescited by 4
  3. 2023Real-time Workload Pattern Analysis for Large-scale Cloud Databasescited by 4
  4. 2024Sibyl: Forecasting Time-Evolving Query Workloadscited by 4
  5. 2024The Unreasonable Effectiveness of LLMs for Query Optimizationcited by 4
  6. 2023Kepler: Robust Learning for Faster Parametric Query Optimizationcited by 3
  7. 2024AnnotatedTables: A Large Tabular Dataset with Language Model Annotationscited by 3
  8. 2024HERO: Hint-Based Efficient and Reliable Query Optimizercited by 3
  9. 2025In-Context Adaptation to Concept Drift for Learned Database Operationscited by 3
  10. 2022Conditionally Risk-Averse Contextual Banditscited by 2
  11. 2022Deploying a Steered Query Optimizer in Production at Microsoftcited by 2
  12. 2022Learned-Database Systems Securitycited by 2
  13. 2023ML-Powered Index Tuning: An Overview of Recent Progress and Open Challengescited by 2
  14. 2025Supporting Dynamic Agentic Workloads: How Data and Agents Interactcited by 2
  15. 2026AI-Driven Research for Databasescited by 2
  16. 2021TENSILE: A Tensor granularity dynamic GPU memory scheduling method toward multiple dynamic workloads systemcited by 1
  17. 2023JoinGym: An Efficient Query Optimization Environment for Reinforcement Learningcited by 1
  18. 2023FOSS: A Self-Learned Doctor for Query Optimizercited by 1
  19. 2024GEqO: ML-Accelerated Semantic Equivalence Detectioncited by 1
  20. 2024Robust Plan Evaluation based on Approximate Probabilistic Machine Learningcited by 1
  21. 2024A Novel Technique for Query Plan Representation Based on Graph Neural Netscited by 1
  22. 2024Hype or Heuristic? Quantum Reinforcement Learning for Join Order Optimisationcited by 1
  23. 2024GenJoin: Conditional Generative Plan-to-Plan Query Optimizer that Learns from Subplan Hintscited by 1
  24. 2024Query Performance Explanation through Large Language Model for HTAP Systemscited by 1
  25. 2025Large Scale Multi-Task Bayesian Optimization with Large Language Modelscited by 1
  26. 2025DistJoin: A Decoupled Join Cardinality Estimator based on Adaptive Neural Predicate Modulationcited by 1
  27. 2022Learning-Based Data Storage [Vision] (Technical Report)cited by 0
  28. 2023BitE : Accelerating Learned Query Optimization in a Mixed-Workload Environmentcited by 0
  29. 2025Reqo: A Comprehensive Learning-Based Cost Model for Robust and Explainable Query Optimizationcited by 0
  30. 2025Selective Use of Yannakakis' Algorithm to Improve Query Performance: Machine Learning to the Rescuecited by 0
  31. 2025Low Rank Learning for Offline Query Optimizationcited by 0
  32. 2025BQSched: A Non-intrusive Scheduler for Batch Concurrent Queries via Reinforcement Learningcited by 0
  33. 2025Training-Free Query Optimization via LLM-Based Plan Similaritycited by 0
  34. 2025LLM4Hint: Leveraging Large Language Models for Hint Recommendation in Offline Query Optimizationcited by 0
  35. 2025An advanced AI driven database systemcited by 0
  36. 2025OntoTune: Ontology-Driven Learning for Query Optimization with Convolutional Modelscited by 0
  37. 2025CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation using Joint CDFcited by 0
  38. 2025TiCard: Deployable EXPLAIN-only Residual Learning for Cardinality Estimationcited by 0

50 most cited of 62 All 62 (JSON)