[Paper Review] Cloudy with high chance of DBMS: A 10-year prediction for Enterprise-Grade ML
This paper proposes a unified database-centric architecture for Enterprise-Grade Machine Learning (EGML), integrating model training in the cloud, inference within the DBMS via extended SQL algebra, and end-to-end provenance tracking across SQL and Python systems. It introduces a catalog-based provenance framework with SQL and Python modules that capture data lineage, model dependencies, and versioning, achieving 95% model coverage on Kaggle and 100% on internal Microsoft datasets.
Machine learning (ML) has proven itself in high-value web applications such as search ranking and is emerging as a powerful tool in a much broader range of enterprise scenarios including voice recognition and conversational understanding for customer support, autotuning for videoconferencing, intelligent feedback loops in large-scale sysops, manufacturing and autonomous vehicle management, complex financial predictions, just to name a few. Meanwhile, as the value of data is increasingly recognized and monetized, concerns about securing valuable data and risks to individual privacy have been growing. Consequently, rigorous data management has emerged as a key requirement in enterprise settings. How will these trends (ML growing popularity, and stricter data governance) intersect? What are the unmet requirements for applying ML in enterprise settings? What are the technical challenges for the DB community to solve? In this paper, we present our vision of how ML and database systems are likely to come together, and early steps we take towards making this vision a reality.
Motivation & Objective
- Address the growing need for rigorous data governance, model fairness, and privacy in enterprise ML applications.
- Identify unmet technical challenges in scaling ML across regulated, data-sensitive environments.
- Propose a database-native approach to unify ML lifecycle management—training, inference, and governance—within a single, secure infrastructure.
- Enable end-to-end data and model provenance across heterogeneous systems (SQL and Python) to support auditability and compliance.
- Integrate ML scoring directly into the DBMS query engine to avoid data exfiltration and improve performance and security.
Proposed method
- Design a three-tier architecture: cloud-based model training, DBMS-native inference via extended relational algebra, and centralized governance via a catalog.
- Implement a SQL provenance module using Apache Calcite to parse queries and extract coarse-grained lineage (input tables/columns) under eager and lazy capture modes.
- Store versioned provenance data in a centralized catalog (Apache Atlas) to support temporal tracking and cross-system correlation.
- Develop a Python provenance module using static analysis and a curated knowledge base of ML APIs to identify model training code, features, hyperparameters, and data sources.
- Enable cross-system provenance by linking SQL input tables to Python training datasets via the catalog, ensuring end-to-end lineage from raw data to model outputs.
- Apply data compression and summarization techniques to optimize provenance storage and reduce latency in large-scale capture.
Experimental results
Research questions
- RQ1How can ML inference be efficiently and securely executed within the DBMS without data movement?
- RQ2What are the key technical challenges in enabling end-to-end data and model provenance across SQL and Python systems in enterprise settings?
- RQ3How can database systems evolve to natively support the full ML lifecycle—training, scoring, and governance—within regulated environments?
- RQ4What are the performance and scalability characteristics of capturing fine-grained provenance across diverse, large-scale workloads?
- RQ5How can provenance capture be made both accurate and efficient in practice, especially under high-velocity data and model updates?
Key findings
- The SQL provenance module captured lineage for 2,208 TPC-H and 2,200 TPC-C queries with average latency of 110s and 124s, respectively, producing provenance graphs of up to 34,785 nodes and edges.
- Provenance data models can grow substantially in size—e.g., a table with as many versions as insertions—highlighting the need for compression and summarization.
- The Python provenance module achieved 95% coverage of models and 61% coverage of training datasets on the Kaggle dataset, with 100% coverage on a production Microsoft internal dataset.
- The integration of SQL and Python provenance via a centralized catalog enables cross-system lineage tracking, critical for compliance and model retraining triggers.
- The system demonstrates feasibility of embedding ML governance into the DBMS, with early results showing that provenance capture is both scalable and accurate under realistic workloads.
- The approach supports critical governance requirements such as GDPR compliance, model bias auditing, and explainability through traceable data lineage from source to inference.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.