Learning Probabilistic Hierarchical Task Networks as Probabilistic Context-Free Grammars to Capture User Preferences

Nan Li, William Cushing, Subbarao Kambhampati, Sung Wook YoonACM TIST 2014

TL;DR

This paper introduces a novel method for learning user preferences from observed behavior by modeling them as Probabilistic Hierarchical Task Networks (pHTNs). The key innovation is treating these pHTNs as Probabilistic Context-Free Grammars (pCFGs) and adapting grammar induction techniques to learn user preferences, even when feasibility constraints obscure true desires. This allows for more personalized planning and recommendation systems.

What Problem Does This Paper Address?

Traditional planning systems often struggle to capture nuanced user preferences. While Hierarchical Task Networks (HTNs) can represent complex constraints, learning user preferences from observed plans is challenging. Existing methods often require additional annotations or focus on learning domain physics rather than user desires. Furthermore, real-world scenarios involve feasibility constraints that can prevent users from executing their most preferred actions, leading to observed behavior that doesn't directly reflect true preferences. This paper tackles the problem of learning these true preferences from observed plan traces, even when feasibility constraints create a mismatch between what users want to do and what they can do.

Methods

The core of the paper lies in two main contributions:

  • Learning pHTNs as pCFGs: The authors propose viewing HTNs as Probabilistic Context-Free Grammars (pCFGs). They adapt the Expectation-Maximization (EM) algorithm, a standard technique for probabilistic grammar induction, to learn these pHTNs.
  • Handling Feasibility Constraints: To address the issue of feasibility constraints obscuring true preferences, they introduce a rescaling mechanism. This involves inferring what the user would have chosen if all options were feasible, effectively creating weighted training data that better reflects desire rather than just observed behavior. This is achieved through clustering, transitive closure, and rescaling of plan frequencies.

The learning process involves two phases:

  1. Structure Hypothesizer (SH): This component invents the necessary non-primitive tasks and methods (grammar rules) to parse all observed plan examples. It works bottom-up, identifying common subsequences and loops.
  2. Expectation-Maximization (EM): Once the structure is hypothesized, the EM algorithm is used to estimate the probabilities of the methods, thus learning the pHTN.

Datasets

The paper primarily uses synthetic datasets generated from oracle pHTNs to evaluate their approach. They also conduct experiments on two benchmark domains: Logistics and Gold Miner, adapted from the International Planning Competition. For these domains, they hand-craft oracle pHTNs to represent specific preferences.

Key Insights and Ideas

  • User Preferences as Grammars: The novel framing of user preferences as pCFGs opens up a rich set of existing grammar induction techniques for this problem.
  • The "Hard-EM" Bias: The use of "hard-EM" (using most probable parses) introduces a bias towards less ambiguous grammars, which can be advantageous for learning from limited data and for interpretability.
  • Feasibility is Not Preference: The crucial insight is that observed behavior is a product of both preferences and feasibility. Simply learning from observed behavior can lead to models that reflect what users can do, not what they prefer.
  • Rescaling as a Solution: The rescaling technique effectively "corrects" for feasibility constraints by inferring hypothetical choices, allowing the learner to better capture true preferences. This is particularly important in "worst-case" scenarios where less preferred options are more frequently feasible.
  • Structure Learning First: Separating structure learning (SH) from parameter learning (EM) is crucial, especially when dealing with user-specific preferences where non-primitives are not pre-defined.

Key Results

  • The proposed learning approach (with rescaling) significantly outperforms a baseline approach (without rescaling) in learning user preferences, especially when feasibility constraints are present.
  • In synthetic domains, the rescaling approach achieved KL divergence scores as low as 0.066, compared to 0.268 for the inside-outside algorithm.
  • In benchmark domains (Logistics and Gold Miner), the rescaling approach achieved significantly higher scores (e.g., 0.847 in Logistics vs. 0.342 for the baseline), indicating a much better recovery of true preferences.
  • The learning curves show that with sufficient training data, the rescaling approach can achieve near-perfect performance.
  • The learned pHTNs were generally more concise than the oracle pHTNs, suggesting that the learned structure can be efficient.

Limitations and Future Work

  • Hard-EM vs. Soft-EM: While hard-EM offers advantages, it might fail to produce the true solution even with ample data. The authors acknowledge that soft-EM might be a more robust alternative in some cases.
  • Conciseness and Overfitting: While the learned models are generally concise, there's evidence of potential overfitting in larger domains, suggesting future work on structure learning to address this.
  • Contextual Dependencies: The current model handles context-free preferences. Future work could extend this to context-sensitive preferences, potentially by automating feature selection.
  • Human User Studies: The evaluation was primarily oracle-based. Conducting user studies is a critical next step to validate the approach in real-world scenarios.
  • Parameterized pHTNs and Conditional Preferences: Learning parameterized pHTNs or conditional preferences would allow for more sophisticated modeling.
  • Integration with Planners: Tightly integrating the learner with an automated planner would enable automatic generation of feasible alternatives and exploitation of learned knowledge during planning.
  • Plan Recognition Extension: The approach could be extended to plan recognition, where the goal is to infer user intent from observed plans.

Summary updated

BibTeX
@article{li2014learning,
  author = {Nan Li and William Cushing and Subbarao Kambhampati and Sung Wook Yoon},
  title = {{Learning Probabilistic Hierarchical Task Networks as Probabilistic Context-Free Grammars to Capture User Preferences}},
  journal = {ACM Trans. Intell. Syst. Technol.},
  year = {2014},
  doi = {10.1145/2589481},
}
Figure