Knowledge-Guided Exploration in Deep Reinforcement Learning

Sahisnu Mazumder, Bing Liu, Shuai Wang, Yingxuan Zhu, Xiaotian Yin, Lifeng Liu, Jian LiarXiv 2022 · DOI

Abstract

Deep Reinforcement Learning (RL) agents often suffer from slow convergence due to "blind exploration," where they repeatedly attempt sub-optimal or catastrophic actions before learning their negative consequences. This paper proposes State-Action Permissibility (SAP), a framework that integrates domain knowledge to prune the action space. By training a binary classifier to predict action permissibility, agents can avoid obvious mistakes and focus on promising regions of the state-action space. Evaluations in autonomous driving and gaming environments demonstrate significant improvements in training speed and stability.

Introduction

Standard model-free RL agents typically begin as "blank slates," exploring environments without prior intuition. In complex tasks like autonomous driving, this leads to thousands of redundant failures—such as steering off-track—before a viable policy emerges. This "blind exploration" is a major bottleneck for practical applications. Humans, conversely, use common-sense constraints and "regret" to avoid clearly counterproductive actions. This work introduces a method to encode such human-like foresight into the RL loop through the SAP property, reducing the search space without violating the fundamental goal of long-term reward optimization.

Methodology

The core of the approach is the classification of actions into two types of permissibility:

  1. Type 1 Permissibility (Regret): After an action is taken, the agent evaluates if it was a mistake based on the resulting state (e.g., moving further from a target).
  2. Type 2 Permissibility (Foresight): The agent predicts if an action is non-permissible before execution (e.g., flapping when already at the ceiling in Flappy Bird).

The framework consists of three components:

  • AP Functions: User-defined logic used to label actions during training.
  • AP Predictor: A binary classifier trained concurrently with the RL agent to "look ahead" and predict permissibility, allowing the agent to skip "forbidden" zones.
  • Virtual Stopping (VS): In sparse-reward environments, the system "virtually" terminates an episode with a penalty the moment a non-permissible action is detected, forcing faster learning of consequences.

These techniques were integrated into state-of-the-art algorithms, resulting in DDPG-AP1 (continuous) and DDQN-AP1 (discrete).

Experimental Setup

The authors evaluated the SAP framework across three simulation environments: TORCS (The Open Racing Car Simulator), Flappy Bird, and Cart-Pole Balancing. In the TORCS environment, the state is defined by physical parameters including velocity ($V_x$), heading angle ($\theta$), and track offset ($\delta_{track}$), as shown below.

State representation for the lane-keeping task in TORCS.

Key Results

SAP-guided agents consistently outperformed baseline models in both speed and stability across all benchmarks.

Lane Keeping Performance

In the TORCS simulator, the DDPG-AP1 agent learned a stable driving policy in approximately 26 episodes. In contrast, the baseline DDPG remained unstable and frequently drove off-track even after 100 episodes.

Learning curves comparing baseline DDPG with SAP-enhanced models.

Gaming and Control Benchmarks

  • Flappy Bird: The guided agent (DDQN-AP1+AP2) achieved a test score of 663.74 after 200k steps, significantly outperforming the baseline DDQN score of 80.62.
  • Cart-Pole: The SAP model solved the task in just 5k training steps, a feat the baseline took significantly longer to approach.
  • Predictor Accuracy: The AP Predictors reached 80-95% accuracy early in the training process, demonstrating that permissibility is a learnable property that effectively guides exploration.

Discussion and Limitations

The authors demonstrate that pruning the action space is not "greedy" but rather a form of efficient search-space reduction. By avoiding actions that cannot lead to an optimal solution, compute is preserved for meaningful exploration.

However, limitations remain. The current work focuses on one-dimensional action spaces (e.g., steering only). Multi-dimensional spaces involving action interactions present higher complexity. Additionally, the framework assumes deterministic environments. Future research will explore extending SAP to stochastic environments and potentially automating the discovery of AP functions from initial exploration data.

Summary updated

BibTeX
@misc{mazumder2022knowledge,
  author = {Sahisnu Mazumder and Bing Liu and Shuai Wang and Yingxuan Zhu and Xiaotian Yin and Lifeng Liu and Jian Li},
  title = {{Knowledge-Guided Exploration in Deep Reinforcement Learning}},
  year = {2022},
  eprint = {2210.15670},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.15670},
}
Figure