Abstract
Discrete relaxation is a fundamental technique for solving Constraint Satisfaction Problems (CSPs). While local consistency is easily parallelized, global consistency has traditionally been viewed as inherently serial due to the strict requirement of maintaining monotonicity. This paper introduces monotonic asynchronous iteration, an optimistic technique that allows processors to work independently while ensuring correctness through monotonicity checks. Empirical results demonstrate significant speedups, challenging previous skepticism regarding the parallel complexity of global discrete relaxation.
Introduction
In the domain of Constraint Satisfaction Problems (CSPs), discrete relaxation iteratively narrows the set of possible solutions until a stable fixed point is reached. For local consistency (e.g., arc consistency), updates are independent and thus trivial to parallelize. However, achieving global consistency requires maintaining monotonicity—the property that the set of possible solutions only ever shrinks. Traditional parallel approaches rely on coarse-grained locking to preserve this property, which often results in synchronization bottlenecks that negate the benefits of parallelism.
Methodology: Monotonic Asynchronous Iteration
The authors propose an optimistic concurrency control mechanism termed monotonic asynchronous iteration. Instead of preventing conflicting updates through locks, the system allows processors to execute filtering functions independently and validates updates post-computation.
The process follows three main steps:
- Asynchronous Execution: Processors read the current global state, perform local filtering, and propose updates without global synchronization.
- Monotonicity Test: Before a proposed update is committed, the system checks if the new value is "less than or equal to" the current value in the problem's partial order. This ensures that the solution space only becomes more specific.
- Commit or Retry: If the test passes, the update is applied atomically. If it fails—indicating a concurrent update has rendered the proposal obsolete—the result is discarded, and the processor retries with the latest state.
This framework was implemented in CONSAT, a global CSP solver utilizing "tagged values" to track inter-variable dependencies.
Experimental Evaluation
The approach was evaluated using the Stair5 problem, a classic machine vision task involving the labeling of a 3D polyhedral line drawing. The network consisted of 33 variables and 56 constraints of varying arity. Testing was conducted on a Sequent Symmetry shared-memory multiprocessor using CLiP, a parallel Lisp dialect.
Key Results and Insights
The optimistic approach effectively removed the bottlenecks associated with traditional locking.
As shown in Table 1, the system achieved a 4.6x speedup on 6 processors. Notably, the overhead of the parallel framework was minimal; a single-processor run of the parallel version performed within 5% of a specialized sequential implementation.
The results provide strong empirical evidence against Kasif’s conjecture, which suggested that global discrete relaxation might be inherently resistant to parallel speedup. By treating monotonicity as a concurrency control problem rather than a synchronization constraint, the authors demonstrated that significant parallel efficiency is attainable.
Limitations and Future Work
Despite the success, several bottlenecks were identified. The use of a "stop-the-world" sequential garbage collector in the Lisp environment limited real-time performance, suggesting that a concurrent collector is necessary for production environments. Additionally, serial bottlenecks in memory allocation routines hindered further scaling. Future research should focus on automating the derivation of application-specific monotonicity tests to broaden the framework's applicability to other discrete relaxation domains.
Summary updated