Lune

VLDB2024Top-tier venue

InferDB: In-Database Machine Learning Inference Using Indexes

Ricardo Salazar-Díaz, Boris Glavic, Tilmann Rabl

Abstract

The performance of inference with machine learning (ML) models and its integration with analytical query processing have become critical bottlenecks for data analysis in many organizations. An ML inference pipeline typically consists of a preprocessing workflow followed by prediction with an ML model. Current approaches for in-database inference implement preprocessing operators and ML algorithms in the database either natively, by transpiling code to SQL, or by executing user-defined functions in guest languages such as Python. In this work, we present a radically different approach that approximates an end-to-end inference pipeline (preprocessing plus prediction) using a light-weight embedding that discretizes a carefully selected subset of the input features and an index that maps data points in the embedding space to aggregated predictions of an ML model. We replace a complex preprocessing workflow and model-based inference with a simple feature transformation and an index lookup. Our framework improves inference latency by several orders of magnitude while maintaining similar prediction accuracy compared to the pipeline it approximates.

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.

5 top-tier papers have 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

  • NeurStore: Efficient In-database Deep Learning Model Management System cites End-to-end Optimization of Machine Learning Prediction Queries
  • End-to-end Optimization of Machine Learning Prediction Queries cites Distributed Deep Learning on Data Systems: A Comparative Analysis of Approaches
  • ConRAD: Conformal Risk-Aware Neural Databases cites End-to-end Optimization of Machine Learning Prediction Queries
  • MorphingDB: A Task-Centric AI-Native DBMS for Model Management and Inference cites End-to-end Optimization of Machine Learning Prediction Queries
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Beluga: A CXL-Based Memory Architecture for Scalable and Efficient LLM KVCache ManagementXinjun Yang, Qingda Hu, Junru Li, Feifei Li et al.SIGMOD 2026 · 24 citations
  2. NeurStore: Efficient In-database Deep Learning Model Management SystemSiqi Xiang, Sheng Wang, Xiaokui Xiao, Cong Yue et al.SIGMOD 2026 · 2 citations
  3. ScaleDoc: Scaling LLM-based Predicates over Large Document CollectionsHengrui Zhang, Yulong Hui, Yihao Liu, Huanchen ZhangSIGMOD 2026 · 2 citations
  4. MorphingDB: A Task-Centric AI-Native DBMS for Model Management and InferenceSai Wu, Ruichen Xia, Dingyu Yang, Rui Wang et al.SIGMOD 2026 · 1 citation
  5. ConRAD: Conformal Risk-Aware Neural DatabasesSonia Horchidan, Fabian Zeiher, Xiangyu Shi, Vasiliki Kalavri et al.VLDB 2026

Builds on2

  1. End-to-end Optimization of Machine Learning Prediction QueriesKwanghyun Park, Karla Saur, Dalitso Banda, Rathijit Sen et al.SIGMOD 2022 · 50 citations
  2. Distributed Deep Learning on Data Systems: A Comparative Analysis of ApproachesYuhao Zhang, Frank Mcquillan, Nandish Jayaram, Nikhil Kak et al.VLDB 2021 · 35 citations

Related papers

  1. Mitigating the Impedance Mismatch between Prediction Query Execution and Database EngineChenyang Zhang, Junxiong Peng, Chen Xu, Quanqing Xu et al.SIGMOD 2025 · 7 citations
  2. Machine Learning Inference Pipeline Execution Using Pure SQL Based on Operator FusionQingfeng Pan, Jiahe Zhi, Chenyang Zhang, Chen Xu et al.ICDE 2025 · 2 citations
  3. Adda: Towards Efficient in-Database Feature Generation via LLM-based AgentsKuan Lu, Zhihui Yang, Sai Wu, Ruichen Xia et al.SIGMOD 2025 · 6 citations
  4. Lequa: A Learning-Based Query-Aware Framework for Selective Query OptimizationGuoneng Li, Pengfei Zheng, Ling Xu, Yan Li et al.ICDE 2026
  5. Towards Automatic and Efficient Prediction Query Processing in Analytical DatabaseYuchen Peng, Zhongle Xie, Ke Chen, Gang Chen et al.ICDE 2025 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines