Papers
Topics
Authors
Recent
Search
2000 character limit reached

HierAMLSI: Robust HTN Domain Learning

Updated 25 March 2026
  • HierAMLSI is an algorithm that automatically learns HTN planning domains from partial and noisy execution traces by combining grammar induction with STRIPS-style action model extraction.
  • It employs RPNI for DFA induction and a polynomial-time set-cover heuristic to derive compact hierarchical decompositions along with accurate action preconditions and effects.
  • Empirical evaluations on IPC2020 domains show high accuracy (>90%) even under significant noise and partial observability, underscoring its practical impact in autonomous planning.

HierAMLSI is an algorithm for automatic acquisition of Hierarchical Task Network (HTN) planning domains from partial and noisy execution traces. Its approach combines grammar induction—specifically, regular positive and negative inference (RPNI)—with STRIPS-style action model induction and a polynomial-time set-cover heuristic for compact HTN-method extraction. HierAMLSI enables learning of both primitive action schemas and hierarchical decomposition methods, including their preconditions and effects, directly from observations, offering robustness to substantial noise and partial observability in the input data (Grand et al., 2022).

1. Problem Setting and HTN Formalism

In HTN planning, a domain is defined by the tuple P=(L,C,A,S,M,s0,wI,g,δ,τ,λ,σ,ζ)P = (L, C, A, S, M, s_0, w_I, g, \delta, \tau, \lambda, \sigma, \zeta):

  • LL: finite set of ground propositions (fluents).
  • SS: finite set of world-state labels, with initial state s0s_0.
  • AA: set of primitive (PDDL) action labels.
  • CC: set of compound (non-primitive) task labels, CA=C \cap A = \emptyset.
  • T=ACT = A \cup C: full task alphabet.
  • wITw_I \in T^*: initial, totally-ordered task network.
  • MM: set of HTN method labels; each LL0 is defined by LL1, with LL2 and LL3.
  • LL4: precondition, add, and delete sets for each LL5.
  • LL6: applicability of actions.
  • LL7: resultant state after LL8; LL9.
  • SS0: decomposition operator for compound tasks, succeeds if method’s precondition holds.
  • SS1: set of goal states; SS2 gives the fluents true in SS3.

A plan SS4 is a solution if:

  1. SS5 via repeated SS6 applications,
  2. SS7 is executable from SS8 (SS9 holds at each step),
  3. s0s_00.

HierAMLSI assumes input observations via a function s0s_01, which may be partial (some true fluents unobserved) or noisy (random flipping of truth values). Experiments introduce up to 20% noise and up to 75% missing fluents per observed state.

2. Grammar-Induction Approach

HierAMLSI’s central insight is that the set of valid plans, s0s_02, for an HTN domain can be decomposed as

s0s_03

where

  • s0s_04,
  • s0s_05 (the set of action sequences leading to goal states, regular under STRIPS transitions).

HierAMLSI induces a DFA s0s_06 where:

  • s0s_07 are “grammar” states, induced via RPNI,
  • s0s_08,
  • s0s_09 encodes the transition under task AA0,
  • AA1 mirrors AA2 and AA3 comprises goal states.

Alternatively, the transition grammar can be represented as a context-free grammar, associating productions to method decompositions.

3. Algorithmic Pipeline and Complexity

HierAMLSI comprises four primary steps:

Step 1. Observation Generation

  • Random walks are conducted using a black-box HTN solver. At each step, a task AA4 is randomly chosen; if AA5 is compound and decomposable, it is replaced via the black-box decomposition.
  • The maximal primitive prefix is added to the positive set AA6; the full sequence (possibly failing) to the negative set AA7. Complexity: AA8 (with AA9 the average trace length).

Step 2. DFA Learning

  • The “primitive-only” DFA on CC0 is induced with RPNI using CC1.
  • Compound-task transitions are subsequently augmented: for each observed CC2 from CC3 to CC4, CC5. RPNI is polynomial in dataset and alphabet size; augmentation is CC6.

