Declarative Learning-Based Programming as an Interface to AI Systems

Parisa Kordjamshidi, Dan Roth, Kristian Kersting

Abstract

Modern AI development is often hindered by the "impedance mismatch" between data management, machine learning, and symbolic reasoning. This paper advocates for a shift toward Systems AI through Declarative Learning-Based Programming (DeLBP). By allowing developers to focus on what a system should know rather than how to implement low-level optimization, DeLBP aims to unify fragmented AI workflows into a cohesive, high-level interface.

The Challenge: Fragmented AI Development

Building intelligent applications today requires manual "plumbing" across three distinct silos:

  1. Data Management: Converting messy, unstructured data (text, images) into tensors or database rows.
  2. Machine Learning: Selecting architectures, tuning hyperparameters, and managing training loops.
  3. Reasoning: Enforcing domain-specific constraints (e.g., "a person cannot be a location") on model outputs.

Current tools are often specialized and siloed. Deep learning frameworks excel at handling raw data but struggle with complex logical constraints. Conversely, probabilistic logic systems handle reasoning beautifully but often require data to be pre-formatted into rigid symbolic structures. This fragmentation forces researchers to spend more time on engineering than on modeling.

The DeLBP Paradigm

The core of DeLBP is the separation of concerns: the programmer declares the structure of the data and the domain constraints, while the system automatically handles learning and inference. The authors propose that an ideal platform requires three sub-languages:

  • Data Representation Language (DRL): To model and query heterogeneous data.
  • Knowledge Representation Language (KRL): To declare domain-specific logic and constraints.
  • Model Composition Language (MCL): To define how different learning components interact and form a larger decision-making pipeline.

This approach views learning as an abstraction mapping, where data is transformed into higher-level knowledge, which then feeds back into the system to improve future performance—a concept known as "closing the loop."

Mapping the AI Landscape

The paper categorizes existing frameworks based on six core requirements for Systems AI: interaction with heterogeneous data, exploitation of domain knowledge, representation of uncertainty, algorithmic coverage, model composition, and high-level abstractions.

Taxonomy of related paradigms and example frameworks.

As shown in Figure 1, different paradigms occupy distinct spaces in the transition from "Learning to write Programs" to "Intelligent applications":

  • Deep Learning Tools (e.g., PyTorch, TensorFlow) provide high-level computational abstractions but lack native support for complex logical reasoning.
  • Probabilistic Logic/SRL (e.g., ProbLog, MLN) offer powerful reasoning and uncertainty handling but struggle with the "messiness" of raw, unstructured data.
  • Learning-Based Programming (e.g., Saul, DomiKnowS) represents the current frontier, attempting to bridge these gaps by providing declarative layers on top of standard programming languages.

Future Directions and Limitations

While the building blocks for DeLBP exist, a unified end-to-end framework remains elusive. Key challenges include:

  • Program Induction: Automatically learning the model structure from data remains a difficult task.
  • Scalability vs. Expressivity: There is a constant trade-off between how complex the logic can be and how fast the system can perform inference.
  • Systems AI Infrastructure: Future work must address the "plumbing" of these platforms, including security, privacy, and fairness.

The ultimate goal is to move toward natural interaction, where AI systems are "programmed" through speech or demonstrations rather than manual code.

Summary updated

BibTeX
@article{kordjamshidi2022declarative,
  author = {Parisa Kordjamshidi and Dan Roth and Kristian Kersting},
  title = {{Declarative Learning-Based Programming as an Interface to AI Systems}},
  journal = {Frontiers Artif. Intell.},
  year = {2022},
  doi = {10.3389/frai.2022.755361},
}
Figure