Certified Bounded-Suboptimal Search in Cyclic AND/OR Graphs

Many planning problems are searched as AND/OR graphs. An OR node is a state where the planner picks an action. An AND node is an action whose possible outcomes must all be handled. The graphs that come up in practice contain cycles, because actions can undo one another or nature can send the agent back to a state it has already seen. Search in such graphs is known to loop forever, cache wrong "dead-end" verdicts, or re-expand the same states over and over. The algorithms that handle this correctly all insist on returning provably optimal solutions. Two examples are depth-first value learning, which raises state estimates until loops stop looking cheap, and dual caching of path-independent and path-specific bounds. A separate literature has shown that relaxing optimality to "within a factor $(1+\epsilon)$ of optimal" often cuts search effort by orders of magnitude. That literature assumes the solution is a simple path in an ordinary graph. Nobody has asked what a $(1+\epsilon)$ guarantee means, or how to certify it, when the graph has cycles and the solution is a branching plan.

We propose a depth-first search for cyclic AND/OR graphs that maintains two values for every state. The first is an admissible lower bound $L$, a value never above the true cost, which is raised by Bellman-style backups. The second is an upper bound $U$, which is the cost of an explicit, loop-free solution subplan rooted at that state. The search treats a state as finished once $U \le (1+\epsilon)L$. It stops at the root under the same test, so the final answer carries a certificate of its own suboptimality. The point is that the obvious port fails specifically because of cycles. That port inflates the heuristic by a weight $w$, as Weighted A does. Inside a cycle, the inflated values are no longer lower bounds. They get cached as if they were, and they can silently turn a solvable instance into a "proved unsolvable" one. Splitting lower and upper bounds avoids this, and it also gives cheaper loop escape: a cycle can be abandoned as soon as an alternative is certified* within the slack, instead of after the lower bounds inside the loop have been slowly raised all the way up.

Core Claim

Bounded suboptimality in cyclic AND/OR search should be enforced through certified upper bounds, never through inflated lower bounds. When it is, three things follow. The relative bound $(1+\epsilon)$ composes exactly through AND nodes and through the cycle-handling machinery. The bound-caching scheme that prevents cycle traps carries over unchanged. And the number of depth-first passes needed to escape a cost-trap loop shrinks in proportion to the slack.

The composition argument is short. Take nonnegative edge costs $c(s,a)$ and an AND node whose outcomes $s'$ each satisfy $U(s') \le (1+\epsilon)L(s')$. Write $\max_{s'}$ for the worst outcome, as in worst-case (Max AND/OR) costing. Then

$$ c(s,a) + \max_{s'} U(s') \;\le\; (1+\epsilon)\Big(c(s,a) + \max_{s'} L(s')\Big), $$

so the certificate propagates to the parent without loss. Additive bounds of the form $C \le C^* + \gamma$ do not behave this way. The slack $\gamma$ is consumed once per AND level, so it must be split across depth. This is the AND/OR analogue of the observation by Using Alternative Suboptimality Bounds in Heuristic Search, which showed that additive bounds need their own evaluation functions even on ordinary paths. We will treat the relative bound as the main case and the additive bound as a secondary result with a depth-aware split.

An upper bound $U(s)$ comes from a self-contained loop-free subplan beneath $s$. It is therefore valid no matter which path reached $s$, so it can be cached globally. This matters because Depth-First Memory-Limited AND/OR Search and Unsolvability in Cyclic Search Spaces showed that path-dependent "$\infty$ because of a cycle" verdicts poison a cache when they are stored globally. That paper separated a global lower bound ($q$-value) from a path-specific value ($r$-value). Our $L$ plays the role of $q$, cycles on the current path are handled with $r$-values exactly as in that work, and $U$ is a third, path-independent quantity that the slack test consults.

How the method relates to prior work

The method builds directly on Learning in Depth-First Search (LDFS) from An Algorithm Better than AO*?. LDFS runs repeated depth-first passes over an AND/OR graph and raises a state's value whenever it is inconsistent with its successors. Its "Bounded LDFS" variant prunes branches using minimax upper bounds, but it still returns exact optimal costs. We keep the depth-first value-learning loop. We change what "solved" means, and we restrict which actions a pass explores. At a state $s$, the pass considers only actions whose lower-bound action value is within $(1+\epsilon)$ of $L(s)$. Within that "focal" set, it orders actions by an estimate of remaining search effort or by $U$.

