Abstract
Machine learning (ML) applications become increasingly common in many domains. ML systems to execute these workloads include numerical computing frameworks and libraries, ML algorithm libraries, and specialized systems for deep neural networks and distributed ML. These systems focus primarily on efficient model training and scoring. However, the data science process is exploratory, and deals with underspecified objectives and a wide variety of heterogeneous data sources. Therefore, additional tools are employed for data engineering and debugging, which requires boundary crossing, unnecessary manual effort, and lacks optimization across the lifecycle. In this paper, we introduce SystemDS, an open source ML system for the end-to-end data science lifecycle from data integration, cleaning, and preparation, over local, distributed, and federated ML model training, to debugging and serving. To this end, we aim to provide a stack of declarative language abstractions for the different lifecycle tasks, and users with different expertise. We describe the overall system architecture, explain major design decisions (motivated by lessons learned from Apache SystemML), and discuss key features and research directions. Finally, we provide preliminary results that show the potential of end-to-end lifecycle optimization.
Introduction
Modern machine learning (ML) development is often characterized by a narrow focus on model training and scoring. However, practitioners frequently report that the majority of their time—up to 90%—is consumed by data engineering tasks such as integration, cleaning, and feature engineering. Current ecosystems are fragmented, forcing users to switch between disparate tools (e.g., SQL for data prep, Python for exploration, and Spark for distributed training). This "boundary crossing" prevents holistic pipeline optimization and introduces significant manual overhead. SystemDS addresses these challenges by providing a unified, declarative framework for the entire data science lifecycle.
The Fragmented Data Science Lifecycle
The data science process is inherently exploratory and iterative. As shown in Figure 1, the lifecycle encompasses a wide array of tasks—from low-level feature transforms to high-level model debugging—serving users with varying levels of expertise, from ML researchers to domain experts.
Existing systems fail to optimize across these boundaries. For instance, a data cleaning step might produce intermediate results that could be reused during model training, but because these tasks are handled by different engines, the opportunity for efficiency is lost. SystemDS aims to bridge these gaps by treating the entire pipeline as a single, optimizable workload.
SystemDS: A Declarative Stack for ML
At the core of SystemDS is a declarative stack that allows users to specify what computation should be performed without worrying about how it is executed. This is achieved through a hierarchy of abstractions, typically expressed in a Domain-Specific Language (DML) with R-like syntax.
As illustrated in Figure 2, a high-level user script (e.g., a stepwise regression call) is automatically decomposed into built-in functions, which are then translated into linear algebra programs. The SystemDS compiler then generates efficient execution plans for various backends, including local CPU/GPU, distributed Spark clusters, or even federated environments.
Technical Innovations: Tensors and Lineage
SystemDS introduces several key innovations to support the end-to-end lifecycle:
- Heterogeneous Tensors: To bridge the gap between structured data (strings, integers) and mathematical matrices, SystemDS supports tensors with schemas. This allows data cleaning and preparation to be performed within the same mathematical framework as model training.
- Lineage-Based Reuse: The system tracks the lineage of every operation. In exploratory workflows where users frequently re-run scripts with minor parameter changes, SystemDS can identify and reuse previously computed intermediate results (e.g., $X^TX$ in regression), significantly reducing redundant computation.
- Hybrid Runtime: The compiler dynamically chooses between local and distributed execution based on data size and operation complexity, ensuring optimal performance across different hardware configurations.
Performance Evaluation
Preliminary results demonstrate the power of end-to-end optimization. In Hyper-parameter Optimization (HPO) benchmarks involving 70 models, SystemDS achieved a 4.6x speedup by automatically identifying and reusing redundant matrix operations. Furthermore, the system shows superior performance on sparse data compared to frameworks like TensorFlow and Julia, thanks to specialized sparse-dense kernels. SystemDS also excels in I/O performance, with multi-threaded parsing that often outperforms established baselines in single-model runs.
Conclusion and Future Work
SystemDS represents a significant step toward a unified, efficient, and user-friendly environment for data science. By providing a declarative stack and advanced optimization techniques like lineage-based reuse, it reduces the manual effort and computational waste inherent in fragmented workflows. Future work will focus on expanding language bindings (particularly for Python and R), enhancing compiler reasoning for complex control flows, and developing "filter-before-you-parse" techniques to further accelerate raw data ingestion.
Summary updated