Optimistic Parallel Discrete Relaxation

IJCAI 1993

TL;DR

This paper introduces "monotonic asynchronous iteration," a novel optimistic approach to parallelizing discrete relaxation algorithms. It allows for increased concurrency by only rejecting computations that violate monotonicity, leading to significant speedups in complex constraint satisfaction problems.

What Problem Does This Paper Address?

Discrete relaxation is a common technique for finding fixed points in discrete systems, particularly useful in solving constraint satisfaction problems (CSPs). While straightforward to parallelize for locally consistent solutions, parallelizing algorithms that compute globally consistent solutions is challenging. This is because maintaining monotonicity (a necessary condition for correctness) often severely limits concurrency, hindering performance. The paper aims to overcome this limitation by developing a parallel discrete relaxation method that can achieve good performance without sacrificing correctness.

Methods

The core contribution is the monotonic asynchronous iteration technique. This method builds upon the concept of asynchronous iterations, where computations can proceed in parallel without strict synchronization. However, standard asynchronous iterations can lead to incorrect results because they don't guarantee monotonicity.

The proposed solution is "optimistic":

  1. Asynchronous Computation: Components of the system are updated in parallel using values from potentially different past iterations (controlled by src(j, k) indices).
  2. Optimistic Monotonicity Test: After a parallel computation, an application-specific test is applied to check if the result maintains the required monotonicity.
  3. Rejection and Re-execution: If the test fails (i.e., monotonicity is violated), the computation is rejected, and the component is scheduled for re-execution, likely using more up-to-date values. If the test passes, the update is accepted.

This approach allows for "legal races" – concurrent updates that maintain monotonicity are permitted, leading to increased concurrency compared to traditional methods that might serialize operations to strictly enforce monotonicity. The paper also outlines a parallel implementation strategy involving locking and conditional updates.

Datasets

Not discussed in the paper. The paper uses a specific constraint network example (Stair5) for performance evaluation, which is a benchmark problem in machine vision for edge labeling.

Key Insights and Ideas

  • Optimism for Concurrency: The key insight is that strict monotonicity enforcement is often too restrictive for parallelization. An optimistic approach that only rejects violations of monotonicity, rather than preventing all potential violations, can unlock significant concurrency.
  • Application-Specific Monotonicity Tests: The paper emphasizes that the monotonicity test is not generic but must be derived from the specific problem domain. For CSPs, this test often involves subset checks between value combinations.
  • "Legal Races" as a Source of Concurrency: The technique allows for concurrent updates to proceed even if they don't use the absolute latest values, as long as the overall monotonicity is preserved. This is a crucial difference from strictly sequential or synchronized parallel approaches.
  • CONSAT as a Case Study: Demonstrating the technique on CONSAT, a global CSP solver, shows its practical applicability to problems where monotonicity is essential for correctness.

Key Results

The paper presents performance results for parallel CONSAT on the Stair5 benchmark problem using a shared-memory multiprocessor.

  • Speedup: Speedup ranged from 0.9 (on 1 processor) to 4.6 (on 6 processors).
  • Efficiency: The parallel implementation was reasonably efficient, with 1-processor time within 5% of the sequential version.
  • Re-executions: The number of re-executed steps (non-monotonic ones) was relatively low, indicating the effectiveness of the optimistic approach. For 6 processors, 16 steps were re-executed out of 463 total steps.
  • Bottlenecks: Serial bottlenecks in garbage collection and allocation routines were identified as limiting factors for achieving linear speedup.

Limitations and Future Work

  • Application-Specific Test Derivation: The paper acknowledges that there isn't a general method for deriving the application-specific monotonicity test. Programmers are expected to provide this based on domain knowledge. It suggests it would be interesting to explore how easily these tests can be derived for other discrete relaxation problems.
  • Scheduling Strategies: The paper notes that monotonic asynchronous iteration doesn't specify how to choose functions for execution or how to schedule concurrent tasks for optimal performance, leaving room for further research in application-specific scheduling strategies.
  • Garbage Collection Impact: The performance measurements were affected by the sequential garbage collector, suggesting that a more realistic parallel garbage collector would be needed for true performance estimation.

Summary updated

BibTeX
@inproceedings{1993optimistic,
  title = {{Optimistic Parallel Discrete Relaxation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1993},
}
Figure