Lipschitz Lifelong Reinforcement Learning

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

TL;DR

This paper introduces a novel way to safely speed up reinforcement learning across a sequence of tasks by mathematically measuring task similarity. By proving that the optimal value functions of similar tasks are "close" (Lipschitz continuous), the authors develop the Lipschitz RMax (LRMax) algorithm, which transfers knowledge to new tasks without the risk of performance degradation, known as negative transfer.

What Problem Does This Paper Address?

In Lifelong Reinforcement Learning (LRL), an agent faces a series of different but related tasks. Ideally, the agent should use knowledge from previous tasks to learn new ones faster. However, most standard RL algorithms start from scratch for every new task.

The primary challenge in LRL is negative transfer: if a source task is too different from the target task, reusing its knowledge can actually mislead the agent and slow down learning compared to starting from scratch. Existing transfer methods often lack theoretical guarantees against this or require a large number of tasks to be solved before transfer becomes effective. This paper seeks a method that is safe (no negative transfer), effective even with few source tasks, and theoretically grounded.

Methods

The authors bridge the gap between task similarity and value similarity using the concept of Lipschitz continuity.

  1. A New Metric for MDPs: They define a pseudometric between Markov Decision Processes (MDPs) that quantifies how much their reward and transition functions differ at each state-action pair.
  2. Theoretical Foundation: The core contribution is proving that the optimal Q-value function is Lipschitz continuous with respect to this MDP space. Intuitively, if two tasks are "close" according to their metric, their optimal strategies and values are also guaranteed to be "close."
  3. Lipschitz RMax (LRMax): They integrate this finding into the well-known RMax algorithm. While standard RMax initializes unknown states with a global maximum possible value (an "optimistic" bound) to drive exploration, LRMax uses a tighter, transferable upper bound derived from previously solved tasks and the calculated distance to the current task.
Figure 1: The optimal Q-value function represented for a par- ticular s, a pair across the MDP space. The RMax, MaxQInit and LRMax bounds are represented for three sampled MDPs.

As the agent explores a new task, it refines its estimate of the task distance online, allowing the transfer to become more precise over time.

Datasets

The authors evaluated LRMax on three grid-world environments designed to test transfer capabilities:

  • "Tight" Grid-world: An 11x11 grid where the agent must reach goal cells with varying rewards and slip probabilities across tasks.
  • Corridor Grid-world: A 20-cell linear corridor where the agent must avoid wasting time exploring a dead-end "left" side.
  • Maze Grid-world: A complex maze with two possible wall configurations, requiring the agent to adapt its path based on which version of the maze is currently active.

Key Insights and Ideas

  • Provably Safe Transfer: Because the method uses a theoretical upper bound on the value function, it never underestimates the potential of an action. This ensures that the agent won't prematurely discard a good strategy based on prior knowledge, effectively eliminating negative transfer with high probability.
  • Efficiency with Few Tasks: Unlike previous state-of-the-art methods like MaxQInit, which need to see many tasks to build statistical confidence, LRMax can benefit from transfer as early as the second task.
  • The Power of Prior Knowledge: The authors show that even a rough estimate of the maximum possible discrepancy between tasks ($D_{max}$) can significantly boost early-stage learning speed.
  • Three-Stage Learning: LRMax typically follows a distinct pattern: first, it exploits transferred knowledge for high early payoff; then, it explores remaining unknown regions; and finally, it converges to the optimal policy.

Key Results

  • Faster Convergence: In experiments, LRMax significantly outperformed the no-transfer RMax baseline and the MaxQInit algorithm in terms of sample complexity.
  • Quantitative Gains: With tight prior knowledge of task similarity, LRMax achieved a relative total return gain of over 140% compared to RMax (see Figure 3d).
  • Early Fitness: LRMax showed performance improvements starting from Task 2, whereas MaxQInit required roughly 12 tasks to begin showing benefits in the same environment.
Figure 3: Experimental results. LRMax benefits from an enhanced sample complexity thanks to the value-transfer method.

Limitations and Future Work

  • Discrete State Spaces: The current theoretical and experimental work focuses on discrete state-action spaces. While the authors mention that extensions to continuous spaces are straightforward, they haven't implemented them here.
  • Computational Overhead: Calculating the Lipschitz bounds requires solving fixed-point equations via Dynamic Programming, which adds a computational cost that scales with the number of source tasks ($N$).
  • Scalability: Future research could focus on developing more scalable approximations of these Lipschitz bounds to handle larger state spaces or a much higher number of source tasks without the full Dynamic Programming overhead.

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