On the Value of Myopic Behavior in Policy Reuse

Kang Xu, Chenjia Bai, Shuang Qiu, Haoran He, Bin Zhao, Zhen Wang, Wei Li, Xuelong Li

TL;DR

Reusing prior policies in reinforcement learning (RL) can significantly accelerate training, but incorporating irrelevant or suboptimal policies often leads to performance-degrading "negative transfer." To address this, the authors introduce Selective Myopic bEhavior Control (SMEC), a framework built on the insight that while long-term goals differ across tasks, short-term (myopic) behaviors are highly sharable. By evaluating prior policies over a truncated short-term horizon and the active task policy over a long-term horizon, SMEC adaptively leverages useful skills early in training and automatically transitions entirely to the task policy as it matures.

What Problem Does This Paper Address?

Deep reinforcement learning agents excel at solving complex tasks from scratch, but doing so requires massive amounts of data and environment interaction. Policy reuse aims to mitigate this by leveraging existing policies—either from previously learned tasks or human experts—to jump-start learning in a new downstream task.

However, safely reusing policies remains a major challenge. If an agent blindly follows a prior policy that is irrelevant to the current task, it can distort exploration and hinder training. Existing behavior-based methods typically assume that the available prior policies are highly related to the target task. When this assumption fails, performance plummets. SMEC tackles this limitation by answering a core question: How can an agent efficiently identify and exploit only the useful, localized pieces of prior policies without knowing their global properties in advance?

Methods

The core philosophy of SMEC is inspired by human intelligence: when tackling a brand-new project, we don't start completely from scratch; instead, we break it down and reuse basic, short-term skills like reading or communicating, even if the overall goals are entirely different.

Figure 1: Contrary to accomplishing tasks (i.e., a project) by learning from scratch, human typically decompose the task into multiple stages and deploy learned policies to solve the corresponding sub-tasks. Inspired by this, we propose that the sharable short-term behaviors of prior policies concerning the current task can be identified and exploited for efficient learning.

To operationalize this, SMEC introduces three key components:

  1. Myopic (Short-Horizon) Evaluation: Instead of evaluating how well a prior policy performs across an entire episode, SMEC evaluates its performance over a short horizon $h$. It achieves this by using a truncated discount factor $\bar{\gamma}$ specifically for the prior policies, effectively blinding the evaluation to long-term rewards and focusing purely on immediate, transferable skills.
  2. Hybrid Value Function Architecture: Training a separate value function for every prior policy is computationally prohibitive. SMEC utilizes a single aggregated neural network architecture ($Q_\theta$) that simultaneously estimates the long-term value of the active task policy and the short-term values of all $K$ prior policies.
  3. Value-Guided Behavior Planning with UCB: Every $h$ steps, the agent decides whether to execute the task policy or one of the prior policies for the next block of steps. This choice is formulated using an Upper Confidence Bound (UCB) heuristic, balancing the greedy selection of the highest-performing short-term policy with an exploration term that tracks policy selection and transition counts.

As the active task policy improves, its long-term value naturally begins to dwarf the short-term value estimates of the prior policies. This allows the agent to automatically wean itself off the prior policies without requiring manual hyperparameter tuning or schedules.

Datasets

The authors evaluated SMEC on two popular reinforcement learning benchmarks:

  • MetaWorld: A robotic manipulation environment. The authors utilized 3 prior policies (trained on Push, Reach, and PickPlace) and evaluated performance across 12 distinct downstream tasks (e.g., Hammer, Sweep, Assembly).
  • AntMaze: A challenging locomotion benchmark requiring both continuous control and global planning. The authors trained 4 prior policies to reach different goals in an empty grid, then evaluated them on 3 complex maze layouts (CenterBlock, LMaze, and Bottleneck).

Key Insights and Ideas

  • Short-Term Transferability: Prior policies might have completely different long-term objectives, but their short-term trajectories (e.g., how to grasp an object or move forward) are highly transferable primitives.
  • Mitigating Off-Policy Error via Myopia: Evaluating prior policies using a standard long-term discount factor often fails due to severe off-policy distribution shifts (since the data buffer is dominated by the task policy). Truncating the horizon acts as a powerful regularizer, yielding highly accurate short-term value predictions.
  • Seamless Handoff: The framework elegantly bridges early-stage exploration (dominated by expert prior behaviors) and late-stage exploitation (dominated by the specialized task policy) purely through the natural evolution of the value functions.

Key Results

SMEC consistently outperformed seven state-of-the-art baselines (including Scratch, CUP, AC-Teach, MultiPolar, MAMBA, SkillS, and QMP) across all 15 evaluation tasks.

Figure 3: (Left) The learning curves on the success rate across all tasks, including 12 MetaWorld tasks and 3 AntMaze tasks. The solid line and shaded regions represent the mean and standard deviation across five runs with different random seeds. (Right) The aggregated curves over all 15 tasks.
  • Sample Efficiency: In complex environments like MetaWorld-BoxClose and AntMaze-LMaze, SMEC achieved high success rates significantly faster than learning from scratch or using alternative policy reuse methods.
  • Ablation Verification: Removing the truncated horizon ($\bar{\gamma} = \gamma$) caused severe performance degradation, confirming that myopic evaluation is vital to stabilizing value estimation.
  • Computational Scalability: Thanks to the shared hybrid network architecture, SMEC scales gracefully. Adding 8 prior policies only introduced a ~27.8% wall-clock time overhead compared to training from scratch, vastly outperforming hierarchical sequencing methods like SkillS.

Limitations and Future Work

The authors note that SMEC's primary limitation is its dependency on the baseline utility of the prior policy set. If the collection of prior policies contains absolutely no sharable short-term behaviors for a given downstream task, the efficiency gains will be minimal.

For future work, the authors suggest integrating SMEC with unsupervised skill discovery methods to automatically pre-train highly diverse sets of prior primitives. Additionally, they highlight extending myopic policy reuse to ensure safe exploration and risk-sensitive decision-making as an exciting open direction.

Summary updated

BibTeX
@article{xu2023value,
  author = {Kang Xu and Chenjia Bai and Shuang Qiu and Haoran He and Bin Zhao and Zhen Wang and Wei Li and Xuelong Li},
  title = {{On the Value of Myopic Behavior in Policy Reuse}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  url = {https://openreview.net/forum?id=vqDi5LfPnx},
}
Figure