Reqo: A Comprehensive Learning-Based Cost Model for Robust and Explainable Query Optimization
PACMMOD / SIGMOD ·
I am a PhD student in Computer Science at the University of Waterloo, working with Prof. Sujaya Maiyya in the Data Systems Group (DSG). My current interests are vector databases, indexing, and query optimization.
Before Waterloo, I completed my Master of Computer Science at the University of Ottawa, where I worked with Prof. Verena Kantere.

My current research focuses on adaptive vector search, particularly approximate nearest neighbor (ANN) search. The goal is to reduce query latency without sacrificing recall.
My previous research at Ottawa explored graph-based query plan representations and learned cost estimation, with an emphasis on robustness and explainability.
No matches. Try a shorter query or a different term.
Beyond research
Ongoing research
My current research focuses on adaptive vector search. The goal is to reduce query latency without sacrificing recall.
How should effort adapt to query difficulty and progress?
Can complementary paths reduce query latency?
When does sharing information between paths help?
How much overhead does coordinating search paths add?
Goal: lower latency without sacrificing recall
Current research at Waterloo
Ongoing research
Query difficulty and runtime progress may help determine how much work each search path receives, including when to explore further, reduce its budget, pause, or stop.
How should effort adapt to query difficulty and progress?
How should effort be divided between search paths?
How does changing search effort affect latency and recall?
Ongoing research
Can complementary search paths reduce the latency of a single vector query?
Can complementary paths reduce query latency?
How should effort be divided between search paths?
When should search paths share information?
How does coordination affect the benefit of parallel paths?
Ongoing research
When does sharing promising candidates, computed distances, search states, or exploration progress help parallel search paths?
When does sharing information between paths help?
When should search paths share information?
When do the benefits of sharing outweigh its overhead?
Ongoing research
Cooperation has a cost. Synchronization, communication, state maintenance, and extra computation all need to be included when evaluating parallel search.
How much overhead does coordinating search paths add?
How does coordination affect the benefit of parallel paths?
When do the benefits of sharing outweigh its overhead?
Research objective
The goal is to reduce end-to-end query latency without sacrificing recall, using strong conventional baselines for comparison.
Goal: lower latency without sacrificing recall
How does changing search effort affect latency and recall?
Previous research · Ottawa
My research at Ottawa explored graph-based query plan representations and learned cost estimation, with an emphasis on robust and explainable query optimization.
Query plan structure as input to learned models
Graph neural networks for representing query plans
Cost estimates for comparing query plans
Uncertainty in predicted plan costs
Contributions of plan components to predicted costs
Reqo studies robust and explainable cost estimation
Query plan representation for learned query optimization
Master’s research in learned query optimization
Research at Ottawa
Concept
A query plan representation captures relationships between a plan's operators for a learned model. This is the focus of the BiGG work.
Query plan structure as input to learned models
BiGG provides a learned representation of query plans
Concept
My earlier work investigated graph neural networks for representing query-plan structure and estimating query-plan costs.
Graph neural networks for representing query plans
BiGG uses bidirectional graph neural networks
The thesis uses bidirectional graph neural networks
Concept
A learned cost model estimates the cost of a query plan so that an optimizer can compare alternatives. Reqo also considers robustness and explainability.
Cost estimates for comparing query plans
Reqo predicts query plan costs
The thesis studies learned query plan cost estimation
Concept
Reqo accounts for uncertainty in cost estimates when comparing query plans.
Uncertainty in predicted plan costs
Reqo accounts for uncertainty in cost estimates
Robust cost modeling in the thesis
Concept
Reqo examines how parts of a query plan contribute to its estimated cost. Explainable cost modeling was also a focus of my master's thesis.
Contributions of plan components to predicted costs
Reqo examines contributions to predicted plan costs
Explainable cost modeling in the thesis
PACMMOD / SIGMOD · 2026
Reqo estimates query-plan costs and accounts for uncertainty in those estimates. It also examines how parts of a plan contribute to the predicted cost.
Baoming Chang, Amin Kamali, Verena Kantere. Proceedings of the ACM on Management of Data (PACMMOD), 2026. SIGMOD 2026 · Volume 4, Issue 1, Article 75, pp. 1–27
Reqo predicts query plan costs
Reqo accounts for uncertainty in cost estimates
Reqo examines contributions to predicted plan costs
Reqo studies robust and explainable cost estimation
DaWaK · 2024
This paper introduces BiGG, a query plan representation model based on bidirectional graph neural networks.
Baoming Chang, Amin Kamali, Verena Kantere. International Conference on Big Data Analytics and Knowledge Discovery (DaWaK), 2024. Lecture Notes in Computer Science, Volume 14912, pp. 299–314
BiGG provides a learned representation of query plans
BiGG uses bidirectional graph neural networks
Query plan representation for learned query optimization
Master’s thesis · 2024
My master's thesis at the University of Ottawa studied robust, explainable cost modeling with bidirectional graph neural networks.
Baoming Chang. Master’s thesis, University of Ottawa, 2024.
The thesis uses bidirectional graph neural networks
The thesis studies learned query plan cost estimation
Master’s research in learned query optimization
Robust cost modeling in the thesis
Explainable cost modeling in the thesis
Master’s thesis completed at Ottawa
BSc in Computer Science · 2017–2021
I studied Computer Science at ECUST before pursuing graduate research in database systems.
From undergraduate to master’s study
Master of Computer Science · completed 2024
At Ottawa I worked with Prof. Verena Kantere on learned query optimization. I studied query plan representations and learned cost models with a focus on robustness and explainability.
Research at Ottawa
Master’s thesis completed at Ottawa
PhD in Computer Science · 2026–present
I work with Prof. Sujaya Maiyya in the Data Systems Group. My current research focuses on adaptive vector search.
Outside research, my interests include badminton, saxophone, Popping, video games, and food.
Personal interest
Personal interest
Personal interest
Personal interest
Personal interest
PACMMOD / SIGMOD ·
DaWaK ·