Abstract
Composing multiple web services to achieve a complex goal is a "doubly exponential" (2-EXP-hard) problem when the internal states of those services are only partially visible. This paper introduces two novel abstraction-refinement techniques that simplify service descriptions to find solutions significantly faster—sometimes turning a "mission impossible" timeout into a task completed in seconds.
Introduction
In modern software, we often need to stitch together multiple web services (like an airline booking service and a hotel reservation service) to satisfy a user's request. This is known as Web Service Composition (WSC). The challenge arises when services have "behavioral descriptions"—internal logic and states that change as you interact with them. If a coordinator (the "glue" code) can see everything happening inside every service, the problem is hard. But in the real world, services usually have partial observation: the coordinator only sees specific inputs and outputs, not the internal variables.
Previous research proved that solving WSC with partial observation is 2-EXP-hard, meaning the search space grows at an astronomical rate as you add more variables. Standard planning algorithms quickly become overwhelmed, making it impossible to solve even modest real-world problems.
Methods: Abstraction and Refinement
The authors propose a "divide and conquer" strategy using Abstraction and Refinement. Instead of tackling the full, complex model of the web services, they start with a simplified (abstract) version.
1. Abstraction
They strip away variables to create a simpler model. They propose two types:
- Signature-preserving abstraction: Keeps all input/output variables but removes internal state variables.
- Signature-subsuming abstraction: A more aggressive approach that removes internal variables and output variables that don't provide useful information for reaching the goal.
2. Soundness and Refinement
If a coordinator can solve the abstract problem, it is guaranteed to work on the original, complex problem. If the abstract version is too simple and no solution is found, the algorithm needs to add detail back in. To do this intelligently, they build a Variable Dependency Graph to identify which variables are most "relevant" to the goal and add those back first.
The process repeats—abstract, try to solve, refine—until a solution is found or it's proven that no solution exists.
Experimental Evaluation
Because there are no standard public benchmarks for this specific problem, the authors evaluated their tool using three realistic scenarios across eight total instances:
- Travel Agency System (TAS): Coordinating flight and hotel bookings with varying numbers of options (4, 9, and 16).
- Producer and Shipper (P&S): Managing furniture orders and deliveries.
- Virtual Online Shop (VOS): Handling item orders and bank transfers.
These scenarios were designed to test how the algorithms handle increasing numbers of variables and branching choices.
Key Results and Insights
- The Power of "Less is More": Most internal variables in a web service are irrelevant to the specific goal at hand. By ignoring them, you can shrink the search space "double-exponentially."
- Massive Speedups: In the most complex Travel Agency instance (TAS-c), the Basic algorithm failed to find a solution within the 2-hour (7200s) time limit. The authors' signature-subsuming method solved it in just 162 seconds.
- Efficiency: In almost every test case, the signature-subsuming approach was orders of magnitude faster than the basic approach. For example, in the P&S-a instance, it reduced the time from 50.4 seconds to just 3.2 seconds.
- Variable Reduction: The abstraction techniques successfully "saved" (ignored) a significant portion of the state space. In the VOS-b instance, they were able to find a valid solution while ignoring 23 variables.
Conclusion
While the results are promising, the authors acknowledge a few areas for growth. The current work focuses on "reachability" goals (getting to a specific state). They plan to extend this to more expressive goals, such as those defined in temporal logics (e.g., "always do X" or "eventually do Y"). Additionally, they are looking for even faster refinement techniques and aim to study the theoretical "tight bound" of variables required for composition.
Summary updated