[Paper Review] Pattern Backtracking Algorithm for the Workflow Satisfiability Problem
This paper proposes a novel fixed-parameter tractable algorithm, Pattern Backtracking (PB), for the Workflow Satisfiability Problem (WSP) with user-independent constraints. By partitioning assignments into equivalence classes based on constraint patterns and using a backtracking framework, PB reduces the search space exponentially, achieving orders-of-magnitude speedup over existing methods and solving instances up to k=49 steps—significantly extending the practical solvability domain of WSP.
The workflow satisfiability problem (WSP) asks whether there exists an assignment of authorised users to the steps in a workflow specification, subject to certain constraints on the assignment. (Such an assignment is called valid.) The problem is NP-hard even when restricted to the large class of user-independent constraints. Since the number of steps $k$ is relatively small in practice, it is natural to consider a parametrisation of the WSP by $k$. We propose a new fixed-parameter algorithm to solve the WSP with user-independent constraints. The assignments in our method are partitioned into equivalence classes such that the number of classes is exponential in $k$ only. We show that one can decide, in polynomial time, whether there is a valid assignment in an equivalence class. By exploiting this property, our algorithm reduces the search space to the space of equivalence classes, which it browses within a backtracking framework, hence emerging as an efficient yet relatively simple-to-implement or generalise solution method. We empirically evaluate our algorithm against the state-of-the-art methods and show that it clearly wins the competition on the whole range of our test problems and significantly extends the domain of practically solvable instances of the WSP.
Motivation & Objective
- To address the computational intractability of the WSP, which is NP-hard and W[1]-hard in general, by focusing on user-independent constraints.
- To extend the practical solvability of the WSP beyond current limits, especially for real-world workloads where the number of steps k is small but growing.
- To develop a fixed-parameter tractable (FPT) algorithm that is both efficient and easy to implement and extend.
- To outperform existing state-of-the-art solvers, including UI and SAT4J, on a broad range of WSP instances.
Proposed method
- The algorithm partitions all possible assignments into equivalence classes based on the pattern of user assignments relative to constraints, reducing the search space to only those classes.
- Each equivalence class is checked for validity in polynomial time by verifying whether any assignment in the class satisfies all constraints and authorizations.
- A backtracking framework is used to explore the space of equivalence classes, with a branching heuristic that prioritizes steps with high constraint density and assignment tightness.
- The branching heuristic uses a ranking function ρ(s) = c≠(P) + 100·c⁰≤(P) + 2·c¹≤(P) + 1·c²≤(P), where c≠ counts not-equals constraints and cᵢ≤ counts at-most constraints with i users already assigned.
- The method is designed to be easily parallelizable and extensible to new constraint types.
- The algorithm is implemented and publicly available, with a custom instance generator for reproducible evaluation.
Experimental results
Research questions
- RQ1Can a new FPT algorithm be designed that significantly outperforms existing solvers on WSP instances with user-independent constraints?
- RQ2To what extent can the search space be compressed using equivalence classes based on constraint patterns without losing correctness?
- RQ3How does the performance of the Pattern Backtracking algorithm scale with increasing numbers of steps k compared to state-of-the-art methods?
- RQ4Can the algorithm reliably solve WSP instances up to k=49, extending the practical boundary of solvable problems?
- RQ5How sensitive is the algorithm’s performance to heuristic parameter tuning, and can a robust, general-purpose heuristic be established?
Key findings
- The Pattern Backtracking (PB) algorithm successfully solves all tested WSP instances up to k=49 steps, whereas the UI solver only reaches k=23 and SAT4J only k=15.
- PB outperforms both UI and SAT4J solvers by several orders of magnitude in running time across all tested k values.
- The success rate of PB is 100% across all 50 instance sets per k value, with no timeouts, while UI and SAT4J fail on multiple sets at k>23 and k>15, respectively.
- The running time of PB grows more slowly with increasing k than that of the competing solvers, indicating better scalability under increased computational load.
- The branching heuristic with parameters α=100, β=2, γ=1 provides robust performance across diverse instances and is not highly sensitive to parameter variation.
- The algorithm is not only faster but also simpler to implement and parallelize, making it a practical choice for real-world deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.