Lune

ICLR2024Top-tier venue

Towards Establishing Guaranteed Error for Learned Database Operations

Sepanta Zeighami, Cyrus Shahabi

Abstract

Machine learning models have demonstrated substantial performance enhancements over non-learned alternatives in various fundamental data management operations, including indexing (locating items in an array), cardinality estimation (estimating the number of matching records in a database), and range-sum estimation (estimating aggregate attribute values for query-matched records). However, real-world systems frequently favor less efficient non-learned methods due to their ability to offer (worst-case) error guarantees - an aspect where learned approaches often fall short. The primary objective of these guarantees is to ensure system reliability, ensuring that the chosen approach consistently delivers the desired level of accuracy across all databases. In this paper, we embark on the first theoretical study of such guarantees for learned methods, presenting the necessary conditions for such guarantees to hold when using machine learning to perform indexing, cardinality estimation and range-sum estimation. Specifically, we present the first known lower bounds on the model size required to achieve the desired accuracy for these three key database operations. Our results bound the required model size for given average and worst-case errors in performing database operations, serving as the first theoretical guidelines governing how model size must change based on data size to be able to guarantee an accuracy level. More broadly, our established guarantees pave the way for the broader adoption and integration of learned models into real-world systems.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability cites ALEX: An Updatable Adaptive Learned Index
  • Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability cites Deep Unsupervised Cardinality Estimation
  • Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability cites Flow-Loss: Learning Cardinality Estimates That Matter
  • Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability cites The PGM-index: a fully-dynamic compressed learned index with provable worst-case bounds
  • Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability cites NeuroCard: One Cardinality Estimator for All Tables
  • Flow-Loss: Learning Cardinality Estimates That Matter cites Deep Unsupervised Cardinality Estimation
  • Flow-Loss: Learning Cardinality Estimates That Matter cites NeuroCard: One Cardinality Estimator for All Tables
  • NeuroCard: One Cardinality Estimator for All Tables cites Deep Unsupervised Cardinality Estimation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution LearnabilitySepanta Zeighami, Cyrus ShahabiICML 2024 · 5 citations

Builds on11

  1. ALEX: An Updatable Adaptive Learned IndexJialin Ding, Umar Farooq Minhas, Jia Yu, Chi Wang et al.SIGMOD 2020 · 274 citations
  2. Deep Unsupervised Cardinality EstimationZongheng Yang, Eric Liang, Amog Kamsetty, Chenggang Wu et al.VLDB 2020 · 206 citations
  3. The PGM-index: a fully-dynamic compressed learned index with provable worst-case boundsPaolo Ferragina, Giorgio VinciguerraVLDB 2020 · 178 citations
  4. NeuroCard: One Cardinality Estimator for All TablesZongheng Yang, Amog Kamsetty, Sifei Luan, Eric Liang et al.VLDB 2021 · 138 citations
  5. Flow-Loss: Learning Cardinality Estimates That MatterParimarjan Negi, Ryan Marcus, Andreas Kipf, Hongzi Mao et al.VLDB 2021 · 102 citations

Related papers

  1. Prediction Intervals for Learned Cardinality Estimation: An Experimental EvaluationSaravanan Thirumuruganathan, Suraj Shetiya, Nick Koudas, Gautam DasICDE 2022 · 7 citations
  2. Are We Ready For Learned Cardinality Estimation?Xiaoying Wang, Changbo Qu, Weiyuan Wu, Jiannan Wang et al.VLDB 2021 · 156 citations
  3. On Distribution Dependent Sub-Logarithmic Query Time of Learned IndexingSepanta Zeighami, Cyrus ShahabiICML 2023 · 20 citations
  4. One Seed, Two Birds: A Unified Learned Structure for Exact and Approximate CountingYingze Li, Hongzhi Wang, Xianglong LiuSIGMOD 2024 · 4 citations
  5. Learned Index with Dynamic ϵ\epsilonDaoyuan Chen, Wuchao Li, Yaliang Li, Bolin Ding et al.ICLR 2023
Dusk over the sea between two cliffs drawn in fine vertical lines