Early artificial intelligence relied heavily on production systems—expert systems driven by large collections of IF [conditions] THEN [actions] rules. In a traditional execution model, these systems operate via a strict, sequential Match-Select-Act cycle:
- Match: Evaluate the conditions of all rules against the current state of working memory.
- Select: Choose a single satisfied rule from the "conflict set" to fire.
- Act: Execute that rule's action, modifying working memory, and restart the cycle.
As knowledge bases grew, this cycle hit a severe performance wall. The Match phase alone often consumed over 90% of execution time, creating a classic von Neumann bottleneck. Early AI researchers encountered a "folk theorem" suggesting that parallel processing could never speed up these systems by more than a factor of ten.
To break this speed ceiling, researchers dismantled the sequential cycle entirely. By distributing rule evaluation across parallel hardware and allowing multiple rules to fire asynchronously, they transformed production systems from slow, interpreted logic engines into high-throughput, parallel architectures.
Multi-Level Parallelism in the Match Phase
To accelerate the bottlenecked Match phase, researchers realized they needed to parallelize operations at multiple granularities simultaneously. As Forgy et al. outlined, this requires multi-level parallelism across the production level, condition level, and action level to distribute the computational load effectively.
Coarse-Grained Rule Distribution
The most intuitive way to parallelize matching is to partition the rule base itself. Instead of a single processor checking every rule, subsets of rules are distributed across an array of processing elements.
In a tree-structured architecture like the DADO machine, described by Stolfo et al., any processing element can act as a root node to execute independent rule subsets concurrently. This hardware-level verification shifts the computational burden away from sequential searching; as a result, the time required for rule matching can remain virtually constant regardless of the total number of rules in the system. Shaw demonstrated that embedding this type of processing power directly into memory (the NON-VON architecture) allows symbolic reasoning tasks to scale to hundreds of rule firings per second.
Sequential Matching:
[Processor] ---> Check Rule 1 ---> Check Rule 2 ---> Check Rule 3 (Time scales with number of rules)
Parallel Tree Matching:
[Root Node]
/ | \
[Proc 1] [Proc 2] [Proc 3] (Rules checked simultaneously; time remains constant)
(Rule 1) (Rule 2) (Rule 3)
Fine-Grained Token Comparison
Even if rules are distributed, evaluating complex, multi-variable conditions within a single rule can still bog down a processor. To solve this, researchers broke the matching process down to the individual token-comparison level.
Instead of treating a condition check as a monolithic task, Kibler et al. demonstrated that treating rule conditions as sets of independent, distributed tasks could yield speedups of 100x, soundly debunking the old 10x performance limit. Kelly et al. and Kelly et al. (1989) applied this fine-grained partitioning to stateful matching algorithms like Rete. By maximizing concurrent token comparisons across a multiprocessor network, they proved that the primary constraints on expert system performance were architectural rather than algorithmic.
To manage the massive influx of fine-grained tasks without overwhelming the system with communication overhead, Sohn et al. and the authors of A Macro Actor/Token Implementation of Production Systems on a Data-Flow introduced a "macro" data-flow approach. By grouping fine-grained instructions and data into larger "macro actors" and "macro tokens," they distributed pattern-matching logic across multiple root nodes while keeping communication costs stable across different processor scales.
Asynchronous Execution and Parallel Rule Firing
Optimizing the Match phase reveals a deeper bottleneck: the serial nature of rule execution. Even if matching takes zero time, firing only one rule per cycle limits overall throughput. As Schmolze et al. argued, true scalability requires executing multiple rule actions simultaneously.
Eliminating the Global Synchronization Barrier
In a traditional production system, a global synchronization barrier forces every processor to wait until the entire conflict set is generated before a single rule is chosen to fire. This introduces massive idle time, as fast processors must wait for the slowest matching process to finish.
Neiman proposed replacing this global barrier with an asynchronous execution policy. Under this model, individual production rules fire immediately upon satisfying their conditions. By allowing nodes to independently manage their own match-select-act cycles, the system maximizes processor utilization and eliminates coordination delays.
Synchronized Cycle (Bottlenecked):
[Match 1] ---\
[Match 2] ----+--> [Global Barrier / Selection] --> [Fire 1 Rule] --> Reset
[Match 3] ---/
Asynchronous Cycle (Fluid):
[Match 1] --> [Fire Rule 1] --> [Match 1]
[Match 2] ----> [Fire Rule 2] --> [Match 2]
[Match 3] --> [Fire Rule 3] --> [Match 3]
Coordinating Data Dependencies
If multiple rules fire simultaneously, they may attempt to modify overlapping segments of working memory, threatening data integrity. To prevent chaotic race conditions without reintroducing a global bottleneck, systems must handle data dependencies dynamically.
- Fine-Grained Locking: The PARS system, designed by Schmolze et al., utilizes fine-grained data locking. Processors coordinate and lock data elements only when rules have overlapping data dependencies, allowing non-overlapping rules to proceed completely unhindered.
- Multiple-Contexts-Multiple-Rules (MCMR): Kuo et al. developed the MCMR model to execute multiple rule actions concurrently. This framework maintains program logic and data integrity across distinct contexts, achieving speedups of up to 20x by safely executing parallel actions.
Decoupling Logic from Hardware
To make parallel production systems practical, researchers needed to separate high-level AI logic from the messy mechanics of distributed hardware.
Shrobe et al. introduced a Virtual Parallel Inference Engine that decoupled the "knowledge level" from the "control level." By utilizing an object-oriented protocol, developers could optimize the exact same rule-base for entirely different hardware architectures—such as distributed clusters or shared-memory multiprocessors—simply by swapping modular software "mixins."
This structural flexibility proved vital for real-time applications. For instance, Sobek demonstrated that compiling production system languages into parallel-match tree architectures allowed mobile robots to evaluate environmental conditions rapidly, enabling reactive, real-time planning without interpreted latency.
The architectural principles pioneered in these early symbolic AI systems continue to resonate in modern computing. For example, the framework of decoupling temporal dependencies via parallel execution trees is utilized by Geerts et al. to model distributed web services, where systems must spawn multiple concurrent child processes and aggregate their results asynchronously.
Key Foundational Work
Initial Assessment of Architectures for Production Systems (1984) — contributed 1 concept elements to this direction.
hve Parallel Algorithms for Production System Execution on the DADO Machine (1984) — contributed 1 concept elements to this direction.
Architecture and Applications of DADO: A Large-Scale Parallel Computer for Artificial Intelligence (1983) — contributed 1 concept elements to this direction.