Learning to reason about contextual knowledge for planning under uncertainty

Cheng Cui, Saeid Amiri, Yan Ding, Xingyue Zhan, Shiqi ZhangUAI 2023

Abstract

Sequential decision-making (SDM) methods enable AI agents to compute an action policy toward achieving long-term goals under uncertainty. Existing research has shown that contextual knowledge in declarative forms can be used for improving the performance of SDM methods. However, the contextual knowledge from people tends to be incomplete and sometimes inaccurate, which greatly limits the applicability of knowledge-based SDM methods. In this paper, we develop a novel algorithm for knowledge-based SDM, called PERIL, that learns from interaction experience to reason about contextual knowledge, as applied to urban driving scenarios. Experiments have been conducted using CARLA, a widely used autonomous driving simulator. Results demonstrate PERIL’s superiority in comparison to existing knowledge-based SDM baselines.

Introduction

Sequential Decision-Making (SDM) is a fundamental capability for AI agents operating in dynamic, real-world environments. To achieve long-term goals, agents must estimate the state of the world and plan a sequence of actions under uncertainty. While "contextual knowledge"—declarative logic rules provided by human experts—is often used to guide these agents, it faces a significant limitation: human-provided knowledge is frequently incomplete or inaccurate.

Traditional systems often treat this knowledge as static, leading to failures when expert rules do not hold. This paper introduces PERIL (Perceptual Reasoning and Interactive Learning), a framework designed to "close the loop" between perception, logic-based reasoning, and probabilistic planning. PERIL enables agents to learn from their interaction experiences, specifically by adjusting the weights of contextual knowledge rules based on observed outcomes.

Methodology

PERIL integrates three distinct AI paradigms into a unified pipeline to handle uncertainty and refine its internal models:

  1. Perception (CNNs): A Convolutional Neural Network processes raw sensor data, such as 3D Lidar scans, to identify immediate environmental features (e.g., lane occupancy).
  2. Reasoning (Markov Logic Networks - MLNs): This component combines perception outputs with observable facts (e.g., weather or traffic density). By using MLNs, PERIL attaches weights to rules, allowing for "soft" constraints where reasoning is probabilistic rather than absolute.
  3. Planning (POMDPs): The agent utilizes a Partially Observable Markov Decision Process to decide on actions. The reasoning component provides an "informative prior" to the planner, significantly improving state estimation efficiency.
The PERIL architecture integrates perceptual reasoning with interactive planning, allowing the agent to update its knowledge base from experience.

A key innovation of PERIL is its ability to learn from experience. After an interaction episode, the agent uses ground truth feedback to perform supervised learning for its perception classifier and relational learning to update the weights of its logic rules. This allows the agent to downweight inaccurate expert advice over time.

Experimental Setup

The framework was evaluated using CARLA, a high-fidelity autonomous driving simulator. The primary task involved a lane-merging scenario where an "ego" vehicle interacts with other drivers whose intentions (cooperative vs. uncooperative) are hidden. The researchers conducted 4,000 trials per data point, simulating various environmental conditions such as weather (Sunny/Rainy) and traffic density (Busy/Normal). Perception data was derived from 3D Lidar point clouds projected into 2D images to train the road-condition classifier.

Results and Key Insights

PERIL was compared against several baselines, including LCORPP (static rules) and standard POMDP planners.

Performance comparison showing PERIL achieving higher cumulative rewards than existing knowledge-based SDM baselines.

Key findings include:

  • Superior Performance: PERIL consistently achieved the highest cumulative rewards across both low-quality and high-quality perception settings. It outperformed the second-best baseline (LCORPP) with statistical significance (p < 0.05).
  • Interaction Efficiency: The agent reached goals with fewer "expensive" actions, such as unnecessary signaling, indicating more accurate state estimation.
  • Compensation Effect: Ablation studies revealed that the reasoning component (MLN) can compensate for weak perception. When sensors are noisy, the agent relies more on learned contextual correlations to infer the world state.

Conclusion

PERIL demonstrates that treating expert knowledge as a weighted, learnable prior—rather than absolute truth—makes autonomous agents more robust to inaccurate human input. Future work aims to replace the POMDP planner with Reinforcement Learning for direct policy learning and to incorporate Large Language Models (LLMs) for automated rule generation. Additionally, "Active Knowledge Acquisition" could allow robots to seek human clarification in novel situations.

Summary updated

BibTeX
@inproceedings{cui2023learning,
  author = {Cheng Cui and Saeid Amiri and Yan Ding and Xingyue Zhan and Shiqi Zhang},
  title = {{Learning to reason about contextual knowledge for planning under uncertainty}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=HPC6dVQDpB},
}
Figure