Step 3. HTN Method Extraction

  • For each CC7, all pairs CC8 labeled by CC9 in CA=C \cap A = \emptyset0 yield candidate decompositions.
  • A greedy set-cover heuristic (Algorithm 1 in the paper) constructs CA=C \cap A = \emptyset1, iterating to allow up to CA=C \cap A = \emptyset2 compound-tasks per method (for CA=C \cap A = \emptyset3). The smaller cover is kept.
  • Overall complexity: CA=C \cap A = \emptyset4 (Lemma 2).

Step 4. Preconditions for Methods and Actions

  • Each method is treated as a “primitive” task: precondition, add, delete sets are learned by intersections over pre- and post-condition sets for DFA transitions.
  • A refinement loop (as in AMLSI) adjusts effects and preconditions iteratively until a fixpoint, followed by a Tabu search over operator schemas for noise-robustness and DFA transition coverage. Each refinement pass is CA=C \cap A = \emptyset5.

4. Theoretical Properties

Lemma 1 establishes that the heuristic method cover guarantees all observed compound tasks in CA=C \cap A = \emptyset6 can be decomposed by some CA=C \cap A = \emptyset7. The procedure initializes from direct observations (ensuring non-empty cover) and each greedy step maintains coverage.

Lemma 2 bounds the method extraction process by CA=C \cap A = \emptyset8 time: CA=C \cap A = \emptyset9 candidate methods, set-cover in T=ACT = A \cup C0, iterated T=ACT = A \cup C1 times.

No formal convergence or sample-complexity guarantees are given for the RPNI stage, apart from standard RPNI properties.

5. Empirical Evaluation and Accuracy

HierAMLSI was tested on five IPC2020 HTN domains: Blocksworld, Gripper, Zenotravel, Transport, and Childsnack. Each domain’s T=ACT = A \cup C2 statistics are detailed in the original work.

Experimental scenarios included:

  1. Complete observations (100% observable, 0% noise),
  2. Complete observations with 20% noise,
  3. Partial observations (25% observable, 0% noise),
  4. Partial with 20% noise.

Accuracy metric: T=ACT = A \cup C3, using TFD planner with VAL validator across 20 problem instances per domain. When learning only methods (given action models), 600 training tasks yielded T=ACT = A \cup C4 even with noise; 100 tasks sufficed for T=ACT = A \cup C5. Learning both actions and methods led to slightly lower T=ACT = A \cup C6 in noisy domains (notably Blocksworld, Transport, Childsnack), but over 90% accuracy was restored by 300-600 training tasks in all tested conditions.

6. Strengths, Limitations, and Open Questions

Strengths

  • Full HDDL domain acquisition—including actions, methods, and preconditions—from partially observable and noisy traces.
  • Induced DFA grammar via RPNI generalizes well with minimal negative over-generalization.
  • Heuristic method cover yields compact, interpretable HTN libraries.
  • High empirical accuracy (T=ACT = A \cup C7) achieved even with 20% noise and heavily incomplete observations.

Limitations and Open Directions

  • No formal sample-complexity bounds for HTN learning; relies on empirical random-walk coverage.
  • Greedy heuristic for method cover may not yield canonical or “intended” hierarchies.
  • Restricted to totally ordered task networks; partial orderings or additional constraints (e.g., time, resources) are not addressed.
  • Only STRIPS-style preconditions/effects are learned; extension to temporal or numeric domains requires substantial augmentation.

Potential extensions suggested include incorporating ordering/causal constraints beyond regular grammars, developing active sampling to reduce random walk dependence, and supporting temporal/numeric HTNs by extending the fluent vocabulary.

7. Significance in Autonomous Planning

HierAMLSI represents a significant advance in autonomous HTN domain acquisition by enabling robust, high-fidelity learning of both actions and hierarchical methods under challenging observational regimes (Grand et al., 2022). Its integration of grammar induction (via RPNI), STRIPS-style intersection-based action/model learning, and polynomial-time method cover construction sets a new baseline for domain learning accuracy and scalability in the presence of noise or partial observability. Its modular approach, empirical performance, and open methodology position it as a foundational platform for further developments in learning expressive planning formalisms from real-world data traces.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to HierAMLSI Algorithm.