h-approximation: History-Based Approximation of Possible World Semantics as ASP

Manfred Eppe, Mehul Bhatt, Frank DyllaarXiv 2013

Introduction

In the field of robotics and autonomous systems, agents must frequently operate in environments where information is incomplete. To act effectively, these agents must reason about their own knowledge and the potential states of the world—a process known as epistemic planning. Traditionally, this has been handled using Possible World Semantics (PWS), where an agent maintains a set of all possible states consistent with its observations. However, PWS is computationally expensive, often reaching $\Sigma^P_2$ complexity, which limits its utility in real-time robotics.

This paper introduces h-approximation ($HPX$), a history-based method for epistemic planning. By leveraging Answer Set Programming (ASP), $HPX$ enables robots to perform "postdiction"—the ability to infer past states from current observations—while maintaining a lower computational complexity (NP-complete) than full PWS. This approach provides a balance between the expressive power of possible worlds and the efficiency required for practical deployment.

The Challenge of Incomplete Knowledge and Postdiction

Real-world robotics is characterized by uncertainty. When a robot's action fails—for instance, if it attempts to open a door and the door remains shut—the robot must determine why. A sophisticated system should be able to look back and conclude that the door was likely locked or blocked, even if that information was not explicitly known beforehand. This is known as postdiction.

Existing approximations, such as the 0-approximation, simplify the reasoning process by tracking only what is definitely known. While this reduces complexity to NP, these systems typically lack the ability to reason backward through time. To handle failures, developers often have to hard-code specific "failure rules," which reduces the system's "elaboration tolerance"—the ease with which new information or constraints can be added without a total overhaul of the logic.

The h-approximation ($HPX$) Framework

The authors propose $HPX$ to address these limitations through several key innovations:

History-Based Reasoning

Unlike state-based approximations that only consider the current moment, $HPX$ maintains a history of the agent's knowledge and actions. It utilizes the "commonsense law of inertia" to refine its understanding of the past based on new sensor data. If a sensor provides information that contradicts an earlier assumption, the system can trace back through the history to find a consistent explanation.

Answer Set Programming (ASP) Implementation

The framework is implemented using Answer Set Programming, allowing it to utilize high-performance solvers like clingo. This translation maps the epistemic planning problem into a logic program where the "answer sets" correspond to valid plans. This allows for the generation of conditional plans, which include branches for different sensor outcomes (e.g., "If the sensor detects a block, take path B; otherwise, continue on path A").

Formal Semantics

The authors extend the action language $\mathcal{A}_k$ to create Temporal Query Semantics ($\mathcal{A}_k^{TQS}$). This provides the theoretical foundation necessary to prove that $HPX$ is sound—meaning any conclusion the system reaches is logically supported by the underlying PWS, even if it does not find every possible conclusion that PWS might.

Experimental Evaluation

The $HPX$ framework was evaluated through both standard AI benchmarks and a real-world case study.

Benchmarking Results

The system was compared against the ASCP planner (a 0-approximation competitor) on three classic domains:

  1. Rings: Closing windows in connected rooms. In this domain, $HPX$ significantly outperformed ASCP, solving a 3-room problem in approximately 10 seconds, whereas ASCP required 170 seconds.
  2. Bomb in the Toilet: A classic sensing and uncertainty problem.
  3. Sickness: Identifying diseases via color-coded tests.

While $HPX$ dominated in the Rings domain, it was slower in the Bomb and Sickness domains. The authors attribute this to the fact that $HPX$ requires more explicit action modeling for sensing, whereas ASCP uses a more specialized, albeit less expressive, knowledge representation.

Case Study: Bremen Ambient Assisted Living Lab (BAALL)

To demonstrate real-world utility, $HPX$ was integrated into a robotic wheelchair system navigating a smart home. In simulations where doors were unexpectedly blocked by furniture, the robot successfully used postdiction to infer the blockage after a failed movement attempt. It then automatically triggered a diagnostic inference and recalculated an alternative path through a different room without requiring pre-programmed failure scenarios.

Conclusion and Future Work

The $HPX$ framework identifies a "complexity sweet spot" for epistemic planning. It provides the essential capability of postdiction within NP-complete complexity, avoiding the $\Sigma^P_2$ "complexity wall" of full Possible World Semantics. Its reliance on foundational logic and the law of inertia ensures high elaboration tolerance, making it suitable for complex, evolving environments like assisted living facilities.

Future work aims to bridge the performance gap between ASP-based planners and dedicated PDDL (Planning Domain Definition Language) planners. The authors intend to port sophisticated search heuristics from PDDL into the ASP framework to further accelerate solving times for complex, multi-step robotic plans.

Summary updated

BibTeX
@misc{eppe2013h,
  author = {Manfred Eppe and Mehul Bhatt and Frank Dylla},
  title = {{h-approximation: History-Based Approximation of Possible World Semantics as ASP}},
  year = {2013},
  eprint = {1304.4925},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1304.4925},
}
Figure