TLDR: This research paper introduces PEC-MDP, a novel framework that formally translates Probabilistic Event Calculus (PEC) into Markov Decision Processes (MDPs). This translation combines PEC’s strength in interpretable narrative reasoning with MDPs’ capabilities for goal-directed planning and reinforcement learning, enabling efficient temporal projection and the discovery of optimal policies in uncertain environments, while maintaining human-readable representations.
Artificial Intelligence (AI) constantly seeks ways to understand and interact with dynamic, uncertain environments. A significant challenge in this field is “narrative reasoning” – the ability to represent and make sense of sequences of events and their cause-and-effect relationships over time. Two prominent frameworks have emerged to tackle different aspects of this challenge: the Probabilistic Event Calculus (PEC) and Markov Decision Processes (MDPs).
The Probabilistic Event Calculus (PEC) is a logical framework designed for reasoning about actions and their effects in uncertain settings. It excels at representing complex narratives, allowing for the computation of how events unfold over time. PEC is highly valued for its interpretability, meaning it’s easier for humans to understand the rules and outcomes it describes. It has found applications in diverse fields like medicine, environmental monitoring, and common-sense reasoning. However, a key limitation of PEC is its lack of mechanisms for “goal-directed reasoning” – it can tell you what might happen, but not how to achieve a specific objective.
On the other hand, Markov Decision Processes (MDPs) are a powerful framework widely used in AI for decision-making under uncertainty. MDPs are the bedrock for many statistical and reinforcement learning algorithms, making them excellent for solving “control optimization” problems where an agent needs to find the best sequence of actions to maximize a reward. While MDPs are computationally efficient for finding optimal behaviors, they typically represent situations as abstract “states” without the rich, human-readable narrative structure that PEC offers.
Bridging the Gap: The PEC-MDP Framework
A new research paper, titled “A Translation of Probabilistic Event Calculus into Markov Decision Processes,” addresses this fundamental disparity. The authors, Lyris Xu, Fabio Aurelio D’Asaro, and Luke Dickens, have developed a formal translation of PEC domains into MDPs, creating what they call the “PEC-MDP” framework. This innovative approach aims to combine the best of both worlds: PEC’s superior narrative interpretability with MDPs’ computational efficiency and reinforcement learning capabilities.
The core idea is to allow the extensive collection of algorithms and theoretical tools developed for MDPs to be applied directly to PEC’s interpretable narrative domains. This means that complex planning problems in uncertain environments, which PEC previously struggled with, can now be tackled using established MDP techniques.
How the Translation Works
The translation process involves several clever adaptations to bridge the conceptual differences between PEC and MDPs:
- Time Steps: The paper normalizes PEC’s flexible timeline into discrete time steps suitable for MDPs.
- States: PEC’s “fluent states” (which describe properties of the world, like “patient is healthy”) are mapped into numerical vector and then integer representations for MDPs. This allows for efficient computation.
- Actions: One of the most significant innovations is the introduction of “action-taking situations.” Unlike traditional MDPs where actions are singular and synchronized with state transitions, PEC allows for simultaneous actions or no actions at all at a given time. The PEC-MDP handles this by defining action-taking situations that can include single actions, composite (simultaneous) actions, or even the absence of an action.
- Initial Distribution and Transitions: The probabilistic initial states and causal effects defined in PEC are directly translated into the MDP’s initial state distribution and transition function, which dictate the probability of moving from one state to another after an action.
- Policy: The framework uses non-stationary MDP policies, which allow for time-dependent action choices, aligning with PEC’s time-conditioned actions.
The authors have made a Python implementation of this formal translation available through a shared repository, enabling researchers and developers to explore and utilize the PEC-MDP framework. You can find more details about this work in the full research paper: A Translation of Probabilistic Event Calculus into Markov Decision Processes.
Applications of PEC-MDP
The PEC-MDP framework opens doors for two primary applications:
- Temporal Projection: This is a fundamental task in narrative reasoning, where the goal is to calculate the probability of certain properties holding at future time points. The PEC-MDP provides an efficient, vector-based approach to compute these probabilities without needing to enumerate all possible future scenarios, which can be computationally expensive in traditional PEC.
- Objective-directed Strategies: This is where the power of MDPs truly shines. By introducing a “reward function” – a mechanism to define what constitutes success or failure – the PEC-MDP can leverage reinforcement learning algorithms to discover optimal action policies. For instance, in a medical domain, rewards could be tied to patient recovery, or in logistics, to delivery speed. Crucially, the framework also provides a method to translate these learned optimal policies back into human-readable PEC “p-propositions,” ensuring that the interpretability of the original PEC formalism is maintained even after complex optimization.
Also Read:
- New AI Solver Navigates Uncertainty with Enhanced Planning for Autonomous Systems
- Bridging the Gap: How RAE+UPOM Enables Robust Robot Action and Planning in the Real World
Conclusion
The PEC-MDP framework represents a significant step forward in AI, offering a robust method to combine the strengths of two distinct but complementary reasoning paradigms. By enabling goal-driven reasoning and policy optimization within interpretable narrative domains, this work lays the groundwork for more sophisticated AI systems that can not only understand complex sequences of events but also make purposeful decisions to achieve desired outcomes in uncertain real-world scenarios. Future work includes formal efficiency analyses and extending the framework to more complex probabilistic event calculi.


