Abstract
PRISM is an early parallel inference system designed to accelerate AI problem-solving by executing logic programs across a distributed multiprocessor architecture. By decoupling the "logic" of a problem from the "control" of its execution, PRISM allows researchers to exploit both AND-parallelism and OR-parallelism. This paper describes the architectural design of PRISM, its specialized machine components, and a novel control language that enables flexible execution strategies on parallel hardware.
Introduction
In traditional programming paradigms, the logic of an algorithm and its execution control are often tightly coupled. This entanglement makes it difficult to parallelize code without significant rewriting. Logic programming, exemplified by languages like Prolog, offers a cleaner separation between "what" is to be solved and "how" it is solved. However, standard logic programming implementations are typically sequential.
The PRISM system addresses the challenge of building a distributed AI environment that can automatically identify and exploit parallelism within logic-based problems. Specifically, it tackles the management of a distributed search space, the handling of dependencies between subgoals (shared variables), and the minimization of processor idle time in a massively parallel environment, specifically the ZMOB hardware.
System Architecture
PRISM divides the labor of inference across three specialized types of "machines" or nodes within a distributed system:
- Intensional Database (IDB): These nodes handle unification—the process of matching goals with the "heads" of procedures.
- Extensional Database (EDB): This component acts as a distributed relational database, providing fast access to "facts" or ground assertions.
- Problem Solving Machines (PSM): As the core of the system, PSMs manage the search tree and interpret the user's control specifications.
Every time the search tree branches—either due to multiple possible rules (OR-parallelism) or independent subgoals (AND-parallelism)—the system can dynamically initialize a new PSM to handle that branch, provided hardware resources are available. To reduce idle time, a "parent" PSM can package its current state, allowing it to accept new queries while its "children" PSMs continue their computations.
Control Language and Parallelism
A central feature of PRISM is its Control Language, which allows users to annotate logic programs without altering their underlying semantics. This treats logic as the "semantics" of the problem and control as an external "strategy." By using specific notations—such as brackets for parallel execution and parentheses for sequential execution—users can define a partial ordering for goal execution.
To handle the "shared variable" problem, where two subgoals depend on the same data, PRISM employs "AND-nodes." These nodes either intersect results from parallel processes or utilize a "nested loops" method to substitute bindings sequentially, ensuring data consistency across parallel branches.
Priority Management and Execution
The system implements a sophisticated priority-based execution model. Users can "recommend" or "force" the order of procedure execution using a combination of integers and asterisks.
As shown in the figure, rules for a predicate P are assigned priority levels. The asterisk indicates a "forced" selection, providing fine-grained control over the search strategy. Once a subproblem is assigned to a PSM, it operates autonomously, only communicating back to its parent when a solution is found or the branch fails.
Conclusion and Future Work
PRISM demonstrates a functional implementation of parallel inference on the ZMOB multiprocessor. It successfully supports both OR-parallelism and AND-parallelism while maintaining a clear separation between logic and control.
However, several challenges remain. A primary limitation is granularity control: it is difficult to determine the complexity of a subproblem beforehand. If a subproblem is too small, the overhead of moving it to a new machine may outweigh the speedup. Currently, the system spawns a new PSM whenever a branch occurs and a machine is free. Future work will focus on developing more sophisticated, system-supplied heuristics for atom and node selection to optimize resource allocation and improve overall system performance.
Summary updated