The focal set comes from Aepsilon - An Efficient Near Admissible Heuristic Search Algorithm. That paper's focal list selects among nearly-best nodes using a secondary distance estimate, and we transplant it from a global open list to the local action choice of a depth-first pass. The worry about starving the lower bound comes from New Results in Bounded-Suboptimal Search. That paper showed that elaborate adaptive rules in focal search are fragile under noisy estimates, and that a simple round-robin that periodically expands the lowest-bound node is more robust. We adopt the same remedy: every $k$-th pass is a pure lower-bound pass. The preference for a single depth-first structure over synchronized queues follows Simpler Bounded Suboptimal Search, which showed that multi-queue bookkeeping can cost more than it saves.

Two cyclic best-first methods serve as reference points rather than as foundations. LAO in Heuristic Search in Cyclic AND / OR Graphs handles cycles by running dynamic programming over the ancestors of each expanded node. Generalized A* for Cyclic AND/OR Graphs handles them by partially expanding AND nodes. Both are exact. Both also carry the per-expansion re-evaluation cost that Bonet and Geffner found makes AO-style search fail in large cyclic domains. The application motivation comes from Laying the Foundations for Solving FOND HTN Problems, whose AO*-based nondeterministic planner is explicitly restricted to acyclic spaces. This shows that even recent planners route around cycles rather than solve them.

Research Program

The first deliverable is the algorithm, which we call $\epsilon$-LDFS, together with its proofs. We must prove three properties. First, $L$ remains admissible under focal pruning and under $r$-value cycle cuts. Second, when the method terminates, the returned subplan costs at most $(1+\epsilon)C^*$. Third, the method terminates on finite cyclic graphs; here we will adapt the completeness argument that Completeness and Diversity in Depth-First Proof-Number Search gave for proof-number search with threshold control on cyclic graphs. A fourth claim is the unsolvability guarantee: "unsolvable" is reported only when the global lower bound $L$ at the root reaches $\infty$, and never because of an upper bound or an inflated value.

The second deliverable is an analysis of loop escape. Picture a cycle whose edges cost $c_{\text{cyc}}$ and which lies on the current best path. Each exact LDFS pass raises the lower bounds inside the cycle by roughly $c_{\text{cyc}}$. Escaping therefore takes about $(C_{\text{alt}} - h)/c_{\text{cyc}}$ passes, where $C_{\text{alt}}$ is the cost of the best alternative and $h$ is the initial estimate. Under the certificate rule, escape happens once $L$ reaches $C_{\text{alt}}/(1+\epsilon)$. We will check this prediction on synthetic cyclic graphs in which cycle length and gap are controlled.

The third deliverable is the additive-bound variant, using a per-level split of $\gamma$, compared against the relative version.

Baselines

The naive reference point is exact LDFS and Bounded LDFS as described in An Algorithm Better than AO*?, at $\epsilon = 0$. Our method must reduce to it at zero slack, which also checks the implementation. The strongest existing method for this problem class is the $r$-value family, BLDFSr and RBFAOOr, from Depth-First Memory-Limited AND/OR Search and Unsolvability in Cyclic Search Spaces. It is the only method in the file that is simultaneously depth-first, memory-limited, correct on cyclic graphs, and able to prove unsolvability. That paper reports 18 additional instances proved unsolvable in the BWD and FLTS domains relative to RBFAOO and BLDFS, and a bound-tracking overhead of 1% to 7% in most cases. It reports no per-instance runtimes or coverage figures that we could use as a target.

The most dangerous competitor is weighted LDFS, meaning LDFS run on $w\cdot h$. It is the first thing a reviewer would try, and it costs almost nothing to implement. We also include LAO* as the representative cyclic best-first method and value iteration as the full dynamic-programming reference.

Fairness is enforced by implementing all methods in one code base with the same heuristic ($h^{max}$ on the planning domains), the same transposition-table memory cap, and the same time limit. Each method's single tuning knob receives the same grid of five values. That knob is $w$ for weighted LDFS, the round-robin period $k$ for our method, and the dynamic-programming schedule for LAO*. Two ablations isolate the key ingredient. The first removes $U$ and declares a state solved when its lower-bound residual falls within $\epsilon$. The second keeps $U$ but removes focal ordering, so passes follow the lower bound as plain LDFS does.

