TL;DR
A "folk theorem" in AI suggests that parallelism offers at most a tenfold speedup for AI programs, particularly those involving search. This paper argues that this theorem is based on flawed assumptions about how parallelism should be implemented and demonstrates that significantly greater speedups (orders of magnitude) are achievable with more sophisticated parallel algorithms for AI search and rule-based systems.
What Problem Does This Paper Address?
The paper addresses a prevailing belief in the AI community, termed the "folk theorem," which posits that the benefits of parallel processing for AI programs are inherently limited, typically to a speedup factor of around ten. This belief emerged from early experiments with multiprocessor systems where adding more processors beyond a small number yielded diminishing returns. The authors aim to debunk this theorem by showing that it stems from naive implementations of parallelism and that more advanced approaches can unlock much greater performance gains, especially for computationally intensive tasks like search and rule-based inference.
Methods
The authors critique the "folk theorem" by analyzing the underlying arguments and proposing alternative parallelization strategies. They introduce the concept of a "computation graph" where nodes represent primitive operations and arcs represent dependencies. The depth of this graph represents the minimum sequential execution time, while its size (number of nodes) represents the uniprocessor time. The maximum effective parallelism is related to the graph's breadth, and the maximum speedup is the ratio of size to depth.
They distinguish between two types of parallelism:
- OR parallelism: Exploiting alternative choices in search.
- AND parallelism: Executing independent subcomputations simultaneously.
The paper then examines two representative AI algorithms:
- Alpha-Beta Search: They propose a parallel alpha-beta algorithm that allocates processors more strategically, particularly at the deeper levels of the search tree, to achieve significant speedups.
- Rule Interpreter: They discuss how parallelism can be applied to the process of finding and firing rules in rule-based systems, moving beyond the limitations of sequential execution cycles.
Datasets
Not discussed in the paper.
Key Insights and Ideas
- The "Folk Theorem" is Misleading: The paper argues that the perceived limit of a tenfold speedup is an artifact of naive parallel implementation strategies, not an inherent limitation of AI computation.
- Computation Graphs are Key: Understanding the structure of a computation as a graph (nodes for operations, arcs for dependencies) provides a framework for analyzing potential parallelism and speedup.
- AND Parallelism is Crucial: While OR parallelism is intuitive for search, the paper highlights the significant potential of AND parallelism for executing independent subcomputations simultaneously, especially in rule-based systems.
- Strategic Processor Allocation Matters: Instead of naively distributing work, effective parallelism requires careful consideration of where and when to allocate processors, particularly in search algorithms like alpha-beta.
- Beyond Sequential Assumptions: Many AI algorithms are designed with sequential execution in mind. Re-conceptualizing these algorithms for parallel execution, rather than simply parallelizing existing sequential code, is essential for achieving substantial speedups.
Key Results
The paper demonstrates that with appropriate parallel algorithms and a "reasonable" number of processors (defined as achieving speedup N with approximately N log N processors, not NN), speedups of two orders of magnitude* (a factor of 100) are achievable for AI programs dominated by search.
- Alpha-Beta Search: A proposed approach for alpha-beta search, using approximately 500 processors, can achieve a speedup of 100, significantly exceeding the "folk theorem" limit.
- Rule Interpreter: For a rule interpreter with 2,000 rules, a speedup of nearly 150 is theoretically possible by dedicating processors to rule evaluation, and even more substantial speedups are suggested by alternative interpreter designs.
Limitations and Future Work
- Engineering Challenges: The authors explicitly state they do not address the engineering problems of communication costs and load balancing, which are critical for real-world multiprocessor implementations.
- Focus on Search and Rule-Based Systems: While the paper focuses on these areas, it acknowledges that other AI tasks, like perceptual tasks, may have different parallelism characteristics (e.g., potentially achieving four orders of magnitude speedup).
- Further Exploration Needed: The paper concludes by emphasizing that the effectiveness of parallel processing for AI is still being determined and encourages avoiding premature conclusions. Future work would involve implementing and empirically validating these proposed parallel algorithms and exploring their performance in more complex AI systems.
Summary updated