Abstract
This paper presents a transformational system for the semi-automatic design of heuristic algorithms. By explicitly reasoning about multiple, often conflicting, design goals, the system moves away from "black box" manual coding toward a transparent, goal-driven derivation process. Using the Mycin therapy selection problem as a case study, the authors demonstrate how explicit goal integration improves software explainability and flexibility.
The Problem: Precompiled Design Rationale
In traditional expert system development during the mid-1980s, the trade-offs made by human engineers—such as balancing drug effectiveness against the risk of side effects—were "precompiled" into the final code. This led to two significant drawbacks:
- Opaque Explanations: Systems could not explain why a specific decision was made because the underlying rationale (the trade-offs) was lost in the implementation.
- Rigidity: Modifying a design goal, such as prioritizing execution speed over accuracy, required a manual and error-prone rewrite of the entire algorithm.
Methodology: Transformational Derivation
The authors propose a transformational derivation approach. The design begins with a high-level specification consisting of a visual dataflow graph and an agenda of design goals.
The system utilizes a library of domain-independent transformation rules to modify the algorithm structure to satisfy these goals. Key rules include:
TreatGoalAsConstraint: Converts a goal (like avoiding contra-indicated drugs) into a hard filter in the dataflow.SortByPreferences: Converts a goal into a sorting criterion to prioritize certain outputs.PreComputeData: Optimizes the algorithm by moving costly computations from run-time to design-time.
This process is semi-automatic; a human developer selects the appropriate rule, and the system handles the structural modifications to the dataflow graph. The primary test case is a rational reconstruction of the Mycin therapy selection problem.
Key Insights: Goals as Active Components
A central theme is that goals should be "first-class citizens" in the design process. By representing them explicitly, the system can "understand" the trade-offs being made.
The paper highlights the power of reformulation: a single goal can be implemented as either a constraint (a hard pass/fail) or a preference (a ranking mechanism). This choice fundamentally alters the algorithm's behavior. Furthermore, by recording every transformation step, the system creates a "design history" that can be used to generate explanations for the final program's structure by tracing back through the goals that motivated specific design choices.
Results and Discussion
The system successfully derived two distinct versions of a therapy selection algorithm:
- RMTSA (Reduced Mycin Therapy Selection Algorithm): A version optimized for time efficiency through pre-computed "therapy profiles."
- RMTSA2: A variant created by altering goal formulations, such as treating contra-indications as preferences rather than hard constraints.
The ability to produce distinct, functional algorithms from the same set of general rules by varying goal integration strategies demonstrates the generality and power of the transformational approach.
Limitations and Future Work
While promising, the system remains semi-automatic. Automating the "control knowledge"—deciding which rule to apply to reach an optimal design—remains a significant challenge. Additionally, while the system captures the necessary information for explanations, a natural language interface for users has yet to be implemented. Future research will also need to address how this symbolic AI approach scales to larger, more complex software systems.
Summary updated