Beating the baselines means the following. At $\epsilon \in \{0.1, 0.5\}$, our method must solve strictly more instances, or solve the same instances with at least a 2× reduction in median time, compared with BLDFSr and weighted LDFS at a matched realized suboptimality. It must also produce zero incorrect unsolvability verdicts. For context only, the strongest bounded-suboptimal result in the file on ordinary graphs is RR-DXES at 62.5% normalized coverage on 1,652 IPC classical instances at $w = 1.5$, from New Results in Bounded-Suboptimal Search. That figure is not comparable to our setting, because no bounded-suboptimal result on cyclic AND/OR benchmarks was found on Lacuna.

Why not just…?

Why not just run weighted LDFS with an inflated heuristic? This is the real threat. If it worked, the proposal would shrink to a footnote. There are concrete reasons to expect it to fail in cyclic graphs. An inflated value cached at a state inside a cycle is no longer a lower bound, and Depth-First Memory-Limited AND/OR Search and Unsolvability in Cyclic Search Spaces shows that this kind of inconsistency is exactly what produces cycle traps and wrong dead-end verdicts. Weighted LDFS also provides no runtime certificate: its quality guarantee, if one exists in this setting, is only a priori. We will settle the question empirically. On every instance with a known optimal cost, we will record the realized suboptimality and the number of false "unsolvable" reports for weighted LDFS against our method. If weighted LDFS matches us on speed and makes no such errors, we will report that and narrow our claim to the certificate.

Why not just use value iteration or LAO*, which handle cycles natively? Bonet and Geffner report that value iteration was among the slowest methods across the Coins, Diagnosis, Rules and moving-target domains, and that LDFS was frequently orders of magnitude faster. They also report that AO-style methods struggled or failed on the moving-target domain, whose many states and cycles make it the hardest case. Heuristic Search in Cyclic AND / OR Graphs itself identifies ancestor-level policy iteration as its cost bottleneck. We still run both methods, because a bounded LAO could be a fair competitor. If an $\epsilon$-terminated LAO* proves competitive, the lesson is that the certificate matters more than depth-first traversal, and we would say so.

Why not just unroll the graph into a tree with a depth cutoff? Unrolling removes cycles at the cost of losing completeness. A cutoff that is too shallow misses solutions, and one that is too deep re-expands the same state exponentially many times. Planners that avoid cycles, such as the acyclic restriction in Laying the Foundations for Solving FOND HTN Problems, cannot find solutions that require revisiting states. We include depth-bounded unrolled search as a sanity baseline on the moving-target domain, where revisiting is pervasive.

Why not just run Weighted A* with a closed list on a determinized problem? A closed list catches repeated states on paths, but the solutions here are branching plans. A determinized path plan is not a valid answer to the nondeterministic problem. Even on ordinary graphs, Simpler Bounded Suboptimal Search reports that Weighted A* solved no inverse-cost tile instances within the limit, while distance-guided bounded search solved them in under a second. We therefore do not expect this baseline to be competitive and use it only as a lower reference.

Proposed Experiments

The benchmarks are the four parametric Max AND/OR domains of An Algorithm Better than AO*? (Coins, Diagnosis, Rules, and moving-target search) and the IPC 2008 nondeterministic suite (Blocksworld, Faults, First-Responders) as used by Kishimoto et al. We use their perturbed $h^{max}$ setting, which deliberately creates the inconsistency that triggers cycle traps. We add synthetic cyclic graphs with planted cost-trap loops of controlled length and gap, to test the loop-escape prediction.

The metrics are coverage, median time and node expansions, realized suboptimality measured against exact solutions where available, the certified bound $U/L$ at termination, and the count of incorrect unsolvability claims. Slack is swept over $\epsilon \in \{0, 0.05, 0.1, 0.25, 0.5, 1\}$.

Three checks decide the outcome. First, on the planted-loop graphs, the number of passes needed to escape should fall as $C_{\text{alt}}/(1+\epsilon)$ predicts. If it does not, the loop-escape claim is wrong. Second, weighted LDFS should produce a nonzero false-unsolvability rate, or a realized suboptimality above $w$, on the perturbed-$h^{max}$ planning instances, while our method produces neither. If weighted LDFS stays clean and equally fast, the core motivation fails. Third, the ablation without $U$ should either return plans that violate the bound or fail to terminate on cyclic instances, while the full method does neither. That outcome would show the upper-bound certificate, not focal ordering, is the ingredient that makes bounded suboptimality safe in cyclic graphs. As a stretch goal, we will lift the acyclicity restriction on the FOND HTN suite and report whether $\epsilon$-LDFS solves instances the acyclic AO* planner cannot.