Lipschitz Lifelong Reinforcement Learning

Erwan Lecarpentier, David Abel, Kavosh Asadi, Yuu Jinnai, Emmanuel Rachelson, Michael L. Littman

Introduction

In Reinforcement Learning (RL), agents typically learn tasks from scratch. Lifelong RL aims to improve this by leveraging experience from a sequence of "source" tasks to accelerate learning in a new "target" task. A critical hurdle in this domain is negative transfer, where incorrect assumptions about task similarity lead to performance degradation. This paper introduces a mathematically grounded approach to "safe" transfer using Lipschitz continuity.

Theoretical Framework: Lipschitz Bounds

The core contribution is the proof that optimal Q-values are Lipschitz continuous with respect to a novel local pseudometric between Markov Decision Processes (MDPs). This metric quantifies differences in rewards and transition probabilities at specific state-action pairs.

Comparison of Q-value bounds: LRMax provides tighter, locally-informed bounds compared to the global RMax or MaxQInit.

By establishing this bound, an agent can calculate a provable upper limit on the Q-values of an unknown target task based on previously encountered source tasks. This ensures that transfer is always "optimistic," preventing the agent from prematurely dismissing potentially optimal actions.

The LRMax Algorithm

The authors propose LRMax, an extension of the classic RMax algorithm. While RMax uses a generic maximum possible value for unknown states to encourage exploration, LRMax replaces this with tighter Lipschitz bounds derived from prior experience.

Key features of LRMax include:

  • Online Computation: Bounds can be updated in real-time as the agent explores, even with partial knowledge of source and target tasks.
  • Local Similarity: The algorithm transfers knowledge for specific state-action pairs, allowing it to benefit from partial task overlaps even when global task structures differ.
  • Early Fitness: Transfer can begin as soon as a second task is encountered, without needing a large library of tasks to identify patterns.

Experimental Evaluation

The algorithm was tested on various grid-world environments, including a "Tight" grid-world, a Corridor task, and a Maze task with shifting walls. These environments serve as standard benchmarks for PAC-MDP theory.

Performance comparison on specific tasks: LRMax shows significant transfer benefits as early as Task 2, whereas baselines like MaxQInit require many more tasks to become effective.

Results demonstrated that LRMax significantly reduces sample complexity and accelerates convergence. Notably, in sequential task experiments, LRMax achieved optimal performance much faster than the state-of-the-art MaxQInit baseline. Furthermore, empirical results confirmed the theoretical guarantee of zero negative transfer; LRMax never performed worse than learning from scratch.

Conclusion and Future Work

LRMax provides a robust framework for lifelong RL by grounding transfer in Lipschitz continuity. While currently focused on tabular settings, future work aims to extend these principles to high-dimensional continuous spaces using Deep RL approximations. Additionally, optimizing the computational overhead of maintaining bounds across many tasks remains an area for further refinement.

Summary updated

BibTeX
@inproceedings{lecarpentier2021lipschitz,
  author = {Erwan Lecarpentier and David Abel and Kavosh Asadi and Yuu Jinnai and Emmanuel Rachelson and Michael L. Littman},
  title = {{Lipschitz Lifelong Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i9.17006},
}
Figure