Low Rank Learning for Offline Query Optimization

Zixuan Yi, Yao Tian, Zachary G. Ives, Ryan Marcus
4/8/2025
cs.DBcs.LG

Official code: zixy17/LimeQO (7 stars, MIT, last commit 2026-01-09).

Abstract

Recent deployments of learned query optimizers use expensive neural networks and ad-hoc search policies. To address these issues, we introduce \textsc{LimeQO}, a framework for offline query optimization leveraging low-rank learning to efficiently explore alternative query plans with minimal resource usage. By modeling the workload as a partially observed, low-rank matrix, we predict unobserved query plan latencies using purely linear methods, significantly reducing computational overhead compared to neural networks. We formalize offline exploration as an active learning problem, and present simple heuristics that reduces a 3-hour workload to 1.5 hours after just 1.5 hours of exploration. Additionally, we propose a transductive Tree Convolutional Neural Network (TCNN) that, despite higher computational costs, achieves the same workload reduction with only 0.5 hours of exploration. Unlike previous approaches that place expensive neural networks directly in the query processing ``hot'' path, our approach offers a low-overhead solution and a no-regressions guarantee, all without making assumptions about the underlying DBMS. The code is available in \href{https://github.com/zixy17/LimeQO}{https://github.com/zixy17/LimeQO}.

View on arXivView PDF

Code Implementations(1)

zixy17/LimeQOOfficial100%
MIT

[SIGMOD 25] LimeQO: Low Rank Learning for Offline Query Optimization

71Python, Jupyter NotebookOct 18, 20249 months agoMIT

Similar Papers

Cite this paper

@article{yi2025rank,
  title  = {Low Rank Learning for Offline Query Optimization},
  author = {Zixuan Yi and Yao Tian and Zachary G. Ives and Ryan Marcus},
  year   = {2025},
  eprint = {2504.06399},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.06399v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.06399.svg)](https://codeofpaper.com/paper/2504.06399)

Discussion