[Paper Review] Declarative Machine Learning - A Classification of Basic Properties and Types
This paper proposes a syntax-independent taxonomy for declarative machine learning (ML) based on core properties like data independence, operation abstraction, and result correctness. It classifies systems into types—declarative ML tasks, algorithms, and libraries—demonstrating that diverse systems like MLbase, SystemML, and DeepDive conform to these principles, enabling standardized benchmarking and specification languages tailored to each type.
Declarative machine learning (ML) aims at the high-level specification of ML tasks or algorithms, and automatic generation of optimized execution plans from these specifications. The fundamental goal is to simplify the usage and/or development of ML algorithms, which is especially important in the context of large-scale computations. However, ML systems at different abstraction levels have emerged over time and accordingly there has been a controversy about the meaning of this general definition of declarative ML. Specification alternatives range from ML algorithms expressed in domain-specific languages (DSLs) with optimization for performance, to ML task (learning problem) specifications with optimization for performance and accuracy. We argue that these different types of declarative ML complement each other as they address different users (data scientists and end users). This paper makes an attempt to create a taxonomy for declarative ML, including a definition of essential basic properties and types of declarative ML. Along the way, we provide insights into implications of these properties. We also use this taxonomy to classify existing systems. Finally, we draw conclusions on defining appropriate benchmarks and specification languages for declarative ML.
Motivation & Objective
- To resolve ambiguity in the definition of declarative ML by establishing a systematic, syntax-independent classification framework.
- To identify and formalize essential basic properties—physical data independence, data flow independence, and result correctness—that define declarative ML systems.
- To classify existing systems (e.g., MLbase, SystemML, DeepDive) within the proposed taxonomy to clarify their alignment with declarative ML principles.
- To advocate for type-specific benchmarks and domain-specific specification languages that reflect the distinct workloads and abstraction levels of declarative ML systems.
- To support the development of portable, optimized, and scalable ML systems by decoupling algorithm semantics from low-level execution details.
Proposed method
- Define three core properties: (1) physical data independence (abstract data types hide storage and distribution), (2) data flow independence (no exposure of execution flow), and (3) result correctness (deterministic or bounded-error outcomes).
- Propose a three-tiered classification of declarative ML systems: (1) declarative ML tasks (e.g., model search), (2) declarative ML algorithms (e.g., DSLs for iterative algorithms), and (3) large-scale ML libraries (e.g., MLlib) as a baseline.
- Use Apache SystemML as a representative example to demonstrate how the core properties are implemented in practice, especially through abstract data types and automatic plan generation.
- Classify existing systems (e.g., MLbase, Columbus, DeepDive) by mapping them to the taxonomy, showing their compliance with the defined properties.
- Argue for the necessity of type-specific benchmarks and domain-specific specification languages, citing existing examples like SciDB and SimSQL for array and Bayesian ML workloads.
- Establish that syntax is irrelevant to declarative ML as long as the core properties are satisfied, thus rejecting debates over loop syntax as irrelevant to the fundamental definition.
Experimental results
Research questions
- RQ1What fundamental properties must a system satisfy to be considered declarative machine learning, independent of syntax or implementation?
- RQ2How can existing ML systems be systematically classified into distinct types of declarative ML based on their abstraction level and behavior?
- RQ3To what extent do systems like MLbase, SystemML, and DeepDive conform to the proposed basic properties of declarative ML?
- RQ4Why is a one-size-fits-all benchmark insufficient for evaluating declarative ML systems, and what are the characteristics of effective type-specific benchmarks?
- RQ5How can specification languages be designed to support the unique requirements of different declarative ML system types without being syntax-bound?
Key findings
- The core properties—physical data independence, data flow independence, and result correctness—are sufficient and necessary to define declarative ML, regardless of syntax or control flow constructs.
- Systems like MLbase and Columbus are classified as declarative ML tasks because they specify high-level learning problems with optimization objectives, abstracting data and execution details.
- SystemML exemplifies declarative ML algorithms by supporting high-level DSLs that generate optimized execution plans while hiding physical data representations and execution flow.
- DeepDive qualifies as a declarative ML system for feature selection, as it abstracts statistical inference and factor graph computation behind SQL and UDFs, without exposing algorithmic internals.
- The taxonomy enables clear differentiation between declarative ML systems and traditional ML libraries, which fix execution plans and expose low-level data representations.
- The paper concludes that type-specific benchmarks and domain-specific specification languages are essential for fair evaluation and progress, as demonstrated by successful examples in array and Bayesian ML databases.
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.