Experiences Implementing a Parallel ATMS on a Shared-Memory Multiprocessor

Edward Rothberg, Anoop Gupta

Introduction

In the late 1980s, the Assumption-Based Truth Maintenance System (ATMS) was a cornerstone of AI problem-solving, used to track conclusions across vast sets of assumptions. However, the ATMS often became a computational bottleneck due to the combinatorial explosion of "environments" (sets of assumptions) it had to manage. Researchers at Stanford investigated whether this symbolic reasoning task could be effectively accelerated using parallel processing on shared-memory multiprocessors, which were then emerging as a viable high-performance architecture.

System Evolution and Optimization

The researchers did not simply parallelize an existing system; they first developed a highly optimized sequential ATMS in C, which outperformed traditional LISP implementations by 10x to 50x. They then implemented three successive parallel versions to refine performance:

  1. Program P1 (Basic Parallel): Processors handled high-level commands (e.g., adding a justification) from a global queue.
  2. Program P2 (Fine-Grained Tasks): Commands were decomposed into smaller "Update" tasks, and task stealing was introduced to balance the load across idle processors.
  3. Program P3 (Modal Database Access): To minimize contention for the global environment database, the team introduced "Modal" access (Free, Consistent, and NG modes). This allowed concurrent reads and writes when modes were compatible, significantly reducing lock overhead.

The Grain Size Paradox

A significant finding of the study was the "Grain Size Paradox." While smaller tasks typically improve load balancing in parallel systems, splitting tasks in an ATMS can actually increase the total volume of work. Because updates involve computing cross-products of assumption sets, dividing a task can lead to redundant environment generation.

Table 2: Task size statistics for Programs P1 and P2, showing the extreme disparity between average and maximum task times.

As shown in Table 2, the researchers observed extreme variance in task execution times. In the BUG trace, a single "monster task" accounted for 43% of the total runtime. This variance meant that even with fine-grained parallelization, one processor could remain busy while others sat idle, a phenomenon that fundamentally limits parallel efficiency in symbolic reasoning.

Performance Evaluation

The system was tested on an Encore Multimax with 14 processors using three real-world traces: QPE (Qualitative Physics), BUG (a complex debugging trace), and 8-Q (8-queens puzzle).

Figure 2: Speedup achieved by the optimized Program P3 on the Encore Multimax across three different problem traces.

The final implementation (P3) achieved speedups between 4.7x and 8.4x. While these results were sub-linear, they demonstrated that shared-memory architectures could significantly alleviate the ATMS bottleneck. Performance was constrained not only by software logic but also by hardware factors; bus bandwidth and cache interactions caused roughly 30% degradation that could not be addressed through algorithmic improvements alone.

Conclusion

The study highlights the unique challenges of parallelizing irregular symbolic reasoning tasks. While significant speedups were achieved by moving to fine-grained tasks and modal database access, the inherent irregularity of logical derivations remains a hurdle. The authors conclude that future improvements will require more sophisticated heuristics to manage task grains without triggering the redundant computations inherent in the ATMS algorithm.

Summary updated

BibTeX
@inproceedings{rothberg1989experiences,
  author = {Edward Rothberg and Anoop Gupta},
  title = {{Experiences Implementing a Parallel ATMS on a Shared-Memory Multiprocessor}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1989},
}
Figure