Dual policy as self-model for planning

Jaesung Yoo, Fernanda De La Torre, Guangyu Robert YangJournal of Korean Institute of Intelligent Systems 2023

TL;DR

This paper introduces a "dual policy" agent that uses a separate, distilled policy network as a "self-model" for planning, in addition to its primary model-free policy. This approach stabilizes training, speeds up planning, and improves exploration compared to using the model-free policy for both tasks, offering a more comprehensive understanding of the agent's own behavior.

What Problem Does This Paper Address?

Planning is a crucial decision-making strategy where an agent explores potential future states to find optimal actions. However, in environments with large or high-dimensional action spaces, exploring all possibilities becomes computationally infeasible. To address this, agents need a "self-model" – a way to predict which actions they might take in future states, thereby limiting the search space. While self-models are implicitly used in conjunction with world models, the optimal design for these self-models remains unclear. Existing approaches often use the agent's primary model-free policy as the self-model, but this paper questions whether a specialized self-model could offer further benefits, drawing inspiration from neuroscience's distinction between habitual and goal-directed behaviors.

Methods

The core contribution is the introduction of the "dual policy agent." This agent comprises three main components:

  1. World Model: Predicts the next state and reward given the current state and action.
  2. Model-Free Policy: Learns to select actions that maximize future rewards through standard reinforcement learning (Proximal Policy Optimization - PPO). This policy is used for direct action execution.
  3. Distilled Policy (Self-Model): A separate, often smaller, policy network trained to mimic the actions of the model-free policy. This network is exclusively used for generating candidate actions during the planning phase.

The paper compares this dual policy agent against a "shared policy agent" (which uses the model-free policy for both action execution and planning) and a "simple agent" (which only uses the model-free policy without planning). Planning is performed using Monte Carlo Tree Search (MCTS), with candidate actions for exploration being sampled from the self-model.

Datasets

The experiments were conducted in a custom-designed, ecologically relevant predator/prey environment. This environment is parameterized, allowing for variations in map size and other settings to test the agents' capabilities. No standard public datasets were used; the environment itself served as the benchmark.

Key Insights and Ideas

  • Specialized Self-Model for Planning: A dedicated "self-model" (the distilled policy) can be more effective for planning than using the agent's primary model-free policy. This is because the distilled policy can learn to generate a broader range of actions, including those that might be sub-optimal for direct execution but useful for exploring future possibilities.
  • Neuroscience Inspiration: The distinct roles of the prefrontal cortex (goal-directed planning) and basal ganglia (habitual actions) in the brain provide a biological rationale for separating planning and direct action policies.
  • Stabilized Training: The dual policy agent demonstrated more stable training, evidenced by smaller standard deviations in performance metrics, suggesting that having separate networks for different functions can lead to more robust learning.
  • Faster Inference: A smaller distilled policy network can lead to faster planning inference times compared to using a larger model-free policy for the same task.
  • Enhanced Exploration: The dual policy agent showed improved exploration capabilities, particularly in larger and more complex environments, allowing it to discover more rewarding strategies.
  • Handling Reflexive Behaviors: The dual policy agent was better at reconciling discrepancies between learned policies and innate "reflexive" behaviors (like freezing or fleeing), leading to more robust performance in critical situations.

Key Results

  • Performance: The dual policy agent achieved performance comparable to the shared policy agent in terms of success rates, but with significantly lower variance, indicating more stable training.
  • Inference Speed: By using smaller distilled policy networks, the dual policy agent achieved faster planning inference.
  • Exploration: In larger map environments, the dual policy agent's success rate was substantially higher than the shared policy agent, demonstrating its superior exploration capabilities.
  • Reflexive Behavior: The dual policy agent significantly outperformed the shared policy agent when dealing with detrimental reflexive behaviors (like freezing), suggesting it can better integrate learned and innate responses.

Limitations and Future Work

  • Environment Specificity: The findings were validated in a single, albeit complex, predator/prey environment. The generalizability of these results to a wider range of environments needs further investigation.
  • Temporal Abstraction: The paper suggests exploring temporal abstraction within the dual policy framework, which could lead to more efficient hierarchical planning.
  • Retraining/Lesion Stability: Investigating the use of the distilled policy to retrain a "damaged" model-free policy could offer insights into ensuring robustness and recovery under disruptions.
  • Multi-Agent Settings: Extending the dual policy concept to multi-agent scenarios to develop "theory of mind" capabilities—understanding and predicting other agents' behaviors—is a promising future direction.

Summary updated

Abstract

계획은 에이전트가 가능한 미래 상태를 탐색하며 후보 행동을 선택하는 데이터 효율적인 의사결정 전략이다. 탐색할 미래 행동이 무한한 고차원 행동 공간에서 계획을 할 때, 탐색을 제한하기 위해서는 자신의 의사결정 전략에 대한 지식인 자기모델을 사용하여 후보 행동을 만들어야 한다. 자기 모델 설계법이 불분명한 가운데 신경과학에서 영감을 받아, 본 연구는 자기 모델로서 정제된 정책 네트워크를 사용하는 이중 정책 에이전트의 이점과 한계를 탐구한다. 이중 정책 에이전트에서는 모델-자유 정책과 정제된 정책이 각각 모델-자유 행동과 계획된 행동에 사용된다. 매개변수화한 생태적인 환경에서 실험한 결과, 자기 모델을 위한 정제된 정책 네트워크는 훈련을 안정화시키고, 모델-자유 정책을 사용하는 것보다 빠른 추론을 가능하게 하며, 더 나은 탐색을 촉진하고, 자신의 행동에 대한 포괄적인 이해를 학습할 수 있음을 발견하였다.
BibTeX
@misc{yoo2023dual,
  author = {Jaesung Yoo and Fernanda De La Torre and Guangyu Robert Yang},
  title = {{Dual policy as self-model for planning}},
  year = {2023},
  eprint = {2306.04440},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.04440},
}
Figure