Table of Contents
Fetching ...

Efficient Planning in Large-scale Systems Using Hierarchical Finite State Machines

Elis Stefansson, Karl H. Johansson

TL;DR

This work introduces HiMMs, a modular representation of hierarchical Mealy machines with nonnegative costs, to enable scalable optimal planning in large-scale systems. It presents a two-step planning paradigm: an offline Optimal Exit Computer that precomputes, for each machine, the minimal exit costs for all inputs, and an online Optimal Planner that rapidly computes optimal plans by reducing the HiMM and expanding the reduced solution back to the original, with a near-linear complexity in the hierarchy depth for bounded machines. The framework is extended to handle dynamic reconfigurations with targeted updates and to exploit identical machines via compact representations, yielding substantial speedups in preprocessing and planning. Empirical results on millions of states and a robotic warehouse task demonstrate speedups over Dijkstra and Bidirectional Dijkstra, while Contraction Hierarchies can outperform in some cases but at much higher preprocessing costs; the identical-machines variant enables planning on extremely large state spaces (e.g., up to $10^{150}$ states) by dramatically reducing the model size. Overall, the HiMM approach provides a principled, modular, and reconfigurable planning solution for large-scale hierarchical control systems with practical efficiency gains. The offline-online separation and modular proofs underpin robustness to changes and the potential for aggressive compression when many machines are identical. $O(|X|)$ preprocessing and $O( ext{depth}(Z)\, ext{log} ext{ depth}(Z))$ online planning emerge as the core complexity characteristics for bounded components, with additional improvements from reconfiguration and identical-machine grouping.

Abstract

We consider optimal planning in a large-scale system formalised as a hierarchical finite state machine (HFSM). A planning algorithm is proposed computing an optimal plan between any two states in the HFSM, consisting of two steps: A pre-processing step that computes optimal exit costs of the machines in the HFSM, with time complexity scaling with the number of machines; and a query step that efficiently computes an optimal plan by removing irrelevant subtrees of the HFSM using the optimal exit costs. The algorithm is reconfigurable in the sense that changes in the HFSM are handled with ease, where the pre-processing step recomputes only the optimal exit costs affected by the change. The algorithm can also exploit compact representations that groups together identical machines in the HFSM, where the algorithm only needs to compute the optimal exit costs for one of the identical machines within each group, thereby avoid unnecessary recomputations. We validate the algorithm on large systems with millions of states and a robotic application. It is shown that our approach outperforms Dijkstra's algorithm, Bidirectional Dijkstra and Contraction Hierarchies.

Efficient Planning in Large-scale Systems Using Hierarchical Finite State Machines

TL;DR

This work introduces HiMMs, a modular representation of hierarchical Mealy machines with nonnegative costs, to enable scalable optimal planning in large-scale systems. It presents a two-step planning paradigm: an offline Optimal Exit Computer that precomputes, for each machine, the minimal exit costs for all inputs, and an online Optimal Planner that rapidly computes optimal plans by reducing the HiMM and expanding the reduced solution back to the original, with a near-linear complexity in the hierarchy depth for bounded machines. The framework is extended to handle dynamic reconfigurations with targeted updates and to exploit identical machines via compact representations, yielding substantial speedups in preprocessing and planning. Empirical results on millions of states and a robotic warehouse task demonstrate speedups over Dijkstra and Bidirectional Dijkstra, while Contraction Hierarchies can outperform in some cases but at much higher preprocessing costs; the identical-machines variant enables planning on extremely large state spaces (e.g., up to states) by dramatically reducing the model size. Overall, the HiMM approach provides a principled, modular, and reconfigurable planning solution for large-scale hierarchical control systems with practical efficiency gains. The offline-online separation and modular proofs underpin robustness to changes and the potential for aggressive compression when many machines are identical. preprocessing and online planning emerge as the core complexity characteristics for bounded components, with additional improvements from reconfiguration and identical-machine grouping.

Abstract

We consider optimal planning in a large-scale system formalised as a hierarchical finite state machine (HFSM). A planning algorithm is proposed computing an optimal plan between any two states in the HFSM, consisting of two steps: A pre-processing step that computes optimal exit costs of the machines in the HFSM, with time complexity scaling with the number of machines; and a query step that efficiently computes an optimal plan by removing irrelevant subtrees of the HFSM using the optimal exit costs. The algorithm is reconfigurable in the sense that changes in the HFSM are handled with ease, where the pre-processing step recomputes only the optimal exit costs affected by the change. The algorithm can also exploit compact representations that groups together identical machines in the HFSM, where the algorithm only needs to compute the optimal exit costs for one of the identical machines within each group, thereby avoid unnecessary recomputations. We validate the algorithm on large systems with millions of states and a robotic application. It is shown that our approach outperforms Dijkstra's algorithm, Bidirectional Dijkstra and Contraction Hierarchies.
Paper Structure (55 sections, 18 theorems, 35 equations, 12 figures, 1 table, 17 algorithms)

This paper contains 55 sections, 18 theorems, 35 equations, 12 figures, 1 table, 17 algorithms.

Key Result

Proposition 1

Let $F$ be an FSM. A subset $S \subseteq Q_F$ is a module of $F$ if and only if $F/S \cdot_S F[S] = F$.

Figures (12)

  • Figure 1: Robot application modelled as an HFSM with three layers.
  • Figure 2: Change in House 2 in the HiMM given by Fig. \ref{['fig:robot_example_detailed_overview']}. Grey areas depict blocked locations.
  • Figure 3: Example of an HiMM depicted in a tree-form.
  • Figure 4: The four modifications of an HiMM depicted. The dashed rectangle specifies the MM $M$ subject to change.
  • Figure 5: The HiMM with identical machines for the robot application from Section \ref{['illustrative_example']}. The MM Houses consists of several identical houses, depicted by lines from the MM Houses to the MM House (where the number of lines specify the number of identical houses). The MM House consists in turn of one start state and several identical MMs given by Location, where Location is an MM with states having no further refinement.
  • ...and 7 more figures

Theorems & Definitions (59)

  • Definition 1: Mealy Machine
  • Definition 2
  • Definition 3: Hierarchical Mealy Machine
  • Example 1
  • Proposition 1: biggar2021modular
  • Definition 4: MM Modules
  • Proposition 2
  • Remark 1
  • Definition 5: State Addition
  • Definition 6: State Subtraction
  • ...and 49 more