REVIEW 4 major objections 5 minor
Learned MCTS join optimizers fail out of sample; native-cost Extreme UCT wins on complex joins
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · grok-4.5
2026-07-13 23:43 UTC pith:U42RL2IA
load-bearing objection Solid reproducibility hit on learned-cost MCTS plus a practical GEQO-seeded Extreme-UCT alternative that helps mainly on ≥12-table joins; the superiority claim is real but narrower than the abstract suggests. the 4 major comments →
Practical MCTS-based Query Optimization: A Reproducibility Study and new MCTS algorithm for complex queries
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
AlphaJoin and HyperQO do not deliver their claimed speed-ups once tested beyond the original training distribution; the failure is caused by learned cost models, not by Monte Carlo Tree Search. A practical MCTS that uses only the DBMS native cost model together with Extreme UCT selection, seeded from a genetic starting plan, produces better execution times than both those learned systems and the production optimizer on complex multi-join queries.
What carries the argument
Extreme UCT: instead of average reward, the selection score uses the maximum observed reward of a child plus an exploration term raised to a tunable power γ, steering search toward the global best plan under the database's own cost estimates.
Load-bearing premise
The database's built-in cost numbers, even when they mis-estimate intermediate sizes, still rank join orders well enough for Extreme-UCT search to find faster plans than the default optimizer.
What would settle it
On a new suite of multi-join queries where the native cost model is known to be anti-correlated with true latency, run the two-stage Extreme-UCT procedure; if the forced plans are systematically slower than GEQO or dynamic programming, the central claim is false.
If this is right
- Learned cost models attached to MCTS cannot be trusted for production without continual retraining on every new workload shape.
- For queries with twelve or more tables, seeding MCTS from a genetic plan and refining under native costs improves plan quality over pure dynamic programming or GEQO alone.
- Out-of-sample suites such as JOB-Complex expose generalization failures that the original JOB benchmark alone conceals.
- Releasing complete, executable code and avoiding learned components lowers the barrier to practical use of MCTS inside query optimizers.
Where Pith is reading between the lines
- The same Extreme-UCT plus native-cost pattern can be ported to any engine that already exposes a cost model and join-order hints.
- Strong search heuristics may compensate for noisy cost models, reducing pressure on perfect cardinality estimation for large joins.
- Hybrid classical-plus-MCTS pipelines are likely more deployable in the near term than pure learned optimizers.
- Replacing the native cost model with any better non-learned estimator should be a direct, testable next experiment.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper performs a reproducibility study of AlphaJoin and HyperQO (MCTS-based join-order optimizers that rely on learned cost models), finding that claimed gains on JOB do not reliably hold and that both methods fail to improve (or even run) on the OOD JOB-Complex benchmark; the authors attribute this to severe out-of-distribution errors in the learned models rather than to MCTS itself. They then introduce a two-stage, prefix-guided MCTS algorithm (Algorithm 1) that replaces the learned model with PostgreSQL’s native cost model as reward R(e) ← −Cost(e), adopts Extreme UCT selection (Eq. 3), and seeds search from GEQO-style prefixes. Experiments on JOB and JOB-Complex claim that the method outperforms the re-implemented learned baselines and improves upon PostgreSQL for queries with ≥12 relations, with full code and artifacts released.
Significance. A careful negative result on the deployment readiness of learned-cost MCTS optimizers, together with a fully reproducible hybrid that stays inside the native cost model, would be useful to the LQO community. The use of JOB-Complex as an explicit OOD test, the public artifacts, and the isolation of the search component from the learned estimator are genuine strengths. If the superiority claim for complex joins holds under tighter evaluation, the work supplies a practical, low-overhead alternative to both pure DP/GEQO and brittle learned methods.
major comments (4)
- [§6.2, Figs. 2 and 4] §6.2 and Figs. 2/4: The abstract and conclusion claim “superiority over a SOTA query optimizer in complex join scenarios.” On the full JOB distribution (Fig. 2) the method is better on only 44.2 % of queries and worse on another 44.2 %. Gains appear concentrated on the ≥12-relation subset (Fig. 4), yet even there the relative-gap plot shows mixed signs and several large degradations. Without win-rate statistics, confidence intervals, or a clear statement that the claim is restricted to the ≥12 subset under a GEQO-style threshold, the superiority language overstates the evidence.
- [Algorithm 1, Eq. (3), §5] Algorithm 1 and Eq. (3): The entire search is driven by the proxy R(e) ← −Cost(e) taken from PostgreSQL EXPLAIN. The paper itself notes that rare degradations are caused by cost-model error (§6.2) and that classical cardinality/correlation assumptions are known to be inaccurate (§2.2). No rank-correlation (Spearman/Kendall) between Cost(e) and true latency is reported on the exact plans explored for the ≥12-relation queries, nor is there an ablation that replaces Extreme-UCT with standard UCT or with random search under the same iteration budget. Without that measurement the claim that Extreme-UCT systematically improves true runtime (rather than merely lowering estimated cost) remains an untested hinge.
- [§6.1, §7] §6.1 and §7: All evaluated methods, including the proposed one, run outside the kernel and inject leading hints. Consequently the reported latencies exclude MCTS search cost (T_pair + T_main iterations, each requiring an EXPLAIN). The authors acknowledge that E2E time cannot be measured consistently. For complex queries this overhead can dominate; the practicality claim relative to in-kernel GEQO therefore needs either an in-kernel prototype or an explicit accounting of planning time under realistic budgets.
- [§3–4, abstract] §3–4 and the ablation claim: The abstract states that “while the MCTS search strategy is effective, the accompanying learned cost models suffer from severe out-of-distribution generalization errors.” The reproducibility experiments show that AlphaJoin and HyperQO fail, but they do not isolate the contribution of Extreme-UCT versus the native cost model versus the two-stage GEQO seeding. An explicit ablation (standard UCT vs. Extreme UCT, pure GEQO vs. GEQO-seeded MCTS, identical iteration budgets) is needed before the effectiveness of the search component can be asserted independently of the cost model.
minor comments (5)
- [title page] Title and running headers lack spaces (“PRACTICALMCTS-BASEDQUERYOPTIMIZATION”); fix for readability.
- [§5–6] Hyper-parameter values actually used for c, γ, T_pair, T_main, gp_rate, mutation_rate, etc. are never listed; only that they were “possibly tuned.” A table or appendix entry is required for reproducibility.
- [Fig. 4] Fig. 4 y-axis label and caption use the abbreviation “AJ” without definition in the figure itself; expand or add a legend.
- [§5, references] Citation for Extreme UCT (Huang et al.) appears only as “[n. d.]”; supply the full venue and year once available.
- [§4] Several sentences in §4.1–4.2 mix past-tense reproduction narrative with present-tense claims; a light copy-edit would improve clarity.
Circularity Check
No circularity; empirical MCTS heuristic using native DBMS cost model is evaluated on external public benchmarks against reimplemented baselines.
full rationale
The paper's load-bearing claims are empirical: a two-stage prefix-guided MCTS (Algorithm 1) that seeds from GEQO edges, uses reward R(e) ← −Cost(e) from PostgreSQL EXPLAIN, and selects via Extreme UCT (Eq. 3) outperforms reimplemented AlphaJoin/HyperQO and native DP/GEQO on JOB/JOB-Complex execution latencies for ≥12-relation queries. Extreme UCT is adopted from Huang et al. as a known selection policy (not derived from the measured latencies). There is no parameter fitted to a data subset and then re-presented as a prediction, no self-definitional identity between inputs and claimed outputs, no uniqueness theorem imported from overlapping authors, and no ansatz smuggled via self-citation. The reproducibility critique of prior learned models and the new algorithm's results rest on independent runs against public benchmarks and the DBMS's own cost model; the derivation chain is therefore self-contained algorithmic proposal plus external evaluation.
Axiom & Free-Parameter Ledger
free parameters (3)
- T_pair / T_main (iteration budgets)
- c, γ (Extreme-UCT constants)
- gp_rate, mutation_rate, exploration_rate, K
axioms (3)
- domain assumption PostgreSQL’s EXPLAIN total cost is a sufficiently informative reward for ranking join orders (R(e) ← −Cost(e))
- domain assumption Left-deep join trees plus leading hints are an adequate search space for the evaluated workloads
- standard math Standard MCTS four-phase loop and UCT-style selection are valid for combinatorial plan spaces
invented entities (1)
-
Two-stage prefix-guided Extreme-UCT MCTS for left-deep joins
independent evidence
read the original abstract
Monte Carlo Tree Search (MCTS) has been proposed as a transformative approach to join-order optimization in database query processing, with recent frameworks such as AlphaJoin and HyperQO claiming to outperform traditional methods. However, the fact that these frameworks rely on learned cost models raises concerns related to generalizability and deployment readiness. This paper presents a comprehensive reproducibility study of these methods, revealing that they often fail to support the claimed performance gains when subjected to diverse workloads. Through an ablation study, we diagnose the root cause of this instability: while the MCTS search strategy is effective, the accompanying learned cost models suffer from severe out-of-distribution generalization errors. Addressing this, we propose a novel MCTS framework. Unlike prior methods that rely on unstable learned components, our approach utilizes the database standard internal cost model, augmented by a new Extreme UCT (Upper Confidence Bound applied to Trees) selection policy to navigate the search space more robustly. We benchmark our method against the original AlphaJoin and HyperQO, as well as industry-standard baselines including Dynamic Programming (DP) and Genetic Query Optimization (GEQO), using the well-known Join Order Benchmark (JOB) and the new JOB-Complex benchmark. The results demonstrate that our approach outperforms learned MCTS methods and achieves superiority over a SOTA query optimizer in complex join scenarios on real-world data. We release the full implementation and experimental artifacts to support further research.
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.