Web Service Composition Via Generic Procedures and Customizing User Preferences

Shirin Sohrabi, Nataliya Prokoshyna, Sheila A. McIlraith

Abstract

Automating Web service composition involves stitching together disparate services to fulfill complex user tasks. However, traditional AI planning approaches face challenges with search space explosion and the inability to handle soft user preferences. This paper introduces GologPref, a system that utilizes Golog-based generic procedures to guide the composition process while optimizing for qualitative user preferences expressed in temporal logic. Experimental results in a travel planning domain demonstrate that GologPref can efficiently navigate large search spaces to generate personalized service workflows.

Introduction

The vision of the Semantic Web involves software agents automatically discovering and composing Web services to achieve user goals. Two primary obstacles hinder this vision: the computational complexity of searching for plans from scratch in vast service environments, and the "preference gap"—the difficulty of incorporating qualitative, often conflicting, user desires into the composition process. Most existing systems focus on hard constraints (e.g., price limits) but fail to address soft preferences (e.g., preferred airlines) or process-oriented desires (e.g., booking order).

Methodology

The authors propose a hybrid approach that combines high-level procedural guidance with automated optimization.

Generic Procedures (Golog)

Instead of planning from a blank slate, GologPref uses "generic procedures" written in Golog, a logic programming language based on the Situation Calculus. These procedures serve as flexible templates that define the structure of a task while allowing for nondeterminism.

Golog constructs used for defining generic procedures.

As shown in the figure above, Golog supports standard programming constructs like sequences, loops, and conditionals, alongside nondeterministic choices of actions and arguments. This allows developers to encode domain knowledge while leaving specific decisions to be optimized based on user preferences.

Qualitative Preference Language

Users express their desires using a first-order language that supports complex temporal preferences. This language includes:

  • Basic Desire Formulas (BDFs): Temporal properties like eventually(occ(bookAir)).
  • Atomic Preference Formulas (APFs): Rankings of BDFs (e.g., "I prefer National, then Alamo, then Avis").

The GologPref Algorithm

GologPref employs a best-first search algorithm to resolve the nondeterministic parts of a Golog procedure. Key features include:

  • Progression: The algorithm evaluates temporal preferences by "progressing" them as the plan is built, tracking which parts of the user's desire remain unsatisfied.
  • Admissible Evaluation Function: It uses optimistic and pessimistic weights to prioritize the most promising paths, ensuring the search remains focused on optimal solutions.

Experimental Evaluation

The system was evaluated using a Travel Planning domain with real-world data scraped from services like Mapquest and various airlines. Three distinct user personas were tested:

  • Jack: A budget-conscious student.
  • Lara: A picky frequent flyer.
  • Conrad: A luxury-seeking executive.

Results

  • Efficiency: In a search space of 28,512 combinations, GologPref found optimal solutions by expanding only 27 to 108 nodes.
  • Personalization: The same generic procedure yielded vastly different plans for each persona. For instance, Jack's plan involved walking and staying with friends, whereas Lara's plan prioritized specific airline alliances and hotel chains.
  • Performance: Optimal compositions were found within 2 to 21 seconds on 2006-era hardware, indicating viability for real-world interactive use.

Conclusion

GologPref demonstrates that integrating generic procedures with qualitative preferences significantly improves the efficiency and personalization of Web service composition. While currently limited to "tree programs" (finite loops), future work aims to enhance semantic integration with ontologies like OWL-S and scale the system for broader Web environments.

Summary updated

BibTeX
@inproceedings{sohrabi2006web,
  author = {Shirin Sohrabi and Nataliya Prokoshyna and Sheila A. McIlraith},
  title = {{Web Service Composition Via Generic Procedures and Customizing User Preferences}},
  booktitle = {ISWC},
  year = {2006},
  doi = {10.1007/11926078\_43},
}
Figure