Relevance score hΞ
Also known as relevance score, hXi
heuristic planning-heuristics
The relevance score h_Ξ estimates how important each fact is for reaching the goal. It builds a backtracking tree from the goal: below each fact are the operators that achieve it, and below each operator are its preconditions. A random agent walks this tree: at a fact it picks one achiever, at an operator it takes all preconditions. The score of a fact is the chance that the agent visits it. In a state, the tree drops each fact that already holds, with everything below it, and h_Ξ is the sum of the scores in the tree that remains. The tree is explored once, by random dives; h_Ξ is 0 exactly in goal states, not admissible, and works as a landmark-like guide for satisficing search.
Pseudocode
algorithm RelevanceScore(s, G, T)input: state s, goal facts G, backtracking tree T explored once from Goutput: h_Ξ(s), or ∞ for a relaxed dead endif G is relaxed-unreachable from s thenreturn ∞h ← 0for each fact l doh ← h + xi(l, root(T))return round(h)function xi(l, n)if n is labelled l thenreturn 1KIDS ← the children of n not labelled with a fact true in sif n is a fact node thenif KIDS = ∅ thenreturn 0return ∑ xi(l, c) over c ∈ KIDS / |KIDS| ▷ the agent picks one achieverreturn 1 − ∏ (1 − xi(l, c)) over c ∈ KIDS ▷ a rule takes every conditionprocedure explore(T, ρ, N)repeatn ← a frontier node of T, chosen with probability ∝ ξ(n)dive(T, n) ▷ add children, step to one ∝ ξ, to a leafuntil frontier(T) = ∅ or (|T| ≥ N and frontier-mass(T) ≤ ρ · explored-mass(T))In the crates
planning-heuristicsLandmark-like, inadmissible relevance score over a partially explored backtracking tree.
Papers
- Relevance Score: A Landmark-Like Heuristic for Planning Oliver Kim, Mohan Sridharan · 2024· arXiv preprint