mlsanityData to 14 Oct 2026

Gradient-Based Join Ordering

arXiv 2511.14482 ↗First posted 18 Nov 2025cs.DB cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Join ordering is the NP-hard problem of selecting the most efficient order in which to evaluate joins (conjunctive, binary operators) in a database query. Because query execution performance critically depends on this choice, join ordering lies at the core of query optimization. Traditional approaches cast this problem as a discrete combinatorial search over binary trees guided by a cost model, but they have trade-offs between effectiveness and efficiency. We show that when the cost model is differentiable, query plans can be continuously relaxed into a soft adjacency matrix that represents a superposition of plans. This continuous relaxation, combined with differentiable constraints that enforce plan validity, enables a gradient-based search for low-cost plans within this relaxed space. Using a Graph Neural Network as the cost model, we demonstrate that this gradient-based approach can find comparable and even lower-cost plans compared to traditional discrete search methods on two different graph datasets. Furthermore, we empirically show that the runtime of this approach scales better than discrete search algorithms. We believe this first step towards gradient-based join ordering can lead to more effective and efficient query optimizers in the future.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 17 of its 45 references that are in the map. First posted on arXiv 18 Nov 2025.

Builds on

17 of 45 references.

References · 17

  1. 2018How Powerful are Graph Neural Networks?cited by 4,393
  2. 2018DARTS: Differentiable Architecture Searchcited by 1,798
  3. 2018DAGs with NO TEARS: Continuous Optimization for Structure Learningcited by 752
  4. 2019KEPLER: A Unified Model for Knowledge Embedding and Pre-trained Language Representationcited by 356
  5. 2018Neural Relational Inference for Interacting Systemscited by 339
  6. 2018SNAS: Stochastic Neural Architecture Searchcited by 289
  7. 2021D'ya like DAGs? A Survey on Structure Learning and Causal Discoverycited by 211
  8. 2020On the Role of Sparsity and DAG Constraints for Learning Linear DAGscited by 191
  9. 2019Stochastic Optimization of Sorting Networks via Continuous Relaxationscited by 111
  10. 2019Neo: A Learned Query Optimizercited by 80
  11. 2020SoftSort: A Continuous Relaxation for the argsort Operatorcited by 66
  12. 2018Learned Cardinalities: Estimating Correlated Joins with Deep Learningcited by 64
5 more
  1. 2019An End-to-End Learning-based Cost Estimatorcited by 43
  2. 2018Deep Reinforcement Learning for Join Order Enumerationcited by 25
  3. 2023Gradient-based Planning with World Modelscited by 19
  4. 2023Cardinality Estimation over Knowledge Graphs with Embeddings and Graph Neural Networkscited by 3
  5. 2024Neuro-Symbolic Query Optimization in Knowledge Graphscited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026SemJoin: Semantic Join Optimization
  2. 2026Lower Bounds for the Algorithmic Complexity of Learned Indexes
  3. 2024The Unreasonable Effectiveness of LLMs for Query Optimization
  4. 2026BlitzRank: Principled Zero-shot Ranking Agents with Tournament Graphs
  5. 2026Unified Dominance Graph for Interval-Predicate Approximate Nearest Neighbor Search ↗
  6. 2026RELOAD: A Robust and Efficient Learned Query Optimizer for Database Systems
  7. 2023Neural Graph Reasoning: Complex Logical Query Answering Meets Graph Databases
  8. 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Models