Capturing Dependencies Within Machine Learning via a Formal Process Model

Fabian Ritz, Thomy Phan, Andreas Sedlmeier, Philipp Altmann, Jan Wieghardt, Reiner N. Schmid, Horst Sauer, Cornel Klein, Claudia Linnhoff-Popien, Thomas Gabor

Abstract

Machine learning (ML) development is characterized by a stochastic nature that often eludes the rigid structures of traditional software engineering. This paper proposes a formal process model designed to bridge this gap by mapping dependencies between activities and artifacts using Linear Time Logic (LTL). By providing a rigorous framework for reasoning about ML progress, the authors enable enhanced quality assurance and provide a roadmap toward fully autonomous, self-adaptive AI systems.

Introduction

Machine learning development is fundamentally different from traditional software engineering. While traditional software relies on humans writing explicit logic, ML logic is inferred from data through probabilistic processes. This inherent uncertainty makes ML development difficult to control and verify. While frameworks like MLOps and CRISP-ML(Q) have emerged to manage the lifecycle, they often lack a rigorous mathematical view of the dependencies between development activities (such as hyperparameter tuning) and the resulting artifacts (such as models or quality certifications).

Without a formal model, organizations face three primary challenges: verifying if a development process was followed correctly, automating complex feedback loops for model re-training, and ensuring that high-level business requirements are accurately translated into the low-level reward functions used during training.

The Formal Process Model

The authors introduce a Formal Process Model visualized as a two-dimensional grid. In this model, the horizontal axis represents time and progress, while the vertical axis represents organizational dimensions, including Business, Data, and Engineering.

Activity and Artifact Separation

A core tenet of the framework is the clear distinction between activities and artifacts. Activities are human or automated tasks, whereas artifacts are the tangible outputs, such as datasets, models, or logical specifications. By separating these, the model can track not just what was done, but the specific state of the project at any given time.

Formalization via Linear Time Logic (LTL)

The primary innovation of this research is the application of Linear Time Logic (LTL) to the development process. By treating the lifecycle as a sequence of states—such as inactive, active, or done—the authors can write logical formulas to verify the process. For instance, an LTL rule can strictly enforce that "Target Definition" may only commence after a "Data Selection" activity has been successfully completed. This allows for the "unit testing" of the development process itself.

Decoupling Targets and Preventing Reward Hacking

The model emphasizes the separation of the high-level "Development Specification" (the business objective) from the low-level "Training Target" (the mathematical objective optimized by the computer). This decoupling is critical for preventing "reward hacking," a phenomenon where a model technically optimizes its mathematical goal but fails to meet the actual business use case.

Enabling Self-Adaptation and Feedback

By formalizing the process, the authors move ML development closer to the paradigm of "Autonomic Computing." The model explicitly incorporates feedback loops that allow a system to monitor its own performance in production. If performance drifts, the formal model provides the logic necessary for the system to autonomously decide when and how to initiate re-training, effectively "patching" itself without human intervention.

Validation and Proof of Concept

As a conceptual and architectural contribution, the paper validates its framework through a Proof of Concept based on prior studies in Multi-Agent Reinforcement Learning (MARL) and industrial anomaly detection. This validation involved collaborations with industrial partners such as Siemens and SWM, demonstrating the model's utility in complex, real-world environments.

The framework successfully distinguishes between a model that functions in the "factory" (the controlled training environment) and one that fulfills the "SLA" (Service Level Agreement) in the real world, referred to as the "On-Site Contract."

Insights and Future Work

A key insight of this work is the treatment of artifacts as logical states. For example, a "Quality Seal" is not just a document but a logical requirement that must be met before the process can transition to a completion state. This contains the volatility inherent in the "Changing One Thing Changes Everything" principle of ML by strictly mapping how changes in data selection ripple through to final deployment.

Despite its strengths, the current model has limitations that the authors intend to address in future research:

  • Human Factors: The model does not yet formally account for human roles or expertise levels.
  • Initial Specifications: Defining the initial business specification in a way that guarantees the final on-site contract remains a complex challenge.
  • Breadth of Application: While the current proof of concept focuses on Reinforcement Learning, future work will apply this formal rigor to a broader variety of machine learning techniques and deeper data management nuances, such as labeling workflows.

Conclusion

By introducing formal rigor to the ML lifecycle, this research provides a path toward more predictable and verifiable AI development. The use of LTL to manage dependencies ensures that the gap between business requirements and technical implementation is bridged, paving the way for more robust and autonomous machine learning systems.

Summary updated

BibTeX
@inproceedings{ritz2022capturing,
  author = {Fabian Ritz and Thomy Phan and Andreas Sedlmeier and Philipp Altmann and Jan Wieghardt and Reiner N. Schmid and Horst Sauer and Cornel Klein and Claudia Linnhoff-Popien and Thomas Gabor},
  title = {{Capturing Dependencies Within Machine Learning via a Formal Process Model}},
  booktitle = {ISoLA},
  year = {2022},
  url = {https://openreview.net/forum?id=lVUxPw9B7kG},
}
Figure