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 mMm\in M is defined by σ(m)=(c,φ)\sigma(m) = (c, \varphi), with cCc\in C and φT\varphi \in T^*.
  • δ=(prec,add,del)\delta = (\text{prec}, \text{add}, \text{del}): precondition, add, and delete sets for each aAa\in A.
  • τ(a,s)(prec(a)λ(s))\tau(a, s) \equiv (\text{prec}(a)\subseteq \lambda(s)): applicability of actions.
  • γ(a,s)\gamma(a, s): resultant state after aa; λ(γ(a,s))=(λ(s)del(a))add(a)\lambda(\gamma(a, s)) = (\lambda(s)\setminus \text{del}(a)) \cup \text{add}(a).
  • ζ(ω,s)\zeta(\omega, s): decomposition operator for compound tasks, succeeds if method’s precondition holds.
  • gSg\subseteq S: set of goal states; λ(s)\lambda(s) gives the fluents true in ss.

A plan ωA\omega\in A^* is a solution if:

  1. wIωw_I \rightarrow^* \omega via repeated ζ\zeta applications,
  2. ω\omega is executable from s0s_0 (τ\tau holds at each step),
  3. γ(s0,ω)g\gamma(s_0, \omega) \vDash g.

HierAMLSI assumes input observations via a function λ:S2L\lambda: S \to 2^L, 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, L(P)\mathcal{L}(P), for an HTN domain can be decomposed as

L(P)=LH(P)LC(P)\mathcal{L}(P) = \mathcal{L}_H(P) \cap \mathcal{L}_C(P)

where

  • LH(P)={ωA:wIω via method decompositions}\mathcal{L}_H(P) = \{\omega \in A^* : w_I \rightarrow^* \omega \text{ via method decompositions}\},
  • LC(P)={ωA:γ(s0,ω)g}\mathcal{L}_C(P) = \{\omega \in A^* : \gamma(s_0, \omega)\vDash g\} (the set of action sequences leading to goal states, regular under STRIPS transitions).

HierAMLSI induces a DFA Σ=(Q,T,δΣ,q0,F)\Sigma=(Q, T, \delta_\Sigma, q_0, F) where:

  • QSQ\subseteq S are “grammar” states, induced via RPNI,
  • T=ACT = A\cup C,
  • δΣ(q,t)=q\delta_\Sigma(q, t) = q' encodes the transition under task tt,
  • q0q_0 mirrors s0s_0 and FQF\subseteq Q 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 tTt \in T is randomly chosen; if tt is compound and decomposable, it is replaced via the black-box decomposition.
  • The maximal primitive prefix is added to the positive set I+I^+; the full sequence (possibly failing) to the negative set II^-. Complexity: O(Nwalk)O(N_\text{walk} \cdot \ell) (with \ell the average trace length).

Step 2. DFA Learning

  • The “primitive-only” DFA on AA is induced with RPNI using (I+A,IA)(I^+ \cap A^*, I^- \cap A^*).
  • Compound-task transitions are subsequently augmented: for each observed cCc \in C from qq to qq', δΣ(q,c)=q\delta_\Sigma(q, c) = q'. RPNI is polynomial in dataset and alphabet size; augmentation is O(I+C)O(|I^+| \cdot |C|).

Step 3. HTN Method Extraction

  • For each cCc\in C, all pairs (qq)(q \to q') labeled by cc in Σ\Sigma yield candidate decompositions.
  • A greedy set-cover heuristic (Algorithm 1 in the paper) constructs M[c]M[c], iterating to allow up to ii compound-tasks per method (for i=1,,Ci=1,\dots,|C|). The smaller cover is kept.
  • Overall complexity: O(C2I+3)O(|C|^2 \cdot |I^+|^3) (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 O(Trans(Σ)L)O(|\text{Trans}(\Sigma)|\cdot |L|).

4. Theoretical Properties

Lemma 1 establishes that the heuristic method cover guarantees all observed compound tasks in I+I^+ can be decomposed by some M[c]M[c]. The procedure initializes from direct observations (ensuring non-empty cover) and each greedy step maintains coverage.

Lemma 2 bounds the method extraction process by O(C2I+3)O(|C|^2 \cdot |I^+|^3) time: O(I+2)O(|I^+|^2) candidate methods, set-cover in O(I+3)O(|I^+|^3), iterated O(C2)O(|C|^2) 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 (A,C,M,L)(|A|, |C|, |M|, |L|) 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: Acc=number of test problems solvednumber of test problemsAcc = \frac{\text{number of test problems solved}}{\text{number of test problems}}, using TFD planner with VAL validator across 20 problem instances per domain. When learning only methods (given action models), 600 training tasks yielded Acc100%Acc \approx 100\% even with noise; 100 tasks sufficed for Acc>50%Acc > 50\%. Learning both actions and methods led to slightly lower AccAcc 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 (>90%>90\%) 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.