Reinforcement Learning with Knowledge Representation and Reasoning: A Brief Survey

Chao Yu, Xuejing Zheng, Hankz Hankui Zhuo, Hai Wan, Weilin LuoarXiv 2023 · DOI

Introduction

Reinforcement Learning (RL) has demonstrated exceptional performance in domains with well-defined rules and abundant data, such as board games and simulated environments. However, transitioning these successes to real-world applications reveals significant hurdles. Traditional RL often relies on "atomic" representations, treating states and actions as opaque values or raw sensory inputs (e.g., pixels). This tabula rasa approach leads to several persistent "growing pains": extreme sample inefficiency, brittle generalization to novel tasks, and a lack of safety guarantees or interpretability.

To address these challenges, researchers are increasingly looking toward the integration of Knowledge Representation and Reasoning (KRR). By incorporating high-level symbolic logic and domain-specific knowledge, RL agents can leverage human-like reasoning to navigate complex environments more effectively.

Taxonomy of Reinforcement Learning and Knowledge Representation and Reasoning integration.

The Theory-to-Application Gap

The core of the "theory-to-application gap" lies in the neglect of declarative knowledge—facts, rules, and relational structures. Humans do not learn to drive by randomly pressing pedals; we use prior knowledge of traffic laws and spatial relations. In contrast, standard deep RL agents often require millions of interactions to learn simple behaviors because they lack this conceptual scaffolding. Furthermore, the "black box" nature of neural network policies makes them difficult to verify for safety-critical deployments.

Methodological Integration

The survey categorizes the synergy between KRR and RL into three primary functional areas:

1. Enhancing Efficiency through Task Representation

KRR tools allow for the decomposition of complex, long-horizon tasks into manageable sub-goals.

  • Reward Machines (RMs): These use finite-state automata to define rewards based on high-level events, effectively guiding the agent through sequential objectives.
  • Temporal Logics: Formal languages like Linear Temporal Logic (LTL) enable the specification of complex, non-Markovian goals (e.g., "visit A then B, but never C").
  • Symbolic Planning: Integrating RL with Answer Set Programming (ASP) or PDDL allows agents to prune search spaces and focus exploration on logically sound paths.
The workflow of Reward Machines: from task specification to structured learning via Q-functions.

2. Improving Generalization and Transfer

KRR facilitates the transfer of knowledge across disparate tasks. Markov Logic Networks (MLNs) can map logical rules from a source domain to a target domain, providing a "warm start" for learning. Additionally, value function composition allows agents to combine previously learned symbolic "skills" to solve entirely new missions without extensive retraining.

3. Ensuring Safety and Interpretability

Safety is paramount in real-world robotics. "Shielding" techniques use logical guardrails to intercept and correct potentially hazardous actions before execution. Moreover, representing policies as human-readable programs or symbolic expressions (Programmatic Policies) provides a level of transparency that opaque neural networks cannot match.

Key Insights and Results

The integration of KRR shifts the RL paradigm from purely Markovian rewards to more sophisticated, history-dependent objectives. This "neuro-symbolic" approach uses neural networks for perception and logic for high-level decision-making.

Empirical results across benchmarks like OfficeWorld and Minecraft show that KRR-driven agents often converge to optimal policies orders of magnitude faster than their pure RL counterparts. In many scenarios, these hybrid systems achieve zero-shot transfer and provide mathematically verifiable safety constraints.

Future Directions

Despite these advancements, several challenges remain. The "Proposition Detector" problem—the difficulty of accurately mapping noisy sensor data to clean symbolic representations—remains a bottleneck. Additionally, scaling logical reasoning to environments with vast numbers of objects is computationally intensive. Future research is likely to explore the role of Large Language Models (LLMs) in automatically generating symbolic models and establishing more rigorous theoretical foundations for neuro-symbolic convergence.

Summary updated

BibTeX
@misc{yu2023reinforcement,
  author = {Chao Yu and Xuejing Zheng and Hankz Hankui Zhuo and Hai Wan and Weilin Luo},
  title = {{Reinforcement Learning with Knowledge Representation and Reasoning: A Brief Survey}},
  year = {2023},
  eprint = {2304.12090},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.12090},
}
Figure